function.c (gimplify_parameters): Set number of arguments of call to BUILT_IN_ALLOCA_...
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-10-13  Tom de Vries  <tom@codesourcery.com>
2
3         * function.c (gimplify_parameters): Set number of arguments of call to
4         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
5
6 2011-10-13  Tom de Vries  <tom@codesourcery.com>
7
8         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
9         for static const strings.
10         * varasm.c (build_constant_desc): Generate the memory location of the
11         constant using gen_const_mem.
12
13 2011-10-13  Richard Guenther  <rguenther@suse.de>
14
15         PR tree-optimization/50698
16         * tree-data-ref.c (split_constant_offset_1): Also process
17         offsets of &MEM.
18
19 2011-10-12  David S. Miller  <davem@davemloft.net>
20
21         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
22         to zero when assembler lacks support for such instructions.
23         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
24         and MASK_FMAF in defaults when assembler lacks necessary support.
25
26 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
27
28         * config/i386/sse.md (vec_unpacks_lo_<mode>,
29         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
30         vec_unpacku_hi_<mode>): Change VI124_128 mode to
31         VI124_AVX2.
32         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
33         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
34
35         * config/i386/sse.md (vec_avx2): New mode_attr.
36         (mulv16qi3): Macroize to cover also mulv32qi3 for
37         TARGET_AVX2 into ...
38         (mul<mode>3): ... this.
39
40         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
41         * config/i386/i386.c (ix86_expand_vec_perm): Handle
42         V16QImode and V32QImode for TARGET_AVX2.
43         (MAX_VECT_LEN): Increase to 32.
44         (expand_vec_perm_blend): Add support for 32-byte integer
45         vectors with TARGET_AVX2.
46         (valid_perm_using_mode_p): New function.
47         (expand_vec_perm_pshufb): Add support for 32-byte integer
48         vectors with TARGET_AVX2.
49         (expand_vec_perm_vpshufb2_vpermq): New function.
50         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
51         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
52         with TARGET_AVX2.
53         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
54         and expand_vec_perm_vpshufb2_vpermq_even_odd.
55         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
56         32-byte integer vector modes.
57         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
58         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
59         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
60         4 new operands.
61         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
62         match_dup, instead add 4 new operands and require they have
63         right cross-lane values.
64         (avx2_permv4di): Change into define_expand.
65         (avx2_permv4di_1): New instruction.
66         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
67         for "xm" constrained operand.
68         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
69
70         * config/i386/sse.md (avx2_gathersi<mode>,
71         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
72         match_scratch, change memory_operand to register_operand,
73         add (mem:BLK (scratch)) use.
74         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
75         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
76         add earlyclobber to the output operand and match_scratch,
77         add (mem:BLK (scratch)) use, change the other mem to match_operand.
78         Use %p6 instead of %c6 in the pattern.
79         * config/i386/i386.c (ix86_expand_builtin): Adjust for
80         operand 2 being a Pmode register_operand instead of memory_operand.
81
82 2011-10-12  Kai Tietz  <ktietz@redhat.com>
83
84         * config/i386/i386.md (simple_return): Disable
85         if TARGET_SEH is active.
86
87 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
88
89         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
90
91 2011-10-12  Richard Guenther  <rguenther@suse.de>
92
93         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
94         of the first store we visit in a basic-block.
95         (get_continuation_for_phi): Search for a candidate VUSE that
96         might dominates all others.  Do pairwise disambiguation against
97         that candidate.
98
99 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
100
101         PR tree-optimization/50189
102         * tree-vrp.c (extract_range_from_assert): Use the type of
103         the variable, not the limit.
104
105 2011-10-12  Richard Guenther  <rguenther@suse.de>
106
107         PR tree-optimization/50700
108         * tree-object-size.c (addr_object_size): Simplify and treat
109         MEM_REF bases consistently.
110
111 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
112
113         * function.c (prepare_shrink_wrap, bb_active_p): New function.
114         (thread_prologue_and_epilogue_insns): Use bb_active_p.
115         Call prepare_shrink_wrap, then recompute bb_active_p for the
116         last block.
117
118 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
119
120         PR c/50565
121         * convert.c (convert_to_integer): Do not narrow operands of
122         pointer subtraction.
123
124 2011-10-12  Nick Clifton  <nickc@redhat.com>
125
126         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
127         emit a .eabi_attribute assembler directive, possibly with a
128         comment attached.
129         * config/arm/arm.c (arm_file_start): Use the new macro.
130         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
131
132 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
133
134         PR target/49939
135         * config/avr/avr.md (*movqi): Rename to movqi_insn.
136         (*call_insn): Rename to call_insn.
137         (*call_value_insn): Rename to call_value_insn.
138         * config/avr/avr.c (avr_2word_insn_p): New static function.
139         (jump_over_one_insn_p): Use it.
140
141 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
142
143         * expr.h (copy_blkmode_to_reg): Declare.
144         * expr.c (copy_blkmode_to_reg): New function.
145         (expand_assignment): Don't expand register RESULT_DECLs before
146         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
147         RESULT_DECL register.
148         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
149         * stmt.c (expand_return): Move BLKmode-to-register code into
150         copy_blkmode_to_reg.
151
152 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
153
154         PR target/49965
155         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
156         (mov<F:mode>cc): Likewise.
157
158 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
159
160         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
161
162 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
163
164         * tree.h (built_in_decls): Delete old interface with two parallel
165         arrays to hold standard builtin declarations, and replace it with
166         a function based interface that can support creating builtins on
167         the fly in the future.  Change all uses, and poison the old
168         names.  Make sure 0 is not a legitimate builtin index.
169         (implicit_built_in_decls): Ditto.
170         (built_in_info): Ditto.
171         (BUILTIN_VALID_P): Ditto.
172         (builtin_decl_explicit): Ditto.
173         (builtin_decl_implicit): Ditto.
174         (set_builtin_decl): Ditto.
175         (set_builtin_decl_implicit_p): Ditto.
176         (builtin_decl_explicit_p): Ditto.
177         (builtin_decl_implicit_p): Ditto.
178         * tree-complex.c (expand_complex_libcall): Ditto.
179         * tree-loop-distribution.c (generate_memset_zero): Ditto.
180         * tree-ssa-strlen.c (get_string_length): Ditto.
181         (handle_builtin_strcpy): Ditto.
182         (handle_builtin_strcat): Ditto.
183         * tree.c (iterative_hash_expr): Ditto.
184         (local_define_builtin): Ditto.
185         (build_common_builtin_nodes): Ditto.
186         * builtins.c (built_in_decls): Ditto.
187         (implicit_built_in_decls): Ditto.
188         (built_in_info): Ditto
189         (expand_builtin_classify_type): Ditto.
190         (mathfn_built_in_1): Ditto.
191         (expand_builtin_cexpi): Ditto.
192         (expand_builtin_mempcpy_args): Ditto.
193         (expand_builtin_stpcpy): Ditto.
194         (gimplify_va_arg_expr): Ditto.
195         (expand_builtin_sync_operation): Ditto.
196         (build_builtin_expect_predicate): Ditto.
197         (fold_builtin_memory_op): Ditto.
198         (fold_builtin_strcpy): Ditto.
199         (fold_builtin_stpcpy): Ditto.
200         (fold_builtin_strncpy): Ditto.
201         (fold_builtin_interclass_mathfn): Ditto.
202         (fold_builtin_classify): Ditto.
203         (fold_builtin_2): Ditto.
204         (fold_builtin_strstr): Ditto.
205         (fold_builtin_strrchr): Ditto.
206         (fold_builtin_strpbrk): Ditto.
207         (fold_builtin_strcat): Ditto.
208         (fold_builtin_strncat): Ditto.
209         (fold_builtin_strcspn): Ditto.
210         (fold_builtin_fputs): Ditto.
211         (fold_builtin_sprintf): Ditto.
212         (fold_builtin_snprintf): Ditto.
213         (expand_builtin_memory_chk): Ditto.
214         (fold_builtin_memory_chk): Ditto.
215         (fold_builtin_stxcpy_chk): Ditto.
216         (fold_builtin_strncpy_chk): Ditto.
217         (fold_builtin_strcat_chk): Ditto.
218         (fold_builtin_strncat_chk): Ditto.
219         (fold_builtin_sprintf_chk_1): Ditto.
220         (fold_builtin_snprintf_chk_1): Ditto.
221         (fold_builtin_printf): Ditto.
222         (fold_builtin_fprintf): Ditto.
223         (fold_call_stmt): Ditto.
224         (set_builtin_user_assembler_name): Ditto.
225         * tree-emutls.c (emutls_common_1): Ditto.
226         * omp-low.c (scan_omp): Ditto.
227         (lower_rec_input_clauses): Ditto.
228         (lower_reduction_clauses): Ditto.
229         (expand_parallel_call): Ditto.
230         (expand_task_call): Ditto.
231         (maybe_catch_exception): Ditto.
232         (optimize_omp_library_calls): Ditto.
233         (expand_omp_for_generic): Ditto.
234         (expand_omp_for_static_nochunk): Ditto.
235         (expand_omp_for_static_chunk): Ditto.
236         (expand_omp_sections): Ditto.
237         (expand_omp_atomic_fetch_op): Ditto.
238         (expand_omp_atomic_pipeline): Ditto.
239         (expand_omp_atomic_mutex): Ditto.
240         (lower_omp_single_simple): Ditto.
241         (lower_omp_single_copy): Ditto.
242         (lower_omp_master): Ditto.
243         (lower_omp_ordered): Ditto.
244         (lower_omp_critical): Ditto.
245         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
246         * builtins.c (DEF_BUILTIN_STUB): Ditto.
247         (BUILT_IN_NONE): Ditto.
248         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
249         * gimple-low.c (lower_function_body): Ditto.
250         (lower_builtin_setjmp): Ditto.
251         * c-decl.c (merge_decls): Ditto.
252         * tree-eh.c (lower_resx): Ditto.
253         (lower_resx): Ditto.
254         (lower_eh_dispatch): Ditto.
255         * function (gimplify_parameters): Ditto.
256         * c-typeck.c (build_function_call_vec): Ditto.
257         * gimplify.c (build_stack_save_restore): Ditto.
258         (gimplify_vla_decl): Ditto.
259         (gimplify_modify_expr_to_memcpy): Ditto.
260         (gimplify_modify_expr_to_memset): Ditto.
261         (gimplify_variable_sized_compare): Ditto.
262         (gimplify_function_tree): Ditto.
263         * calls.c (emit_call_1): Ditto.
264         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
265         * tree-nested.c (convert_nl_goto_reference): Ditto.
266         (convert_tramp_reference_op): Ditto.
267         (finalize_nesting_tree_1): Ditto.
268         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
269         (tree_ssa_prefetch_arrays): Ditto.
270         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
271         * system.h (built_in_decls): Ditto.
272         (implicit_built_in_decls): Ditto.
273         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
274         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
275         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
276         (ix86_veclibabi_svml): Ditto.
277         (ix86_veclibabi_acml): Ditto.
278         * config/vms/vms.c (vms_patch_builtins): Ditto.
279         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
280         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
281         (rs6000_builtin_vectorized_libmass): Ditto.
282         (rs6000_init_builtins): Ditto.
283         * config/darwin.c (darwin_override_options): Ditto.
284         (darwin_patch_builtin): Ditto.
285         (darwin_rename_builtins): Ditto.
286         * config/pa/pa.c (pa_init_builtins): Ditto.
287
288 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
289
290         * tree.h (copy_ref_info): Expose existing function.
291         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
292         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
293
294 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
295
296         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New prototype.
297         (avr_regno_mode_code_ok_for_base_p): New prototype.
298         * config/avr/avr.h (BASE_REG_CLASS): Remove.
299         (REGNO_OK_FOR_BASE_P): Remove.
300         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
301         (REG_OK_FOR_BASE_STRICT_P): Remove.
302         (MODE_CODE_BASE_REG_CLASS): New define.
303         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
304         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
305         (avr_regno_mode_code_ok_for_base_p): New function.
306         (avr_reg_ok_for_addr_p): New static function.
307         (avr_legitimate_address_p): Use it.  Beautify.
308
309 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
310
311         PR target/50447
312         * config/avr/avr.md (cc): Add out_plus attribute alternative.
313         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
314         avr_out_plus for all CONST_INT addends.
315         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
316         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
317         CC_OUT_PLUS.
318         (avr_out_plus_1): Change prototype and report effect on cc0.
319         (avr_out_plus): Ditto.
320         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
321
322 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
323
324         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
325         the extra break.
326
327 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
328
329         * doc/invoke.texi: Document new warning.
330         * common.opt (Wvector-operation-performance): Define new warning.
331         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
332         vector operation.
333         (exapnd_vector_parallel): Warn about expanded vector operation.
334         (lower_vec_shuffle): Warn about expanded vector operation.
335         * c-typeck.c (c_build_vec_perm_expr): Store correct location
336         when creating VEC_PERM_EXPR.
337
338 2011-10-11  Richard Guenther  <rguenther@suse.de>
339
340         PR tree-optimization/50204
341         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
342         two argument handling from ...
343         (get_continuation_for_phi): ... here.  Handle arbitrary number
344         of PHI args.
345
346 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
347
348         PR c++/33067
349         * c-family/c-pretty-print.c (pp_c_floating_constant): Output
350         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
351
352 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
353
354         * modulo-sched.c: Fix comment typo.  Mention the possibility
355         of using scheduling windows of II+1 cycles.
356
357 2011-10-11  Tristan Gingold  <gingold@adacore.com>
358
359         * doc/invoke.texi (C Dialect Options): Document
360         -fallow-parameterless-variadic-functions.
361         * c-parser.c (c_parser_parms_list_declarator): Handle it.
362
363 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
364
365         * config/avr/avr.c (avr_option_override): Set
366         flag_omit_frame_pointer to 0 if frame pointer is needed for
367         unwinding.
368
369 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
370
371         PR bootstrap/50665
372         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
373         optab_index to enum direct_optab_index.
374         (vec_perm_optab): Update.
375
376 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
377
378         * config/cris/cris.c (cris_preferred_reload_class): New function.
379         (TARGET_PREFERRED_RELOAD_CLASS): Define.
380         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
381
382 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
383
384         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
385         !AVR_HAVE_JMP_CALL.
386         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
387         (*tablejump_enh, *tablejump): Remove insns.
388         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
389         EIJMP for indirect jump.  Use LPM Z+ where available.
390
391 2011-10-10  Richard Henderson  <rth@redhat.com>
392
393         * doc/md.texi (vec_perm_const): Fix typo in cindex.
394
395 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
396             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
397
398         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
399
400 2011-10-10  Richard Guenther  <rguenther@suse.de>
401
402         PR middle-end/50389
403         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
404         mark symbols for renaming.  Append the VUSE to all statements
405         that possibly can have one.
406
407 2011-10-10  Richard Guenther  <rguenther@suse.de>
408
409         * ipa-split.c (pass_split_functions): Add verification TODOs.
410         (pass_feedback_split_functions): Likewise.
411
412 2011-10-10  Richard Guenther  <rguenther@suse.de>
413
414         PR middle-end/50195
415         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
416         only when optimizing.
417
418 2011-10-10  Nick Clifton  <nickc@redhat.com>
419
420         PR middle-end/49801
421         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
422         df_get_live_out instead of accessing the bitmaps directly.
423         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
424         df_live_add_problem and df_analyze.
425
426 2011-10-10  Michael Matz  <matz@suse.de>
427
428         PR middle-end/50638
429         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
430
431 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
432
433         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
434         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
435         (node_sched_params): Remove first_reg_move and nreg_moves.
436         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
437         (update_node_sched_params): Move up file.
438         (print_node_sched_params): Print the stage.  Don't dump info related
439         to first_reg_move and nreg_moves.
440         (set_columns_for_row): New function.
441         (set_columns_for_ps): Move up file and use set_columns_for_row.
442         (schedule_reg_move): New function.
443         (schedule_reg_moves): Call extend_node_sched_params and
444         schedule_reg_move.  Extend size of uses bitmap.  Initialize
445         num_consecutive_stages.  Return false if a move could not be
446         scheduled.
447         (apply_reg_moves): Don't emit moves here.
448         (permute_partial_schedule): Handle register moves.
449         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
450         to the same stage-count test as ddg nodes.
451         (generate_prolog_epilog): Update calls accordingly.
452         (sms_schedule): Allow move-scheduling to add a new first stage.
453
454 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
455
456         * modulo-sched.c (ps_insn): Adjust comment.
457         (ps_reg_move_info): New structure.
458         (partial_schedule): Add reg_moves field.
459         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
460         (node_sched_params): Turn first_reg_move into an identifier.
461         (ps_reg_move): New function.
462         (ps_rtl_insn): Cope with register moves.
463         (ps_first_note): Adjust comment and assert that the instruction
464         isn't a register move.
465         (node_sched_params): Replace with...
466         (node_sched_param_vec): ...this vector.
467         (set_node_sched_params): Adjust accordingly.
468         (print_node_sched_params): Take a partial schedule instead of a ddg.
469         Use ps_rtl_insn and ps_reg_move.
470         (generate_reg_moves): Rename to...
471         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
472         move in the partial schedule, but don't emit it here.  Don't perform
473         register substitutions here either.
474         (apply_reg_moves): New function.
475         (duplicate_insns_of_cycles): Use register indices directly,
476         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
477         (sms_schedule): Call schedule_reg_moves before committing to
478         a partial schedule.   Try the next ii if the schedule fails.
479         Use apply_reg_moves instead of generate_reg_moves.  Adjust
480         call to print_node_sched_params.  Free node_sched_param_vec
481         instead of node_sched_params.
482         (create_partial_schedule): Initialize reg_moves.
483         (free_partial_schedule): Free reg_moves.
484
485 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
486
487         * modulo-sched.c (ps_insn): Replace node field with an identifier.
488         (SCHED_ASAP): Replace with..
489         (NODE_ASAP): ...this macro.
490         (SCHED_PARAMS): New macro.
491         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
492         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
493         (node_sched_params): Remove asap.
494         (ps_rtl_insn, ps_first_note): New functions.
495         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
496         asap values.
497         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
498         (generate_reg_moves): Pass ids to the SCHED_* macros.
499         (update_node_sched_params): Take a ps insn identifier rather than
500         a node as parameter.  Use ps_rtl_insn.
501         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
502         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
503         (optimize_sc): Update for above field and SCHED_* macro changes.
504         Update calls to try_scheduling_node_in_cycle and
505         update_node_sched_params.
506         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
507         macro changes.  Use ps_rtl_insn and ps_first_note.
508         (sms_schedule): Pass ids to the SCHED_* macros.
509         (get_sched_window): Adjust for above field and SCHED_* macro changes.
510         Use NODE_ASAP instead of SCHED_ASAP.
511         (try_scheduling_node_in_cycle): Remove node parameter.  Update
512         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_*
513         macros.
514         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
515         (ps_insert_empty_row): Adjust for above field changes.
516         (compute_split_row): Use ids rather than nodes.
517         (verify_partial_schedule): Adjust for above field changes.
518         (print_partial_schedule): Use ps_rtl_insn.
519         (create_ps_insn): Take an id rather than a node.
520         (ps_insn_find_column): Adjust for above field changes.
521         Use ps_rtl_insn.
522         (ps_insn_advance_column): Adjust for above field changes.
523         (add_node_to_ps): Remove node parameter.  Update call to
524         create_ps_insn.
525         (ps_has_conflicts): Use ps_rtl_insn.
526         (ps_add_node_check_conflicts): Replace node parameter than an id.
527
528 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
529
530         * modulo-sched.c (undo_replace_buff_elem): Delete.
531         (generate_reg_moves): Don't build and return an undo list.
532         (free_undo_replace_buff): Delete.
533         (sms_schedule): Adjust call to generate_reg_moves.
534         Don't call free_undo_replace_buff.
535
536 2011-10-10  Matthias Klose <doko@ubuntu.com>
537
538         * common/config/m32c: Remove empty directory.
539
540 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
541
542         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
543
544 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
545
546         PR target/50652
547         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
548         atmega164a to 0x100.
549
550 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
551
552         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
553         the replacement if the conversion to the LHS type is not useless.
554
555 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
556
557         PR tree-optimization/50635
558         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
559         DEF_STMT to the list of statements to be replaced by the
560         pattern statements.
561         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
562
563 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
564
565         * system.h: Commit forgotten hunk in previous patch.
566         (OUTPUT_ADDR_CONST_EXTRA): Poison.
567
568 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
569
570         PR libobjc/50428
571         * doc/objc.texi (Garbage Collection): Updated example to protect
572         +initialize against execution in subclasses.
573
574 2011-10-07  Richard Henderson  <rth@redhat.com>
575
576         * doc/extend.texi (__builtin_shuffle): Improve the description to
577         include the modulus of the selector.  Mention OpenCL.
578         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
579
580         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
581         * genopinit.c (optabs): Rename vshuffle to vec_perm.
582         * c-typeck.c (c_build_vec_perm_expr): Rename from
583         c_build_vec_shuffle_expr.  Update for name changes.
584         * optabs.c (expand_vec_perm_expr_p): Rename from
585         expand_vec_shuffle_expr_p.
586         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
587         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
588         (vec_perm_optab): Rename from vshuffle_optab.
589         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
590         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
591         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
592
593         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
594         ix86_expand_vshuffle.
595         * config/i386/i386-protos.h: Update.
596         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
597         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
598
599 2011-10-07  Richard Henderson  <rth@redhat.com>
600
601         * config/i386/predicates.md (avx2_pblendw_operand): New.
602         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
603         (avx2_pblendw, *avx2_pblendw): New expander and insn.
604
605 2011-10-07  Richard Henderson  <rth@redhat.com>
606
607         * config/i386/i386.c (bdesc_args): Update code for
608         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
609         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
610         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
611         * config/i386/sse.md (mode iterator V16): Add V2TI.
612         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
613         (mode attr ssse3_avx2): Add V2TI.
614         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
615
616 2011-10-07  David S. Miller  <davem@davemloft.net>
617
618         PR 50655
619         * configure.ac: Add .register directives to VIS3 test.
620         * configure: Regenerate.
621
622 2011-10-07  Richard Henderson  <rth@redhat.com>
623
624         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
625
626 2011-10-07  Richard Henderson  <rth@redhat.com>
627
628         PR 49752
629         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
630
631 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
632
633         * config/arm/predicates.md (shift_amount_operand): Remove constant
634         range check.
635         (shift_operator): Check range of constants for all shift operators.
636
637 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
638
639         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
640         Load GOT pointer for non-pic builds.
641         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
642         (s390_emit_call): Likewise.
643
644 2011-10-07  Tom de Vries  <tom@codesourcery.com>
645
646         PR middle-end/50527
647         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
648         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
649         * tree-ssa-ccp.c (evaluate_stmt): Set align for
650         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
651         * ipa-pure-const.c (special_builtin_state): Handle
652         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
653         * function.c (gimplify_parameters): Lower vla to
654         * gimplify.c (gimplify_vla_decl): Same.
655         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
656         * tree-mudflap.c (mf_xform_statements): Same.
657         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
658         * varasm.c (incorporeal_function_p): Same.
659         * tree-object-size.c (alloc_object_size): Same.
660         * gimple.c (gimple_build_call_from_tree): Same.
661
662 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
663
664         * function.c (frame_required_for_rtx): Remove function.
665         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
666         changed.  Compute a set of mentioned registers and compare against
667         the new arg rather than calling frame_required_for_rtx.
668         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
669         reg set.  Convert the unconverted_simple_returns mechanism to store
670         jump insns rather than their basic blocks.  Also check the
671         orig_entry_edge destination for new blocks.
672
673 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
674
675         PR tree-optimization/50650
676         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
677         call vect_is_simple_cond here, instead fail if cond_expr isn't
678         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
679         for cond_expr's first operand.
680         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
681         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
682
683 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
684
685         * config/s390/s390.md (DWH, dwh): New mode macros.
686         ("umulsidi3"): Extend to support "umulditi3" as well.
687
688 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
689             H.J. Lu  <hongjiu.lu@intel.com>
690
691         PR target/50603
692         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
693         integer PLUS RTX to a register to improve address combine.
694
695 2011-10-06  Richard Henderson  <rth@redhat.com>
696
697         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
698         parameter; use it to decide whether to merge two notes.
699         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
700         for the deallocation case as well.
701
702 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
703
704         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
705         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
706         * doc/tm.texi: Regenerate.
707         * target.def (output_addr_const_extra): Use
708         hook_bool_FILEptr_rtx_false.
709         * targhooks.c (default_asm_output_addr_const_extra): Remove.
710         * targhooks.h (default_asm_output_addr_const_extra): Remove.
711         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
712         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
713
714 2011-10-06  David S. Miller  <davem@davemloft.net>
715
716         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
717         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
718         SI mode 64-bit code gen case explicitly zero-extend and truncate.
719         (*popcount<mode>_sp64): Split up into...
720         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
721         SImode case use truncate.
722         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
723         subtract so the compiler can optimize it.
724         (SIDI): Remove unused mode iterator.
725
726 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
727
728         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
729         on the orig_entry_edge. Don't account for it in prologue_clobbered.
730
731 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
732
733         PR tree-optimization/50596
734         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
735         (NUM_PATTERNS): Change to 6.
736         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
737         function.
738         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
739         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
740         if it already has one, and don't set STMT_VINFO_VECTYPE in it
741         if it is already set.
742         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
743         COND_EXPR in pattern stmts.
744         (vect_is_simple_cond): No longer static.
745
746 2001-10-06  Richard Henderson  <rth@redhat.com>
747
748         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
749         * config/i386/sse.md (sseshuffint): Remove.
750         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
751         (VSHUFFLE_AVX2): New mode iterator.
752         (vshuffle<mode>): Use it.
753         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
754
755         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
756         for vector_all_ones_operand.
757         (ix86_expand_int_vcond): Distinguish between comparison mode
758         and data mode.  Allow them to differ.
759         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
760
761 2001-10-06  Richard Henderson  <rth@redhat.com>
762
763         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
764         mask operand.  Tidy the code.
765
766 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
767
768         * tree-vect-patterns.c (vect_pattern_recog_1): Use
769         vect_recog_func_ptr typedef for the first argument.
770         (vect_pattern_recog): Rename vect_recog_func_ptr variable
771         to vect_recog_func, use vect_recog_func_ptr typedef for it.
772
773         PR tree-optimization/49279
774         * tree-ssa-structalias.c (find_func_aliases): Don't handle
775         CAST_RESTRICT.
776         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
777         restrict propagation.
778         * tree-ssa.c (useless_type_conversion_p): Don't return false
779         if TYPE_RESTRICT differs.
780
781 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
782
783         * function.c (thread_prologue_and_epilogue_insns): Build a vector
784         of unconverted simple return blocks rather than trying to
785         recompute them later based on bb_flags bitmap tests.
786
787 2011-10-06  Michael Matz  <matz@suse.de>
788
789         * tree-flow.h (get_var_ann): Don't declare.
790         * tree-flow-inline.h (get_var_ann): Remove.
791         (set_is_used): Use var_ann, not get_var_ann.
792         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
793         * tree-profile.c (gimple_gen_edge_profiler): Call
794         find_referenced_var_in.
795         (gimple_gen_interval_profiler): Ditto.
796         (gimple_gen_pow2_profiler): Ditto.
797         (gimple_gen_one_value_profiler): Ditto.
798         (gimple_gen_average_profiler): Ditto.
799         (gimple_gen_ior_profiler): Ditto.
800         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
801         (gimple_gen_ic_func_profiler): Call add_referenced_var.
802         * tree-mudflap.c (execute_mudflap_function_ops): Call
803         add_referenced_var.
804
805 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
806
807         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
808         don't set SSA_NAME_DEF_STMT that has been already set by
809         gimple_build_assign_with_ops.
810         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
811         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
812         Likewise.
813
814         * tree.h (avoid_folding_inline_builtin): New prototype.
815         * builtins.c (avoid_folding_inline_builtin): No longer static.
816         * gimple-fold.c (gimple_fold_builtin): Give up if
817         avoid_folding_inline_builtin returns true.
818
819 2011-10-06  Richard Guenther  <rguenther@suse.de>
820
821         * tree-vect-generic.c (vector_element): Look at previous
822         generated results.
823
824 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
825
826         PR target/39950
827         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
828         __powerpc__, __PPC__, __unix__.
829
830 2011-10-06  Michael Matz  <matz@suse.de>
831
832         * i386/i386.opt (recip_mask, recip_mask_explicit,
833         x_recip_mask_explicit): New variables and cl_target member.
834         (mrecip=): New option.
835         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
836         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
837         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
838         TARGET_RECIP_VEC_SQRT): New tests.
839         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
840         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
841         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
842         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
843         * i386/i386.c (ix86_option_override_internal): Set recip_mask
844         for -mrecip and -mrecip=options.
845         (ix86_function_specific_save): Save recip_mask_explicit.
846         (ix86_function_specific_restore): Restore recip_mask_explicit.
847
848         * doc/invoke.texi (ix86 Options): Document the new option.
849
850 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
851
852         PR target/49049
853         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
854
855 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
856
857         PR target/50305
858         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
859         output of a previous pass through legitimize_reload_address.
860         Do not attempt to optimize addresses if the base register is
861         equivalent to a constant.
862
863 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
864
865         * function.c (thread_prologue_and_epilogue_insns): Mark
866         last_bb_active as possibly unused.  It is unused for targets which
867         do neither have "return" nor "simple_return" expanders.
868
869 2011-10-06  Richard Guenther  <rguenther@suse.de>
870
871         * fold-const.c (fold_ternary_loc): Also fold non-constant
872         vector CONSTRUCTORs.  Make more efficient.
873         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
874         (cprop_into_stmt): Don't propagate into virtual operands.
875         (optimize_stmt): Really dump original statement.
876
877 2011-10-06  Nick Clifton  <nickc@redhat.com>
878
879         * config/rx/rx.md (smin3): Revert previous delta.
880
881 2011-10-06  Richard Guenther  <rguenther@suse.de>
882
883         PR tree-optimization/38884
884         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
885         reads from aggregate SSA names.
886
887 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
888
889         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
890         argument, truncate it at the beginning instead of allocating there
891         and freeing at the end.
892         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
893         pass its address to vect_pattern_recog_1.
894
895 2011-10-05  David S. Miller  <davem@davemloft.net>
896
897         * config/sparc/sparc.opt (POPC): New option.
898         * doc/invoke.texi: Document it.
899         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
900         default on Niagara-2 and later.
901         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
902         * config/sparc/sparc.md (SIDI): New mode iterator.
903         (ffsdi2): Delete commented out pattern and comments.
904         (popcount<mode>2, clz<mode>2): New expanders.
905         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
906         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
907
908 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
909
910         PR middle-end/50607
911         * c-tree.h (c_expr_t): New typedef for struct c_expr.
912         (C_EXPR_APPEND): New macro.
913         * c-parser.c (c_parser_get_builtin_args): Preserve
914         original_tree_code of c_expr structure.
915         (c_parser_postfix_expression): Adjust to the new function.
916
917 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
918
919         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
920         if profiling after the prologue.
921
922 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
923
924         PR tree-optimization/50613
925         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
926         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
927         and if it is neither that not SSA_NAME, give up.
928
929 2011-10-05  Richard Henderson  <rth@redhat.com>
930
931         * tree-vect-generic.c (vector_element): Never fail.  Use
932         build_zero_cst.  Tidy up type references.
933         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
934         code duplication.  Do update_stmt here ...
935         (expand_vector_operations_1): ... not here.
936
937         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
938         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
939         duplication.  Handle V2DI without SSE4.1.
940         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
941         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
942
943 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
944
945         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
946         of "found".  Simplify return value calculation.
947         (distance_agu_use): Ditto.
948
949 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
950
951         PR bootstrap/50621
952         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
953         if the function was not shrink-wrapped.
954         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
955         to an insn.
956         * function.c (thread_prologue_and_epilogue_insns): Make sure the
957         shrink_wrapped flag is set even if there is no dump file.
958
959 2011-10-05  DJ Delorie  <dj@redhat.com>
960             Nick Clifton  <nickc@redhat.com>
961
962         * config/rx/rx.opt (mpid): Define.
963         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
964         (MULTILIB_DIRNAMES): Add pid.
965         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
966         (rx_num_interrupt_regs): New variable.
967         (rx_gp_base_regnum): New function.  Returns the number of the
968         small data area register.
969         (rx_pid_base_regnum): New function.  Returns the number of the pid
970         base register.
971         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
972         (rx_pid_data_operand): New function.  Returns whether an object is
973         in the position independent data area.
974         (rx_legitimize_address): New function.  Puts undecided PID
975         objects in the PID data area.
976         (rx_is_legitimate_address): Add support for PID operands.
977         (rx_print_operand_address): Likewise.
978         (rx_print_operand): Likewise.
979         (rx_maybe_pidify_operand): New function.  Determine if an operand
980         is suitable for PID addressing.
981         (rx_gen_move_template): Add PID support.
982         (rx_conditional_register_usage): Likewise.
983         (rx_option_override): Initialise rx_num_interrupt_regs.
984         (rx_is_legitimate_constant): Add support for PID constants.
985         (TARGET_LEGITIMIZE_ADDRESS): Define.
986         * config/rx/constraints.md (Rpid): Define.
987         (Rpda): Define.
988         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
989         (tablejump): Add PID support.
990         (mov<>): Likewise.
991         (mov<>_internal): Likewise.
992         (addsi3): Convert to an expander.  Add PID support.
993         (pid_addr): New pattern.
994         * config/rx/rx.h (CPP_SPEC): Define.
995         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
996         (CASE_VECTOR_PC_RELATIVE): Define.
997         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
998         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
999         * doc/invoke.texi (RX Options): Document -mpid command line option.
1000
1001 2011-10-05  Richard Guenther  <rguenther@suse.de>
1002
1003         PR tree-optimization/38885
1004         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
1005         from constants.
1006
1007 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1008
1009         * doc/invoke.texi (-fshrink-wrap): Document.
1010         * opts.c (default_options_table): Add it.
1011         * common.opt (fshrink-wrap): Add.
1012         * function.c (emit_return_into_block): Remove useless declaration.
1013         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
1014         requires_stack_frame_p, gen_return_pattern): New static functions.
1015         (emit_return_into_block): New arg simple_p.  All callers changed.
1016         Use gen_return_pattern.
1017         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
1018         * config/i386/i386.md (return): Expand into a simple_return.
1019         (simple_return): New expander):
1020         (simple_return_internal, simple_return_internal_long,
1021         simple_return_pop_internal_long, simple_return_indirect_internal):
1022         Renamed from return_internal, return_internal_long,
1023         return_pop_internal_long and return_indirect_internal; changed to use
1024         simple_return.
1025         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
1026         simple returns.
1027         (ix86_pad_returns): Likewise.
1028         * function.h (struct rtl_data): Add member shrink_wrapped.
1029         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
1030         are not jumps or sibcalls can't be compared.
1031
1032 2011-10-05  Richard Guenther  <rguenther@suse.de>
1033
1034         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
1035         vector type.
1036         (simplify_unary_expression): Handle BIT_FIELD_REFs.
1037         (try_to_simplify): Handle BIT_FIELD_REFs.
1038
1039 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
1040
1041         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
1042         * config/avr/avr.c (avr_out_addto_sp): New function.
1043         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
1044         * config/avr/avr.md (adjust_len): Add "addto_sp".
1045         (*movhi_sp): Remove insn.
1046         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
1047
1048 2011-10-05  Richard Guenther  <rguenther@suse.de>
1049
1050         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
1051         with an embedded expression valueize and fold that as well.
1052         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
1053         results from gimple_fold_stmt_to_constant_1.
1054
1055 2011-10-05  Nick Clifton  <nickc@redhat.com>
1056
1057         * config/rx/rx.md (tablejump): Add missing label.
1058         (adddi3_internal): Mark operand 0 as early-clobbered.
1059         (smaxsi3): Revert previous delta.
1060         (adc_internal): Fix whitespace in generated asm.
1061         (adc_flags): Likewise.
1062
1063 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1064
1065         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
1066         with the new widening_optab_handler.
1067
1068 2011-10-05  Richard Guenther  <rguenther@suse.de>
1069
1070         PR tree-optimization/50609
1071         * gimple-fold.c (fold_array_ctor_reference): Also handle
1072         vector typed constructors.
1073         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
1074         for vector typed constructors.
1075
1076 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
1077
1078         * config/i386/i386.c (ix86_emit_binop): New static function.
1079         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
1080         instructions.
1081         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
1082
1083 2011-10-04  David S. Miller  <davem@davemloft.net>
1084
1085         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
1086         UNSPEC_XMUL): New unspecs.
1087         (muldi3_v8plus): Use output_v8plus_mult.
1088         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
1089         New VIS 3.0 combiner patterns.
1090         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
1091         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
1092         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
1093         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
1094         builtins patterns.
1095         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
1096         (output_v8plus_mult): New function.
1097         * config/sparc/sparc-protos.h: Declare it.
1098         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
1099         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
1100         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
1101         * doc/extend.texi: Document new builtins.
1102
1103 2011-10-04  Richard Henderson  <rth@redhat.com>
1104
1105         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
1106         Avoid save_expr unless two_arguments.
1107
1108 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
1109
1110         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
1111         * config/i386/mingw32.h (CPP_SPEC): Likewise.
1112
1113 2011-10-04  David S. Miller  <davem@davemloft.net>
1114
1115         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
1116         under Linux.
1117
1118 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
1119
1120         PR tree-optimization/50604
1121         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
1122         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
1123         last argument to memcpy has size_type_node type instead of ssizetype.
1124         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
1125         instead of TREE_TYPE (len) as type for newlen.
1126
1127         PR tree-optimization/50522
1128         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
1129         TYPE_RESTRICT.
1130         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
1131         unconditionally.
1132
1133         * fold-const.c (fold_unary_loc): Don't optimize
1134         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
1135         casting the inner pointer if it isn't TYPE_RESTRICT.
1136         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
1137         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
1138
1139 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
1140
1141         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
1142
1143 2011-10-04  Jan Hubicka  <jh@suse.cz>
1144
1145         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
1146         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
1147         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
1148         * lto-cgraph.c (order_base): New static var.
1149         (lto_output_node): Stream in order.
1150         (lto_output_varpool_node): Stream out order.
1151         (input_node): Stream in order.
1152         (input_varpool_node): Stream out order.
1153         (input_cgraph_1): Initialize order base; update call of
1154         lto_input_toplevel_asms.
1155
1156 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
1157
1158         PR target/50566
1159         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
1160         prototype.
1161         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
1162         from here...
1163         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
1164         function.  Log if avr_log.legitimize_reload_address.
1165
1166 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
1167
1168         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
1169
1170 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1171
1172         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
1173         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
1174
1175 2011-10-03  David S. Miller  <davem@davemloft.net>
1176
1177         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
1178         GSR_REG an input operand to UNSPEC instead of a parallel USE.
1179         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
1180         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
1181         Reference GSR_REG in DI mode, simplify convoluted expressions by using
1182         zero_extract.
1183         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
1184
1185 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
1186
1187         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
1188
1189 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
1190             Ian Lance Taylor  <iant@google.com>
1191
1192         * godump.c (go_output_typedef): Support printing enum values that
1193         don't fit in a signed HOST_WIDE_INT.
1194
1195 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
1196
1197         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
1198         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1199         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1200         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
1201
1202 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
1203
1204         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
1205         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1206         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1207         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
1208
1209 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
1210
1211         PR target/49967
1212         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
1213         (gcc_cv_ld_static_option): Ditto.
1214         (gcc_cv_ld_dynamic_option): Ditto.
1215         * configure: Regenerate.
1216
1217 2011-10-03  David S. Miller  <davem@davemloft.net>
1218
1219         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
1220         and 'si' patterns which describe the GSR changes explicitly in the
1221         RTL using zero_extract.
1222         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
1223
1224         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
1225         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
1226
1227 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1228
1229         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
1230         if given expression can be expanded by the target.
1231         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
1232         using target vector instructions.
1233         * optabs.h: New optab vshuffle.
1234         (expand_vec_shuffle_expr_p): New prototype.
1235         (expand_vec_shuffle_expr): New prototype.
1236         (vshuffle_optab): New optab.
1237         * genopinit.c: Adjust to support vecshuffle.
1238         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
1239         * expr.c (expand_expr_real_2): Adjust.
1240         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
1241         recognizing the cases of two and three arguments.
1242         (convert_arguments) (build_binary_op)
1243         (scalar_to_vector) (build_array_ref): Spurious whitespace.
1244         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
1245         * tree.def: New tree code VEC_SHUFFLE_EXPR.
1246         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
1247         * tree-vect-generic.c (vector_element): New function. Returns an
1248         element of the vector at the given position.
1249         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
1250         by the backend or expand an expression piecewise.
1251         (expand_vector_operations_1): Adjusted.
1252         (gate_expand_vector_operations_noop): New gate function.
1253         * Makefile.in (tree-vect-generic.o): New include.
1254         * gimple.c (get_gimple_rhs_num_ops): Adjust.
1255         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
1256         * passes.c: Move veclower down.
1257         * tree-pretty-print.c (dump_generic_node): Recognize
1258         VEC_SHUFFLE_EXPR as valid expression.
1259         * c-parser.c (c_parser_get_builtin_args): Helper function for the
1260         builtins with variable number of arguments.
1261         (c_parser_postfix_expression): Use a new helper function for
1262         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
1263         * tree-ssa-operands: Adjust.
1264         * c-family/c-common.c: New __builtin_shuffle keyword.
1265         * c-family/c-common.h: New __builtin_shuffle keyword.
1266         * gcc/doc/extend.texi: Adjust.
1267
1268         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
1269         between the vector and the type of the mask when shuffling.
1270         (vecshuffle<mode>): New expansion.
1271         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
1272         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
1273         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
1274
1275 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
1276
1277         PR tree-optimization/50587
1278         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
1279         arg0 is not a SSA_NAME.
1280
1281 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
1282
1283         * ipa-inline-analysis.c (MAX_TIME): Update comment.
1284
1285 2011-10-02  Richard Henderson  <rth@redhat.com>
1286             David S. Miller  <davem@davemloft.net>
1287
1288         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
1289         conditional insn type setting, we always emit a shift.
1290         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
1291         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
1292         * config/sparc/predicates.md (const_one_operand): Delete.
1293
1294 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
1295
1296         * invoke.texi (SPARC Options): Refer to GNU/Linux.
1297
1298 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
1299
1300         * config/mips/mips.c (mips_frame_barrier): New function.
1301         (mips_expand_prologue): Call it after allocating stack space.
1302         (mips_deallocate_stack): New function.
1303         (mips_expand_epilogue): Call mips_frame_barrier and
1304         mips_deallocate_stack.
1305
1306 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
1307
1308         PR target/49696
1309         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
1310         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
1311         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
1312
1313 2011-10-02  Jan Hubicka  <jh@suse.cz>
1314
1315         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
1316
1317         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
1318         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
1319         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
1320         functions are reachable when address is taken.
1321         * tree-sra.c (modify_function): Free dominance info.
1322
1323 2011-10-02  Jan Hubicka  <jh@suse.cz>
1324
1325         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
1326
1327         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
1328         (reset_inline_summary): New function.
1329         (compute_inline_parameters, inline_node_removal_hook,
1330         inline_edge_removal_hook): Use it.
1331         (inline_free_summary): Reset holders correctly.
1332         (inline_generate_summary): Free summary before computing it.
1333
1334 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
1335
1336         PR preprocessor/36819
1337         * incpath.c (merge_include_chains): Call free_path on
1338         heads[QUOTE] and tails[QUOTE].
1339
1340 2011-10-02  Jan Hubicka  <jh@suse.cz>
1341
1342         PR lto/47247
1343         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
1344         when resolution is already availbale from plugin.
1345         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
1346         * cgraph.c (ld_plugin_symbol_resolution): Add
1347         prevailing_def_ironly_exp.
1348         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
1349         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
1350         externally visible.
1351         * varasm.c (resolution_to_local_definition_p): Add
1352         LDPR_PREVAILING_DEF_IRONLY_EXP.
1353         (resolution_local_p): Likewise.
1354
1355 2011-10-01  David S. Miller  <davem@davemloft.net>
1356
1357         * config/sparc/sparc.opt (VIS3): New option.
1358         * doc/invoke.texi: Document it.
1359         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
1360         not capable of such instructions.
1361         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
1362         to 0x300 when TARGET_VIS3.
1363         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
1364         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
1365         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
1366         (V64N8, VASS): New mode iterators.
1367         (vis3_shift, vis3_addsub_ss): New code iterators.
1368         (vbits, vconstr): New mode attributes.
1369         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
1370         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
1371         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
1372         fmean16_vis, fpadd64_vis, fpsub64_vis,
1373         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
1374         VIS 3.0 instruction patterns.
1375         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
1376         default when targetting capable cpus.  TARGET_VIS3 implies
1377         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
1378         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
1379         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
1380         is ignored.
1381         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
1382         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
1383         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
1384         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
1385         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
1386         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
1387         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
1388         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
1389         * doc/extend.texi: Document new VIS 3.0 builtins.
1390
1391 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
1392
1393         * ira-color.c (assign_hard_reg): Fix typo.
1394
1395 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
1396
1397         * doc/extend.texi: Add missing ','.
1398
1399 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
1400
1401         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
1402         Enable -fmodulo-sched at -O2 and above.
1403         * config/c6x/c6x.md (doloop_end): New expander.
1404         (mvilc, sploop, spkernel, loop_end): New patterns.
1405         (loop_end with memory destination splitter): New.
1406         * config/c6x/c6x.c: Include "hw-doloop.h".
1407         (enum unitreqs): New.
1408         (unit_req_table): New typedef.
1409         (unit_reqs): New static variable.
1410         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
1411         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
1412         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
1413         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
1414         (struct c6x_sched_context): New member last_scheduled_iter0.
1415         (init_sched_state): Initialize it.
1416         (c6x_variable_issue): Update it.
1417         (sploop_max_uid_iter0): New static variable.
1418         (c6x_sched_reorder_1): Be careful about issuing sploop.
1419         (c6x_reorg): Call c6x_hwlooops before the final schedule.
1420
1421 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
1422
1423         PR target/50566
1424         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
1425         * config/avr/avr.c (avr_address_cost): Use it.
1426         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
1427         (avr_log_vadump): Unknown %-codes finish printing.
1428
1429 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
1430
1431         PR inline-asm/50571
1432         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
1433         input constraints allow mem and not reg, pass true instead of
1434         false as second argument to maybe_fold_reference.
1435
1436         PR tree-optimization/46309
1437         * fold-const.c (make_range, merge_ranges): Remove prototypes.
1438         (make_range_step): New function.
1439         (make_range): Use it.
1440         * tree.h (make_range_step): New prototypes.
1441         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
1442         * tree-ssa-reassoc.c: Include diagnostic-core.h.
1443         (struct range_entry): New type.
1444         (init_range_entry, range_entry_cmp, update_range_test,
1445         optimize_range_tests): New functions.
1446         (reassociate_bb): Call optimize_range_tests.
1447
1448 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
1449             Richard Guenther  <rguenther@suse.de>
1450
1451         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
1452         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
1453         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
1454         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
1455         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
1456         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
1457
1458 2011-09-30  Jan Beulich  <jbeulich@suse.com>
1459
1460         * lto-cgraph.c (output_cgraph): Remove processing of
1461         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
1462         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
1463         lto_input_toplevel_asms() instead.
1464         * lto-section-in.c (lto_section_name): Add "asm" entry.
1465         * lto-streamer-in.c (lto_input_toplevel_asms): New.
1466         * lto-streamer-out.c (lto_output_toplevel_asms): New.
1467         * lto-streamer.h (LTO_minor_version): Bump.
1468         (enum lto_section_type): Add LTO_section_asm.
1469         (struct lto_asm_header): New.
1470         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
1471         * tree-streamer.h (streamer_write_string_cst): Declare.
1472         * tree-streamer-out.c (write_string_cst): Rename to
1473         streamer_write_string_cst and make global. Handle incoming string
1474         being NULL.
1475         (streamer_write_tree_header): Adjust call to renamed function.
1476
1477 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
1478
1479         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
1480         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
1481         modulo_last_stage): New static variables.
1482         (set_modulo_params, discard_delay_pairs_above): New functions.
1483         (struct delay_pair): New member stages.
1484         (htab_i2_traverse, htab_i1_traverse): New static functions.
1485         (record_delay_slot_pair): New arg stages.  All callers changed.
1486         Record it.
1487         (pair_delay): Take stages into account.
1488         (add_delay_dependencies): Don't do so for stage pairs.
1489         (struct sched_block_state): New member modulo_epilogue.
1490         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
1491         (unschedule_insns_until): Decrease modulo_insns_scheduled.
1492         Set HARD_DEP without using or.
1493         (resolve_dependencies): New static function.
1494         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
1495         If it is true, allow only insns with INSN_EXACT_TICK set.
1496         (schedule_block): Return bool, always true for normal scheduling,
1497         true or false depending on modulo scheduling success otherwise.
1498         Add bookkeeping for modulo scheduling, and call resolve_dependencies
1499         on everything left over after a modulo schedule.
1500         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
1501         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
1502         declarations.
1503         (set_modulo_params, discard_delay_pairs_above): Declare.
1504         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
1505         * doc/invoke.texi (--param): Document it.
1506
1507         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
1508         New arg modulo_scheduling.  All callers changed.  Move note handling
1509         code here from schedule_ebbs.
1510         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
1511         out of schedule_ebbs.
1512         (schedule_ebbs): Call them.  Remove note handling code moved to
1513         schedule_ebb.
1514         * sched-int.h (schedule_ebb, schedule_ebbs_init,
1515         schedule_ebbs_finish): Declare.
1516
1517 2011-09-30  Richard Guenther  <rguenther@suse.de>
1518
1519         PR middle-end/50574
1520         * tree-cfg.c (verify_gimple_comparison): Compare component
1521         mode sizes for vector comparisons.
1522
1523 2011-09-30  Revital Eres  <revital.eres@linaro.org>
1524
1525         * ddg.c (autoinc_var_is_used_p): New function.
1526         (create_ddg_dep_from_intra_loop_link,
1527         add_cross_iteration_register_deps): Call it.
1528         * ddg.h (autoinc_var_is_used_p): Declare.
1529         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
1530         (sms_schedule): Handle instructions with REG_INC.
1531
1532 2011-09-30  Revital Eres  <revital.eres@linaro.org>
1533
1534         * modulo-sched.c (generate_reg_moves): Skip instructions that
1535         do not set a register and verify no regmoves are created for
1536         !single_set instructions.
1537
1538 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
1539
1540         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
1541         insns.
1542
1543 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1544
1545         PR target/50099
1546         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
1547         (qhs_zextenddi_op): New.
1548         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
1549         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
1550         Distinguish between ARM and Thumb2 states.
1551
1552 2011-09-30  David S. Miller  <davem@davemloft.net>
1553
1554         * config/sparc/sparc.opt (VIS2): New option.
1555         * doc/invoke.texi: Document it.
1556         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
1557         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
1558         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
1559         (define_attr type): New insn type 'edgen'.
1560         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
1561         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
1562         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
1563         patterns.
1564         * niagara.md: Handle edgen.
1565         * niagara2.md: Likewise.
1566         * ultra1_2.md: Likewise.
1567         * ultra3.md: Likewise.
1568         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
1569         to 0x200 when TARGET_VIS2.
1570         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
1571         default when targetting capable cpus.  TARGET_VIS2 implies
1572         TARGET_VIS, clear and it when TARGET_FPU is disabled.
1573         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
1574         (sparc_expand_builtin): Fix predicate indexing when builtin returns
1575         void.
1576         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
1577         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
1578         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
1579         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
1580         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
1581         * doc/extend.texi: Document new VIS 2.0 builtins.
1582
1583 2011-09-29  Nick Clifton  <nickc@redhat.com>
1584             Bernd Schmidt  <bernds@codesourcery.com>
1585
1586         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
1587         * config/frv/frvend.c: Likewise.
1588         * config/frv/frv.c (frv_function_prologue): Move misplaced
1589         CALL_ARG_LOCATION notes back to their proper locations.
1590
1591 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
1592
1593         PR target/50566
1594         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
1595         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
1596         from avr_rtx_costs.
1597         (avr_legitimate_address_p): Use avr_edump to print log information
1598         filtered by avr_log.
1599         (extra_constraint_Q): Ditto.
1600         (avr_legitimize_address): Ditto.
1601         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
1602         (final_prescan_insn): Use avr_log.rtx_costs as filter.
1603
1604 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
1605
1606         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
1607         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
1608         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
1609         NEON vector and structure modes to be tied.
1610
1611 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1612
1613         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
1614         forward declaration.
1615         (remove_duplicate_close_phi): Detect and repair creation of
1616         duplicate close-phis for a containing loop.
1617
1618 2011-09-27   Andi Kleen <ak@linux.intel.com>
1619
1620         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
1621         /dev/urandom.  Add getpid call.
1622         (compare_debug_dump_opt_spec_function): Drop getpid call.
1623
1624 2011-09-26   Andi Kleen <ak@linux.intel.com>
1625
1626         * toplev.c (init_local_tick): Try reading random seed
1627         from /dev/urandom.
1628
1629 2011-09-26   Andi Kleen <ak@linux.intel.com>
1630
1631         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
1632         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
1633         Handle numerical random seed.
1634         * lto-streamer.h (lto_file_decl_data): Change id to
1635         unsigned HOST_WIDE_INT.
1636         * toplev.c (random_seed): Add.
1637         (init_random_seed): Change for numerical random seed.
1638         (get_random_seed): Return as HOST_WIDE_INT.
1639         (set_random_seed): Crc32 existing string.
1640         * toplev.h (get_random_seed): Change to numercal return.
1641         * tree.c (get_file_function_name): Remove CRC. Handle
1642         numerical random seed.
1643
1644 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
1645
1646         PR target/50566
1647         * config.gcc (extra_objs): Add avr-log.o for $target in:
1648         avr-*-rtems*, avr-*-*.
1649         * config/avr/t-avr (avr-log.o): New rule to compile...
1650         * config/avr/avr-log.c: ...this new file.
1651         * config/avr/avr.opt (mlog=): New option.
1652         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
1653         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
1654         (avr_log_set_avr_log): New prototype.
1655         (avr_log_t): New typedef.
1656         (avr_log): New declaration.
1657         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
1658
1659 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1660
1661         * expr.c (do_store_flag): Expand vector comparison by
1662         building an appropriate VEC_COND_EXPR.
1663         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
1664         (c_objc_common_truthvalue_conversion): Adjust.
1665         * tree-vect-generic.c (do_compare): Helper function.
1666         (expand_vector_comparison): Check if hardware supports
1667         vector comparison of the given type or expand vector piecewise.
1668         (expand_vector_operation): Treat comparison as binary
1669         operation of vector type.
1670         (expand_vector_operations_1): Adjust.
1671
1672 2011-09-29  Richard Guenther  <rguenther@suse.de>
1673
1674         * tree.c (build_opaque_vector_type): Make opaque vectors
1675         variant types of the corresponding non-opaque type.  Make
1676         sure to share opaque vector types properly.
1677
1678 2011-09-29  David S. Miller  <davem@davemloft.net>
1679
1680         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
1681         UNSPEC_ARRAY32): New unspec.
1682         (define_attr type): New type 'array'.
1683         (array{8,16,32}<P:mode>_vis): New patterns.
1684         * config/sparc/ultra1_2.md: Add reservations for 'array'.
1685         * config/sparc/ultra3.md: Likewise.
1686         * config/sparc/niagara.md: Likewise.
1687         * config/sparc/niagara2.md: Likewise.
1688         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
1689         array builtins.
1690         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
1691         __vis_array32): New.
1692         * doc/extend.texi: Document new VIS builtins.
1693
1694         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
1695         (VIS pixel-compare insn): Just use <gcond:name>.
1696
1697         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
1698         code iterator used, so just use <code>.  There are two mode iterators
1699         so explicitly use <GCM:gcm_name>.
1700
1701 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
1702
1703         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
1704         Darwin >= 9.
1705
1706 2011-09-28  David S. Miller  <davem@davemloft.net>
1707
1708         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
1709         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
1710         (UNSPEC_FCMP): New unspec.
1711         (gcond): New code iterator.
1712         (gcond_name): New code attr.
1713         (GCM): New mode iterator.
1714         (gcm_name): New mode attr.
1715         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
1716
1717 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
1718
1719         PR target/49486
1720         * config/sh/sh.md (negdi2): Move expansion into split to
1721         allow more combination options.  Add T_REG clobber.
1722         (abssi2): New expander.
1723         (*negdi2, *abssi2, *negabssi2): New insns.
1724         (cneg): Change from insn to insn_and_split.  Rename to
1725         negsi_cond.  Add alternative for non-SH4.
1726
1727 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
1728
1729         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
1730         (neon_move_hi_quad_<mode>): Likewise.
1731         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
1732
1733 2011-09-28  Nick Clifton  <nickc@redhat.com>
1734
1735         * config/rx/predicates.md (rx_minmax_operand): New predicate.
1736         Accepts immediates and a restricted subset of MEMs.
1737         * config/rx/rx.md (int_modes): New iterator.
1738         (smaxsi3, sminsi3): Delete and replace with...
1739         (smax<int_mode>3, smin<int_mode>3): New patterns.
1740         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
1741
1742 2011-09-28  Richard Guenther  <rguenther@suse.de>
1743
1744         PR middle-end/50460
1745         * fold-const.c (try_move_mult_to_index): Handle &a.array the
1746         same as &a.array[0].
1747
1748 2011-09-28  Kai Tietz  <ktietz@redhat.com>
1749
1750         * configure.ac: Add test for new section attribute
1751         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
1752         * config.in: Regenerated.
1753         * configure: Regenerated.
1754         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
1755         new section flag "e" for excluded sections, if supported.
1756         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
1757
1758 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
1759
1760         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
1761         throughout file.
1762
1763 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
1764
1765         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
1766         throughout file.
1767
1768 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
1769
1770         * output.h (SECTION_EXCLUDE): New macro.
1771         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
1772
1773 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
1774
1775         * fwprop.c (forward_propagate_and_simplify): After checking
1776         reg/subreg combinations, check whether the modes are the same.
1777
1778 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
1779             Richard Sandiford  <rdsandiford@googlemail.com>
1780
1781         * config/mips/mips.c (mips_add_cfa_restore): New function.
1782         (mips16e_save_restore_reg): Use it.
1783         (mips_restore_reg): Likewise.  Split double FPRs for
1784         REG_CFA_RESTORE notes.
1785
1786 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
1787
1788         PR middle-end/50386
1789         PR middle-end/50326
1790         * tree-sra.c (build_ref_for_model): Use the type of the field as
1791         the type of the COMPONENT_REF.
1792
1793 2011-09-27  Jeff Law  <law@redhat.com>
1794
1795         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
1796         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
1797         (find_if_case_1): Use the probability of the THEN clause when
1798         determining if speculation is profitable.
1799         (find_if_case_2): Similarly for the ELSE clause.
1800
1801 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
1802
1803         * common.opt: Add -foptimize-strlen option.
1804         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
1805         (tree-sssa-strlen.o): Add dependencies.
1806         * opts.c (default_options_table): Enable -foptimize-strlen
1807         by default at -O2 if not -Os.
1808         * passes.c (init_optimization_passes): Add pass_strlen
1809         after pass_object_sizes.
1810         * timevar.def (TV_TREE_STRLEN): New timevar.
1811         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
1812         * tree-pass.h (pass_strlen): Declare.
1813         * tree-ssa-strlen.c: New file.
1814         * c-decl.c (merge_decls): If compatible stpcpy prototype
1815         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
1816
1817 2011-09-27  Tom de Vries  <tom@codesourcery.com>
1818
1819         PR middle-end/43864
1820         * tree-ssa-tail-merge.c: New file.
1821         (struct same_succ_def): Define.
1822         (same_succ, const_same_succ): New typedef.
1823         (struct bb_cluster_def): Define.
1824         (bb_cluster, const_bb_cluster): New typedef.
1825         (struct aux_bb_info): Define.
1826         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
1827         (gvn_uses_equal): New function.
1828         (same_succ_print, same_succ_print_traverse, update_dep_bb)
1829         (stmt_update_dep_bb, local_def, same_succ_hash)
1830         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
1831         (same_succ_reset): New function.
1832         (same_succ_htab, same_succ_edge_flags)
1833         (deleted_bbs, deleted_bb_preds): New var.
1834         (debug_same_succ): New function.
1835         (worklist): New var.
1836         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
1837         (init_worklist, delete_worklist, delete_basic_block_same_succ)
1838         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
1839         (print_cluster, debug_cluster, update_rep_bb)
1840         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
1841         (all_clusters): New var.
1842         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
1843         (merge_clusters, set_cluster): New function.
1844         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
1845         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
1846         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
1847         (find_clusters_1, find_clusters): New function.
1848         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
1849         (update_bbs): New var.
1850         (apply_clusters): New function.
1851         (update_debug_stmt, update_debug_stmts): New function.
1852         (tail_merge_optimize): New function.
1853         tree-pass.h (tail_merge_optimize): Declare.
1854         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
1855         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
1856         (tree-ssa-tail-merge.o): New rule.
1857         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
1858         default at OPT_LEVELS_2_PLUS.
1859         * tree-ssa-sccvn.c (vn_valueize): Move to ...
1860         * tree-ssa-sccvn.h (vn_valueize): Here.
1861         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
1862         * common.opt (ftree-tail-merge): New switch.
1863         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
1864         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
1865         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
1866         (-ftree-tail-merge, max-tail-merge-comparisons)
1867         (max-tail-merge-iterations): New item.
1868
1869 2011-09-27  Jan Hubicka  <jh@suse.cz>
1870
1871         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
1872
1873 2011-09-27  Jan Hubicka  <jh@suse.cz>
1874
1875         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
1876         parameters passed by reference; handle loads from non-SSA scalars
1877         and update comments.
1878
1879 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
1880
1881         PR rtl-optimization/50249
1882         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
1883         instead of opnum and type.  All callers changed.  Remove useless
1884         declaration.
1885         Search forward for other reloads of the same type for the same operand
1886         using the same register; if any are found, return false.
1887         (reload_regs_reach_end_p): Same argument changes; all callers changed.
1888
1889 2011-09-27  Andi Kleen  <ak@linux.intel.com>
1890             Jan Hubicka  <jh@suse.cz>
1891
1892         * doc/invoke.texi (ffat-lto-objects): Document.
1893         * toplev.c (compile_file): Do not output assembly when doing slim lto;
1894         Output __gnu_slim_lto when doing slim lto.
1895         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
1896         (cgraph_optimize): Return early when doing slim lto.
1897         * opts.c (finish_options): Complain about lack of linker plugin
1898         when doing slim lto.
1899         * common.opt (ffat-lto-objects): New.
1900
1901 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
1902
1903         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
1904         between signed and unsigned.
1905
1906 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
1907
1908         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
1909         vectorization.
1910         (vectorizable_type_promotion): Likewise.
1911         (vect_analyze_stmt): Call vectorizable_type_demotion and
1912         vectorizable_type_promotion for basic blocks.
1913         (supportable_widening_operation): Don't assume loop vectorization.
1914         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
1915         basic blocks.  Update vectorization factor for basic block
1916         vectorization.
1917         (vect_analyze_slp_instance): Allow multiple types for basic block
1918         vectorization.  Recheck unrolling factor after construction of SLP
1919         instance.
1920
1921 2011-09-27  Richard Guenther  <rguenther@suse.de>
1922
1923         * tree-object-size.c (compute_object_sizes): Fix dumping of
1924         folded statement.
1925
1926 2011-09-27  Richard Guenther  <rguenther@suse.de>
1927
1928         PR tree-optimization/50363
1929         * tree-ssa-pre.c (create_expression_by_pieces): Handle
1930         pointer conversions in POINTER_PLUS_EXPRs properly.
1931
1932 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
1933
1934         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
1935         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
1936         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
1937         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
1938         that produce subreg moves.  Define using VQX iterators.
1939
1940 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
1941
1942         * config/avr/avr.md (ashrqi3): Split alternative "n"
1943         into its remaining parts C03, C04, C05, C06, C07 and describe
1944         impact in CC by attribute "cc" appropriately.
1945         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
1946         by digging RTX.
1947
1948 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
1949
1950         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
1951         from 3 x MAX_MACHINE_MODE.
1952         (CONSTM1_RTX): Define.
1953         * emit-rtl.c (const_tiny_rtx): Change into array of
1954         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
1955         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
1956         CONSTM1_RTX.
1957         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
1958         MODE_VECTOR_INT modes.
1959         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
1960         Optimize if one operand is CONSTM1_RTX.
1961         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
1962         into mask | x.
1963
1964 2011-09-26  David S. Miller  <davem@davemloft.net>
1965
1966         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
1967         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
1968         * config/sparc/visintrin.h: Update edge and pixel-compare
1969         intrinsics to return 'long' instead of 'int'.
1970         * doc/extend.texi: Update documentation to match.
1971         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
1972         flat, allow any instruction.  Otherwise, when V9 allow parallels
1973         which consist only of sets to registers outside of %o0 to %o5.
1974         (sparc_vis_init_builtins): Update VIS builtin types for edge
1975         and pixel-compare.
1976
1977         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
1978         is enabled, mark %gsr as global.
1979         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
1980         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
1981
1982         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
1983         which will now define __VIS and __VIS__ when -mvis is enabled.
1984         * config/sparc/t-sparc: Likewise.
1985         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
1986         and add t-sparc to tmake_file for all sparc targets.
1987         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
1988         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
1989
1990         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
1991         builtins for VIS vector addition and subtraction.
1992         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
1993         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
1994         __vis_fpsub32, __vis_fpsub32s): New.
1995         * doc/extend.texi: Document new VIS intrinsics.
1996
1997 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
1998
1999         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
2000         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
2001         EQ/NE comparisons against +/-1 in the case of unused-after,
2002         non-ld-regs target.
2003
2004 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
2005
2006         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
2007         gctx.into_ssa after push_gimplify_context.
2008
2009         * gimple.c (gimple_build_call_valist): New function.
2010         * gimple.h (gimple_build_call_valist): New prototype.
2011         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
2012         (update_gimple_call): Likewise.
2013         (update_call_from_tree): Use finish_update_gimple_call.
2014         * tree-ssa-propagate.h (update_gimple_call): New prototype.
2015
2016 2011-09-26  Richard Guenther  <rguenther@suse.de>
2017
2018         PR tree-optimization/50472
2019         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
2020         volatile references.
2021
2022 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
2023
2024         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
2025         * target.def: (addr_space_subset_p): Likewise.
2026
2027 2011-09-26  Tom de Vries  <tom@codesourcery.com>
2028
2029         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
2030         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
2031         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
2032         of new var.
2033
2034 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2035
2036         PR target/50465
2037         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
2038         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
2039         output_reload_insisf.
2040         (adjust_len): Set default to "no".
2041         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
2042         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
2043         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
2044         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
2045         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
2046         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
2047         *lshrsi3_const): Set attribute "adjust_len".
2048         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
2049         (output_movsisf): Don't pass insn to output_reload_insisf.
2050         (adjust_insn_length): Handle new alternatives to adjust_len.
2051         Remove handling of ADJUST_LEN_YES.  Clean-up code.
2052
2053 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
2054
2055         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
2056         may_trap_p to detect loads that may trap of fault.
2057
2058 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2059
2060         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
2061         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
2062         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
2063         prototype.
2064         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
2065         * config/avr/avr.c: Rename output_reload_insisf_1 to
2066         output_reload_in_const.
2067         (avr_popcount_each_byte): Handle SFmode, too.
2068         (output_reload_in_const): Change so it can handle HI loads, too.
2069         Use avr_popcount_each_byte to work out if scratch register must be
2070         created on the fly.
2071         (output_reload_inhi): Rewrite using output_reload_in_const and...
2072         (output_movhi): ...use it to print constants' loads.
2073         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
2074
2075 2011-09-25  David S. Miller  <davem@davemloft.net>
2076
2077         * config/sparc/constraints.md (C, P, Z): New constraints for
2078         const_doube, const_int, and const_vector "all ones" values.
2079         Make unused constraint letters comment match reality.
2080         * config/sparc/predicates.md (const_all_ones_operand,
2081         register_or_zero_or_all_ones_operand): New predicates.
2082         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
2083         as well as zero constants when VIS.
2084         (sparc_legitimate_constant_p): Likewise.
2085         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
2086         (movsf_insn): Likewise
2087         (movdi_insn_sp64): Add fone alternative.
2088         (movdf_insn_sp32_v9): Likewise.
2089         (movdf_insn_sp64): Likewise.
2090
2091         * configure.ac: Add feature check to make sure the assembler
2092         supports the FMAF, HPC, and VIS 3.0 instructions found on
2093         Niagara-3 and later cpus.
2094         * configure: Rebuild.
2095         * config.in: Likewise.
2096         * config/sparc/sparc.opt: New option '-mfmaf'.
2097         * config/sparc/sparc.md: Add float fused multiply-add patterns.
2098         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
2099         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
2100         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
2101         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
2102         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
2103         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
2104         disabled.
2105         (sparc_rtx_costs): Handle 'FMA'.
2106         * doc/invoke.texi: Document -mfmaf.
2107
2108 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
2109
2110         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
2111         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
2112         DECL_BY_REFERENCE parameters.
2113
2114 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
2115
2116         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
2117         if there is no outgoing edge.
2118
2119         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
2120         integral types.
2121
2122 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
2123
2124         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
2125         of vect_analyze_bb here.
2126         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
2127
2128 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
2129
2130         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
2131         Allow not simple iv if analyzing basic block.
2132         (create_data_ref): Update call to dr_analyze_innermost.
2133         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
2134         * tree-loop-distribution.c (generate_memset_zero): Likewise.
2135         * tree-predcom.c (find_looparound_phi): Likewise.
2136         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
2137
2138 2011-09-24  David S. Miller  <davem@davemloft.net>
2139
2140         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
2141         (SPARC_GSR_REG): Define.
2142         (FIXED_REGISTERS): Mark GSR as fixed.
2143         (CALL_USED_REGISTERS): Mark GSR as call used.
2144         (HARD_REGNO_NREGS): GSR is always 1 register.
2145         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
2146         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
2147         (REGISTER_NAMES): Add "%gsr".
2148         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
2149         (UNSPEC_WRGSR): New unspec.
2150         (GSR_REG): New constant.
2151         (type): Add new insn type 'gsr'.
2152         (fpack16_vis, fpackfix_vis, fpack32_vis,
2153         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
2154         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
2155         rdgsr_v8plus): New expanders and insns.
2156         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
2157         using patterns which show that this is a plus in addition to a
2158         modification of GSR_REG, instead of an unspec.
2159         * config/sparc/ultra1_2.md: Handle 'gsr'.
2160         * config/sparc/ultra3.md: Likewise.
2161         * config/sparc/niagara.md: Likewise.
2162         * config/sparc/niagara2.md: Likewise.
2163         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
2164         end of table.
2165         (sparc_option_override): Make -mvis imply -mv8plus.
2166         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
2167         for %gsr.
2168         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
2169         __builtin_vis_read_gsr.
2170         (sparc_expand_buildin): Handle builtins that take one argument and
2171         return void.
2172         (sparc_fold_builtin): Never fold writes to %gsr.
2173         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
2174         * doc/extend.texi: Document new VIS intrinsics.
2175
2176 2011-09-23  Jan Hubicka  <jh@suse.cz>
2177
2178         * ipa-inline-transform.c (inline_call): Add comment.
2179         * ipa-inline.h (inline_param_summary): New structure and vector.
2180         (struct inline_edge_summary): Add param field.
2181         * ipa-inline-analysis.c (CHANGED): New constant.
2182         (add_clause): Handle CHANGED and NOT_CONSTANT.
2183         (predicate_probability): New function.
2184         (dump_condition): Dump CHANGED predicate.
2185         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
2186         of unknown function wide invariant.
2187         (evaluate_conditions_for_edge): Handle change probabilities.
2188         (inline_edge_duplication_hook): Copy param summaries.
2189         (inline_edge_removal_hook): Free param summaries.
2190         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
2191         sizes; dump param summaries.
2192         (will_be_nonconstant_predicate): Use CHANGED predicate.
2193         (record_modified_bb_info): New structure.
2194         (record_modified): New function.
2195         (param_change_prob): New function.
2196         (estimate_function_body_sizes): Compute param summaries.
2197         (estimate_edge_size_and_time): Add probability argument.
2198         (estimate_node_size_and_time): Add inline_param_summary argument;
2199         handle predicate probabilities.
2200         (remap_predicate): Fix formating.
2201         (remap_edge_change_prob): New function.
2202         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
2203         (remap_edge_predicates): ... this one.
2204         (inline_merge_summary): Remap edge summaries; handle predicate
2205         probabilities; remove param summaries after we are done.
2206         (do_estimate_edge_time): Update.
2207         (do_estimate_edge_growth): Update.
2208         (read_inline_edge_summary): Read param info.
2209         (inline_read_summary): Fix formating.
2210         (write_inline_edge_summary): Write param summaries.
2211
2212 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
2213
2214         * config/i386/i386.c (ix86_print_operand): Handle %~.
2215         (ix86_print_operand_punct_valid_p): Return true also for '~'.
2216         * config/i386/sse.md (i128): New mode_attr.
2217         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
2218         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
2219         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
2220         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
2221         patterns, use "<sseinsnmode>" for "mode" attribute.
2222         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
2223         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
2224         %~128 in the patterns, use "OI" for "mode" attribute.
2225
2226 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
2227
2228         PR target/50447
2229         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
2230         "tstsi", "compare".
2231         (*cmpqi_sign_extend): Use s8_operand.
2232         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
2233         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
2234         prototypes.
2235         (out_tsthi, out_tstsi): Remove prototypes.
2236         (avr_out_tsthi, avr_out_tstsi): New prototypes.
2237         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
2238         (avr_asm_len): Negative length now sets *plen to -length.
2239         (compare_sign_p): Return bool instead of int.
2240         (compare_diff_p, compare_eq_p): Ditto and make static.
2241         (avr_out_tsthi): New function.
2242         (avr_out_tstsi): New function.
2243         (avr_out_compare): New function.
2244         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
2245         ADJUST_LEN_COMPARE.
2246
2247 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
2248
2249         PR target/50447
2250         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
2251         (addsi3): Rewrite using QI scratch register.  Adjust text
2252         peepholes using plus:SI.
2253         (*addsi3_zero_extend.hi): New insn.
2254         (*subsi3_zero_extend.hi): New insn.
2255         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
2256         (*subsi3_zero_extend): Ditto.
2257         (subsi3): Change predicate #2 to register_operand.
2258         * config/avr/avr-protos.h (avr_out_plus): New prototype.
2259         (avr_out_plus_1): New static function.
2260         (avr_out_plus): New function.
2261         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
2262
2263 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
2264
2265         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
2266         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
2267
2268 2011-09-23  Ian Lance Taylor  <iant@google.com>
2269
2270         * godump.c (go_define): Treat a single character in single quotes,
2271         or a string, as an operand.
2272
2273 2011-09-23  Martin Jambor  <mjambor@suse.cz>
2274
2275         * ipa-prop.h (jump_func_type): Updated comments.
2276         (ipa_known_type_data): New type.
2277         (ipa_jump_func): Use it to describe known type jump functions.
2278         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
2279         reflect the new known type jump function contents.
2280         (compute_known_type_jump_func): Likewise.
2281         (combine_known_type_and_ancestor_jfs): Likewise.
2282         (try_make_edge_direct_virtual_call): Likewise.
2283         (ipa_write_jump_function): Likewise.
2284         (ipa_read_jump_function): Likewise.
2285         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
2286         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
2287         (propagate_accross_jump_function): Likewise.
2288
2289 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
2290
2291         PR target/50446
2292         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
2293         (rotlqi3_4): Turn insn into expander.
2294         (*rotlqi3): New insn.
2295         (rotlhi3, rotlsi3): Support rotate left/right by 1.
2296         (*rotlhi2.1, *rotlhi2.15): New insns.
2297         (*rotlsi2.1, *rotlsi2.31): New insns.
2298         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
2299
2300 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
2301
2302         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
2303
2304 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2305
2306         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
2307
2308 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2309
2310         * reload.c (find_reloads): Set operand_mode to Pmode for address
2311         operands consisting of just a CONST_INT.
2312
2313 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
2314
2315         PR target/50482
2316         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
2317         blendv, force op_true to register if it doesn't satisfy
2318         nonimmediate_operand predicate.
2319
2320 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
2321
2322         PR middle-end/50113
2323         PR middle-end/50061
2324         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
2325         get the locate.where_pad value for register-only arguments.
2326         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
2327         (arm_pad_reg_upward): Handle null types.
2328
2329 2011-09-22  Jan Hubicka  <jh@suse.cz>
2330
2331         * ipa-inline-analysis.c: Fix overly long lines.
2332
2333 2011-09-22  Jan Hubicka  <jh@suse.cz>
2334
2335         * ipa-inline-transform.c (inline_call): Always update jump functions
2336         after inlining.
2337         * ipa-inline.c (ipa_inline): Likewise; do not call
2338         ipa_create_all_structures_for_iinln.
2339         (ipa_inline): Always free jump functions.
2340         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
2341         (remap_edge_predicates): Fix pasto.
2342         (inline_merge_summary): Remove nlined edge predicate; remove hack.
2343         (inline_analyze_function): Always initialize jump functions.
2344         (inline_generate_summary): Likewise.
2345         (inline_write_summary): Always write jump functions when ipa-cp
2346         is not doing that.
2347         (inline_read_summary): Always read jump functions when ipa-cp
2348         is not doing that.
2349         * ipa-prop.c (iinlining_processed_edges): Remove.
2350         (update_indirect_edges_after_inlining): Do not use
2351         iinlining_processed_edges; instead set param_index to -1.
2352         (propagate_info_to_inlined_callees): Only try to indirect inlining
2353         when asked to do so; update jump functions of indirect calls, too;
2354         remove jump functions of the inlined edge.
2355         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
2356         (ipa_create_all_structures_for_iinln): Remove.
2357         (ipa_free_all_structures_after_iinln): Do not free
2358         iinlining_processed_edges.
2359         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
2360
2361 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
2362
2363         * config/arm/predicates.md (expandable_comparison_operator): New
2364         predicate, extracted from...
2365         (arm_comparison_operator): ...here.
2366         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
2367         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
2368         (movdfcc): Use expandable_comparison_operator.
2369
2370 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
2371
2372         PR target/50447
2373         PR target/50465
2374         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
2375         (avr_popcount_each_byte): New prototype.
2376         * config/avr/avr.c (avr_popcount): New static function.
2377         (avr_popcount_each_byte): New function.
2378         (avr_out_bitop): New function.
2379         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
2380         avr_out_bitop.  Cleanup code.
2381         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
2382         (Ca4, Co4, Cx4): New constraints.
2383         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
2384         alternative.
2385         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
2386         (andsi3, iorsi3, xorsi3): Ditto.
2387         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
2388
2389 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
2390
2391         PR tree-optimization/50451
2392         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
2393         constant operands in reduction.
2394         (vect_get_slp_defs): Don't create vector operand for NULL scalar
2395         operand.
2396
2397 2011-09-22  David S. Miller  <davem@davemloft.net>
2398
2399         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
2400         fpack16, fpack32, fpackfix as const.
2401
2402         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
2403         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
2404         constants.  Use them everywhere.
2405
2406 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
2407
2408         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
2409         Added AND special case.  Adapted comments.
2410         (sh_rtx_costs): Added XOR and IOR case.
2411
2412 2011-09-21  Jan Hubicka  <jh@suse.cz>
2413
2414         * ipa-inline-analsis.c (compute_inline_parameters): Set
2415         cfun and current_function_decl.
2416
2417 2011-09-21  Jan Hubicka  <jh@suse.cz>
2418
2419         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
2420         handled components in parameter of builtin_constant_p.
2421         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
2422
2423 2011-09-21  Jan Hubicka  <jh@suse.cz>
2424
2425         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
2426         * ipa-inline.h (estimate_edge_time): Fix pasto.
2427         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
2428
2429 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
2430
2431         * config/i386/i386.c (ix86_expand_sse_movcc): Use
2432         blendvps, blendvpd and pblendvb if possible.
2433
2434 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
2435
2436         PR target/50464
2437         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
2438         operand 1 predicate to register_operand and operand 2 predicate
2439         to nonimmediate_operand.
2440         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
2441         xop_pcmov, force op_true to register.  Also, force op_false to
2442         register if it doesn't satisfy nonimmediate_operand predicate.
2443
2444 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
2445
2446         * config/i386/bmi2intrin.h (_mulx_u64): New.
2447         (_mulx_u32): Ditto.
2448
2449 2011-09-21  Jan Hubicka  <jh@suse.cz>
2450
2451         PR tree-optimization/50433
2452         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
2453         Use get_base_address.
2454
2455 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
2456
2457         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
2458         nonimmediate_operand instead of register_operand predicate for operands
2459         1 and 2, force them into registers if expanding them as comparison.
2460         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
2461         V8HImode force into register just operand 1.
2462
2463 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
2464
2465         PR target/45099
2466         * config/avr/avr.c (avr_function_arg_advance): Change error to
2467         warning if a fixed register is needed as function argument.
2468
2469 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
2470
2471         PR target/50449
2472         PR target/50465
2473         * config/avr/avr.md (adjust_len): New insn attribute.
2474         (*reload_insi, *reload_insf): Use it.
2475         (*movsi, *movsf): Use new interface of output_movsisf.
2476         * config/avr/avr-protos.h (output_movsisf): Change prototype.
2477         * config/avr/avr.c (output_movsisf): Ditto.
2478         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
2479         lengths of insns *reload_insi, *reload_insf.
2480         (output_reload_insisf_1): New static function.
2481         (output_reload_insisf): Use it.
2482
2483 2011-09-21  David S. Miller  <davem@davemloft.net>
2484
2485         * config/sparc/sparc.c (def_builtin): Change from macro into function.
2486         (def_builtin_const): New.
2487         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
2488         other than alignaddr and falignaddr.
2489
2490         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
2491         UNSPEC_FCMPEQ): New unspec codes.
2492         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
2493         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
2494         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
2495         new pixel compare VIS patterns.
2496         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
2497         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
2498         __vis_fcmpeq16, __vis_fcmpeq32): New.
2499         * doc/extend.texi: Document new pixel compare VIS intrinsics.
2500
2501 2011-09-21  Tom de Vries  <tom@codesourcery.com>
2502
2503         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
2504
2505 2011-09-20  David S. Miller  <davem@davemloft.net>
2506
2507         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
2508         (aligneddrl<P:mode>_vis): New pattern.
2509         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
2510         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
2511         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
2512         alignaddrl insn, and adjust edge operations for updated types.
2513         * config/sparc/visintrin.h: Likewise.
2514         * doc/extend.texi: Make typing in VIS documentation match reality.
2515
2516 2011-09-20  Terry Guo  <terry.guo@arm.com>
2517
2518         * config/arm/arm-arches.def: Add armv6s-m.
2519         * config/arm/arm-tables.opt: Regenerate.
2520
2521 2011-09-20  Wei Guozhi  <carrot@google.com>
2522
2523         PR rtl-optimization/49452
2524         * postreload.c (reload_combine): Invalidate use information when across
2525         volatile insn.
2526
2527 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
2528
2529         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
2530         Remove maintenance overhead.
2531         (haifa_sched_init, sched_finish): Update.
2532
2533 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
2534
2535         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
2536         to calculate unit, prefix_rep and prefix_data16 attributes.
2537         (*mov<mode>_internal): Ditto for unit attribute.
2538         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
2539         (*movv2sf_internal): Ditto.
2540         * config/i386/sse.md (VI1248_256): Remove mode iterator.
2541         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
2542         (*avx2_eq<mode>3): Ditto.
2543         (avx2_gt<mode>3): Ditto.
2544
2545 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
2546
2547         * config/i386/i386.md (maxmin): New code iterator.
2548         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
2549         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
2550         code iterator.
2551         (*avx2_<maxmin:code><mode>3): Macroize isn from
2552         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
2553         maxmin code iterator.
2554         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
2555         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
2556         <umaxmin:code>v16qi3.
2557
2558 2011-09-19  Alan Modra  <amodra@gmail.com>
2559             Michael Meissner  <meissner@linux.vnet.ibm.com>
2560
2561         PR target/50341
2562         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
2563         split the load of the indirect function's TOC from the call to
2564         prevent the compiler from moving the load of the new TOC above
2565         code that references the current function's TOC.
2566         (call_indirect_aix<ptrsize>_internal): Ditto.
2567         (call_indirect_aix<ptrsize>_nor11): Ditto.
2568         (call_indirect_aix<ptrsize>_internal2): Ditto.
2569         (call_value_indirect_aix<ptrsize>): Ditto.
2570         (call_value_indirect_aix<ptrsize>_internal): Ditto.
2571         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2572         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2573
2574 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
2575
2576         * config/i386/sse.md (*sse4_1_extractps): Change into
2577         define_insn_and_split, add =x 0 n and =x x n alternatives
2578         and split them after reload.
2579
2580 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
2581
2582         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
2583
2584 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
2585
2586         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
2587
2588 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
2589
2590         PR tree-optimization/50413
2591         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
2592         a basic block if one of its data-refs can't be analyzed.
2593
2594 2011-09-19  Paul Brook  <paul@codesourcery.com>
2595
2596         * config/arm/predicates.md (shift_amount_operand): Check constant
2597         shift count is in range.
2598         (const_shift_operand): Remove.
2599
2600 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
2601             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
2602
2603         PR target/50091
2604         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
2605         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
2606
2607 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
2608
2609         * config/i386/bmiintrin.h: Remove tmp.
2610         * config/i386/tbmintrin.h: Likewise.
2611
2612 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
2613
2614         PR tree-optimization/50414
2615         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
2616         MIN_EXPR.
2617
2618 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
2619
2620         PR tree-optimization/50412
2621         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
2622         acceses that require epilogue loop if vectorizing outer loop.
2623
2624 2011-09-17  David S. Miller  <davem@davemloft.net>
2625
2626         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
2627         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
2628         New unspecs.
2629         (define_attr type): New type 'edge'.
2630         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
2631         edge32l_vis): New patterns.
2632         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
2633         * config/sparc/ultra3.md: Likewise.
2634         * config/sparc/niagara.md: Likewise.
2635         * config/sparc/niagara2.md: Likewise.
2636         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
2637         builtins for VIS edge instructions.
2638         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
2639         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
2640         intrinsics.
2641         (__v8qi, __v4qi): Make unsigned.
2642         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
2643         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
2644         __vis_fpack32): Fix types.
2645         * doc/extend.texi: Document new 'edge' VIS intrinsics.
2646
2647         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
2648         divide costs.
2649         (niagara3_costs): New.
2650         (sparc_option_override): Use it.
2651         * gcc/config/sparc/niagara2.md: Adjust with more accurate
2652         Niagara-3 reservations.
2653
2654 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
2655
2656         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
2657         (sse2_avx, sseinsnmode): Add V2TI.
2658         (REDUC_SMINMAX_MODE): New mode iterator.
2659         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
2660         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
2661         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
2662         (sse2_lshrv1ti3): Rename to...
2663         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
2664         iterator.  Move before umaxmin expanders.
2665         * config/i386/i386.h (VALID_AVX256_REG_MODE,
2666         SSE_REG_MODE_P): Accept V2TImode.
2667         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
2668         V16HImode, V8SImode and V4DImode.
2669
2670         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
2671         and V4DImode.
2672         (ix86_build_signbit_mask): Likewise.
2673         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
2674         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
2675         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
2676         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
2677         (<code><mode>3) ... this.
2678         (avx2_<code><mode>3 smaxmin expand): Rename to...
2679         (<code><mode>3) ... this.
2680         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
2681         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
2682         VI8_AVX2 mode iterator.
2683         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
2684         VI8_AVX2 mode iterator.
2685         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
2686         New expanders.
2687
2688 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
2689
2690         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
2691         throughout file.
2692
2693 2011-09-16  David S. Miller  <davem@davemloft.net>
2694
2695         * config/sparc/visintrin.h: New file.
2696         * config.gcc: Add it to extra_headers on sparc.
2697
2698 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
2699
2700         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
2701         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
2702         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
2703         reduc_smin_v4sf): Adjust callers.
2704         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
2705         New expanders.
2706
2707         * config/i386/sse.md (vec_extract_hi_<mode>,
2708         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
2709         vextracti128 instead of vextractf128 for -mavx2 and
2710         integer vectors.  For V4DFmode fix up mode attribute.
2711         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
2712         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
2713         instead of V8SF mode attribute.
2714         (avx2_extracti128): Change into define_expand.
2715         * config/i386/i386.c (ix86_expand_vector_extract): Handle
2716         32-byte vector modes if TARGET_AVX.
2717
2718 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
2719
2720         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
2721         (umulqi3_highpart, smulqi3_highpart): Ditto.
2722         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
2723         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
2724         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
2725
2726 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
2727
2728         PR target/50358
2729         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
2730         (*maddqi4, *maddqi4.const): New insns.
2731         (*msubqi4, *msubqi4.const): New insns.
2732         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
2733         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
2734         HImode by 1 in the case of multiplying with a CONST_INT.
2735         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
2736
2737 2011-09-15   Jan Hubicka  <jh@suse.cz>
2738
2739         PR lto/50430
2740         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
2741         error_mark_node in the DECL_INITIAL of vtable.
2742
2743 2011-09-15   Diego Novillo  <dnovillo@google.com>
2744
2745         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
2746         @SYSROOT_CFLAGS_FOR_TARGET@.
2747         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
2748         * configure: Regenerate.
2749         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
2750         Remove setting of GCC_UNDER_TEST.
2751
2752 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
2753
2754         * config/i386/i386.c (output_fp_compare): Return %v prefixed
2755         instruction mnemonics for TARGET_AVX.
2756
2757         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
2758         "type" attribute calculation.
2759         (*movdf_internal): Ditto.
2760         (*movsf_internal): Ditto.
2761
2762 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
2763
2764         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
2765
2766 2011-09-15  Jason Merrill  <jason@redhat.com>
2767
2768         PR c++/50361
2769         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
2770
2771 2011-09-15  Jan Hubicka  <jh@suse.cz>
2772
2773         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
2774         simplify obviously true clauses.
2775         (and_predicates, or_predicates): Add conditions parameter.
2776         (inline_duplication_hoook): Update.
2777         (mark_modified): New function.
2778         (unmodified_parm): New function.
2779         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
2780         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
2781         Use unmodified_parm.
2782         (estimate_function_body_sizes): Update.
2783         (remap_predicate): Update.
2784
2785 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
2786
2787         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
2788         read-after-read dependencies in basic block SLP.
2789
2790 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2791
2792         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
2793         throughout file.
2794
2795 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2796
2797         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
2798         throughout file.
2799
2800 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2801
2802         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
2803         throughout file.
2804
2805 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2806
2807         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
2808         throughout file.
2809         * config/rs6000/constraints.md: Likewise.
2810
2811 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2812
2813         * config/microblaze/microblaze.md: Use match_test rather than
2814         eq/ne symbol_ref throughout file.
2815
2816 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2817
2818         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
2819         throughout file.
2820
2821 2011-09-14  Tom de Vries  <tom@codesourcery.com>
2822
2823         PR middle-end/50251
2824         * explow.c (emit_stack_restore): Set crtl->need_drap if
2825         stack_restore is emitted.
2826
2827 2011-09-14  Julian Brown  <julian@codesourcery.com>
2828
2829         * config/arm/arm.c (arm_override_options): Add unaligned_access
2830         support.
2831         (arm_file_start): Emit attribute for unaligned access as appropriate.
2832         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
2833         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
2834         (insv, extzv): Add unaligned-access support.
2835         (extv): Change to expander. Likewise.
2836         (extzv_t1, extv_regsi): Add helpers.
2837         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
2838         (unaligned_storesi, unaligned_storehi): New.
2839         (*extv_reg): New (previous extv implementation).
2840         * config/arm/arm.opt (munaligned_access): Add option.
2841         * config/arm/constraints.md (Uw): New constraint.
2842         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
2843         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
2844         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
2845         volatile accesses when -fstrict-volatile-bitfields is in effect.
2846         (extract_bit_field_1): Likewise.
2847
2848 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
2849
2850         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
2851         a scalar integer before applying integer-only optimisations to
2852         inner arithmetic.
2853
2854 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
2855
2856         * config/mips/mips.c (mips_expand_epilogue): Generate a
2857         simple_return only if the return address is in r31.
2858
2859 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
2860
2861         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
2862         NULL for a jump that is a cc0 insn, pick the previous insn for
2863         move_before.
2864
2865 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2866
2867         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
2868         throughout file.
2869
2870 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2871
2872         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
2873         throughout file.
2874
2875 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2876
2877         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
2878         symbol_ref throughout file.
2879
2880 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2881
2882         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
2883         throughout file.
2884
2885 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2886
2887         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
2888         throughout file.
2889
2890 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2891
2892         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
2893         throughout file.
2894         * config/arm/neon.md: Likewise.
2895         * config/arm/vfp.md: Likewise.
2896         * config/arm/thumb2.md: Likewise.
2897         * config/arm/cortex-m4.md: Likewise.
2898
2899 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
2900
2901         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
2902         define_insn patterns for combine.
2903
2904 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
2905
2906         * reorg.c: Always define make_return_insns.
2907
2908 2011-09-13  Jan Hubicka  <jh@suse.cz>
2909
2910         PR other/49533
2911         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
2912
2913 2011-09-13  Jan Hubicka  <jh@suse.cz>
2914
2915         PR other/49533
2916         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
2917
2918 2011-09-13  Paul Brook  <paul@codesourcery.com>
2919
2920         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2921         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
2922         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
2923         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
2924         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
2925         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
2926         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
2927         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
2928         enabling unwind tables.
2929         (c6x_debug_unwind_info): New function.
2930         (TARGET_ARM_EABI_UNWINDER): Define.
2931         (TARGET_DEBUG_UNWIND_INFO): Define.
2932         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
2933         (TARGET_EXTRA_CFI_SECTION): Remove.
2934         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
2935         * ginclude/unwind-arm-common.h: New file.
2936
2937 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
2938
2939         PR target/50358
2940         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
2941         * config/avr/avr.md: (extend_s): New code attribute.
2942         (mul_r_d): New code attribute.
2943         (*maddqihi4, *umaddqihi4): New insns.
2944         (*msubqihi4, *umsubqihi4): New insns.
2945         (*usmaddqihi4, *sumaddqihi4): New insns.
2946         (*usmsubqihi4, *susubdqihi4): New insns.
2947         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
2948         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
2949         (*umsubqihi4.uconst.ashift): New insn-and-split.
2950         (*msubqihi4.sconst.ashift): New insn-and-split.
2951         (*sumaddqihi4.uconst): New insn-and-split.
2952         (*sumsubqihi4.uconst): New insn-and-split.
2953         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
2954         PLUS:HI and MINUS:HI.
2955
2956 2011-09-13  Revital Eres  <revital.eres@linaro.org>
2957
2958         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
2959         (optimize_sc): Adjust call to remove_node_from_ps.
2960         (sms_schedule): Add print info.
2961
2962 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
2963
2964         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
2965         flags specially.
2966
2967 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
2968
2969         PR bootstrap/50010
2970         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
2971         NOTE_INSN_CFI notes, with the exception of
2972         NOTE_INSN_SWITCH_TEXT_SECTIONS.
2973
2974 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
2975             Richard Sandiford  <rdsandiford@googlemail.com>
2976
2977         * config/mips/mips.c (mips_epilogue): New structure.
2978         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
2979         restoring registers.
2980         (mips_epilogue_emit_cfa_restores): New function.
2981         (mips_epilogue_set_cfa): Likewise.
2982         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
2983         the current CFA register from the stack, redefine the CFA in terms
2984         of the stack pointer.
2985         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
2986         to the epilogue instructions.
2987
2988 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
2989
2990         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
2991         argument.
2992         (mips16e_build_save_restore): Update accordingly.
2993
2994 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
2995
2996         PR rtl-optimization/50212
2997         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2998         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
2999
3000         PR debug/50299
3001         * calls.c (load_register_parameters): Use use_reg_mode instead
3002         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
3003         entry.
3004         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
3005         for stack CALL_INSN_FUNCTION_USAGE uses.
3006         * expr.h (use_reg_mode): New prototype.
3007         (use_reg): Changed into inline around use_reg_mode.
3008         * expr.c (use_reg): Renamed to...
3009         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
3010         mode to that mode instead of VOIDmode.
3011         * var-tracking.c (prepare_call_arguments): Don't track parameters
3012         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
3013         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
3014         EXPR_LIST mode.
3015
3016 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
3017
3018         PR target/43746
3019         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
3020         (progmem_section): New Variable.
3021         (avr_asm_init_sections): Initialize it.
3022         (TARGET_ASM_SELECT_SECTION): Define to...
3023         (avr_asm_select_section): ... this new Function.
3024         (avr_replace_prefix): New Function.
3025         (avr_asm_function_rodata_section): Use it.
3026         (avr_insert_attributes): Don't add section attribute for PROGMEM.
3027         (avr_section_type_flags): Use avr_progmem_p instead of section
3028         name to detect if object is in PROGMEM.
3029         (avr_asm_named_section): Set section name prefix for objects in
3030         PROGMEM.
3031
3032 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3033
3034         PR bootstrap/50352
3035         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
3036         sprintf format string.
3037
3038 2011-09-12  Richard Guenther  <rguenther@suse.de>
3039
3040         PR tree-optimization/50343
3041         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
3042         that the reduction is over an SSA name before checking its definition.
3043
3044 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3045
3046         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
3047         throughout file.
3048
3049 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3050
3051         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
3052         throughout file.
3053         * config/mips/sb1.md: Likewise.
3054         * config/mips/predicates.md: Replace (match_test "!...")
3055         with (not (match_test "..."))
3056         * config/mips/constraints.md: Likewise.
3057
3058 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
3059
3060         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
3061         * config/arm/arm-tables.opt: Regenerate.
3062         * config/arm/arm-tune.md: Regenerate.
3063         * config/arm/arm.c (arm_file_start): Output .arch directive when
3064         user passes -mcpu=generic-*.
3065         (arm_issue_rate): Add genericv7a support.
3066         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
3067         (ASM_CPU_SPEC): New define.
3068         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
3069         * config/arm/semi.h (ASM_SPEC): Likewise.
3070         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
3071         and -mtune=generic-*.
3072
3073 2011-09-09  Richard Guenther  <rguenther@suse.de>
3074
3075         PR tree-optimization/50328
3076         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
3077         constant or default-def operand.
3078
3079 2011-09-09  Richard Guenther  <rguenther@suse.de>
3080
3081         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
3082         last statement.
3083
3084 2011-09-09  Richard Guenther  <rguenther@suse.de>
3085
3086         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
3087         instead of a statement.
3088         * gimple-fold.c (fold_stmt_inplace): Likewise.
3089         * sese.c (graphite_copy_stmts_from_block): Adjust.
3090         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3091         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
3092         fold_stmt.
3093         (forward_propagate_addr_into_variable_array_index): Likewise.
3094         (forward_propagate_addr_expr_1): adjust.
3095         (associate_plusminus): Likewise.
3096         (ssa_forward_propagate_and_combine): Likewise.
3097         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
3098         (execute_cse_reciprocals): Likewise.
3099         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
3100
3101 2011-09-09  Nick Clifton  <nickc@redhat.com>
3102
3103         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
3104         Return a positive value to indicate that the bits at the
3105         bottom of the register should be cleared.
3106
3107 2011-09-09  Richard Guenther  <rguenther@suse.de>
3108
3109         * tree-ssa-operands.c (swap_tree_operands): Always adjust
3110         existing operand positions.
3111
3112 2011-09-09  Richard Guenther  <rguenther@suse.de>
3113
3114         PR middle-end/50333
3115         * tree-data-ref.c (split_constant_offset): Do not try to handle
3116         ternary ops.
3117
3118 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
3119
3120         PR tree-optimization/50318
3121         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
3122         typo in use of mult_rhs1 and mult_rhs2.
3123
3124 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
3125
3126         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
3127         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
3128
3129 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
3130
3131         * config/arm/arm.md (push_multi): Emit predicates.
3132         (push_fp_multi): Likewise.
3133         * config/arm/arm.c (vfp_output_fstmd): Likewise.
3134
3135 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3136
3137         PR c++/33255 - Support -Wunused-local-typedefs warning
3138         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
3139         (pushdecl): Use the new record_locally_defined_typedef.
3140         (store_parm_decls): Allocate cfun->language.
3141         (finish_function): Use the new maybe_warn_unused_local_typedefs,
3142         and free cfun->language.
3143         (c_push_function_context): Allocate cfun->language here only if needed.
3144         (c_pop_function_context): Likewise, mark cfun->language
3145         for collection only when it should be done.
3146         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
3147         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
3148         maybe_record_local_typedef_use.
3149         * doc/invoke.texi: Update documentation for
3150         -Wunused-local-typedefs.
3151
3152 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
3153
3154         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
3155         (ix86_avoid_lea_for_add): Likewise.
3156         (ix86_avoid_lea_for_addr): Likewise.
3157         (ix86_split_lea_for_addr): Likewise.
3158
3159         * config/i386/i386.c (LEA_MAX_STALL): New.
3160         (increase_distance): Likewise.
3161         (insn_defines_reg): Likewise.
3162         (insn_uses_reg_mem): Likewise.
3163         (distance_non_agu_define_in_bb): Likewise.
3164         (distance_agu_use_in_bb): Likewise.
3165         (ix86_lea_outperforms): Likewise.
3166         (ix86_ok_to_clobber_flags): Likewise.
3167         (ix86_avoid_lea_for_add): Likewise.
3168         (ix86_avoid_lea_for_addr): Likewise.
3169         (ix86_split_lea_for_addr): Likewise.
3170         (distance_non_agu_define): Search in pred BBs added.
3171         (distance_agu_use): Search in succ BBs added.
3172         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
3173         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
3174         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
3175
3176         * config/i386/i386.md: Split added to transform non destructive
3177         add into move and add.
3178         (lea_1): transformed into insn_and_split to avoid AGU stalls.
3179         (lea<mode>_2): Likewise.
3180
3181 2011-09-08  Martin Jambor  <mjambor@suse.cz>
3182
3183         PR tree-optimization/50287
3184         * ipa-split.c (split_function): Do not create SSA names for
3185         non-gimple-registers.
3186
3187 2011-09-08  Richard Guenther  <rguenther@suse.de>
3188
3189         PR tree-optimization/19831
3190         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
3191         skip builtins with vdefs that do not really store something.
3192         (propagate_necessity): For calls to free that we can associate
3193         with an allocation function do not mark the freed pointer
3194         definition necessary.
3195         (eliminate_unnecessary_stmts): Remove a call to free if
3196         the associated call to an allocation function is not necessary.
3197
3198 2011-09-08  Richard Guenther  <rguenther@suse.de>
3199
3200         PR tree-optimization/19831
3201         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
3202         allocation functions as necessary.
3203
3204 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
3205
3206         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
3207         cut from ...
3208         (darwin_default_min_version): Amended to provide defaults
3209         for the cross directory case.
3210         (darwin_driver_init): call darwin_default_min_version unconditionally.
3211         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
3212         * config/darwin9.h: Likewise.
3213         * config/darwin10.h: Likewise.
3214         * config/rs6000/darwin7.h: Likewise.
3215
3216 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
3217
3218         PR target/50310
3219         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
3220         code early if TARGET_AVX.
3221         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
3222
3223 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
3224
3225         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
3226         duplicates.
3227
3228         PR target/50310
3229         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
3230         "mode" attribute computation.
3231
3232 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
3233
3234         * regrename.c (struct du_head): Make nregs signed.
3235         (closed_chains): Remove.
3236         (create_new_chain): Return the new chain.
3237         (chain_from_id): New static function.
3238         (dump_def_use_chain): Change argument to be an int, indicating
3239         the first ID to print.  All callers changed.
3240         (merge_overlapping_regs): Use chain_from_id.  Assert that
3241         chains don't conflict with themselves.
3242         (rename_chains): Take no argument.  Iterate over id_to_chain
3243         rather to find chains to rename.  Clear tick before the main loop.
3244         (struct incoming_reg_info): New struct.
3245         (struct bb_rename_info): New struct.
3246         (init_rename_info, set_incoming_from_chain, merge_chains): New
3247         static functions.
3248         (regrename_analyze): New static function, broken out of
3249         regrename_optimize.  Record and make use of open chain information
3250         at basic block boundaries, and merge chains where possible.
3251         (scan_rtx_reg): Make this_nregs signed.  Don't update
3252         closed_chains.
3253         (build_def_use): Return a bool to indicate success.  All callers
3254         changed.  Don't initialize global data here.
3255         (regrename_optimize): Move most code out of here into
3256         regrename_analyze.
3257         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
3258         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
3259         static inline functions.
3260         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
3261
3262         * bb-reorder.c (insert_section_boundary_note): Don't check
3263         optimize_function_for_speed_p.
3264         (gate_handle_partition_blocks): Do it here instead.
3265         (gate_handle_reorder_blocks): Move preliminary checks here ...
3266         (rest_of_handle_reorder_blocks): ... from here.
3267
3268 2011-09-07  Martin Jambor  <mjambor@suse.cz>
3269
3270         PR middle-end/50301
3271         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
3272         function index bounds.
3273         (perhaps_add_new_callers): Likewise.
3274
3275 2011-09-07  Martin Jambor  <mjambor@suse.cz>
3276
3277         PR tree-optimization/49911
3278         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
3279         enumerations to the corresponding plain integer type.
3280
3281 2011-09-07  Richard Guenther  <rguenther@suse.de>
3282
3283         PR tree-optimization/50319
3284         * tree-if-conv.c (set_bb_predicate): Assert we only set
3285         canonical predicates.
3286         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
3287         around canonical predicates.
3288         (predicate_bbs): Do not re-gimplify already canonical
3289         predicates.  Properly unshare them though.
3290         (find_phi_replacement_condition): Simplify.
3291
3292 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
3293
3294         PR target/49030
3295         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
3296         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
3297         reusing the old code from get_arm_condition_code.  Return ARM_NV
3298         for invalid comparison codes.
3299         (get_arm_condition_code): Redefine in terms of
3300         maybe_get_arm_condition_code.
3301         * config/arm/predicates.md (arm_comparison_operator): Use
3302         maybe_get_arm_condition_code.
3303
3304 2011-09-07  Richard Guenther  <rguenther@suse.de>
3305
3306         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
3307         Canonicalize negated predicates by swapping edges.
3308         (forward_propagate_into_cond): Likewise.
3309
3310 2011-09-07  Richard Guenther  <rguenther@suse.de>
3311
3312         PR tree-optimization/50213
3313         * tree-flow.h (simple_iv_increment_p): Declare.
3314         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
3315         POINTER_PLUS_EXPR.
3316         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
3317         not propagate simple IV counter increments.
3318
3319 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
3320             Iain Sandoe  <iains@gcc.gnu.org>
3321
3322         * config/rs6000/rs6000.c (compute_save_world_info): Test
3323         cfun->has_nonlocal_label to determine if the out-of-line save
3324         world call may be used.
3325
3326 2011-09-07  Nick Clifton  <nickc@redhat.com>
3327
3328         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
3329         label on the parallel part of the insn.
3330
3331 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
3332
3333         PR debug/50191
3334         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
3335         avoid_constant_pool_reference first instead of last.
3336
3337 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
3338
3339         * doc/configfiles.texi (Configuration Files): Update documentation
3340         about tm_p.h and remove FIXME comment.
3341
3342 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
3343
3344         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
3345         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
3346
3347 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
3348
3349         * config/darwin10.h Remove duplicate LIB_SPEC.
3350
3351 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
3352
3353         PR middle-end/44382
3354         * target.def (reassociation_width): New hook.
3355
3356         * doc/tm.texi.in (reassociation_width): Likewise.
3357
3358         * doc/tm.texi (reassociation_width): Likewise.
3359
3360         * doc/invoke.texi (tree-reassoc-width): New param documented.
3361
3362         * hooks.h (hook_int_uint_mode_1): New default hook.
3363
3364         * hooks.c (hook_int_uint_mode_1): Likewise.
3365
3366         * config/i386/i386.h (ix86_tune_indices): Add
3367         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
3368
3369         (TARGET_REASSOC_INT_TO_PARALLEL): New.
3370         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
3371
3372         * config/i386/i386.c (initial_ix86_tune_features): Add
3373         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
3374
3375         (ix86_reassociation_width): New function.
3376
3377         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
3378
3379         * tree-ssa-reassoc.c (get_required_cycles): New function.
3380         (get_reassociation_width): Likewise.
3381         (swap_ops_for_binary_stmt): Likewise.
3382         (rewrite_expr_tree_parallel): Likewise.
3383
3384         (rewrite_expr_tree): Refactored.  Part of code moved into
3385         swap_ops_for_binary_stmt.
3386
3387         (reassociate_bb): Now checks reassociation width to be used and
3388         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
3389
3390 2011-09-06  Richard Guenther  <rguenther@suse.de>
3391
3392         PR tree-optimization/47025
3393         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
3394         uses nothing.
3395         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
3396         BUILT_IN_FREE.
3397         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
3398         definitely points to.
3399         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3400         BUILT_IN_VA_START doesn't let its va_list argument escape.
3401         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
3402         not make any previous stores necessary.
3403
3404 2011-09-06  Martin Jambor  <mjambor@suse.cz>
3405
3406         * ipa-inline.h (struct inline_summary): Move versionable flag...
3407         * cgraph.h (struct cgraph_local_info): ...here
3408         * ipa-cp.c (determine_versionability): Use the new versionable flag.
3409         (determine_versionability): Likewise.
3410         (ipcp_versionable_function_p): Likewise.
3411         (ipcp_generate_summary): Likewise.
3412         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
3413         versionable flag.
3414         (compute_inline_parameters): Do not clear the versionable flag.
3415         (inline_read_section): Do not stream the versionable flag.
3416         (inline_write_summary): Likewise.
3417         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
3418         (input_overwrite_node): Likewise.
3419
3420 2011-09-06  Richard Guenther  <rguenther@suse.de>
3421
3422         PR tree-optimization/48149
3423         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
3424         (vn_valueize): Move earlier.
3425         (valueize_expr): Use vn_valueize.
3426         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
3427         operands.
3428         (simplify_unary_expression): Simplify.
3429
3430 2011-09-06  Richard Guenther  <rguenther@suse.de>
3431
3432         PR tree-optimization/48317
3433         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
3434         trailing array.
3435         (sizeof_vn_nary_op): New inline function.
3436         (vn_nary_op_lookup_pieces): Adjust.
3437         (vn_nary_op_insert_pieces): Likewise.
3438         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
3439         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
3440         any number of operands.
3441         (vn_nary_length_from_stmt): New function.
3442         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
3443         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
3444         sized temporary.
3445         (vn_nary_op_lookup): Likewise.
3446         (vn_nary_op_lookup_stmt): Likewise.
3447         (vn_nary_op_insert_into): Likewise.
3448         (vn_nary_op_insert_stmt): Likewise.
3449         (visit_use): Handle CONSTRUCTOR as nary.
3450         * tree-ssa-pre.c (phi_translate_1): Adjust.
3451         (create_expression_by_pieces): Likewise.
3452         (compute_avail): Likewise.
3453
3454 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
3455
3456          * config/arm/arm.c (arm_preferred_simd_mode): Check
3457         TARGET_NEON_VECTORIZE_DOUBLE instead of
3458         TARGET_NEON_VECTORIZE_QUAD.
3459         (arm_autovectorize_vector_sizes): Likewise.
3460         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
3461         mask of mvectorize-with-neon-double.  Add RejectNegative.
3462         (mvectorize-with-neon-double): New.
3463
3464 2011-09-06  Richard Guenther  <rguenther@suse.de>
3465
3466         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
3467
3468 2011-09-06  Tom de Vries  <tom@codesourcery.com>
3469
3470         * recog.c (asm_labels_ok): New function.
3471         (check_asm_operands): Use asm_labels_ok.
3472
3473 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
3474
3475         PR target/49606
3476         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
3477         (PMODE_INSN): New macro.
3478         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
3479         (mips_got_load, mips_expand_synci_loop): Likewise.
3480         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
3481         cprestore patterns.
3482         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
3483         copygp_mips16 patterns.
3484         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
3485         and use_cprestore patterns.
3486         (mips_override_options): Check for incompatible -mabi and -mlong
3487         combinations.
3488         * config/mips/mips.md (unspec_got<mode>): Rename to...
3489         (unspec_got_<mode>): ...this.
3490         (copygp_mips16): Use the Pmode iterator.
3491         (potential_cprestore, cprestore, use_cprestore): Likewise.
3492         (clear_cache, indirect_jump): Use PMODE_INSN.
3493         (indirect_jump<mode>): Rename to...
3494         (indirect_jump_<mode>): ...this.
3495         (tablejump): Use PMODE_INSN.
3496         (tablejump<mode>): Rename to...
3497         (tablejump_<mode>): ...this.
3498         (exception_receiver): Handle restore_gp_si and restore_gp_di.
3499         (restore_gp): Use the Pmode iterator.
3500         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
3501         PMODE_INSN.
3502
3503 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
3504
3505         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
3506         Fix the type of the BIT_AND_EXPR.
3507
3508 2011-09-05  David S. Miller  <davem@davemloft.net>
3509
3510         * config.host: Add driver-sparc.o and sparc/x-sparc on
3511         native sparc*-*-linux* builds.
3512         * config/sparc/driver-sparc.c: Correct Linux strings.
3513         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
3514         * config/sparc/linux64.h: Likewise.
3515         * doc/invoke.texi: Document that Linux also supports
3516         -mcpu=native and -mtune=native on sparc.
3517
3518         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
3519         PROCESSOR_NIAGARA4): New.
3520         * config/sparc/sparc.opt: Handle new processor types.
3521         * config/sparc/sparc.md: Add to "cpu" attribute.
3522         * config/sparc/sparc.h (TARGET_CPU_niagara3,
3523         TARGET_CPU_niagara4): New, treat as niagara2.
3524         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
3525         * config/sparc/sol2.h: Likewise.
3526         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
3527         * config/sparc/sparc.c (sparc_option_override): Add
3528         niagara3 and niagara4 handling.
3529         (sparc32_initialize_trampoline): Likewise.
3530         (sparc64_initialize_trampoline): Likewise.
3531         (sparc_use_sched_lookahead): Likewise.
3532         (sparc_issue_rate): Likewise.
3533         (sparc_register_move_cost): Likewise.
3534         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
3535         and niagara4 as appropriate.
3536         * doc/invoke.texi: Document new processor types.
3537         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
3538         and --with-tune options.
3539
3540         * config/sparc/sol2-64.h: Move ...
3541         * config/sparc/default-64.h: ... to here.  Update comment.
3542         * config.gcc: Update Solaris sparc to use default-64.h, also
3543         prefix this header into the list on sparc64-*-linux.
3544         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
3545         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
3546         to MASK_HARD_QUAD.
3547
3548 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
3549
3550         PR target/50289
3551         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
3552         that contain global register variable.
3553
3554 2011-09-05  Richard Guenther  <rguenther@suse.de>
3555
3556         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
3557
3558 2011-09-05  Richard Guenther  <rguenther@suse.de>
3559
3560         * stor-layout.c (layout_type): Use size_binop for array size
3561         calculations.
3562
3563 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
3564
3565         * config/avr/avr.h (progmem_section): Remove Declaration.
3566         * config/avr/avr.c (progmem_section): Make static and rename to
3567         progmem_swtable_section.
3568         (avr_output_addr_vec_elt): No need to switch sections.
3569         (avr_asm_init_sections): Use output_section_asm_op as section
3570         callback for progmem_swtable_section.
3571         (avr_output_progmem_section_asm_op): Remove Function.
3572         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
3573         (avr_asm_function_rodata_section): New static Function.
3574         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
3575         alignment 2**1 for jump tables.
3576
3577 2011-09-04  Jan Hubicka  <jh@suse.cz>
3578
3579         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
3580         parameter is SSA name.
3581
3582 2011-09-04  Richard Guenther  <rguenther@suse.de>
3583
3584         Revert
3585         2011-08-31  Richard Guenther  <rguenther@suse.de>
3586
3587         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
3588         special-casing.
3589
3590 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
3591
3592         PR debug/49901
3593         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
3594
3595 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
3596             Ira Rosen  <ira.rosen@linaro.org>
3597
3598         PR tree-optimization/50208
3599         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
3600         argument.  Check that def_stmt is inside the loop.
3601         (vect_recog_widen_mult_pattern): Update calls to
3602         vect_handle_widen_mult_by_cons.
3603         (vect_operation_fits_smaller_type): Check that def_stmt is
3604         inside the loop.
3605
3606 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
3607
3608         * tree-vectorizer.c (vect_print_dump_info): Print line
3609         number when dumping to a file.
3610         (vectorize_loops): Add new messages to dump file.
3611
3612 2011-09-03  Martin Jambor  <mjambor@suse.cz>
3613
3614         * ipa-prop.h (ipa_jump_func_t): New typedef.
3615         (struct ipa_edge_args): Removed field argument_count, field
3616         jump_functions turned into a vector.
3617         (ipa_set_cs_argument_count): Removed.
3618         (ipa_get_cs_argument_count): Updated to work on vectors.
3619         (ipa_get_ith_jump_func): Likewise.
3620         * ipa-prop.c (ipa_count_arguments): Removed.
3621         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
3622         jump functions.  Update caller.
3623         (compute_pass_through_member_ptrs): Likewise.
3624         (compute_cst_member_ptr_arguments): Likewise.
3625         (ipa_compute_jump_functions_for_edge): Get number of arguments from
3626         the statement, allocate vector.
3627         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
3628         (duplicate_ipa_jump_func_array): Removed.
3629         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
3630         (ipa_read_node_info): Allocate vector.
3631
3632 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3633
3634         PR middle-end/50232
3635         * config/pa/pa.md (return): Define "return" insn pattern.
3636         (epilogue): Use it when no epilogue is needed.
3637         * config/pa/pa.c (pa_can_use_return_insn): New function.
3638         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
3639
3640 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
3641
3642         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
3643         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
3644         Force at least BITS_PER_UNIT alignment on the new variable.
3645
3646 2011-09-02  Gary Funck <gary@intrepid.com>
3647
3648         * opts.c (print_specific_help): Fix off-by-one compare in
3649         assertion check.
3650         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3651         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
3652         Increase by +5 to allow for more languages.
3653         * optc-gen.awk: Generate #if that ensures that the number of
3654         languages is within the implementation-defined limit.
3655
3656 2011-09-02  Michael Matz  <matz@suse.de>
3657
3658         PR middle-end/50260
3659         * ipa-split.c (split_function): Call add_referenced_var.
3660
3661         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
3662         (cond_if_else_store_replacement_1): Ditto.
3663         * tree-ssa-pre.c (get_representative_for): Ditto.
3664         (create_expression_by_pieces): Ditto.
3665         (insert_into_preds_of_block): Ditto.
3666         * tree-sra.c (create_access_replacement): Ditto.
3667         (get_replaced_param_substitute): Ditto.
3668
3669 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
3670
3671         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
3672         automata_options.
3673         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
3674         (l1w, s1w, l2w, s2w): Define in the main automaton.
3675         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
3676         units.
3677         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
3678         (c6x_unit_names): Add the new units.
3679         (c6x_unit_codes): New static array.
3680         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
3681         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
3682         UNIT_QID_SIDE_OFFSET): New macros.
3683         (RESERVATION_S2): Adjust value.
3684         (c6x_option_override): Compute c6x_unit_codes.
3685         (assign_reservations): Take the unit_mask of the last instruction
3686         into account.  Detect floating point reservations by looking for
3687         the new units.  Don't assign reservations if the field is already
3688         nonzero.
3689         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
3690         (init_sched_state): Initialize it.
3691         (c6x_clear_sched_context): Free it.
3692         (insn_set_clock): Clear reservation.
3693         (prev_cycle_state): New static variable.
3694         (c6x_init_sched_context): Save it.
3695         (c6x_sched_init): Allocate space for it and clear it.
3696         (c6x_sched_dfa_pre_cycle_insn): New static function.
3697         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
3698         (c6x_variable_issue): Only record units in the unit_mask that
3699         were not set at the start of the cycle.
3700         (c6x_variable_issue): Compute and store the unit_mask from the
3701         current state.
3702         (reorg_split_calls): Ensure the new information remains correct.
3703         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
3704         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
3705         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
3706         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
3707         Add special reservations.
3708         * config/c6x/c6x-sched.md: Regenerate.
3709
3710 2011-09-02  Martin Jambor  <mjambor@suse.cz>
3711
3712         * ipa-prop.h (ipa_node_params): Removed fields
3713         called_with_var_arguments and node_versionable.
3714         (ipa_set_called_with_variable_arg): Removed.
3715         (ipa_is_called_with_var_arguments): Likewise.
3716         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
3717         (determine_versionability): Do not check for type attributes and va
3718         builtins.  Record versionability into inline summary.
3719         (initialize_node_lattices): Do not check
3720         ipa_is_called_with_var_arguments.
3721         (propagate_constants_accross_call): Likewise, ignore arguments we do
3722         not have PARM_DECLs for, set variable flag for parameters that were
3723         not passed a value.
3724         (create_specialized_node): Dump info that we cannot change signature.
3725         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
3726         number of arguments.
3727         (ipa_make_edge_direct_to_target): Likewise.
3728         (ipa_update_after_lto_read): Likewise.
3729         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
3730         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
3731         they were remapped.
3732
3733 2011-09-02  Richard Guenther  <rguenther@suse.de>
3734
3735         PR tree-optimization/27460
3736         PR middle-end/29269
3737         * doc/md.texi (vcond): Document.
3738         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
3739         optab with two modes.
3740         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
3741         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
3742         (vcond_optab): Adjust.
3743         (vcondu_optab): Likewise.
3744         (expand_vec_cond_expr_p): Adjust prototype.
3745         * optabs.c (get_vcond_icode): Adjust.
3746         (expand_vec_cond_expr_p): Likewise.
3747         (expand_vec_cond_expr): Likewise.
3748         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
3749         vector type.
3750         (vectorizable_condition): Allow differing types for comparison
3751         and result.
3752         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
3753         for the comparison.
3754         * config/i386/sse.md (vcond<mode>): Split to
3755         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
3756         vcond<V_128:mode><VI124_128:mode> and
3757         vcondu<V_128:mode><VI124_128:mode>.
3758         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
3759         (vconduv2di): Likewise.
3760         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
3761         (vcondu<mode>): Likewise.
3762         * config/ia64/vect.md (vcond<mode>): Likewise.
3763         (vcondu<mode>): Likewise.
3764         (vcondv2sf): Likewise.
3765         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
3766         * config/rs6000/paired.md (vcondv2sf): Likewise.
3767         * config/rs6000/vector.md (vcond<mode>): Likewise.
3768         (vcondu<mode>): Likewise.
3769         * config/spu/spu.md (vcond<mode>): Likewise.
3770         (vcondu<mode>): Likewise.
3771
3772 2011-09-02  Richard Guenther  <rguenther@suse.de>
3773
3774         * pretty-print.h (pp_unsigned_wide_integer): New.
3775         * tree-pretty-print.c (dump_generic_node): Print unsigned
3776         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
3777
3778 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
3779
3780         PR target/49987
3781         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
3782         valid CONST_VECTOR operands.
3783         (rs6000_expand_vector_init): Likewise.
3784
3785 2011-09-02  Martin Jambor  <mjambor@suse.cz>
3786
3787         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
3788         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
3789         BINFO_VTABLE.  Parameter delta removed, all callers updated.
3790         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
3791         BINFO_VTABLE.
3792         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
3793         all calls.
3794         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
3795         handling of thunk_delta.
3796         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
3797         (devirtualization_time_bonus): Do not handle thunk deltas.
3798         (ipcp_discover_new_direct_edges): Likewise.
3799         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3800         (try_make_edge_direct_simple_call): Likewise.
3801         (try_make_edge_direct_virtual_call): Likewise.
3802         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
3803         parameter set as unused.
3804         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
3805         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
3806         parameter set as unused.
3807         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
3808         (input_edge_opt_summary): Likewise.
3809         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
3810         BINFO_VIRTUALS at all.
3811         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
3812
3813 2011-09-02  Richard Guenther  <rguenther@suse.de>
3814
3815         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
3816         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
3817
3818 2011-08-31  Richard Guenther  <rguenther@suse.de>
3819
3820         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
3821         handling here, from ...
3822         (expand_expr_real_1): ... here.
3823         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
3824         and VEC_COND_EXPR.
3825         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
3826         a GIMPLE_TERNARY_RHS.
3827         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
3828         and VEC_COND_EXPR here ...
3829         (verify_gimple_assign_single): ... not here.
3830         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
3831         * tree-object-size.c (cond_expr_object_size): Adjust.
3832         (collect_object_sizes_for): Likewise.
3833         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
3834         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
3835         (ssa_forward_propagate_and_combine): Adjust.
3836         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
3837         as ternary.
3838         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
3839         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
3840         * tree-vect-stmt.c (vectorizable_condition): Likewise.
3841         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
3842         (extract_range_from_assignment): Likewise.
3843
3844 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3845
3846         * config/i386/i386.md: Use (match_test ...) for attribute tests.
3847         * config/i386/mmx.md: Likewise.
3848         * config/i386/sse.md: Likewise.
3849         * config/i386/predicates.md (call_insn_operand): Use
3850         (not (match_test "...")) instead of (match_test "!...")
3851         * config/i386/constraints.md (w): Likewise.
3852
3853 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3854
3855         * doc/md.texi: Describe the use of match_tests in attribute tests.
3856         * rtl.def (MATCH_TEST): Update commentary.
3857         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
3858         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
3859
3860 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3861
3862         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
3863         (attr_string): Use copy_md_ptr_loc.
3864
3865 2011-08-31  Martin Jambor  <mjambor@suse.cz>
3866
3867         PR middle-end/49886
3868         * ipa-inline-analysis.c (compute_inline_parameters): Set
3869         can_change_signature of noes with typde attributes.
3870         * ipa-split.c (split_function): Do not skip any arguments if
3871         can_change_signature is set.
3872
3873 2011-08-31  Martin Jambor  <mjambor@suse.cz>
3874
3875         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
3876         check removed.
3877
3878 2011-08-31  Richard Guenther  <rguenther@suse.de>
3879
3880         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
3881         special-casing.
3882
3883 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
3884
3885         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
3886
3887 2011-08-31  Tom de Vries  <tom@codesourcery.com>
3888
3889         PR middle-end/43513
3890         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
3891         * tree-ssa-ccp.c (params.h): Include.
3892         (fold_builtin_alloca_for_var): New function.
3893         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
3894
3895 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
3896
3897         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3898         Handle FMA option.
3899
3900 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
3901
3902         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
3903         b3 and b4 unsigned.
3904
3905 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
3906
3907         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
3908         when code is SET.
3909
3910 2011-08-30  Richard Guenther  <rguenther@suse.de>
3911
3912         PR middle-end/48571
3913         * gimple.h (maybe_fold_offset_to_address): Remove.
3914         (maybe_fold_offset_to_reference): Likewise.
3915         (maybe_fold_stmt_addition): Likewise.
3916         (may_propagate_address_into_dereference): Likewise.
3917         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
3918         array references.
3919         * gimple-fold.c (canonicalize_constructor_val): Likewise.
3920         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
3921         addresses instead.
3922         (may_propagate_address_into_dereference): Remove.
3923         (maybe_fold_offset_to_array_ref): Likewise.
3924         (maybe_fold_offset_to_reference): Likewise.
3925         (maybe_fold_offset_to_address): Likewise.
3926         (maybe_fold_stmt_addition): Likewise.
3927         (fold_gimple_assign): Do not reconstruct array references but
3928         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
3929         MEM_REF addresses.
3930         (gimple_fold_stmt_to_constant_1): Likewise.
3931         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3932         * gimplify.c (gimplify_conversion): Likewise.
3933         (gimplify_expr): Likewise.
3934
3935 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
3936
3937         * config/i386/fmaintrin.h: New.
3938         * config.gcc: Add fmaintrin.h.
3939         * config/i386/i386.c
3940         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
3941         <IX86_BUILTIN_VFMADDSD3>: Likewise.
3942         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
3943         (*fmai_fmadd_<mode>): Likewise.
3944         (*fmai_fmsub_<mode>): Likewise.
3945         (*fmai_fnmadd_<mode>): Likewise.
3946         (*fmai_fnmsub_<mode>): Likewise.
3947         * config/i386/immintrin.h: Add fmaintrin.h.
3948
3949 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
3950
3951         * genautomata.c (NO_COMB_OPTION): New macro.
3952         (no_comb_flag): New static variable.
3953         (gen_automata_option): Handle NO_COMB_OPTION.
3954         (comb_vect_p): False if no_comb_flag.
3955         (add_vect): Move computation of min/max values.  Return early if
3956         no_comb_flag.
3957         * doc/md.texi (automata_option): Document no-comb-vect.
3958
3959         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
3960         "__x86.get_pc_thunk".
3961
3962         * bb-reorder.c (insert_section_boundary_note): Only do it if
3963         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
3964
3965 2011-08-30  Christian Bruel  <christian.bruel@st.com>
3966
3967         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
3968         flag_profile_use.
3969
3970 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3971
3972         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
3973         to off.  Document switch.
3974         * doc/invoke.texi (-msave-toc-indirect): Ditto.
3975
3976 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
3977
3978         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
3979         conditionals and comments inside macro arguments.
3980
3981 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
3982             Richard Guenther  <rguenther@suse.de>
3983
3984         * tree.h (constant_boolean_node): Adjust prototype.
3985         * fold-const.c (fold_convert_loc): Move aggregate conversion
3986         leeway down.
3987         (constant_boolean_node): Make value parameter boolean, add
3988         vector type handling.
3989         (fold_unary_loc): Use constant_boolean_node.
3990         (fold_binary_loc): Preserve types properly when folding
3991         COMPLEX_EXPR <__real x, __imag x>.
3992         * gimplify.c (gimplify_expr): Handle vector comparison.
3993         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
3994         comparison.
3995         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
3996         comparisons.
3997
3998 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
3999
4000         PR middle-end/48722
4001         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
4002         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
4003         (verify_rtl_sharing): Likewise and verify_rtx_sharing
4004         in there too.
4005         (unshare_all_rtl_in_chain): For CALL_INSNs
4006         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
4007
4008 2011-08-29  Richard Guenther  <rguenther@suse.de>
4009
4010         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
4011         on the built ADDR_EXPR.
4012
4013 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4014
4015         PR debug/50215
4016         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
4017         before adding ENTRY_VALUE to val->locs.
4018
4019 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
4020
4021         PR bootstrap/50218
4022         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
4023         comp.
4024
4025 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
4026
4027         * doc/rtl.texi (simple_return): Document.
4028         (parallel, PATTERN): Here too.
4029         * doc/md.texi (return): Mention it's allowed to expand to simple_return
4030         in some cases.
4031         (simple_return): Document standard pattern.
4032         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
4033         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
4034         * reorg.c (function_return_label, function_simple_return_label):
4035         New static variables, replacing...
4036         (end_of_function_label): ... this.
4037         (simplejump_or_return_p): New static function.
4038         (optimize_skip, steal_delay_list_from_fallthrough,
4039         fill_slots_from_thread): Use it.
4040         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
4041         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
4042         (find_end_label): Take a new arg which is one of the two return
4043         rtxs.  Depending on which, set either function_return_label or
4044         function_simple_return_label.  All callers changed.
4045         (make_return_insns): Make both kinds.
4046         (dbr_schedule): Adjust for two kinds of end labels.
4047         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
4048         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
4049         (gen_expand, gen_split): Use ANY_RETURN_P.
4050         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
4051         * rtl.def (SIMPLE_RETURN): New code.
4052         * ifcvt.c (find_if_case_1): Be more careful about
4053         redirecting jumps to the EXIT_BLOCK.
4054         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
4055         returnjump_p_1): Handle SIMPLE_RETURNs.
4056         * print-rtl.c (print_rtx): Likewise.
4057         * rtl.c (copy_rtx): Likewise.
4058         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
4059         * combine.c (simplify_set): Likewise.
4060         * resource.c (find_dead_or_set_registers, mark_set_resources):
4061         Likewise.
4062         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
4063         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
4064         (init_emit_regs): Initialize simple_return_rtx.
4065         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
4066         force_nonfallthru_and_redirect.
4067         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
4068         (GR_SIMPLE_RETURN): New enum value.
4069         (simple_return_rtx): New macro.
4070         * basic-block.h (force_nonfallthru_and_redirect): Adjust
4071         declaration.
4072         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
4073         argument.  All callers changed.  Be careful about what kinds of
4074         returnjumps to generate.
4075         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
4076         ix86_pad_short_function): Likewise.
4077         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
4078         of return.
4079         * config/mips/mips.md (any_return): New code_iterator.
4080         (optab): Add cases for return and simple_return.
4081         (return): Expand to a simple_return.
4082         (simple_return): New pattern.
4083         (*<optab>, *<optab>_internal for any_return): New patterns.
4084         (return_internal): Remove.
4085         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
4086         a simple_return_internal.
4087
4088 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4089
4090         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
4091         (vec_extract_lo_<mode>): Prevent both operands in memory.
4092         (vec_extract_lo_v16hi): Ditto.
4093         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
4094
4095 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4096
4097         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
4098         (*sse2_mulv4si3): Ditto.
4099         (mulv2di3): Ditto.
4100         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
4101         notes to REG_EQUAL.
4102
4103 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4104
4105         PR target/50202
4106         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
4107         when all outputs are unused.
4108         (sse4_2_pcmpistr): Ditto.
4109
4110 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
4111
4112         * config/i386/i386.md (round<mode>2): New expander.
4113         * config/i386/i386.c (enum ix86_builtins): Add
4114         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
4115         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
4116         descriptions.
4117         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
4118         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
4119
4120 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
4121
4122         PR middle-end/50083
4123         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
4124         only when TARGET_C99_FUNCTIONS.
4125         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
4126         <BUILT_IN_RINT{,F,L}>: Ditto.
4127
4128 2011-08-26  Michael Matz  <matz@suse.de>
4129             Jakub Jelinek  <jakub@redhat.com>
4130
4131         PR lto/50165
4132         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
4133         don't call strlen twice, use memcpy.
4134
4135 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
4136
4137         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
4138         * config/i386/bmiintrin.h: Likewise.
4139         * config/i386/lzcntintrin.h: Likewise.
4140
4141         * config/i386/immintrin.h: Include <lzcntintrin.h>,
4142         <bmiintrin.h> and <bmi2intrin.h>.
4143
4144 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4145
4146         PR target/50166
4147         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
4148         * configure: Regenerate.
4149
4150 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
4151
4152         PR c/50179
4153         * c-typeck.c (c_process_expr_stmt): Skip over nops and
4154         call mark_exp_read even if exprv is ADDR_EXPR.
4155
4156 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
4157
4158         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
4159         to df_set_dead_notes_for_mw.
4160
4161 2011-08-26  Richard Guenther  <rguenther@suse.de>
4162
4163         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
4164
4165 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
4166             Tom de Vries  <tom@codesourcery.com>
4167
4168         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
4169         (struct ivopts_data): Add loop_single_exit_p field.
4170         (niter_for_exit): Change parameter desc_p into return value.  Return
4171         desc if desc->may_be_zero.  Free desc if unused.
4172         (niter_for_single_dom_exit): Change return type.
4173         (find_induction_variables): Handle changed return type of
4174         niter_for_single_dom_exit.  Dump may_be_zero.
4175         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
4176         (set_use_iv_cost): Add and handle comp parameter.
4177         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
4178         comp argument to set_use_iv_cost.
4179         (strip_wrap_conserving_type_conversions, expr_equal_p)
4180         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
4181         (may_eliminate_iv): Add comp parameter.  Handle new return type of
4182         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
4183         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
4184         and may_eliminate_iv.
4185         (rewrite_use_compare): Move call to iv_elimination_compare to ...
4186         (may_eliminate_iv): Here.
4187         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
4188
4189 2011-08-26  Tom de Vries  <tom@codesourcery.com>
4190
4191         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
4192         accessing TREE_TYPE.
4193
4194 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
4195
4196         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
4197         (*ior_scc_scc_cmp): Likewise
4198         (*and_scc_scc): Likewise.
4199         (*and_scc_scc_cmp): Likewise.
4200         (*and_scc_scc_nodom): Likewise.
4201         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
4202
4203 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
4204
4205         * rtlanal.c (nonzero_bits1): Handle CLRSB.
4206
4207 2011-08-26  Richard Guenther  <rguenther@suse.de>
4208
4209         * expr.c (string_constant): Handle &MEM_REF.
4210
4211 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
4212
4213         * config/arm/arm.c (struct four_ints): New type.
4214         (count_insns_for_constant): Delete function.
4215         (find_best_start): Delete function.
4216         (optimal_immediate_sequence): New function.
4217         (optimal_immediate_sequence_1): New function.
4218         (arm_gen_constant): Move constant splitting code to
4219         optimal_immediate_sequence.
4220         Rewrite constant negation/invertion code.
4221
4222 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
4223
4224         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
4225         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
4226         Remove prototype. Remove static function type.
4227         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
4228         Add arch attribute.
4229         * config/arm/constraints.md (Pj, PJ): New constraints.
4230
4231 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4232
4233         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
4234         ("cortex_a9_multiply_long"): New and use above.  Handle all
4235         long multiply cases.
4236         ("cortex_a9_multiply"): Handle smmul and smmulr.
4237         ("cortex_a9_mac"): Handle smmla.
4238
4239 2011-08-25  Richard Henderson  <rth@redhat.com>
4240
4241         PR 50132
4242         PR 49864
4243         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
4244         non-constant stack adjutment.
4245         * expr.c (find_args_size_adjust): Break out from ...
4246         (fixup_args_size_notes): ... here.
4247         * rtl.h (find_args_size_adjust): Declare.
4248
4249 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
4250
4251         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
4252         sse4 and sse4_noavx.
4253         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
4254         (*pushdf_rex64): Change Y2 register constraint to x.
4255         (*movdf_internal_rex64): Ditto.
4256         (*zero_extendsidi2_rex64): Ditto.
4257         (*movdi_internal): Change Y2 register constraint to x
4258         and update "isa" attribute.
4259         (*pushdf): Ditto.
4260         (*movdf internal): Ditto.
4261         (zero_extendsidi2_1): Ditto.
4262         (*truncdfdf_mixed): Ditto.
4263         (*truncxfdf2_mixed): Ditto.
4264         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
4265         register constraint to x.
4266         (*movv2sf_internal_rex64): Ditto.
4267         (*mov<mode>_internal): Change Y2 register constraint to x
4268         and add "isa" attribute.
4269         (*movv2sf_internal): Ditto.
4270         (*vec_extractv2si_1): Ditto.
4271         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
4272         constraints to x and update "isa" attribute.
4273         (*vec_interleave_highv2df): Change Y3 registerconstraint
4274         to x and update "isa" attribute.
4275         (*vec_interleave_lowv2df): Ditto.
4276         (*vec_concatv2df): Change Y2 register constraint to x and
4277         update "isa" attribute.
4278         (sse2_loadld): Ditto.
4279         (*vec_extractv2di_1): Ditto.
4280         (*vec_dupv4si): Ditto.
4281         (*vec_dupv2di): Ditto.
4282         (*vec_concatv4si): Ditto.
4283         (vec_concatv2di): Ditto.
4284         * config/i386/constraints.md (Y2): Remove.
4285         (Y3): Ditto.
4286         (Y4): Ditto.
4287
4288 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4289
4290         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
4291         dump_def_use_chain): Don't declare.
4292         (mark_conflict, create_new_chain): Move before users.
4293         (regrename_optimize): Move to near end of file.
4294
4295 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
4296
4297         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
4298         (secondary_input_reload_class): Remove Prototype.
4299         * config/avr/avr.c (byte_immediate_operand): Remove Function.
4300         * config/avr/avr.md (setmemhi): Use u8_operand.
4301         (strlenhi): Use const0_rtx for comparison.
4302         * config/avr/avr.h (avr_reg_order): Remove Declaration.
4303
4304 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
4305
4306         * config/avr/avr.c (reg_class_tab): Make local to
4307         avr_regno_reg_class.  Return smallest register class available.
4308
4309 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
4310
4311         * config/avr/avr.c (STR_PREFIX_P): New Define.
4312         (avr_asm_declare_function_name): Use it.
4313         (avr_asm_named_section): Use it.
4314         (avr_section_type_flags): Use it.
4315
4316 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4317
4318         * doc/md.texi (automata_option): Document collapse-ndfa.
4319         * genautomata.c (COLLAPSE_OPTION): New macro.
4320         (collapse_flag): New static variable.
4321         (struct description): New member normal_decls_num.
4322         (struct automaton): New members advance_ainsn and collapse_ainsn.
4323         (gen_automata_option): Check for COLLAPSE_OPTION.
4324         (collapse_ndfa_insn_decl): New static variable.
4325         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
4326         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
4327         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
4328         necessary.  Use normal_decls_num rather than decls_num, remove
4329         test for special decls.
4330         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
4331         (make_automaton); Likewise.  Use the new advance_cycle_insn member
4332         of struct automaton.
4333         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
4334         is set.
4335         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
4336         transition.  Create the necessary transitions for it.
4337         (create_ainsns): Return void.  Take an automaton_t argument, and
4338         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
4339         callers changed.
4340         (COLLAPSE_NDFA_VALUE_NAME): New macro.
4341         (output_tables): Output code to define it.
4342         (output_internal_insn_code_evaluation): Output code to accept
4343         const0_rtx as collapse-ndfa transition.
4344         (output_default_latencies, output_print_reservation_func,
4345         output_print_description): Reorganize loops to use normal_decls_num
4346         as loop bound; remove special case for advance_cycle_insn_decl.
4347         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
4348         (check_automata_insn_issues): Check for collapse_ainsn.
4349         (expand_automate): Allocate sufficient space.  Initialize
4350         normal_decls_num.
4351
4352 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
4353
4354         * config/avr/avr.md: Fix indentation from r177991.
4355
4356 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4357
4358         * regrename.c (struct du_head): Remove member terminated.
4359         (create_new_chain): Don't initialize it.
4360         (scan_rtx_reg): Don't set or test it, test the open_chains_set
4361         bitmap instead.
4362         (tick, this_tick): New global variables, moved out of
4363         regrename_optimize.
4364         (current_id, open_chains, closed_chains, open_chains_set,
4365         live_in_chains, live_hard_regs): Reorder declarations.
4366         (dump_def_use_chain): Move function earlier in the file.
4367         (rename_chains): New static function, broken out of
4368         regrename_optimize.
4369         (regrename_optimize): Use it.  Remove #if 0'ed code.
4370
4371 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4372
4373         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
4374
4375 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
4376
4377         PR target/50172
4378         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
4379
4380 2011-08-24  Richard Guenther  <rguenther@suse.de>
4381
4382         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
4383         ref in the basic-block case.  Move stripping array-refs
4384         to the place we create an access-function for it.  Remove
4385         bogus stripping down a MEM_REF to its base.
4386
4387 2011-08-24  Richard Guenther  <rguenther@suse.de>
4388
4389         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
4390         with -fno-strict-overflow.
4391
4392 2011-08-24  Richard Guenther  <rguenther@suse.de>
4393
4394         * tree-vectorizer.c (vect_print_dump_info): Avoid the
4395         file and location clutter when dumping to dump files.
4396
4397 2011-08-24  Simon Baldwin  <simonb@google.com>
4398
4399         * gengtype-state.c (write_state): Remove timestamped header line.
4400
4401 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
4402
4403         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
4404         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
4405         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
4406         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
4407         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
4408         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
4409         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
4410         rules.
4411         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
4412
4413 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
4414
4415         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
4416
4417 2011-08-24  Richard Guenther  <rguenther@suse.de>
4418
4419         PR tree-optimization/50067
4420         * tree-data-ref.c (dr_analyze_indices): Do not add an access
4421         function for a MEM_REF base that has no evolution in the loop
4422         nest or that is not analyzable.
4423
4424 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
4425
4426         * ira.c (ira_init_register_move_cost): Check small subclasses
4427         through ira_reg_class_max_nregs and ira_available_class_regs.
4428
4429 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
4430
4431         * config/i386/constraints.md (Yp): New register constraint.
4432         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
4433         Yp register constraint.
4434         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
4435         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
4436         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
4437
4438 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4439
4440         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
4441
4442 2011-08-23  Mark Heffernan  <meheff@google.com>
4443
4444         PR middle-end/38509
4445         * common.opt (Wfree-nonheap-object): New option.
4446         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
4447         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
4448         to warning.
4449         (expand_builtin): Make warning conditional.
4450
4451 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
4452
4453         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
4454         (length_immediate): Handle imulx, ishiftx and rotatex.
4455         (imm_disp): Ditto.
4456         (isa): Add bmi2.
4457         (enabled): Handle bmi2.
4458         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
4459         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
4460         (*bmi2_umulditi3_1): New insn pattern.
4461         (*bmi2_umulsidi3_1): Ditto.
4462         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
4463         (*bmi2_ashl<mode>3_1): New insn pattern.
4464         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
4465         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
4466         (*bmi2_ashlsi3_1_zext): New insn pattern.
4467         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
4468         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
4469         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
4470         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
4471         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
4472         flags dependency.
4473         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
4474         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
4475         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
4476         flags dependency.
4477         (*bmi2_rorx<mode>3_1): New insn pattern.
4478         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
4479         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
4480         (*rotatert<mode>3_1 splitter): Ditto.
4481         (*bmi2_rorxsi3_1_zext): New insn pattern.
4482         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
4483         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
4484         (*rotatertsi3_1_zext splitter): Ditto.
4485
4486 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4487
4488         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
4489         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
4490         (ix86_handle_option): Handle OPT_mbmi2 case.
4491         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
4492         (x86_64-*-*): Likewise.
4493         * config/i386/bmi2intrin.h: New file.
4494         * config/i386/cpuid.h (bit_BMI2): New.
4495         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4496         BMI2 feature.
4497         * config/i386/i386-c.c (ix86_target_macros_internal):
4498         Conditionally define __BMI2__.
4499         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
4500         Handle BMI2 option.
4501         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
4502         (print_reg): New code.
4503         (ix86_print_operand): Likewise.
4504         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
4505         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
4506         IX86_BUILTIN_PEXT64.
4507         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
4508         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
4509         IX86_BUILTIN_PEXT64.
4510         * config/i386/i386.h (TARGET_BMI2): New.
4511         * config/i386/i386.md (UNSPEC_PDEP): New.
4512         (UNSPEC_PEXT): Likewise.
4513         (*bmi2_bzhi_<mode>3): Likewise.
4514         (*bmi2_pdep_<mode>3): Likewise.
4515         (*bmi2_pext_<mode>3): Likewise.
4516         * config/i386/i386.opt (mbmi2): New.
4517         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
4518         is defined.
4519         * doc/extend.texi: Document BMI2 built-in functions.
4520         * doc/invoke.texi: Document -mbmi2.
4521
4522 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
4523
4524         PR middle-end/50161
4525         * simplify-rtx.c (simplify_const_unary_operation): If
4526         op is CONST_INT, don't look at op_mode, but use instead mode.
4527         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
4528         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
4529         operation and TRUNCATE/ZERO_EXTEND if needed.
4530         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
4531         Document that operand mode must be same as operation mode,
4532         or VOIDmode.
4533         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
4534         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
4535         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
4536         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
4537         use the mode of operand for the operation and add truncate
4538         or zero_extend around if needed.
4539         * config/c6x/c6x.md (ctzdi2): Likewise.
4540         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
4541
4542 2011-08-12  Michael Matz  <matz@suse.de>
4543
4544         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
4545         (gimple_expand_cfg): Merge alignment info for coalesced pointer
4546         SSA names.
4547
4548 2011-08-23  Richard Guenther  <rguenther@suse.de>
4549
4550         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
4551         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
4552         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
4553         from ...
4554         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
4555         (mem_refs_may_alias_p): Adjust.
4556         * tree-data-ref.h (dr_may_alias_p): Adjust.
4557         * tree-data-ref.c: Include tree-affine.h.
4558         (dr_analyze_indices): Do nothing for the non-loop case.
4559         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
4560         more cases in the non-loop case.
4561         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
4562         calls to dr_may_alias_p.
4563         (write_alias_graph_to_ascii_ecc): Likewise.
4564         (write_alias_graph_to_ascii_dot): Likewise.
4565         (build_alias_set_optimal_p): Likewise.
4566
4567 2011-08-23  Richard Guenther  <rguenther@suse.de>
4568
4569         PR tree-optimization/50162
4570         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
4571
4572 2011-08-23  Richard Guenther  <rguenther@suse.de>
4573
4574         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
4575         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
4576         (create_data_ref): Also dump access functions for the created data-ref.
4577
4578 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
4579             Kirill Yukhin  <kirill.yukhin@intel.com>
4580
4581         PR target/50155
4582         * config/i386/sse.md (VI_AVX2): New.
4583         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
4584         (*<plusminus_insn><mode>3): Ditto.
4585         (<sse2_avx2>_andnot<mode>3): Ditto.
4586         (*andnot<mode>3): Fix order of cond operands.
4587         Add asserts for correct TARGET_xxx.
4588         (*<any_logic:code><mode>3): Ditto.
4589
4590 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
4591
4592         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
4593         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
4594         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
4595         regclass argument type to reg_class_t. Change 'max' and 'v' vars
4596         and return types to unsigned char. Use reg_class_contents instead
4597         of class_contents.
4598         (TARGET_CLASS_MAX_NREGS): Define.
4599
4600 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
4601
4602         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
4603         to make computed_jump_p return true.
4604
4605 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4606
4607         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
4608         (PICFLAG_FOR_TARGET): Substitute.
4609         * aclocal.m4: Regenerate.
4610         * configure: Regenerate.
4611
4612 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
4613
4614         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
4615         after reading in the pch.
4616
4617 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
4618
4619         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
4620         * configure: Regenerated.
4621
4622 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
4623
4624         PR tree-optimization/50133
4625         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
4626         from stmt instead of some statement around gsi.
4627
4628         PR middle-end/50141
4629         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
4630         innerdecl is a VAR_DECL.
4631
4632 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4633
4634         * config/i386/avx2intrin.h: New file.
4635         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
4636         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
4637         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
4638         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
4639         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
4640         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
4641         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
4642         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
4643         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
4644         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
4645         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
4646         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
4647         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
4648         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
4649         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
4650         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
4651         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
4652         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
4653         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
4654         VOID_FTYPE_PV8SI_V8SI_V8SI,
4655         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
4656         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
4657         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
4658         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
4659         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
4660         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
4661         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
4662         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
4663         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
4664         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
4665         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
4666         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
4667         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
4668         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
4669         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
4670         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
4671         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
4672         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
4673         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
4674         V4DI_FTYPE_V4DI_INT_CONVERT,
4675         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
4676         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
4677         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
4678         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
4679         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
4680         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
4681         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
4682         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
4683         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
4684         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
4685         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
4686         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
4687         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
4688         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
4689         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
4690         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
4691         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
4692         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
4693         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
4694         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
4695         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
4696         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
4697         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
4698         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
4699         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
4700         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
4701         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
4702         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
4703         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
4704         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
4705         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
4706         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
4707         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
4708         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
4709         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
4710         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
4711         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
4712         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
4713         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
4714         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
4715         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
4716         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
4717         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
4718         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
4719         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
4720         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
4721         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
4722         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
4723         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
4724         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
4725         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
4726         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
4727         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
4728         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
4729         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
4730         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
4731         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
4732         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
4733         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
4734         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
4735         IX86_BUILTIN_VBROADCASTSS_PS256,
4736         IX86_BUILTIN_VBROADCASTSD_PD256,
4737         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
4738         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
4739         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
4740         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
4741         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
4742         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
4743         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
4744         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
4745         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
4746         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
4747         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
4748         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
4749         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
4750         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4751         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4752         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4753         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
4754         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
4755         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
4756         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
4757         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
4758         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
4759         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
4760         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
4761         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
4762         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
4763         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
4764         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
4765         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
4766         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
4767         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
4768         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
4769         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
4770         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
4771         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
4772         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
4773         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
4774         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
4775         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
4776         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
4777         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
4778         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
4779         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
4780         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
4781         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
4782         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
4783         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
4784         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
4785         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
4786         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
4787         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
4788         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
4789         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
4790         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
4791         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
4792         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
4793         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
4794         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
4795         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
4796         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
4797         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
4798         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
4799         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
4800         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
4801         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
4802         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
4803         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
4804         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
4805         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
4806         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
4807         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
4808         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
4809         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
4810         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
4811         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
4812         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
4813         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
4814         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
4815         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
4816         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
4817         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
4818         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
4819         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
4820         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
4821         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
4822         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
4823         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
4824         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
4825         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
4826         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
4827         IX86_BUILTIN_VBROADCASTSD_PD256,
4828         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
4829         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
4830         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
4831         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
4832         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
4833         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
4834         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
4835         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
4836         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
4837         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4838         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4839         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4840         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
4841         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
4842         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
4843         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
4844         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
4845         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
4846         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
4847         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
4848         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
4849         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
4850         IX86_BUILTIN_GATHERDIV8SI.
4851         (ix86_preferred_simd_mode): Support AVX2 modes.
4852         (ix86_expand_args_builtin): Support AVX2 builtins.
4853         (ix86_expand_special_args_builtin): Likewise.
4854         (ix86_expand_builtin): Likewise.
4855         * config/i386/i386.md (UNSPEC_VPERMSI): New.
4856         (UNSPEC_VPERMDF): Likewise.
4857         (UNSPEC_VPERMSF): Likewise.
4858         (UNSPEC_VPERMDI): Likewise.
4859         (UNSPEC_VPERMTI): Likewise.
4860         (UNSPEC_GATHER): Likewise.
4861         (ssemodesuffix): Extend.
4862         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
4863         is defined.
4864         * config/i386/predicates.md (const1248_operand): New.
4865         * config/i386/sse.md (VI1_AVX2): New mode iterator.
4866         (VI2_AVX2): Likewise.
4867         (VI4_AVX2): Likewise.
4868         (VI8_AVX2): Likewise.
4869         (VIMAX_AVX2): Likewise.
4870         (SSESCALARMODE): Likewise.
4871         (VI12_AVX2): Likewise.
4872         (VI24_AVX2): Likewise.
4873         (VI124_AVX2): Likewise.
4874         (VI248_AVX2): Likewise.
4875         (VI48_AVX2): Likewise.
4876         (VI4SD_AVX2): Likewise.
4877         (V48_AVX2): Likewise.
4878         (AVX256MODE2P): Likewise.
4879         (AVXMODE48P_DI): Likewise.
4880         (sse2_avx2): New mode attribute.
4881         (ssse3_avx2): Likewise.
4882         (sse4_1_avx2): Likewise.
4883         (avx_avx2): Likewise.
4884         (ssebytemode): Likewise.
4885         (AVXTOSSEMODE): Likewise.
4886         (AVXMODE48P_DI): Likewise.
4887         (gthrfirstp): Likewise.
4888         (gthrlastp): Likewise.
4889         (lshift): New code_iterator
4890         (lshift): New code attribute.
4891         (lshift): Likewise.
4892         (ssescalarmodesuffix): Update.
4893         (sseunpackmode): Likewise.
4894         (ssepackmode): Likewise.
4895         (avx2_vec_dupv4sf): New insn pattern.
4896         (avx2_vec_dupv8sf): Likewise.
4897         (avx2_interleave_highv4di): Likewise.
4898         (avx2_interleave_lowv4di): Likewise.
4899         (avx2_umulv4siv4di3): Likewise
4900         (*avx2_umulv4siv4di3): Likewise
4901         (avx2_pmaddwd): Likewise.
4902         (*avx2_pmaddwd): Likewise.
4903         (avx2_lshrqv4di3): Likewise.
4904         (avx2_lshlqv4di3): Likewise.
4905         (avx2_lshl<mode>3): Likewise.
4906         (avx2_<umaxmin:code><mode>3): Likewise.
4907         (*avx2_<umaxmin:code><mode>3): Likewise.
4908         (avx2_<smaxmin:code><mode>3): Likewise.
4909         (*avx2_<smaxmin:code><mode>3): Likewise.
4910         (avx2_eq<mode>3): Likewise.
4911         (*avx2_eq<mode>3): Likewise.
4912         (avx2_gt<mode>3): Likewise.
4913         (avx2_interleave_highv32qi): New.
4914         (avx2_interleave_lowv32qi): Likewise.
4915         (avx2_interleave_highv16hi): Likewise.
4916         (avx2_interleave_lowv16hi): Likewise.
4917         (avx2_interleave_highv8si): Likewise.
4918         (avx2_interleave_lowv8si): Likewise.
4919         (avx2_pshufd): Likewise.
4920         (avx2_pshufd_1): Likewise.
4921         (avx2_pshuflwv3): Likewise.
4922         (avx2_pshuflw_1): Likewise.
4923         (avx2_pshufhwv3): Likewise.
4924         (avx2_pshufhw_1): Likewise.
4925         (avx2_uavgv32qi3): Likewise.
4926         (*avx2_uavgv32qi3): Likewise.
4927         (avx2_uavgv16hi3): Likewise.
4928         (*avx2_uavgv16hi3): Likewise.
4929         (avx2_pmovmskb): Likewise.
4930         (avx2_phaddwv16hi3): Likewise.
4931         (avx2_phadddv8si3): Likewise.
4932         (avx2_phaddswv16hi3): Likewise.
4933         (avx2_phsubwv16hi3): Likewise.
4934         (avx2_phsubdv8si3): Likewise.
4935         (avx2_phsubswv16hi3): Likewise.
4936         (avx2_pmaddubsw256): Likewise.
4937         (avx2_umulhrswv16hi3): Likewise.
4938         (*avx2_umulhrswv16hi3): Likewise.
4939         (avx2_packusdw): Likewise.
4940         (avx2_pblendd<mode>): Likewise.
4941         (avx2_<code>v16qiv16hi2): Likewise.
4942         (avx2_<code>v8qiv8si2): Likewise.
4943         (avx2_<code>v8hiv8si2): Likewise.
4944         (avx2_<code>v4qiv4di2): Likewise.
4945         (avx2_<code>v4hiv4di2): Likewise.
4946         (avx2_<code>v4siv4di2): Likewise.
4947         (avx2_pbroadcast<mode>): Likewise.
4948         (avx2_permvarv8si): Likewise.
4949         (avx2_permv4df): Likewise.
4950         (avx2_permvarv8sf): Likewise.
4951         (avx2_permv4di): Likewise.
4952         (avx2_permv2ti): Likewise.
4953         (avx2_vec_dupv4df): Likewise.
4954         (avx2_vbroadcasti128_<mode>): Likewise.
4955         (avx2_vec_set_lo_v4di): Likewise.
4956         (avx2_vec_set_hi_v4di): Likewise.
4957         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
4958         (avx2_extracti128): Likewise.
4959         (avx2_inserti128): Likewise.
4960         (avx2_ashrvv8si): Likewise.
4961         (avx2_ashrvv4si): Likewise.
4962         (avx2_<lshift>vv8si): Likewise.
4963         (avx2_<lshift>v<mode>): Likewise.
4964         (avx2_<lshift>vv2di): Likewise.
4965         (avx2_gathersi<mode>): Likewise.
4966         (*avx2_gathersi<mode>): Likewise.
4967         (avx2_gatherdi<mode>): Likewise.
4968         (*avx2_gatherdi<mode>): Likewise.
4969         (avx2_gatherdi<mode>256): Likewise.
4970         (*avx2_gatherdi<mode>256): Likewise.
4971         (<plusminus_insn><mode>3): Use VI mode iterator.
4972         (*<plusminus_insn><mode>3): Use VI mode iterator.
4973         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4974         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
4975         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4976         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
4977         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
4978         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
4979         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
4980         Use VI2_AVX2 mode iterator.
4981         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
4982         Use VI2_AVX2 mode iterator.
4983         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
4984         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
4985         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
4986         Use VI4_AVX2 mode iterator.
4987         (ashr<mode>3): Use VI24_AVX2 mode iterator.
4988         (lshr<mode>3): Use VI248_AVX2 mode iterator.
4989         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
4990         Use VIMAX_AVX2 mode iterator.
4991         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
4992         Use VI mode iterator.
4993         (*andnot<mode>3): Update for AVX2.
4994         (*<any_logic:code><mode>3): Likewise.
4995         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
4996         Use VI1_AVX mode iterator.
4997         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
4998         Use VI2_AVX mode iterator.
4999         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
5000         Use VI1_AVX mode iterator.
5001         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
5002         Use VI8_AVX2 mode iterator.
5003         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
5004         Use VI1_AVX2 mode iterator.
5005         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
5006         Use VI124_AVX2 mode iterator.
5007         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
5008         Use SSESCALARMODE mode iterator.
5009         (abs<mode>2): Use VI124_AVX2 mode iterator.
5010         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
5011         Use VI8_AVX2 mode iterator.
5012         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
5013         Use VI1_AVX2 mode iterator.
5014         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
5015         Use VI1_AVX2 mode iterator.
5016         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
5017         Use VI2_AVX2 mode iterator.
5018         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
5019         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
5020         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
5021         avx_maskstore<ssemodesuffix><avxsizesuffix>.
5022         Use V48_AVX2 mode iterator.
5023         * doc/extend.texi: Document AVX2 built-in functions.
5024         * doc/invoke.texi: Document -mavx2.
5025
5026 2011-08-22  Matthias Klose <doko@debian.org>
5027
5028         Revert:
5029         2011-07-11  Arthur Loiret  <aloiret@debian.org>
5030                     Matthias Klose <doko@debian.org>
5031         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5032         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5033         convention.
5034         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5035
5036 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
5037
5038         PR bootstrap/50146
5039         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
5040         to #ifndef HONOR_REG_ALLOC_ORDER block.
5041
5042 2011-08-21  Richard Henderson  <rth@redhat.com>
5043
5044         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
5045         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
5046         * resource.c (next_insn_no_annul): Likewise.
5047         (mark_set_resources): Likewise.
5048         * reorg.c (delete_from_delay_slot): Likewise.
5049         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
5050         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
5051
5052 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
5053
5054         * config/i386/i386.md (any_div): Remove.
5055         (sgnprefix): Update for removal.
5056         (u): Ditto.
5057
5058 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
5059
5060         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
5061         for ira_reg_class_max_nregs.  Increase pressure by 1.
5062         (mark_pseudo_regno_subword_dead): Use allocno class
5063         for ira_reg_class_max_nregs.
5064
5065 2011-08-20  Richard Henderson  <rth@redhat.com>
5066
5067         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
5068         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
5069         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
5070         config/c6x/ltf.c: Adjust include path for soft-fp.
5071
5072 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5073
5074         PR other/46770
5075         * config.gcc (tm_file): Add initfini-array.h if
5076         .init_arrary/.fini_array are supported.
5077
5078         * crtstuff.c: Don't generate .ctors nor .dtors sections if
5079         USE_INITFINI_ARRAY is defined.
5080
5081         * output.h (default_elf_init_array_asm_out_constructor): New.
5082         (default_elf_fini_array_asm_out_destructor): Likewise.
5083         * varasm.c (elf_init_array_section): Likewise.
5084         (elf_fini_array_section): Likewise.
5085         (get_elf_initfini_array_priority_section): Likewise.
5086         (default_elf_init_array_asm_out_constructor): Likewise.
5087         (default_elf_fini_array_asm_out_destructor): Likewise.
5088
5089         * config/initfini-array.h: New.
5090
5091 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
5092
5093         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
5094         OK for ST_REGS and FP_REGS before taking those classes into account.
5095
5096 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
5097
5098         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
5099         before checking for annulled branches.
5100
5101 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
5102
5103         * config/i386/i386.c (ix86_binary_operator_ok): Use
5104         satisfies_constraint_L.
5105
5106 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
5107             Michael Matz  <matz@suse.de>
5108
5109         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
5110         trunc (a + copysign (nextafter (0.5, 0.0), a)).
5111
5112 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
5113
5114         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5115         * doc/tm.texi: Regenerate.
5116         * targhooks.c (default_preferred_output_reload_class): Don't use
5117         PREFERRED_OUTPUT_RELOAD_CLASS macro.
5118         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
5119
5120 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
5121
5122         PR tree-optimization/48739
5123         * tree-ssa.c: Include cfgloop.h.
5124         (execute_update_addresses_taken): When updating ssa, if in loop closed
5125         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
5126         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
5127
5128 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
5129
5130         PR rtl-optimization/49936
5131         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
5132         for calculation of max register move costs.
5133
5134 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5135
5136         * c-parser.c (c_parser_postfix_expression): Convert operands of
5137         __builtin_complex to their semantic types.
5138
5139 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
5140
5141         PR middle-end/49721
5142         * explow.c (convert_memory_address_addr_space): Also permute the
5143         conversion and addition of constant for zero-extend.
5144
5145 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5146
5147         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
5148         * doc/extend.texi (__builtin_complex): Document.
5149
5150 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5151
5152         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
5153         beyond conversions.
5154         (convert_mult_to_widen): Convert constant inputs to the right type.
5155         (convert_plusminus_to_widen): Don't automatically reject inputs that
5156         are not an SSA_NAME.
5157         Convert constant inputs to the right type.
5158
5159 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5160
5161         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
5162         to the correct type.
5163
5164 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5165
5166         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
5167         unsigned inputs of different modes.
5168         (convert_plusminus_to_widen): Likewise.
5169
5170 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5171
5172         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
5173         'type'.
5174         Use 'type' from caller, not inferred from 'rhs'.
5175         Don't reject non-conversion statements. Do return lhs in this case.
5176         (is_widening_mult_p): Add new argument 'type'.
5177         Use 'type' from caller, not inferred from 'stmt'.
5178         Pass type to is_widening_mult_rhs_p.
5179         (convert_mult_to_widen): Pass type to is_widening_mult_p.
5180         (convert_plusminus_to_widen): Likewise.
5181
5182 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5183
5184         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
5185         Ensure the the larger type is the first operand.
5186
5187 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5188
5189         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
5190         unsupported unsigned multiplies to signed.
5191         (convert_plusminus_to_widen): Likewise.
5192
5193 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5194
5195         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
5196         conversion statement separating multiply-and-accumulate.
5197
5198 2011-08-19  Richard Guenther  <rguenther@suse.de>
5199
5200         PR tree-optimization/50067
5201         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
5202         offset only if we accounted for it.
5203
5204 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5205
5206         * config/arm/arm.md (maddhidi4): Remove '*' from name.
5207         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
5208         * optabs.c (find_widening_optab_handler_and_mode): New function.
5209         (expand_widen_pattern_expr): Use find_widening_optab_handler.
5210         (expand_binop_directly): Likewise.
5211         (expand_binop): Likewise.
5212         * optabs.h (find_widening_optab_handler): New macro define.
5213         (find_widening_optab_handler_and_mode): New prototype.
5214         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
5215         type precision rules.
5216         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
5217         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
5218         (is_widening_mult_rhs_p): Allow widening by more than one mode.
5219         Explicitly disallow mis-matched input types.
5220         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
5221         input types to fit the new handler.
5222         (convert_plusminus_to_widen): Likewise.
5223
5224 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5225
5226         * expr.c (expand_expr_real_2): Use widening_optab_handler.
5227         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
5228         (gen_insn): $N now means $a must be wider than $b, not consecutive.
5229         * optabs.c (widened_mode): New function.
5230         (expand_widen_pattern_expr): Use widening_optab_handler.
5231         (expand_binop_directly): Likewise.
5232         (expand_binop): Likewise.
5233         * optabs.h (widening_optab_handlers): New struct.
5234         (optab_d): New member, 'widening'.
5235         (widening_optab_handler): New function.
5236         (set_widening_optab_handler): New function.
5237         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
5238         widening_optab_handler.
5239         (convert_plusminus_to_widen): Likewise.
5240
5241 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5242
5243         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
5244         pedantic.
5245         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
5246         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
5247
5248 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5249
5250         * opth-gen.awk: Do not declare target save/restore structures and
5251         functions if IN_RTS defined.
5252
5253 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5254
5255         PR target/49437
5256         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
5257         when stack was realigned in interrupt handler prologue.
5258
5259 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
5260
5261         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
5262         (quals_from_declspecs): Assert _Noreturn not present.
5263         (grokdeclarator): Handle _Noreturn.
5264         (build_null_declspecs): Initialize noreturn_p.
5265         (declspecs_add_scspec): Handle RID_NORETURN.
5266         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
5267         (c_parser_attributes): Handle RID_NORETURN.
5268         * c-tree.h (struct c_declspecs): Add noreturn_p.
5269         * ginclude/stdnoreturn.h: New.
5270         * Makefile.in (USER_H): Add stdnoreturn.h.
5271
5272 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5273
5274         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
5275         (OPTION_MASK_ISA_AVX_UNSET): Update.
5276         (OPTION_MASK_ISA_AVX2_UNSET): New.
5277         (ix86_handle_option): Handle OPT_mavx2 case.
5278         * config/i386/cpuid.h (bit_AVX2): New.
5279         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5280         AVX2 feature.
5281         * config/i386/i386-c.c (ix86_target_macros_internal):
5282         Conditionally define __AVX2__.
5283         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
5284         Define "core-avx2" processor alias.  Handle avx2 option.
5285         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
5286         * config/i386/i386.h (TARGET_AVX2): New.
5287         * config/i386/i386.opt (mavx2): New.
5288         * doc/invoke.texi: Document -mavx2.
5289
5290 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
5291
5292         PR rtl-optimization/49890
5293         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
5294         subclasses of class which is superset of a pressure class.
5295
5296 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5297             Igor Zamyatin <igor.zamyatin@intel.com>
5298
5299         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
5300         with HOST_WIDE_INT for isa_flag.
5301         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
5302         isa variables.
5303
5304         * config/i386/i386.c (ix86_target_string): Replace int with
5305         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
5306         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
5307         (pta_flags): Removed.
5308         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
5309         (pta): Use HOST_WIDE_INT on flags.
5310         (builtin_isa): Use HOST_WIDE_INT on isa.
5311         (ix86_add_new_builtins): Likewise.
5312         (def_builtin): Use HOST_WIDE_INT on mask.
5313         (def_builtin_const): Likewise.
5314         (builtin_description): Likewise.
5315
5316         * config/i386/i386.opt (ix86_isa_flags): Replace int with
5317         HOST_WIDE_INT.
5318         (ix86_isa_flags_explicit): Likewise.
5319         (x_ix86_isa_flags_explicit): Likewise.
5320
5321 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
5322
5323         PR rtl-optimization/50107
5324         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
5325         (ira_hard_reg_in_set_p): New.
5326
5327         * ira-color.c (calculate_saved_nregs): New.
5328         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
5329         hard regs.
5330         (allocno_reload_assign, fast_allocation): Use
5331         ira_hard_reg_set_intersection_p instead of
5332         ira_hard_reg_not_in_set_p.
5333
5334         * ira.c (setup_reg_renumber): Use
5335         ira_hard_reg_set_intersection_p instead of
5336         ira_hard_reg_not_in_set_p.
5337         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
5338         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
5339
5340         * ira-costs.c (ira_tune_allocno_costs): Use
5341         ira_hard_reg_set_intersection_p instead of
5342         ira_hard_reg_not_in_set_p.
5343
5344 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5345             Igor Zamyatin <igor.zamyatin@intel.com>
5346
5347         * hwint.h (HOST_WIDE_INT_1): New.
5348
5349         * opt-functions.awk (switch_bit_fields): Initialize the
5350         host_wide_int field.
5351         (host_wide_int_var_name): New.
5352         (var_type_struct): Check and return HOST_WIDE_INT.
5353
5354         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
5355
5356         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
5357
5358         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
5359         check masks for HOST_WIDE_INT.
5360
5361         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
5362         (option_enabled): Likewise.
5363         (get_option_state): Likewise.
5364
5365         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
5366         to HOST_WIDE_INT.
5367
5368 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5369             Marc Glisse  <marc.glisse@normalesup.org>
5370
5371         PR libstdc++-v3/1773
5372         * target.def (decl_mangling_context): New C++ hook.
5373         * doc/tm.texi: Regenerate.
5374         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
5375         * config/sol2-protos.h: Group by source file.
5376         (solaris_cxx_decl_mangling_context): Declare.
5377         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
5378         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
5379         Use $<.
5380         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
5381         Add sol2-stubs.o to extra_objs.
5382
5383 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
5384
5385         PR target/50009
5386         * stor-layout.c (update_alignment_for_field): Don't ICE on
5387         packed flexible array members if ms_bitfield_layout_p.
5388
5389         PR target/50092
5390         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
5391         on the result before returning it.
5392
5393         PR debug/50017
5394         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
5395         is a debug stmt, use location of the first non-debug stmt after it.
5396
5397 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
5398
5399         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
5400         (arm_size_rtx_costs): Likewise.
5401
5402 2011-08-18  Richard Guenther  <rguenther@suse.de>
5403
5404         * tree.h (tree_int_cst_msb): Remove.
5405         * tree.c (tree_int_cst_msb): Likewise.
5406         (tree_int_cst_sign_bit): Move from ...
5407         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
5408
5409 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
5410
5411         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
5412         * doc/tm.texi: Regenerate.
5413         * target.def (rtx_costs): Add an opno parameter.
5414         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
5415         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
5416         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
5417         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
5418         * cse.c (COST_IN): Add an opno parameter.
5419         (notreg_cost): Likewise.  Update call to rtx_cost.
5420         (COST, fold_rtx): Update accordingly.
5421         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
5422         * expmed.c (emit_store_flag): Likewise.
5423         * optabs.c (avoid_expensive_constant): Add an opno parameter.
5424         Update call to rtx_cost.
5425         (expand_binop_directly, expand_binop): Likewise.
5426         (expand_twoval_binop, prepare_cmp_insn): Likewise.
5427         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
5428         (set_src_cost, get_full_set_src_cost): Update accordingly.
5429         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
5430         to target hook.
5431         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
5432         (default_adress_cost): Update calls to rtx_cost.
5433
5434         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
5435         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
5436         (arm_rtx_costs): Add an opno parameter.
5437         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
5438         adjust any recursive rtx-cost calls.
5439         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
5440         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5441         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
5442         * config/cris/cris.c (cris_rtx_costs): Likewise.
5443         * config/frv/frv.c (frv_rtx_costs): Likewise.
5444         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
5445         * config/i386/i386.c (ix86_rtx_costs): Likewise.
5446         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
5447         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
5448         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
5449         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
5450         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
5451         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
5452         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
5453         * config/mep/mep.c (mep_rtx_cost): Likewise.
5454         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
5455         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
5456         (mips_zero_extend_cost): Add an opno parameter.
5457         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
5458         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
5459         to rtx_cost.
5460         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
5461         rtx-cost calls.
5462         * config/pa/pa.c (hppa_rtx_costs): Likewise.
5463         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
5464         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
5465         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
5466         (rs6000_debug_rtx_costs): Likewise.
5467         * config/s390/s390.c (s390_rtx_costs): Likewise.
5468         * config/score/score-protos.h (score_rtx_costs): Likewise.
5469         * config/score/score.c (score_rtx_costs): Likewise.
5470         * config/sh/sh.c (andcosts): Update call to rtx_cost.
5471         (sh_rtx_costs): Add an opno parameter.
5472         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
5473         * config/spu/spu.c (spu_rtx_costs): Likewise.
5474         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
5475         * config/v850/v850.c (v850_rtx_costs): Likewise.
5476         * config/vax/vax.c (vax_rtx_costs): Likewise.
5477         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
5478
5479 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
5480
5481         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
5482         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
5483         rtx_cost.
5484         * calls.c (precompute_register_parameters): Likewise.
5485         * combine.c (expand_compound_operation, make_extraction): Likewise.
5486         (force_to_mode, distribute_and_simplify_rtx): Likewise.
5487         * dse.c (find_shift_sequence): Likewise.
5488         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
5489         * expr.c (compress_float_constant): Likewise.
5490         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
5491         * gcse.c (want_to_gcse_p): Likewise.
5492         * ifcvt.c (noce_try_sign_mask): Likewise.
5493         * loop-doloop.c (doloop_optimize): Likewise.
5494         * loop-invariant.c (create_new_invariant): Likewise.
5495         * optabs.c (avoid_expensive_constant): Likewise.
5496         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
5497         (try_replace_in_use, reload_cse_move2add): Likewise.
5498         * reload1.c (calculate_elim_costs_all_insns): Likewise.
5499         (note_reg_elim_costly): Likewise.
5500         * rtlanal.c (insn_rtx_cost): Likewise.
5501         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5502         * stmt.c (lshift_cheap_p): Likewise.
5503         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
5504         * config/avr/avr.c (final_prescan_insn): Likewise.
5505         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5506         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
5507
5508 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
5509
5510         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
5511         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
5512         * cfgloopanal.c (seq_cost): Likewise.
5513         * loop-invariant.c (create_new_invariant): Likewise.
5514         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
5515         (reload_cse_move2add): Use get_full_set_rtx_cost.
5516
5517 2011-08-18  Richard Guenther  <rguenther@suse.de>
5518
5519         * expr.c (get_inner_reference): Fix typo in last change.
5520
5521 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
5522             Joseph Myers  <joseph@codesourcery.com>
5523
5524         PR tree-optimization/49963
5525         * hwint.c (absu_hwi): Define.
5526         * hwint.h (absu_hwi): Declare.
5527         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
5528         of abs_hwi.
5529         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5530         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
5531
5532 2011-08-18  Richard Guenther  <rguenther@suse.de>
5533
5534         * expr.c (get_inner_reference): Sign-extend the constant
5535         twos-complement offset before doing arbitrary precision
5536         arithmetic on it.
5537         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
5538         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
5539         to get_constraint_for_ptr_offset.
5540
5541 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5542
5543         PR target/50068
5544         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
5545
5546 2011-08-17  Richard Guenther  <rguenther@suse.de>
5547
5548         * tree.h (convert_to_ptrofftype_loc): New function.
5549         (convert_to_ptrofftype): Define.
5550         * builtins.c (expand_builtin_bzero): Use size_type_node.
5551         (fold_builtin_bzero): Likewise.
5552         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
5553         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
5554         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
5555         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
5556         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
5557         * fold-const.c (build_range_check): Negate using the original type.
5558         (fold_unary_loc): Use fold_build_pointer_plus_loc.
5559         * gimple-fold.c (gimple_adjust_this_by_delta): Use
5560         convert_to_ptrofftype.
5561         * gimplify.c (gimplify_self_mod_expr): Likewise.
5562         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
5563         (graphite_create_new_loop_guard): Likewise.
5564         * graphite-sese-to-poly.c (my_long_long): Remove.
5565         (scop_ivs_can_be_represented): Adjust.
5566         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
5567         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
5568         * tree-loop-distribution.c (build_size_arg_loc): Use
5569         size_type_node.
5570         (generate_memset_zero): Simplify.
5571         * tree-mudflap.c: Use fold_convert, not convert.
5572         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
5573         its own type.
5574         (determine_offset): Likewise for DR_STEP.
5575         (valid_initializer_p): Likewise.
5576         * tree-profile.c (prepare_instrumented_value): Convert the pointer
5577         to an integer type of same size.
5578         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
5579         to sizetype without need.
5580         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
5581         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
5582         * tree-ssa-loop-manip.c (create_iv): Likewise.
5583         (determine_exit_conditions): Adjust comment.
5584         * tree-ssa-pre.c (create_expression_by_pieces): Use
5585         convert_to_ptrofftype.
5586         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
5587         * varasm.c (array_size_for_constructor): Compute using double_ints.
5588
5589 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5590
5591         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
5592         when generating an integer result where possible.  Short-cut
5593         comparison against 0 also for QImode.
5594
5595 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5596
5597         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
5598         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
5599         prototype.
5600         * config/spu/spu.c (spu_legitimize_reload_address): New function.
5601         (spu_legitimate_address_p): Do not check displacement if the base
5602         is an eliminable stack register.
5603
5604 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
5605
5606         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
5607         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
5608         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
5609         m32c_preferred_output_reload_class): Remove.
5610         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
5611         Change rclass argument and return types to reg_class_t. Use
5612         reg_class_subset_p instead of class_sizes.
5613         (m32c_preferred_output_reload_class): Make static. Change rclass
5614         argument and return types to reg_class_t.
5615         (TARGET_PREFERRED_RELOAD_CLASS,
5616         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5617
5618 2011-08-16  Kai Tietz  <ktietz@redhat.com>
5619
5620         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
5621
5622 2011-08-16  Richard GUenther  <rguenther@suse.de>
5623
5624         PR tree-optimization/50082
5625         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
5626         warnings here, instead of ...
5627         (ssa_forward_propagate_and_combine): ... here.
5628         (forward_propagate_into_comparison_1): Adjust.
5629         (forward_propagate_into_comparison): Likewise.
5630         (forward_propagate_into_gimple_cond): Likewise.
5631         (forward_propagate_into_cond): Likewise.
5632
5633 2011-08-16  Andreas Schwab  <schwab@redhat.com>
5634
5635         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
5636         instead of ggc_alloc_zone_vec_rtvec_def.
5637
5638 2011-08-16  Richard Guenther  <rguenther@suse.de>
5639
5640         * tree.h (ptrofftype_p): New helper function.
5641         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
5642         offset verification.
5643         (verify_gimple_assign_binary): Likewise.
5644         * tree.c (build2_stat): Likewise.
5645         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
5646         (reset_evolution_in_loop): Likewise.
5647         * tree-chrec.h (build_polynomial_chrec): Likewise.
5648
5649 2011-08-16  Liang Wang  <lwang1@marvell.com>
5650
5651         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
5652         ggc_alloc_zone_vec_rtvec_def.
5653
5654 2011-08-16  Richard Guenther  <rguenther@suse.de>
5655
5656         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
5657         helper factored out from ...
5658         (extract_range_from_binary_expr_1): ... here.  Re-structure
5659         to not glob handling too different tree codes.
5660
5661 2011-08-15  Richard Henderson  <rth@redhat.com>
5662
5663         PR middle-end/50006
5664         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
5665         setting out to include allocate_stack named pattern as well.
5666         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
5667         * stmt.c (expand_stack_restore): Likewise.
5668
5669 2011-08-15  Richard Guenther  <rguenther@suse.de>
5670
5671         PR middle-end/50082
5672         * fold-const.c (maybe_canonicalize_comparison_1): Properly
5673         convert the modified operand to the other operand type.
5674         (fold_comparison): Call maybe_canonicalize_comparison_1 with
5675         useless conversions stripped from comparison operands.
5676
5677 2011-08-15  Richard Guenther  <rguenther@suse.de>
5678
5679         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
5680         (extract_range_from_unary_expr_1): Restructure.
5681
5682 2011-08-15  Richard Guenther  <rguenther@suse.de>
5683
5684         PR tree-optimization/50058
5685         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
5686         copy matching.
5687
5688 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5689
5690         PR target/50022
5691         * config/arm/arm.c (output_move_double): Add 2 parameters
5692         to count the number of insns emitted and whether to emit or not.
5693         Use the flag to decide when to emit and count number of instructions
5694         that will be emitted.
5695         Handle case where output_move_double might be called for calculating
5696         lengths with an invalid constant.
5697         (arm_count_output_move_double_insns): Define.
5698         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
5699         (output_move_double): Adjust prototype.
5700         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
5701         output_move_double.
5702         ("*movdi_vfp_cortexa8"): Likewise and add attribute
5703         for ce_count.
5704         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
5705         ("*movdf_soft_insn"): Likewise.
5706         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
5707         ("*cirrus_thumb2_movdi"): Likewise.
5708         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
5709         ("*cirrus_movdf_hard_insn"): Likewise.
5710         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
5711         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
5712         ("mov<mode>_internal VMMX"): Likewise.
5713         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
5714
5715 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
5716
5717         * config/i386/i386.c (ix86_expand_round_sse4): New function.
5718         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
5719         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
5720         for TARGET_ROUND.
5721
5722         (rint<mode>2): Simplify TARGET_ROUND check.
5723         (floor<mode>2): Ditto.
5724         (ceil<mode>2): Ditto.
5725         (btrunc<mode>2): Ditto.
5726
5727 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
5728
5729         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
5730         as mmix_preferred_output_reload_class.
5731
5732 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
5733
5734         * PR target/49903
5735         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
5736         (branch_unspec): New insn.
5737         (branch): Beauty farm.
5738         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
5739         to be IF_THEN_ELSE.
5740         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
5741         New static functions.
5742         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
5743         Use CONST_INT_P.  Beauty.
5744
5745 2011-08-12  Richard Henderson  <rth@redhat.com>
5746
5747         PR rtl-opt/49994
5748         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
5749         * sched-deps.c (init_deps): Clear it.
5750         (deps_analyze_insn): Consume it.
5751         (sched_analyze_insn): Fill it.
5752
5753 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5754
5755         PR target/48328
5756         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
5757         for tbh instructions.
5758
5759 2011-08-12  Diego Novillo  <dnovillo@google.com>
5760
5761         * data-streamer.h (streamer_write_zero): Rename from output_zero.
5762         (streamer_write_uhwi): Rename from lto_output_uleb128.
5763         (streamer_write_hwi): Rename from output_sleb128.
5764         (streamer_write_string): Rename from lto_output_string.
5765         (streamer_string_index): Rename from lto_string_index.
5766         (streamer_write_string_with_length): Rename from
5767         lto_output_string_with_length.
5768         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
5769         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
5770         (streamer_read_string): Rename from lto_input_string.
5771         (streamer_read_indexed_string): Rename from input_string_internal.
5772         (streamer_read_uhwi): Rename from lto_input_uleb128.
5773         (streamer_read_hwi): Rename from lto_input_sleb128.
5774         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
5775         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
5776         (streamer_write_enum): Rename from lto_output_enum.
5777         (streamer_read_enum): Rename from lto_input_enum.
5778         (streamer_write_record_start): Rename from output_record_start.
5779         (streamer_read_record_start): Rename from input_record_start.
5780         (streamer_write_bitpack): Rename from lto_output_bitpack.
5781         (streamer_read_bitpack): Rename from lto_input_bitpack.
5782         (streamer_write_char_stream): Rename from lto_output_1_stream.
5783         (streamer_read_uchar): Rename from lto_input_1_unsigned.
5784         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
5785         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
5786         (streamer_read_string_cst): Rename from input_string_cst.
5787         (streamer_read_chain): Rename from lto_input_chain.
5788         (streamer_alloc_tree): Rename from lto_materialize_tree.
5789         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
5790         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
5791         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
5792         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
5793         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
5794         (streamer_write_chain): Rename from lto_output_chain.
5795         (streamer_write_tree_header): Rename from lto_output_tree_header.
5796         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
5797         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
5798         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
5799         (streamer_write_builtin): Rename from lto_output_builtin_tree.
5800         (streamer_check_handled_ts_structures): Rename from
5801         check_handled_ts_structures.
5802         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
5803         (streamer_tree_cache_insert_at): Rename from
5804         lto_streamer_cache_insert_at.
5805         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
5806         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
5807         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
5808         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
5809         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
5810         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
5811         (write_identifier): Rename from output_identifier.
5812         (write_ts_common_tree_pointers): Rename from
5813         lto_output_ts_common_tree_pointers.
5814         (write_ts_vector_tree_pointers): Rename from
5815         lto_output_ts_vector_tree_pointers.
5816         (write_ts_complex_tree_pointers): Rename from
5817         lto_output_ts_complex_tree_pointers.
5818         (write_ts_decl_minimal_tree_pointers): Rename from
5819         lto_output_ts_decl_minimal_tree_pointers.
5820         (write_ts_decl_common_tree_pointers): Rename from
5821         lto_output_ts_decl_common_tree_pointers.
5822         (write_ts_decl_non_common_tree_pointers): Rename from
5823         lto_output_ts_decl_non_common_tree_pointers.
5824         (write_ts_decl_with_vis_tree_pointers): Rename from
5825         lto_output_ts_decl_with_vis_tree_pointers.
5826         (write_ts_field_decl_tree_pointers): Rename from
5827         lto_output_ts_field_decl_tree_pointers.
5828         (write_ts_function_decl_tree_pointers): Rename from
5829         lto_output_ts_function_decl_tree_pointers.
5830         (write_ts_type_common_tree_pointers): Rename from
5831         lto_output_ts_type_common_tree_pointers.
5832         (write_ts_type_non_common_tree_pointers): Rename from
5833         lto_output_ts_type_non_common_tree_pointers.
5834         (write_ts_list_tree_pointers): Rename from
5835         lto_output_ts_list_tree_pointers.
5836         (write_ts_vec_tree_pointers): Rename from
5837         lto_output_ts_vec_tree_pointers.
5838         (write_ts_exp_tree_pointers): Rename from
5839         lto_output_ts_exp_tree_pointers.
5840         (write_ts_block_tree_pointers): Rename from
5841         lto_output_ts_block_tree_pointers.
5842         (write_ts_binfo_tree_pointers): Rename from
5843         lto_output_ts_binfo_tree_pointers.
5844         (write_ts_constructor_tree_pointers): Rename from
5845         lto_output_ts_constructor_tree_pointers.
5846         (write_ts_target_option): Rename from lto_output_ts_target_option.
5847         (write_ts_translation_unit_decl_tree_pointers): Rename from
5848         lto_output_ts_translation_unit_decl_tree_pointers.
5849         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
5850         Rename from lto_streamer_cache_add_to_node_array.
5851         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
5852         (record_common_node): Rename from lto_record_common_node.
5853
5854         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
5855         declarations.
5856         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
5857         function.
5858         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
5859         unused function.
5860         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
5861         (ipa-reference.o): Likewise.
5862         * lto-section-out.c: Include data-streamer.h.
5863         * ipa-reference.c: Include data-streamer.h.
5864
5865 2011-08-12  Nick Clifton  <nickc@redhat.com>
5866
5867         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
5868         * doc/md.texi (cmpstrn): Note that the comparison stops if both
5869         fetched bytes are zero.
5870         (cmpstr): Likewise.
5871         (cmpmem): Note that the comparison does not stop if both of the
5872         fetched bytes are zero.
5873
5874 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
5875
5876         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
5877         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
5878         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
5879         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
5880         to integer_type_node.
5881         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
5882         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
5883         * builtins.c (expand_builtin_in): Ditto.
5884         (mathfn_built_in_1): Ditto.
5885         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
5886         BUILT_IN_IFLOOR.
5887         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
5888         BUILT_IN_IROUND.
5889         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
5890         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
5891         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
5892
5893 2011-08-12  Richard Guenther  <rguenther@suse.de>
5894
5895         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
5896
5897 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
5898
5899         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
5900
5901 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
5902
5903         * config/arm/arm.c (get_label_padding): New function.
5904         (create_fix_barrier, arm_reorg): Use it.
5905
5906 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
5907
5908         PR target/49781
5909         * config/i386/i386.md (*lea_5_zext): New.
5910         (*lea_6_zext): Ditto.
5911         * config/i386/predicates.md (const_32bit_mask): New predicate.
5912         (lea_address_operand): Reject AND.
5913         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
5914         const_32bit_mask immediate.
5915         (ix86_print_operand_address): Handle AND.
5916         (memory_address_length): Ditto.
5917
5918 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
5919             Brian Hackett  <bhackett1024@gmail.com>
5920
5921         * plugin.def: Add event for finish_decl.
5922         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
5923         * c-decl.c (finish_decl): Invoke callbacks on above event.
5924         * doc/plugins.texi: Document above event.
5925
5926 2011-08-11  Richard Guenther  <rguenther@suse.de>
5927
5928         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
5929         lookups, make looking through aggregate copies stronger.
5930
5931 2011-08-11  Richard Henderson  <rth@redhat.com>
5932
5933         PR bootstrap/50018
5934         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
5935
5936 2011-08-11  Richard Guenther  <rguenther@suse.de>
5937
5938         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
5939         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
5940         (vrp_visit_stmt): Likewise.
5941
5942 2011-08-11  Richard Guenther  <rguenther@suse.de>
5943
5944         PR middle-end/50040
5945         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
5946         load of the other piece with TREE_NO_WARNING.
5947         * tree-flow.h (warn_uninit): Adjust prototype.
5948         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
5949         the base variable and the expression that is used separately.
5950         Properly query all TREE_NO_WARNING flags.
5951         (struct walk_data): Remove.
5952         (warn_uninitialized_var): Likewise.
5953         (warn_uninitialized_vars): Do not walk gimple pieces but simply
5954         look at all SSA uses of the statement.  Handle unused memory
5955         separately.
5956         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
5957
5958 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
5959
5960         * config/rx/rx.md (movsicc): Allow register to register transfers.
5961         (*movsicc): Likewise.
5962         (*stcc): Restrict this pattern to EQ and NE compares.
5963         (*stcc_reg): New pattern.  Works for any comparison but only for
5964         register transfers.
5965
5966 2011-08-11   Diego Novillo  <dnovillo@google.com>
5967
5968         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
5969         Call stream_write_tree instead of output_record_start.
5970         (lto_output_ts_binfo_tree_pointers): Likewise.
5971
5972         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
5973         Convert it to a macro.
5974         (stream_read_tree): Likewise.
5975
5976         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
5977         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
5978
5979         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
5980         and tree_read_bitfields.
5981         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
5982         (lto_write_tree): Call it.
5983         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
5984         * streamer-hooks.h (struct streamer_hooks): Remove fields
5985         name, is_streamable and alloc_tree. Update all users.
5986         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
5987         (lto_materialize_tree): ... here.
5988         Handle CALL_EXPR codes.
5989         Remove call to lto_streamer_cache_append.
5990         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
5991         * tree-streamer.h (tree_read_bitfields): Declare.
5992
5993         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
5994         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
5995         * tree-streamer.h (stream_read_tree): New.  Replace all calls
5996         to lto_input_tree with it.
5997         (stream_write_tree): New.  Replace all calls to lto_output_tree,
5998         lto_output_tree_ref and lto_output_tree_or_ref with it.
5999         * lto-streamer-in.c (lto_read_tree): Inline code from
6000         lto_streamer_read_tree.
6001         (lto_input_tree): Move from tree-streamer-in.c.
6002         * lto-streamer-out.c (lto_output_tree_ref): Make static.
6003         Remove handling of NULL values for EXPR.
6004         Do not handle EXPRs that are not indexable.
6005         (lto_write_tree): Move from tree-streamer-out.c.
6006         Inline lto_streamer_write_tree.
6007         (lto_output_tree): Move from tree-streamer-out.c.
6008         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
6009         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
6010         (lto_preload_common_nodes): Likewise.
6011         Remove assertions and adjustments for nodes
6012         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
6013         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
6014         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
6015         * lto-streamer.h (lto_input_tree): Declare.
6016         (lto_output_tree_ref): Remove.
6017         * streamer-hooks.h (struct streamer_hooks): Remove fields
6018         preload_common_nodes, indexable_with_decls_p,
6019         pack_value_fields, unpack_value_fields and output_tree_header.
6020         Update all users.
6021         * tree-streamer-in.c (lto_materialize_tree): Make extern.
6022         (lto_input_tree_pointers): Likewise.
6023         (lto_read_tree): Move to lto-streamer-in.c.
6024         (lto_input_integer_cst): Make extern.
6025         (lto_get_pickled_tree): Likewise.
6026         (lto_get_builtin_tree): Likewise.
6027         (lto_input_tree): Move to lto-streamer-in.c.
6028         * tree-streamer-out.c (pack_value_fields): Make extern.
6029         (lto_output_tree_or_ref): Remove.  Replace all callers with
6030         calls to stream_write_tree.
6031         (lto_output_builtin_tree): Make extern.
6032         (lto_streamer_write_tree): Inline into lto_write_tree.
6033         (lto_output_tree_pointers): Make extern.
6034         (lto_output_tree_header): Likewise.
6035         (lto_output_integer_cst): Likewise.
6036         (lto_write_tree): Move to lto-streamer-out.c.
6037         (lto_output_tree): Likewise.
6038         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
6039         (preload_common_nodes): Likewise.
6040         (lto_streamer_cache_create): Call it.
6041         * tree-streamer.h: Include streamer-hooks.h.
6042         (stream_write_tree): New.
6043         (stream_read_tree): New.
6044         (lto_input_tree): Remove.
6045         (lto_materialize_tree): Declare.
6046         (lto_input_tree_pointers): Declare.
6047         (lto_get_pickled_tree): Declare.
6048         (lto_get_builtin_tree): Declare.
6049         (lto_input_integer_cst): Declare.
6050         (lto_output_tree_header): Declare.
6051         (pack_value_fields): Declare.
6052         (lto_output_tree_pointers): Declare.
6053         (lto_output_integer_cst): Declare.
6054         (lto_output_builtin_tree): Declare.
6055
6056 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6057
6058         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
6059         only if producer writes to the register given by regno.
6060
6061 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6062             Alexander Monakov  <amonakov@ispras.ru>
6063
6064         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
6065         (sched_get_condition_with_rev_uncached): ... this.  Factor out
6066         condition caching logic into ...
6067         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
6068         attempt to use cache for instructions with zero luid.
6069         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
6070         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
6071
6072 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6073
6074         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
6075         get_seqno_for_a_jump.  Update the caller.
6076         (get_seqno_by_succs): New.  Use it ...
6077         (get_seqno_for_a_jump): ... here to find a seqno if looking at
6078         predecessors was not sufficient.
6079         (get_seqno_by_preds): Include head in iteration range, exclude insn.
6080
6081 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6082
6083         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
6084
6085 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6086
6087         * sel-sched-ir.h (register_unavailable_p): Declare.
6088         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
6089         (set_unavailable_target_for_expr): ... here to properly test
6090         availability of a register.
6091         (speculate_expr): Ditto.
6092         * sel-sched.c (substitute_reg_in_expr): Ditto.
6093         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
6094
6095 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6096
6097         * sel-sched.c (verify_target_availability): Fix usage of
6098         hard_regno_nregs.
6099
6100 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6101
6102         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
6103         recognized by cannot_copy_insn_p hook and volatile instructions.
6104
6105 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6106
6107         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
6108
6109 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
6110
6111         * doc/md.texi (define_bypass): Say that the instruction names can
6112         be filename-style globs.
6113         * Makefile.in (FNMATCH_H): Define.
6114         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
6115         * genattrtab.c: Include fnmatch.h.
6116         (bypass_list): Change field name from "insn" to "pattern".
6117         (gen_bypass_1): Update accordingly.
6118         (process_bypasses): Use fnmatch to check for matches between
6119         insn reservations and define_bypasses.
6120         * genautomata.c: Include fnmatch.h.
6121         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
6122         and out_pattern respectively.
6123         (gen_bypass, insert_bypass): Update accordingly.
6124         (for_each_matching_insn, process_bypass_2, process_bypass_1)
6125         (process_bypass): New functions.
6126         (process_decls): Use process_bypass.  Update after field name changes.
6127
6128 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
6129
6130         PR target/49687
6131         * config/avr/avr.md (smulqi3_highpart): New insn.
6132         (umulqi3_highpart): New insn.
6133         (*subqi3.ashiftrt7): New insn.
6134         (smulhi3_highpart): New expander.
6135         (umulhi3_highpart): Nex expander.
6136         (*smulhi3_highpart_call): New insn.
6137         (*umulhi3_highpart_call): New insn.
6138         (extend_u): New code attribute.
6139         (extend_prefix): Rename code attribute to extend_su.
6140         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
6141         widening QI/HI multiply.
6142
6143 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
6144
6145         PR tree-optimization/50039
6146         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
6147         that DEF_STMT has a stmt_vec_info.
6148
6149 2011-08-10  Richard Guenther  <rguenther@suse.de>
6150
6151         * tree.h (can_trust_pointer_alignment): Remove.
6152         * builtins.c (can_trust_pointer_alignment): Remove.
6153
6154 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6155
6156         * c-typeck.c (scalar_to_vector): New function. Try scalar to
6157         vector conversion.
6158         (stv_conv): New enum for scalar_to_vector return type.
6159         (build_binary_op): Adjust.
6160         * doc/extend.texi: Description of scalar to vector expansion.
6161
6162 2011-08-10  Richard Guenther  <rguenther@suse.de>
6163
6164         * tree.h (get_pointer_alignment): Remove max-align argument.
6165         (get_object_alignment): Likewise.
6166         * builtins.c (get_object_alignment_1): Adjust.
6167         (get_object_alignment): Remove max-align argument.
6168         (get_pointer_alignment): Likewise.
6169         (expand_builtin_strlen): Adjust.
6170         (expand_builtin_memcpy): Likewise.
6171         (expand_builtin_mempcpy_args): Likewise.
6172         (expand_builtin_strncpy): Likewise.
6173         (expand_builtin_memset_args): Likewise.
6174         (expand_builtin_memcmp): Likewise.
6175         (expand_builtin_strcmp): Likewise.
6176         (expand_builtin_strncmp): Likewise.
6177         (get_builtin_sync_mem): Likewise.
6178         (fold_builtin_memset): Likewise.
6179         (fold_builtin_memory_op): Likewise.
6180         (expand_builtin_memory_chk): Likewise.
6181         * emit-rtl.c (get_mem_align_offset): Likewise.
6182         (set_mem_attributes_minus_bitpos): Likewise.
6183         * expr.c (expand_assignment): Likewise.
6184         (expand_expr_real_1): Likewise.
6185         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
6186         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6187         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
6188         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
6189         * value-prof.c (gimple_stringops_transform): Likewise.
6190
6191 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
6192
6193         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
6194         * doc/tm.texi: Regenerate.
6195
6196 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
6197
6198         PR target/29560
6199         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
6200         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
6201         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
6202         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
6203         shift target is unused.
6204
6205 2011-08-10  Richard Guenther  <rguenther@suse.de>
6206
6207         PR tree-optimization/49937
6208         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
6209         using get_object_alignment_1.
6210
6211 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
6212
6213         * config/i386/i386.c (ix86_emit_i387_round): New function.
6214         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
6215         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
6216         Use ix86_emit_i387_round to expand round function for i387 math.
6217         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
6218         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
6219
6220 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6221
6222         * config/sync.c: Move to ../libgcc.
6223         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
6224         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
6225         Remove.
6226
6227 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
6228
6229         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
6230         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
6231         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
6232         Change 'from' and 'to' arguments type to reg_class_t.
6233         (TARGET_REGISTER_MOVE_COST): Define.
6234
6235 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
6236
6237         PR target/50026
6238         Revert:
6239         PR rtl-optimization/49990
6240         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
6241         ignore classes which can not change mode.
6242         (find_costs_and_classes): Ditto.
6243
6244 2011-08-09  Richard Guenther  <rguenther@suse.de>
6245
6246         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
6247         information for ranges with only negative values.
6248         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
6249         BIT_AND_EXPR handling to handle ranges with negative values.
6250
6251 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
6252
6253         * config/i386/i386.c: Remove traling spaces.
6254         * config/i386/sse.md: Likewise.
6255         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
6256         (*fma_fmsub_<mode>): Likewise.
6257         (*fma_fnmadd_<mode>): Likewise.
6258         (*fma_fnmsub_<mode>): Likewise.
6259
6260 2011-08-09  Nick Clifton  <nickc@redhat.com>
6261
6262         * config/rx/rx.md: Disable extender peepholes at -O3.
6263
6264 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
6265
6266         PR target/49781
6267         * config/i386/i386.md (reload_noff_load): New.
6268         (reload_noff_store): Ditto.
6269         * config/i386/i386.c (ix86_secondary_reload): Use
6270         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
6271         double-word moves from/to non-offsetable addresses instead of
6272         generating XMM temporary.
6273
6274 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
6275
6276         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
6277
6278 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
6279
6280         PR tree-optimization/50014
6281         * tree-vect-loop.c (vectorizable_reduction): Get def type before
6282         calling vect_get_vec_def_for_stmt_copy ().
6283
6284 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
6285
6286         PR rtl-optimization/49990
6287         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
6288         ignore classes which can not change mode.
6289         (find_costs_and_classes): Ditto.
6290
6291 2011-08-08  Richard Henderson  <rth@redhat.com>
6292
6293         PR middle-end/49990
6294         * config/i386/i386.c (ix86_expand_prologue): Call
6295         for SEH target gen_prologue_use instead of gen_blockage
6296         at prologue's end.
6297
6298 2011-08-08  Martin Jambor  <mjambor@suse.cz>
6299
6300         PR middle-end/49923
6301         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
6302         memory alignment.
6303
6304 2011-08-08   Diego Novillo  <dnovillo@google.com>
6305
6306         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
6307         (DATA_STREAMER_H): New.
6308         (GIMPLE_STREAMER_H): New.
6309         (TREE_STREAMER_H): New.
6310         (STREAMER_HOOKS_H): New.
6311         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
6312         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
6313         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
6314         (data-streamer.o): New.
6315         (data-streamer-in.o): New.
6316         (data-streamer-out.o): New.
6317         (gimple-streamer-in.o): New.
6318         (gimple-streamer-out.o): New.
6319         (streamer-hooks.o): New.
6320         (tree-streamer.o): New.
6321         (tree-streamer-in.o): New.
6322         (tree-streamer-out.o): New.
6323         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
6324         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
6325         GIMPLE_STREAMER_H and TREE_STREAMER_H.
6326         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
6327         GIMPLE_STREAMER_H and TREE_STREAMER_H.
6328         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
6329         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
6330         (ipa-inline-analysis.o): Likewise.
6331         (ipa-pure-const.o): Likewise.
6332         * data-streamer-in.c: New.
6333         * data-streamer-out.c: New.
6334         * data-streamer.c: New.
6335         * data-streamer.h: New.
6336         * gimple-streamer-in.c: New.
6337         * gimple-streamer-out.c: New.
6338         * gimple-streamer.h: New.
6339         * ipa-inline-analysis.c: Include data-streamer.h.
6340         * ipa-prop.c: Include data-streamer.h.
6341         * ipa-pure-const.c: Include data-streamer.h.
6342         * lto-cgraph.c: Include data-streamer.h.
6343         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
6344         (lto_input_widest_uint_uleb128): Likewise.
6345         (lto_input_sleb128): Likewise.
6346         (bp_unpack_var_len_unsigned): Likewise.
6347         (bp_unpack_var_len_int): Likewise.
6348         * lto-section-out.c (lto_output_uleb128_stream): Move to
6349         data-streamer-out.c.
6350         (lto_output_widest_uint_uleb128_stream): Likewise.
6351         (lto_output_sleb128_stream): Likewise.
6352         (bp_pack_var_len_unsigned): Likewise.
6353         (bp_pack_var_len_int): Likewise.
6354         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
6355         (struct string_slot): Remove.  Update all users.
6356         (lto_tag_check_set): Make extern.
6357         (lto_tag_check_range): Move to lto-streamer.h.
6358         (lto_tag_check): Likewise.
6359         (hash_string_slot_node): Remove.  Update all users.
6360         (eq_string_slot_node): Remove.  Update all users.
6361         (string_for_index): Move to data-streamer-in.c
6362         (input_string_internal): Likewise.
6363         (input_string_cst): Move to tree-streamer-in.c.
6364         (input_identifier): Likewise.
6365         (lto_input_string): Move to data-streamer-in.c
6366         (input_record_start): Move to data-streamer.h
6367         (canon_file_name): Use new definition of struct string_slot
6368         from data-streamer.h.  Set S_SLOT.LEN.
6369         (lto_input_location): Make extern.
6370         (lto_input_chain): Move to tree-streamer-in.c.
6371         (lto_init_eh): Make extern.
6372         (input_phi): Move to gimple-streamer-in.c.
6373         (input_gimple_stmt): Likewise.
6374         (input_bb): Likewise.
6375         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
6376         (unpack_ts_real_cst_value_fields): Likewise.
6377         (unpack_ts_fixed_cst_value_fields): Likewise.
6378         (unpack_ts_decl_common_value_fields): Likewise.
6379         (unpack_ts_decl_wrtl_value_fields): Likewise.
6380         (unpack_ts_decl_with_vis_value_fields): Likewise.
6381         (unpack_ts_function_decl_value_fields): Likewise.
6382         (unpack_ts_type_common_value_fields): Likewise.
6383         (unpack_ts_block_value_fields): Likewise.
6384         (unpack_ts_translation_unit_decl_value_fields): Likewise.
6385         (unpack_value_fields): Likewise.
6386         (lto_materialize_tree): Likewise.
6387         (lto_input_ts_common_tree_pointers): Likewise.
6388         (lto_input_ts_vector_tree_pointers): Likewise.
6389         (lto_input_ts_complex_tree_pointers): Likewise.
6390         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
6391         (lto_input_ts_decl_common_tree_pointers): Likewise.
6392         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
6393         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
6394         (lto_input_ts_field_decl_tree_pointers): Likewise.
6395         (lto_input_ts_function_decl_tree_pointers): Likewise.
6396         (lto_input_ts_type_common_tree_pointers): Likewise.
6397         (lto_input_ts_type_non_common_tree_pointers): Likewise.
6398         (lto_input_ts_list_tree_pointers): Likewise.
6399         (lto_input_ts_vec_tree_pointers): Likewise.
6400         (lto_input_ts_exp_tree_pointers): Likewise.
6401         (lto_input_ts_block_tree_pointers): Likewise.
6402         (lto_input_ts_binfo_tree_pointers): Likewise.
6403         (lto_input_ts_constructor_tree_pointers): Likewise.
6404         (lto_input_ts_target_option): Likewise.
6405         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
6406         (lto_input_tree_pointers): Likewise.
6407         (lto_get_pickled_tree): Likewise.
6408         (lto_get_builtin_tree): Likewise.
6409         (lto_read_tree): Likewise.
6410         (lto_input_integer_cst): Likewise.
6411         (lto_input_tree): Likewise.
6412         * lto-streamer-out.c: Include data-streamer.h,
6413         gimple-streamer.h and streamer-hooks.h.
6414         (struct string_slot): Move to data-streamer.h.
6415         (hash_string_slot_node): Likewise.
6416         (eq_string_slot_node): Likewise.
6417         (lto_string_index): Move to data-streamer-out.c.
6418         (lto_output_string_with_length): Likewise.
6419         (lto_output_string): Likewise.
6420         (output_string_cst): Move to tree-streamer-out.c.
6421         (output_identifier): Likewise.
6422         (output_zero): Move to data-streamer-out.c
6423         (output_uleb128): Likewise.
6424         (output_sleb128): Likewise.
6425         (output_record_start): Move to data-streamer.h
6426         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
6427         (pack_ts_real_cst_value_fields): Likewise.
6428         (pack_ts_fixed_cst_value_fields): Likewise.
6429         (pack_ts_decl_common_value_fields): Likewise.
6430         (pack_ts_decl_wrtl_value_fields): Likewise.
6431         (pack_ts_decl_with_vis_value_fields): Likewise.
6432         (pack_ts_function_decl_value_fields): Likewise.
6433         (pack_ts_type_common_value_fields): Likewise.
6434         (pack_ts_block_value_fields): Likewise.
6435         (pack_ts_translation_unit_decl_value_fields): Likewise.
6436         (pack_value_fields): Likewise.
6437         (lto_output_chain): Likewise.
6438         (lto_output_ts_common_tree_pointers): Likewise.
6439         (lto_output_ts_vector_tree_pointers): Likewise.
6440         (lto_output_ts_complex_tree_pointers): Likewise.
6441         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
6442         (lto_output_ts_decl_common_tree_pointers): Likewise.
6443         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
6444         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
6445         (lto_output_ts_field_decl_tree_pointers): Likewise.
6446         (lto_output_ts_function_decl_tree_pointers): Likewise.
6447         (lto_output_ts_type_common_tree_pointers): Likewise.
6448         (lto_output_ts_type_non_common_tree_pointers): Likewise.
6449         (lto_output_ts_list_tree_pointers): Likewise.
6450         (lto_output_ts_vec_tree_pointers): Likewise.
6451         (lto_output_ts_exp_tree_pointers): Likewise.
6452         (lto_output_ts_block_tree_pointers): Likewise.
6453         (lto_output_ts_binfo_tree_pointers): Likewise.
6454         (lto_output_ts_constructor_tree_pointers): Likewise.
6455         (lto_output_ts_target_option): Likewise.
6456         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
6457         (lto_output_tree_pointers): Likewise.
6458         (lto_output_tree_header): Likewise.
6459         (lto_output_builtin_tree): Likewise.
6460         (lto_write_tree): Likewise.
6461         (lto_output_integer_cst): Likewise.
6462         (lto_output_tree): Likewise.
6463         (output_phi): Move to gimple-streamer-out.c.
6464         (output_gimple_stmt): Likewise.
6465         (output_bb): Likewise.
6466         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
6467         (streamer_hooks): Move to streamer-hooks.c.
6468         (check_handled_ts_structures): Move to tree-streamer.c
6469         (lto_streamer_cache_add_to_node_array): Likewise.
6470         (lto_streamer_cache_insert_1): Likewise.
6471         (lto_streamer_cache_insert): Likewise.
6472         (lto_streamer_cache_insert_at): Likewise.
6473         (lto_streamer_cache_append): Likewise.
6474         (lto_streamer_cache_lookup): Likewise.
6475         (lto_streamer_cache_get): Likewise.
6476         (lto_record_common_node): Likewise.
6477         (lto_preload_common_nodes): Likewise.
6478         (lto_streamer_cache_create): Likewise.
6479         (lto_streamer_cache_delete): Likewise.
6480         (streamer_hooks_init): Move to streamer-hooks.c.
6481         * lto-streamer.h: Include diagnostic.h
6482         (struct output_block, struct lto_input_block,
6483         struct data_in, struct bitpack_d): Remove forward declarations.
6484         (struct bitpack_d): Move to data-streamer.h.
6485         (struct lto_streamer_cache_d): Move to tree-streamer.h.
6486         (struct streamer_hooks): Move to streamer-hooks.h.
6487         (bp_pack_var_len_unsigned): Move to data-streamer.h.
6488         (bp_pack_var_len_int): Likewise.
6489         (bp_unpack_var_len_unsigned): Likewise.
6490         (bp_unpack_var_len_int): Likewise.
6491         (lto_input_location): Declare.
6492         (lto_tag_check_set): Declare.
6493         (lto_init_eh): Declare.
6494         (lto_output_tree_ref): Declare.
6495         (lto_output_location): Declare.
6496         (bitpack_create): Move to data-streamer.h.
6497         (bp_pack_value): Likewise.
6498         (lto_output_bitpack): Likewise.
6499         (lto_input_bitpack): Likewise.
6500         (bp_unpack_value): Likewise.
6501         (lto_output_1_stream): Likewise.
6502         (lto_input_1_unsigned): Likewise.
6503         (lto_output_int_in_range): Likewise.
6504         (lto_input_int_in_range): Likewise.
6505         (bp_pack_int_in_range): Likewise.
6506         (bp_unpack_int_in_range): Likewise.
6507         (lto_output_enum): Likewise.
6508         (lto_input_enum): Likewise.
6509         (bp_pack_enum): Likewise.
6510         (bp_unpack_enum): Likewise.
6511         * streamer-hooks.c: New.
6512         * streamer-hooks.h: New.
6513         * tree-streamer-in.c: New.
6514         * tree-streamer-out.c: New.
6515         * tree-streamer.c: New.
6516         * tree-streamer.h: New.
6517
6518 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6519
6520         * gthr-posix95.h: Remove.
6521         * gthr.h [_PTHREADS95]: Remove.
6522         * configure.ac (enable_threads): Remove posix95.
6523         * configure: Regenerate.
6524         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
6525
6526 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
6527
6528         PR target/49781
6529         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
6530         SImode addresses.
6531         (ix86_print_operand_address): Handle zero-extended addresses.
6532         (memory_address_length): Add length of addr32 prefix for
6533         zero-extended addresses.
6534         (ix86_secondary_reload): Handle moves to/from double-word general
6535         registers from/to zero-extended addresses.
6536         * config/i386/predicates.md (lea_address_operand): Reject
6537         zero-extended operands.
6538
6539 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
6540
6541         PR other/48007
6542         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
6543
6544         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
6545         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
6546
6547         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
6548         (_Unwind_Context_Reg_Val): Likewise.
6549         (_Unwind_Get_Unwind_Word): Likewise.
6550         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
6551         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
6552         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
6553         for EXTENDED_CONTEXT_BIT.
6554         (__frame_state_for): Likewise.
6555         (uw_init_context_1): Likewise.
6556         (_Unwind_GetGR): Updated.
6557         (_Unwind_SetGR): Likewise.
6558         (_Unwind_GetGRPtr): Likewise.
6559         (_Unwind_SetGRPtr): Likewise.
6560         (_Unwind_SetGRValue): Likewise.
6561         (_Unwind_GRByValue): Likewise.
6562         (uw_install_context_1): Likewise.
6563
6564         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
6565         ASSUME_EXTENDED_UNWIND_CONTEXT.
6566         * doc/tm.texi: Regenerated.
6567
6568 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6569
6570         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
6571
6572 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6573
6574         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
6575         Linux/GNU-specific.
6576         (DEC Alpha Options, -mtune): Likewise.
6577         (MIPS Options, -march): native is supported on IRIX.
6578
6579 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6580
6581         * config/sparc/driver-sparc.c: New file.
6582         * config/sparc/x-sparc: New file.
6583         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
6584         * config/sparc/sparc.opt (native): New value for enum processor_type.
6585         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
6586         * config/sparc/sparc.c (sparc_option_override): Abort if
6587         PROCESSOR_NATIVE gets here.
6588         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
6589         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
6590         DRIVER_SELF_SPECS): Define.
6591         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
6592         (SPARC Options, -mtune): Likewise.
6593         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
6594         Substitute result.
6595         * configure: Regenerate.
6596         * Makefile.in (EXTRA_GCC_LIBS): Set.
6597         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
6598         (cpp$(exeext)): Likewise.
6599
6600 2011-08-08  Richard Guenther  <rguenther@suse.de>
6601
6602         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
6603         split out from ...
6604         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
6605         by composition.
6606
6607 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
6608
6609         PR tree-optimization/50005
6610         * ipa-inline-analysis (remap_predicate): Add cast to
6611         silence signed/unsigned comparison warning.
6612
6613 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
6614
6615         * modulo-sched.c (get_sched_window): Use a table for the debug output.
6616         Print the current ii.
6617         (sms_schedule_by_order): Reduce whitespace in dump line.
6618
6619 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
6620
6621         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
6622         and one loop for successors.  Fix upper bound of memory range.
6623
6624 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
6625
6626         PR target/50001
6627         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
6628         (TARGET_INSTANTIATE_DECLS): New define.
6629
6630 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
6631             Mikael Morin   <mikael.morin@sfr.fr>
6632
6633         * Makefile.in (INCLUDES_FOR_TARGET): New.
6634         (LIBGCC2_CFLAGS): Use it.
6635         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
6636
6637 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
6638
6639         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
6640         frame->save_regs_using_mov calculation.
6641
6642 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
6643
6644         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
6645         * config/i386/sse.md (castmode): New mode attribute.
6646         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
6647         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
6648
6649 2011-08-05  Jan Hubicka  <jh@suse.cz>
6650
6651         PR middle-end/49494
6652         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
6653
6654 2011-08-05  Jan Hubicka  <jh@suse.cz>
6655
6656         PR middle-end/49500
6657         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
6658         handle aliases.
6659         (create_emultls_var):New function.
6660         (ipa_lower_emutls): Handle aliases correctly.
6661
6662 2011-08-05  Jan Hubicka  <jh@suse.cz>
6663
6664         PR middle-end/49735
6665         * ipa-inline.c (recursive_inlining): Look through aliases.
6666
6667 2011-08-05  Jason Merrill  <jason@redhat.com>
6668
6669         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
6670         declarations to beginning of function.
6671
6672 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
6673
6674         PR rtl-optimization/49900
6675         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
6676         ensure basic blocks stay in the same order.
6677
6678 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
6679
6680         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
6681         store_bit_field.
6682         (s390_expand_atomic): Same.
6683
6684 2011-08-05  Richard Henderson  <rth@redhat.com>
6685
6686         PR rtl-opt/49977
6687         * dwarf2cfi.c (scan_insn_after): Split out of ...
6688         (scan_trace): ... here.  Correctly place notes wrt sequences.
6689
6690 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
6691             Richard Henderson  <rth@redhat.com>
6692
6693         PR rtl-opt/49982
6694         * expr.c (fixup_args_size_notes): Look through no-op moves.
6695
6696 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6697
6698         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
6699         of "m" for operand 0.  Add type and mode attribute.
6700         (*pushxf_nointeger"): Use "<" constraint for operand 0.
6701         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
6702         constraint instead of "o" for opreand 1.
6703         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
6704         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
6705         operand 0, alternative 4.
6706         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
6707
6708 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6709
6710         * config/i386/predicates.md (lea_address_operand): Rename from
6711         no_seg_address_operand.
6712         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
6713         (*lea_1_zext): Ditto.
6714         (*lea_2): Ditto.
6715         (*lea_2_zext): Ditto.
6716
6717 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6718
6719         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
6720         parts.base and parts.index.
6721         * config/i386/predicates.md (aligned_operand): Ditto.
6722         (cmpxchg8b_pic_memory_operand): Ditto.
6723
6724 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6725
6726         * config/soft-fp: Move to ../libgcc.
6727         * Makefile.in (SFP_MACHINE): Remove.
6728         (libgcc-support): Remove $(SFP_MACHINE) dependency.
6729         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
6730         * config/arm/t-arm-softfp: Move to
6731         ../libgcc/config/arm/t-softfp.
6732         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
6733         * config/c6x/t-c6x-softfp: Remove.
6734         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
6735         * config/i386/t-fprules-softfp: Move to
6736         ../libgcc/config/t-softfp-tf.
6737         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
6738         * config/ia64/t-fprules-softfp: Remove.
6739         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
6740         * config/lm32/t-fprules-softfp: Remove.
6741         * config/moxie/sfp-machine.h: Remove.
6742         * config/moxie/t-moxie-softfp: Remove.
6743         * config/rs6000/darwin-ldouble-format: Move to
6744         ../libgcc/config/rs6000/ibm-ldouble-format.
6745         * config/rs6000/darwin-ldouble.c: Move to
6746         ../libgcc/config/rs6000/ibm-ldouble.c
6747         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
6748         * config/rs6000/libgcc-ppc64.ver: Likewise.
6749         * config/rs6000/sfp-machine.h: Likewise.
6750         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
6751         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
6752         (LIB2FUNCS_EXTRA): Remove.
6753         (TARGET_LIBGCC2_CFLAGS): Remove.
6754         * config/rs6000/t-aix52: Likewise
6755         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
6756         $(srcdir)/config/rs6000/darwin-ldouble.c.
6757         (SHLIB_MAPFILES): Remove.
6758         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
6759         $(srcdir)/config/rs6000/darwin-ldouble.c.
6760         * config/rs6000/t-fprules-softfp: Move to
6761         ../libgcc/config/t-softfp-sfdf.
6762         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
6763         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
6764         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
6765         $(srcdir)/config/rs6000/darwin-ldouble.c.
6766         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
6767         * config/score/t-score-softfp: Remove.
6768         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
6769         soft-fp/t-softfp from tmake_file.
6770         (arm*-*-uclinux*): Likewise.
6771         (arm*-*-ecos-elf): Likewise.
6772         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
6773         (arm*-*-rtems*): Likewise.
6774         (arm*-*-elf): Likewise.
6775         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
6776         tmake_file.
6777         (moxie-*-uclinux*): Likewise.
6778         (moxie-*-rtems*): Likewise.
6779         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
6780         tmake_file.
6781         (lm32-*-rtems*): Likewise.
6782         (lm32-*-uclinux*): Likewise.
6783         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
6784         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
6785         (powerpc-*-linux*, powerpc64-*-linux*): Remove
6786         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
6787         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
6788         tmake_file.
6789         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
6790         tmake_file.
6791         (tic6x-*-uclinux): Likewise.
6792         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
6793         soft-fp/t-softfp from tmake_file.
6794         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
6795         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
6796         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
6797         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
6798         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
6799
6800 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6801
6802         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
6803         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
6804         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
6805         TPBIT, TPBIT_FUNCS.
6806         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
6807         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
6808         Remove.
6809         * config/arm/t-vxworks: Likewise.
6810         * config/arm/t-wince-pe: Likewise.
6811         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
6812         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6813         * config/bfin/t-bfin-elf: Likewise.
6814         * config/bfin/t-bfin-linux: Likewise.
6815         * config/bfin/t-bfin-uclinux: Likewise.
6816         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
6817         Remove.
6818         * config/fr30/t-fr30: Likewise.
6819         * config/frv/t-frv: Likewise.
6820         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
6821         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6822         * config/m32c/t-m32c: Likewise.
6823         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
6824         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6825         * config/mcore/t-mcore: Likewise.
6826         * config/mep/t-mep: Likewise.
6827         * config/microblaze/t-microblaze: Likewise.
6828         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
6829         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6830         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
6831         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6832         * config/mn10300/t-linux: Remove.
6833         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6834         * config/pdp11/t-pdp11: Likewise.
6835         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
6836         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
6837         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6838         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
6839         * config/rs6000/t-aix52: Likewise.
6840         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
6841         $(srcdir)/config/rs6000/ppc64-fp.c.
6842         * config/rs6000/t-fprules-fpbit: Remove.
6843         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
6844         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6845         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
6846         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6847         * config/sparc/t-elf: Likewise.
6848         * config/sparc/t-leon: Likewise.
6849         * config/sparc/t-leon3: Likewise.
6850         * config/spu/t-spu-elf: Likewise.
6851         (DPBIT_FUNCS): Remove.
6852         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6853         * config/v850/t-v850: Likewise.
6854         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
6855         (avr-*-*): Likewise.
6856         (h8300-*-rtems*): Set libgcc_tm_file.
6857         (h8300-*-elf*): Likewise.
6858         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
6859         tmake_file.
6860         (powerpc-*-eabisim*): Likewise.
6861         (powerpc-*-elf*): Likewise.
6862         (powerpc-*-eabialtivec*): Likewise.
6863         (powerpc-xilinx-eabi*): Likewise.
6864         (powerpc-*-eabi*): Likewise.
6865         (powerpc-*-rtems*): Likewise.
6866         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
6867         (powerpcle-*-elf*): Likewise.
6868         (powerpcle-*-eabisim*): Likewise.
6869         (powerpcle-*-eabi*): Likewise.
6870         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
6871         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
6872         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
6873         Remove.
6874
6875 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6876
6877         * Makefile.in (UNWIND_H): Remove.
6878         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
6879         ../libgcc/Makefile.in.
6880         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
6881         (LIBUNWINDDEP): Remove.
6882         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
6883         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
6884         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
6885         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
6886         Don't copy $(UNWIND_H).
6887         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
6888         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
6889         * aclocal.m4: Regenerate.
6890         * configure: Regenerate.
6891         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
6892         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
6893         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
6894         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
6895         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
6896         * config/arm/libunwind.S, config/arm/pr-support.c,
6897         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
6898         ../libgcc/config/arm.
6899         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
6900         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
6901         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
6902         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
6903         ($(T)frvend$(objext)): Likewise.
6904         * config/ia64/t-glibc (LIB2ADDEH): Remove.
6905         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
6906         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
6907         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
6908         ../libgcc/config/ia64.
6909         * config/ia64/t-hpux (LIB2ADDEH): Remove.
6910         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
6911         * config/ia64/t-vms (LIB2ADDEH): Remove.
6912         * config/ia64/vms.h (UNW_IVMS_MODE,
6913         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
6914         * config/picochip/t-picochip (LIB2ADDEH): Remove.
6915         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
6916         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
6917         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
6918         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
6919         $(srcdir)/../libgcc to refer to unwinder sources.
6920         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
6921         * config/t-darwin (LIB2ADDEH): Remove.
6922         * config/t-freebsd (LIB2ADDEH): Remove.
6923         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
6924         * config/t-libunwind-elf: Move to ../libgcc/config.
6925         * config/t-linux (LIB2ADDEH): Remove.
6926         * config/t-sol2 (LIB2ADDEH): Remove.
6927         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
6928         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
6929
6930 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
6931
6932         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
6933
6934         * doc/invoke.texi: Document core-avx-i.
6935
6936 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6937
6938         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
6939
6940 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
6941
6942         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
6943         result of multiple results reduction when extracting the final
6944         value using scalar code.
6945
6946 2011-08-05  Richard Guenther  <rguenther@suse.de>
6947
6948         PR tree-optimization/49984
6949         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
6950
6951 2011-08-05  Richard Guenther  <rguenther@suse.de>
6952
6953         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
6954         return true for constant integer ranges.
6955         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
6956         BIT_IOR_EXPR handling.
6957
6958 2011-08-04  Kai Tietz  <ktietz@redhat.com>
6959
6960         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
6961         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
6962
6963 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
6964
6965         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
6966         pattern def statement, and its access macro.
6967         (NUM_PATTERNS): Set to 5.
6968         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6969         pattern def statement.
6970         (vect_transform_loop): Likewise.
6971         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
6972         function vect_recog_over_widening_pattern ().
6973         (vect_operation_fits_smaller_type): New function.
6974         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
6975         Likewise.
6976         (vect_pattern_recog_1): Move the code that marks pattern
6977         statements to vect_mark_pattern_stmts (), and call it.  Update
6978         documentation.
6979         * tree-vect-stmts.c (vect_supportable_shift): New function.
6980         (vect_analyze_stmt): Handle pattern def statement.
6981         (new_stmt_vec_info): Initialize pattern def statement.
6982
6983 2011-08-04  Richard Henderson  <rth@redhat.com>
6984
6985         PR target/49964
6986         * config/i386/i386.c (ix86_expand_call): Don't create nested
6987         PARALLELs for TARGET_VZEROUPPER.
6988         (ix86_split_call_vzeroupper): Fix extraction of the original call.
6989         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
6990         recognize nested PARALLELs.
6991         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
6992         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
6993         *sibcall_value_pop_vzeroupper): Likewise.
6994
6995 2011-08-04  Richard Henderson  <rth@redhat.com>
6996
6997         PR middle-end/49968
6998         * calls.c (expand_call): Use fixup_args_size_notes for
6999         emit_stack_restore.
7000         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
7001         in non-standard modes.
7002
7003 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7004
7005         * gcc.c (self_spec): New variable.
7006         (static_specs): Add self_spec.
7007         (main): Call do_self_spec on "self_spec" specs after reading
7008         user specs files.  Move compare_debug handling right after that.
7009
7010 2011-08-04  Richard Guenther  <rguenther@suse.de>
7011
7012         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
7013         (value_range_nonnegative_p): New function.
7014         (ssa_name_nonnegative_p): Use it.
7015         (value_range_constant_singleton): New function.
7016         (op_with_constant_singleton_value_range): Use it.
7017         (extract_range_from_binary_expr_1): New function, split out from ...
7018         (extract_range_from_binary_expr): ... this.  Remove fallback
7019         constant folding done here.
7020
7021 2011-08-04  Richard Guenther  <rguenther@suse.de>
7022
7023         PR tree-optimization/49806
7024         * tree-vrp.c (op_with_boolean_value_range_p): New function.
7025         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
7026         a new statement for a final conversion to bool.
7027
7028 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
7029
7030         * gengtype-state.c: Include "bconfig.h" if
7031         GENERATOR_FILE is defined, "config.h" otherwise.
7032         * gengtype.c: Likewise.
7033         * gengtype-lex.l: Likewise.
7034         * gengtype-parse.c: Likewise.
7035         * Makefile.in (gengtype-lex.o-warn): New variable.
7036         (plugin_resourcesdir): Likewise.
7037         (plugin_bindir): Likewise.
7038         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
7039         (MOSTLYCLEANFILES): Add gengtype$(exeext).
7040         (native): Depend on gengtype$(exeext) is $enable_plugin
7041         is set to "yes".
7042         (gtype.state): Depend on s-gtype. Use temporary file.
7043         (gengtype-lex.o): New rule.
7044         (gengtype-parse.o): Likewise.
7045         (gengtype-state.o): Likewise.
7046         (gengtype$(exeext)): Likewise.
7047         (install-gengtype): Likewise.
7048         (gengtype.o): Likewise.
7049         (build/gengtype.o): Depend on version.h.
7050         (build/gengtype-state): Depend on double-int.h, version.h,
7051         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
7052         (install-plugin): Depend on install-gengtype.
7053
7054 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7055
7056         PR middle-end/49905
7057         * tree.h (init_attributes): New prototype.
7058         * attribs.c (init_attributes): No longer static.
7059
7060 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7061
7062         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
7063         maybe_suffix.
7064
7065 2011-08-03   David Li  <davidxl@google.com>
7066
7067         * tree-optimize.c (execute_fixup_cfg): Fix up entry
7068         outgoing edge counts after inlining.
7069
7070 2011-08-03   David Li  <davidxl@google.com>
7071
7072         * profile.c (compute_branch_probabilities): Compute
7073         function frequency after profile annotation.
7074
7075 2011-08-04  Alan Modra  <amodra@gmail.com>
7076
7077         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
7078         use_backchain_to_restore_sp initialisation.
7079         (rs6000_legitimate_offset_address_p): Simplify offset test.
7080
7081 2011-08-03  Richard Henderson  <rth@redhat.com>
7082
7083         * config/spu/spu.md: Use define_c_enum instead of define_constants.
7084         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
7085         (UNSPECV_NOP): New.
7086
7087 2011-08-03  Richard Henderson  <rth@redhat.com>
7088
7089         PR target/34888
7090         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
7091
7092 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
7093
7094         PR tree-optimization/49948
7095         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
7096
7097 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
7098
7099         * config/m32c/m32c.c (class_sizes): Remove.
7100         (reduce_class): Change arguments and return type to reg_class_t.
7101         Change type cc var to HARD_REG_SET. Change type best var to
7102         reg_class_t. Change type best_size var to unsigned int. Remove
7103         initialization class_sizes var. Use reg_class_size array instead
7104         of class_sizes. Use reg_class_contents array instead
7105         of class_contents.
7106
7107 2011-08-03  Richard Guenther  <rguenther@suse.de>
7108
7109         PR middle-end/49958
7110         * fold-const.c (fold_binary_loc): Only associate
7111         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
7112         overflow wraps.
7113
7114 2011-08-03  Alan Modra  <amodra@gmail.com>
7115
7116         PR rtl-optimization/49941
7117         * jump.c (mark_jump_label): Comment.
7118         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
7119         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
7120         (mark_used_flags): Don't mark RETURN.
7121
7122 2011-08-03  Richard Guenther  <rguenther@suse.de>
7123
7124         PR tree-optimization/49938
7125         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
7126         deal with a POLYNOMIAL_CHREC.
7127
7128 2011-08-03  Revital Eres  <revital.eres@linaro.org>
7129
7130         * modulo-sched.c (calculate_stage_count,
7131         calculate_must_precede_follow, get_sched_window,
7132         try_scheduling_node_in_cycle, remove_node_from_ps): Add
7133         declaration.
7134         (update_node_sched_params, set_must_precede_follow, optimize_sc):
7135         New functions.
7136         (reset_sched_times): Call update_node_sched_params.
7137         (sms_schedule): Call optimize_sc.
7138         (get_sched_window): Change function arguments.
7139         (sms_schedule_by_order): Update call to get_sched_window.
7140         Call set_must_precede_follow.
7141         (calculate_stage_count): Add function argument.
7142
7143 2011-08-02  Richard Henderson  <rth@redhat.com>
7144
7145         PR target/49864
7146         PR target/49879
7147         * reg-notes.def (REG_ARGS_SIZE): New.
7148         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
7149         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
7150         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
7151         different stack levels.
7152         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
7153         (maybe_move_args_size_note): New.
7154         (combine_stack_adjustments_for_block): Use it.
7155         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
7156         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
7157         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
7158         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
7159         (cur_cfa): New.
7160         (queued_args_size): Remove.
7161         (add_cfi_args_size): Assert size is non-negative.
7162         (stack_adjust_offset, dwarf2out_args_size): Remove.
7163         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
7164         (notice_args_size, notice_eh_throw): New.
7165         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
7166         (dwarf2out_frame_debug_adjust_cfa): Likewise.
7167         (dwarf2out_frame_debug_cfa_offset): Likewise.
7168         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
7169         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
7170         (change_cfi_row): Don't emit args_size.
7171         (maybe_record_trace_start_abnormal): Split out from ...
7172         (maybe_record_trace_start): Here.  Set args_size_undefined.
7173         (create_trace_edges): Update to match.
7174         (scan_trace): Handle REG_ARGS_SIZE.
7175         (connect_traces): Connect args_size between EH insns.
7176         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
7177         * explow.c (suppress_reg_args_size): New.
7178         (adjust_stack_1): Split out from ...
7179         (adjust_stack): ... here.
7180         (anti_adjust_stack): Use it.
7181         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
7182         * expr.c (mem_autoinc_base): New.
7183         (fixup_args_size_notes): New.
7184         (emit_single_push_insn_1): Rename from emit_single_push_insn.
7185         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
7186         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
7187         * reload1.c (reload_as_needed): Likewise.
7188         * rtl.h (fixup_args_size_notes): Declare.
7189
7190 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
7191
7192         PR bootstrap/49914
7193         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
7194         of abs.
7195         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
7196         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
7197
7198 2011-08-02  Richard Henderson  <rth@redhat.com>
7199
7200         * config/h8300/h8300.c (push, pop): Return the insn.
7201         (h8300_swap_into_er6): Generate correct unwind info.
7202         (h8300_swap_out_of_er6): Likewise.
7203         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
7204         complex cfa expression.
7205         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
7206
7207 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
7208
7209         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7210
7211 2011-08-02  Richard Henderson  <rth@redhat.com>
7212
7213         PR target/49878
7214         * config/h8300/h8300.c (h8300_move_ok): New.
7215         * config/h8300/h8300-protos.h: Declare it.
7216         * config/h8300/h8300.md (P): New mode iterator.
7217         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
7218         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
7219         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
7220         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
7221         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
7222         and pushqi1_h8300hs_normal; use PRE_MODIFY and
7223         register_no_sp_elim_operand.
7224         (*pushhi1_h8300hs_<P>): Similarly.
7225         (pushqi1, pushhi1, pushhi1_h8300): Remove.
7226         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
7227
7228 2011-08-02  Richard Henderson  <rth@redhat.com>
7229
7230         PR target/49881
7231         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
7232
7233 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
7234
7235         * c-parser.c (enum c_parser_prec): New enum, moved from within
7236         c_parser_binary_expression.
7237         (c_parser_binary_expression): Add PREC argument.  Stop parsing
7238         if operator has lower or equal precedence than PREC.
7239         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
7240         callers.
7241         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
7242         Adjust c_finish_omp_atomic caller.
7243         (c_parser_omp_taskyield): New function.
7244         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
7245         (c_parser_omp_clause_name): Handle final and mergeable clauses.
7246         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
7247         functions.
7248         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
7249         and PRAGMA_OMP_CLAUSE_MERGEABLE.
7250         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
7251         (c_parser_omp_clause_reduction): Handle min and max.
7252         * c-typeck.c (c_finish_omp_clauses): Don't complain about
7253         const qualified predetermined vars in firstprivate clause.
7254         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7255         Handle MIN_EXPR and MAX_EXPR.
7256         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
7257         and OMP_CLAUSE_MERGEABLE.
7258         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
7259         and OMP_ATOMIC_CAPTURE_NEW.
7260         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
7261         OMP_CLAUSE_MERGEABLE.
7262         (omp_clause_code_name): Likewise.
7263         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7264         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
7265         and OMP_CLAUSE_MERGEABLE.
7266         (OMP_CLAUSE_FINAL_EXPR): Define.
7267         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
7268         OMP_CLAUSE_MERGEABLE.
7269         (expand_task_call): Likewise.
7270         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
7271         (expand_omp_atomic_fetch_op): Handle cases where old or new
7272         value is needed afterwards.
7273         (expand_omp_atomic): Call expand_omp_atomic_load resp.
7274         expand_omp_atomic_store.
7275         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
7276         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
7277         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
7278         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7279         * tree-nested.c (convert_nonlocal_omp_clauses,
7280         convert_local_omp_clauses): Likewise.
7281         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
7282         OMP_ATOMIC_CAPTURE_NEW): New.
7283         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
7284         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
7285         New inlines.
7286         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
7287         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
7288         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7289
7290 2011-08-02  Kai Tietz  <ktietz@redhat.com>
7291
7292         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
7293         boolean-type.
7294         (ssa_forward_propagate_and_combine): Interprete result of
7295         forward_propagate_comparison.
7296         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
7297         boolean-typed operands for comparisons.
7298
7299 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
7300
7301         * config/avr/libgcc.S: Gather related function in the
7302         same input section.
7303         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
7304         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
7305         references.
7306         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
7307         __udivmodsi4, __divmodsi4, __prologue_saves__,
7308         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
7309         __do_copy_data, __do_clear_bss, __do_global_ctors,
7310         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
7311
7312 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
7313
7314         PR target/47766
7315         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
7316         (stack_protect_test): The pattern compares ptr_mode value.
7317
7318 2011-08-02  Alan Modra  <amodra@gmail.com>
7319
7320         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
7321         note for save_LR_around_toc_setup sequence.
7322
7323 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
7324
7325         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
7326
7327 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
7328             Joseph Myers  <joseph@codesourcery.com>
7329
7330         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
7331         * hwint.c: Include diagnostic-core.h.
7332         (abs_hwi): New.
7333         (gcd): Moved here...
7334         (pos_mul_hwi): New.
7335         (mul_hwi): New.
7336         (least_common_multiple): Moved here...
7337         * hwint.h (gcd): ... from here.
7338         (least_common_multiple): ... from here.
7339         (HOST_WIDE_INT_MIN): New.
7340         (HOST_WIDE_INT_MAX): New.
7341         (abs_hwi): Declared.
7342         (gcd): Declared.
7343         (pos_mul_hwi): Declared.
7344         (mul_hwi): Declared.
7345         (least_common_multiple): Declared.
7346         * omega.c (check_pos_mul): Removed.
7347         (check_mul): Removed.
7348         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
7349         mul_hwi instead of check_mul.
7350
7351 2011-08-01  Richard Henderson  <rth@redhat.com>
7352
7353         PR target/49881
7354         * config/avr/avr.h (PUSH_ROUNDING): New.
7355         * config/avr/avr.md (pushqi1): Rename from *pushqi.
7356         (*pushhi, *pushsi, *pushsf): Remove.
7357         (MPUSH): New mode iterator.
7358         (push<MPUSH>1): New expander.
7359
7360 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
7361
7362         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
7363         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
7364         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
7365         mmix_preferred_output_reload_class): Remove.
7366         * config/mmix/mmix.c (mmix_preferred_reload_class,
7367         mmix_preferred_output_reload_class): Make static. Change rclass
7368         argument and return type to reg_class_t.
7369         (TARGET_PREFERRED_RELOAD_CLASS,
7370         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7371
7372 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
7373
7374         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
7375         handling.
7376
7377 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
7378
7379         PR target/47766
7380         * config/i386/i386.md (PTR): New.
7381         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
7382         (stack_protect_test): Likewise.
7383         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
7384         (stack_tls_protect_set_<mode>): Likewise.
7385         (stack_tls_protect_test_<mode>): Likewise.
7386
7387 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
7388
7389         PR target/49927
7390         * config/i386/i386.c (ix86_address_subreg_operand): New.
7391         (ix86_decompose_address): Use ix86_address_subreg_operand.
7392         (ix86_legitimate_address_p): Do not assert that subregs satisfy
7393         register_no_elim_operand in DImode.
7394
7395 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
7396
7397         PR tree-optimization/49926
7398         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
7399         in a chain doesn't have uses both inside and outside the loop.
7400
7401 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
7402
7403         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
7404         * config/avr/avr-devices.c (avr_mcu_types): Use it.
7405         * config/avr/avr-mcus.def (AVR_MCU): Use it.
7406         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
7407         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
7408         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
7409         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
7410         to detect if XJMP must not be skipped.
7411
7412 2011-08-02  Alan Modra  <amodra@gmail.com>
7413
7414         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
7415         Delete.
7416         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
7417         (rs6000_emit_prologue): Don't prematurely return when
7418         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
7419         save_toc_in_prologue case.
7420         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
7421         calls_alloca.
7422
7423 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
7424
7425         * config/avr/avr-devices.c: Delete SVN property svn:executable.
7426         * config/avr/predicates.md: Ditto.
7427         * config/avr/driver-avr.c: Ditto.
7428         * config/avr/genopt.sh: Set SVN property svn:executable to *.
7429
7430 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
7431
7432         * calls.c (emit_library_call_value_1): Declare size only if
7433         BLOCK_REG_PADDING is defined.
7434
7435 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
7436
7437         PR target/49547
7438         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
7439         (x86_64-*-*): Likewise.
7440         * config/i386/i386.opt (mlzcnt): New.
7441         * config/i386/abmintrin.h: File removed.
7442         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
7443         * config/i386/lzcntintrin.h: ... here.  New file.
7444         (__lzcnt): Rename to ...
7445         (__lzcnt32): ... this.
7446         * config/i386/bmiintrin.h (head): Update copyright year.
7447         (__lzcnt_u16): Removed.
7448         (__lzcnt_u32): Likewise.
7449         (__lzcnt_u64): Likewise.
7450         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
7451         is defined, remove abmintrin.h.
7452         * config/i386/cpuid.h (bit_LZCNT): New.
7453         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7454         LZCNT feature.
7455         * config/i386/i386-c.c (ix86_target_macros_internal): Define
7456         __LZCNT__ if needed.
7457         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
7458         (ix86_option_override_internal): Handle LZCNT option.
7459         (ix86_valid_target_attribute_inner_p): Likewise.
7460         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
7461         * config/i386/i386.h (TARGET_LZCNT): New.
7462         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
7463         * config/i386/i386.md (clz<mode>2): Update insn constraint.
7464         (clz<mode>2_lzcnt): Likewise.
7465         * doc/invoke.texi: Mention -mlzcnt option.
7466         * doc/extend.texi: Likewise.
7467
7468 2011-08-01  Julian Brown  <julian@codesourcery.com>
7469
7470         * configure.ac (fixed-point): Add ARM support.
7471         * configure: Regenerate.
7472         * config/arm/arm.c (arm_fixed_mode_set): New struct.
7473         (arm_set_fixed_optab_libfunc): New.
7474         (arm_set_fixed_conv_libfunc): New.
7475         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
7476         ARM-specific names.
7477         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
7478         return values in SImode.
7479         (arm_return_in_msb): Return fixed-point types in the msb.
7480         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
7481         upwards.
7482         (arm_scalar_mode_supported_p): Support fixed-point modes.
7483         (arm_vector_mode_supported_p): Support vector fixed-point modes.
7484         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
7485         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
7486         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
7487         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
7488         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
7489         New mode iterators.
7490         (qaddsub_suf): New mode attribute.
7491         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
7492         vector modes.
7493         * config/arm/predicates.md (sat_shift_operator): New predicate.
7494         * config/arm/arm-fixed.md: New.
7495         * config/arm/arm.md: Include arm-fixed.md.
7496         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
7497
7498 2011-08-01  Julian Brown  <julian@codesourcery.com>
7499
7500         * calls.c (emit_library_call_value_1): Support padding for libcall
7501         arguments and return values.
7502         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
7503         downwards in big-endian mode.
7504
7505 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7506
7507         PR debug/49887
7508         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
7509         * config/sol2-protos.h: Likewise.
7510         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
7511         solaris_code_end.
7512         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
7513         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
7514         solaris_file_end.
7515         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
7516
7517 2011-08-01  Julian Brown  <julian@codesourcery.com>
7518
7519         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
7520
7521 2011-08-01  Julian Brown  <julian@codesourcery.com>
7522
7523         * final.c (output_addr_const): Print fixed-point constants as
7524         decimal not hex.
7525
7526 2011-08-01  Richard Guenther  <rguenther@suse.de>
7527
7528         * stor-layout.c (initialize_sizetypes): Properly sign-extend
7529         bitsiztype TYPE_MAX_VALUE.
7530
7531 2011-08-01  Julian Brown  <julian@codesourcery.com>
7532
7533         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
7534         comparison helpers.
7535
7536 2011-07-31  Richard Henderson  <rth@redhat.com>
7537
7538         * config/h8300/crti.asm: Add flags to .section directive.
7539         * config/h8300/crtn.asm: Likewise.
7540
7541 2011-07-31  Richard Henderson  <rth@redhat.com>
7542
7543         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
7544         * tree.c (build_common_tree_nodes): Likewise.
7545
7546 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7547
7548         PR target/49880
7549         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
7550         (divsi3_i1): Likewise.
7551
7552 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7553
7554         PR tree-optimization/49749
7555         * tree-ssa-reassoc.c (get_rank): New forward declaration.
7556         (PHI_LOOP_BIAS): New macro.
7557         (phi_rank): New function.
7558         (loop_carried_phi): Likewise.
7559         (propagate_rank): Likewise.
7560         (get_rank): Add calls to phi_rank and propagate_rank.
7561
7562 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
7563
7564         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
7565         of TARGET_64BIT.
7566         (PTRDIFF_TYPE): Likewise.
7567
7568 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
7569
7570         PR target/49920
7571         * config/i386/i386.md (strset): Do not expand strset_singleop
7572         when %eax or $edi are fixed.
7573         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
7574         (*strsetsi_1): Ditto.
7575         (*strsethi_1): Ditto.
7576         (*strsetqi_1): Ditto.
7577         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
7578         (*rep_stossi): Ditto.
7579         (*rep_stosqi): Ditto.
7580         (*strlenqi_1): Ditto.
7581         (cmpstrnsi): Also fail when %ecx is fixed.
7582         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
7583         (*cmpstrnqi_1): Ditto.
7584         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
7585         (*strmovsi_1): Ditto.
7586         (*strmovhi_1): Ditto.
7587         (*strmovqi_1): Ditto.
7588         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
7589         (*rep_movsi): Ditto.
7590         (*rep_movqi): Ditto.
7591
7592 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
7593
7594         PR target/47908
7595         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
7596         Disable instruction scheduling for non-ColdFire targets.
7597         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7598
7599 2011-07-31  Revital Eres  <revital.eres@linaro.org>
7600
7601         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
7602         of anti-dep edge from a branch.
7603         (add_cross_iteration_register_deps): Create anti-dep edge from
7604         a branch.
7605
7606 2011-07-31  Revital Eres  <revital.eres@linaro.org>
7607
7608         * modulo-sched.c: Change comment.
7609         (reset_sched_times): Fix print message.
7610         (print_partial_schedule): Add print info.
7611
7612 2011-07-31  Tom de Vries  <tom@codesourcery.com>
7613
7614         PR middle-end/43513
7615         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
7616         get_object_alignment and TYPE_ALIGN.
7617
7618 2011-07-30  Tom de Vries  <tom@codesourcery.com>
7619
7620         PR middle-end/43513
7621         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
7622         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
7623
7624 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7625
7626         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
7627         <sys/sbd.h>.
7628         (cpu_types): New array.
7629         (cputype): New function.
7630         (host_detect_local_cpu): Only define buf, f if !__sgi__.
7631         Use scaninvent instead of /proc/cpuinfo if __sgi__.
7632         * config.host: Also use driver-native.o, mips/x-native on
7633         mips-sgi-irix*.
7634         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
7635         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
7636         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
7637
7638 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
7639
7640         PR middle-end/49897
7641         PR middle-end/49898
7642         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
7643         in nested parallel and outer is a gimple_reg, mark it as addressable
7644         and set its bit in task_shared_vars bitmap too.
7645
7646 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
7647
7648         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
7649
7650 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7651
7652         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
7653         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
7654         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
7655         AMASK_LOCKPFTCHOK): Define.
7656         (host_detect_local_cpu): Remove buf, f, cpu_names.
7657         Define cpu_types, implver, amask.
7658         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
7659         native CPU.
7660         * config.host: Also use driver-alpha.o, alpha/x-alpha on
7661         alpha*-dec-osf*.
7662         * config/alpha/osf5.h [__alpha__ || __alpha]
7663         (host_detect_local_cpu): Declare.
7664         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
7665         (DRIVER_SELF_SPECS): Define.
7666
7667 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
7668
7669         PR target/47715
7670         * config/i386/i386.md (*load_tp_x32): New.
7671         (*load_tp_x32_zext): Ditto.
7672         (*add_tp_x32): Ditto.
7673         (*add_tp_x32_zext): Ditto.
7674         (*load_tp_<mode>): Disable for TARGET_X32 targets.
7675         (*add_tp_<mode>): Ditto.
7676         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
7677         ptr_mode and convert to Pmode if needed.
7678
7679 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
7680
7681         PR target/49687
7682         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
7683         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
7684         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
7685         Add X to register footprint: Clobber r26/r27.
7686
7687 2011-07-29  Richard Guenther  <rguenther@suse.de>
7688
7689         * builtins.c (fold_builtin_signbit): Build the comparison
7690         with a proper type.
7691
7692 2011-07-29  Richard Guenther  <rguenther@suse.de>
7693
7694         PR tree-optimization/49893
7695         * tree-predcom.c (suitable_reference_p): Volatile references
7696         are not suitable.
7697
7698 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
7699
7700         PR target/49313
7701         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
7702         (__ctzsi2): Result for 0 may be undefined.
7703         (__ctzhi2): Result for 0 may be undefined.
7704         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
7705         (__popcountsi2): Ditto. And don't clobber r26.
7706         (__popcountdi2): Ditto. And don't clobber r27.
7707         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
7708         (parityhi2): New expand.
7709         (paritysi2): New expand.
7710         (popcounthi2): New expand.
7711         (popcountsi2): New expand.
7712         (clzhi2): New expand.
7713         (clzsi2): New expand.
7714         (ctzhi2): New expand.
7715         (ctzsi2): New expand.
7716         (ffshi2): New expand.
7717         (ffssi2): New expand.
7718         (copysignsf3): New insn.
7719         (bswapsi2): New expand.
7720         (*parityhi2.libgcc): New insn.
7721         (*parityqihi2.libgcc): New insn.
7722         (*paritysihi2.libgcc): New insn.
7723         (*popcounthi2.libgcc): New insn.
7724         (*popcountsi2.libgcc): New insn.
7725         (*popcountqi2.libgcc): New insn.
7726         (*popcountqihi2.libgcc): New insn-and-split.
7727         (*clzhi2.libgcc): New insn.
7728         (*clzsihi2.libgcc): New insn.
7729         (*ctzhi2.libgcc): New insn.
7730         (*ctzsihi2.libgcc): New insn.
7731         (*ffshi2.libgcc): New insn.
7732         (*ffssihi2.libgcc): New insn.
7733         (*bswapsi2.libgcc): New insn.
7734
7735 2011-07-29  Richard Guenther  <rguenther@suse.de>
7736
7737         * tree-vrp.c (get_value_range): Only set parameter default
7738         definitions to varying, leave others at undefined.
7739         (extract_range_from_binary_expr): Fix undefined handling.
7740         (vrp_visit_phi_node): Handle merged undefined state.
7741
7742 2011-07-29  Wei Guozhi  <carrot@google.com>
7743
7744         PR rtl-optimization/49799
7745         * combine.c (make_compound_operation): Check if the bit field is valid
7746         before change it to bit field extraction.
7747
7748 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7749
7750         PR rtl-optimization/49891
7751         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
7752         newly created returnjumps.
7753
7754 2011-07-28  DJ Delorie  <dj@redhat.com>
7755
7756         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
7757         local frame in a naked function, and produce a suitable error for
7758         that specific case.
7759
7760         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
7761         registers to be reloaded in HI classes when the target is HI.
7762
7763 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7764
7765         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
7766         bound_one, bound_two.
7767
7768 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7769
7770         PR middle-end/48648
7771         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
7772         CLAST assignments.
7773         (translate_clast): Same.
7774         (translate_clast_assignment): New.
7775
7776 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7777
7778         PR tree-optimization/49876
7779         * sese.c (rename_uses): Do not return false on gloog_error: set
7780         the new_expr to integer_zero_node and continue code generation.
7781         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
7782
7783 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
7784
7785         PR debug/49846
7786         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
7787         arguments also check if they aren't initialized with a MODE_INT
7788         mode of the same size.
7789
7790 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
7791
7792         * expr.c (get_bit_range): Handle *MEM_REF's.
7793
7794 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
7795
7796         * rtlanal.c (tablejump_p): False for returns.
7797         * reorg.c (first_active_target_insn): New static function.
7798         (find_end_label): Set JUMP_LABEL for a new returnjump.
7799         (optimize_skip, get_jump_flags, rare_destination,
7800         mostly_true_jump, get_branch_condition,
7801         steal_delay_list_from_target, own_thread_p,
7802         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
7803         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
7804         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
7805         * jump.c (delete_related_insns): Likewise.
7806         (jump_to_label_p): New function.
7807         (redirect_target): New static function.
7808         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
7809         (redirect_jump_1): Assert that the new label is nonnull.
7810         (redirect_jump): Likewise.
7811         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
7812         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
7813         exit block.
7814         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
7815         changed.  Ensure that the right label is passed to redirect_jump.
7816         * function.c (emit_return_into_block,
7817         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
7818         ret_rtx in their JUMP_LABEL.
7819         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
7820         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
7821         pass ret_rtx as label.
7822         * cfglayout.c (fixup_reorder_chain): Use
7823         force_nonfallthru_and_redirect rather than force_nonfallthru.
7824         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
7825         * rtl.h (ANY_RETURN_P): New macro.
7826         (jump_to_label_p): Declare.
7827         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
7828         JUMP_LABELs.
7829         (mark_target_live_regs): Likewise.
7830         * basic-block.h (force_nonfallthru_and_redirect): Declare.
7831         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
7832         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
7833         alpha_tablejump_best_label): Remove functions.
7834         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
7835         alpha_tablejump_best_label): Remove declarations.
7836         * config/sh/sh.c (barrier_align, split_branches): Adjust for
7837         ret_rtx in JUMP_LABELs.
7838         * config/arm/arm.c (is_jump_table): Likewise.
7839
7840 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7841
7842         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
7843         special predicate.  Remove explicit mode checks.
7844
7845 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
7846
7847         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
7848         DW_AT_data_member_location containing just DW_OP_plus_uconst.
7849
7850         PR debug/49871
7851         * dwarf2out.c (size_of_die, value_format, output_die): Use
7852         DW_FORM_udata instead of DW_FORM_data[48] for
7853         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
7854
7855 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7856
7857         * config/i386/i386.md (*tls_global_dynamic_64): Update
7858         length attribute.
7859
7860 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7861
7862         PR target/47715
7863         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
7864         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
7865         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
7866         (tls_dynamic_gnu2_64): Ditto.
7867         (*tls_dynamic_gnu2_lea_64): Ditto.
7868         (*tls_dynamic_gnu2_call_64): Ditto.
7869         (*tls_dynamic_gnu2_combine_64): Ditto.
7870
7871 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7872
7873         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
7874
7875 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7876
7877         PR target/47364
7878         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
7879
7880 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7881
7882         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
7883         before the core constraints. Adjust attributes.
7884         ("*thumb2_movdf_vfp"): Likewise.
7885
7886 2011-07-28  Kai Tietz  <ktietz@redhat.com>
7887
7888         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
7889         (simplify_truth_ops_using_ranges): Likewise.
7890         (build_assert_expr_for): Likewise.
7891         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
7892         and handle BIT_NOT_EXPR for truth-operation.
7893
7894 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
7895
7896         PR target/49313
7897         Undo r176835 from trunk
7898         2011-07-27  Georg-Johann Lay
7899
7900 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
7901
7902         PR target/49687
7903         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
7904         Add _muluhisi3, _mulshisi3, _usmulhisi3.
7905         * config/avr/libgcc.S (__mulsi3): Rewrite.
7906         (__mulhisi3): Rewrite.
7907         (__umulhisi3): Rewrite.
7908         (__usmulhisi3): New.
7909         (__muluhisi3): New.
7910         (__mulshisi3): New.
7911         (__mulohisi3): New.
7912         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
7913         declare.
7914         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
7915         (pseudo_register_or_const_int_operand): New.
7916         (combine_pseudo_register_operand): New.
7917         (u16_operand): New.
7918         (s16_operand): New.
7919         (o16_operand): New.
7920         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
7921         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
7922         (any_extend, any_extend2): New code iterators.
7923         (extend_prefix): New code attribute.
7924         (mulsi3): Rewrite. Turn insn to expander.
7925         (mulhisi3): Ditto.
7926         (umulhisi3): Ditto.
7927         (usmulhisi3): New expander.
7928         (*mulsi3): New insn-and-split.
7929         (mulu<mode>si3): New insn-and-split.
7930         (muls<mode>si3): New insn-and-split.
7931         (mulohisi3): New insn-and-split.
7932         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
7933         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
7934         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
7935         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
7936         insn-and-split.
7937         (*mulsi3_call): Rewrite.
7938         (*mulhisi3_call): Rewrite.
7939         (*umulhisi3_call): Rewrite.
7940         (*usmulhisi3_call): New insn.
7941         (*muluhisi3_call): New insn.
7942         (*mulshisi3_call): New insn.
7943         (*mulohisi3_call): New insn.
7944         (extendqihi2): Use combine_pseudo_register_operand as predicate
7945         for operand 1.
7946         (extendqisi2): Ditto.
7947         (zero_extendqihi2): Ditto.
7948         (zero_extendqisi2): Ditto.
7949         (zero_extendhisi2): Ditto.
7950         (extendhisi2): Ditto. Don't early-clobber operand 0.
7951
7952 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7953
7954         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
7955
7956 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
7957
7958         PR tree-optimization/49471
7959         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
7960         iv only when the largest type is unsigned.  Do not call
7961         lang_hooks.types.type_for_size.
7962
7963 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
7964
7965         PR middle-end/45450
7966         * graphite-poly.c (apply_poly_transforms): Disable legality check
7967         after an openscop read.
7968
7969 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
7970
7971         PR middle-end/47691
7972         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
7973         copy_bb_and_scalar_dependences.
7974         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
7975         (graphite_copy_stmts_from_block): Update call to rename_uses.
7976         (copy_bb_and_scalar_dependences): Update call to
7977         graphite_copy_stmts_from_block.
7978         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
7979
7980 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
7981
7982         PR target/49313
7983         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
7984         (__ctzsi2): Result for 0 may be undefined.
7985         (__ctzhi2): Result for 0 may be undefined.
7986         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
7987         (__popcountsi2): Ditto. And don't clobber r26.
7988         (__popcountdi2): Ditto. And don't clobber r27.
7989         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
7990         (parityhi2): New expand.
7991         (paritysi2): New expand.
7992         (popcounthi2): New expand.
7993         (popcountsi2): New expand.
7994         (clzhi2): New expand.
7995         (clzsi2): New expand.
7996         (ctzhi2): New expand.
7997         (ctzsi2): New expand.
7998         (ffshi2): New expand.
7999         (ffssi2): New expand.
8000         (copysignsf3): New insn.
8001         (bswapsi2): New expand.
8002         (*parityhi2.libgcc): New insn.
8003         (*parityqihi2.libgcc): New insn.
8004         (*paritysihi2.libgcc): New insn.
8005         (*popcounthi2.libgcc): New insn.
8006         (*popcountsi2.libgcc): New insn.
8007         (*popcountqi2.libgcc): New insn.
8008         (*popcountqihi2.libgcc): New insn-and-split.
8009         (*clzhi2.libgcc): New insn.
8010         (*clzsihi2.libgcc): New insn.
8011         (*ctzhi2.libgcc): New insn.
8012         (*ctzsihi2.libgcc): New insn.
8013         (*ffshi2.libgcc): New insn.
8014         (*ffssihi2.libgcc): New insn.
8015         (*bswapsi2.libgcc): New insn.
8016
8017 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8018
8019         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
8020         the mode of symbolic_opreand RTXes.
8021
8022 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8023
8024         * config/i386/predicates.md (x86_64_movabs_operand): Return false
8025         for pic_32bit_operand RTXes.
8026         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
8027         in DImode.
8028
8029 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8030
8031         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
8032         for 32-bit, too.
8033         (ix86_handle_abi_attribute): Allow function attributes
8034         ms_abi/sysv_abi in 32-bit mode, too.
8035         * doc/extend.texi: Adjust attribute documentation.
8036
8037         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
8038         expression handling.
8039         (and_var_with_comparison_1): Likewise.
8040
8041 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
8042
8043         * params.h (ALLOW_STORE_DATA_RACES): New.
8044         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
8045         * Makefile.in (expr.o): Depend on PARAMS_H.
8046         * machmode.h (get_best_mode): Add argument.
8047         * fold-const.c (optimize_bit_field_compare): Add argument to
8048         get_best_mode.
8049         (fold_truthop): Same.
8050         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
8051         * expr.c (emit_group_store): Same.
8052         (copy_blkmode_from_reg): Same.
8053         (write_complex_part): Same.
8054         (optimize_bitfield_assignment_op): Add argument.
8055         Add argument to get_best_mode.
8056         (get_bit_range): New.
8057         (expand_assignment): Calculate maxbits and pass it down accordingly.
8058         (store_field): New argument.
8059         (expand_expr_real_2): New argument to store_field.  Include params.h.
8060         * expr.h (store_bit_field): New argument.
8061         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
8062         into account maxbits.
8063         * calls.c (store_unaligned_arguments_into_pseudos): New argument
8064         to store_bit_field.
8065         * expmed.c (store_bit_field_1): New argument.  Use it.
8066         (store_bit_field): Same.
8067         (store_fixed_bit_field): Same.
8068         (store_split_bit_field): Same.
8069         (extract_bit_field_1): Pass new argument to get_best_mode.
8070         (extract_bit_field): Same.
8071         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
8072         * doc/invoke.texi: Document parameter allow-store-data-races.
8073
8074 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
8075
8076         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
8077
8078 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8079
8080         * tree-vrp.c (extract_range_from_binary_expr): Remove
8081         TRUTH-binary cases and add new bitwise-cases.
8082         (extract_range_from_assignment): Likewise.
8083         (register_edge_assert_for_1): Likeiwise.
8084         (register_edge_assert_for): Likewise.
8085         (simplify_truth_ops_using_ranges): Likewise.
8086         (simplify_stmt_using_ranges): Likewise.
8087
8088 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
8089
8090         PR target/47372
8091         * config/i386/i386.c (ix86_delegitimize_address): Call
8092         simplify_gen_subreg for PIC with mode of x only if modes of
8093         x and orig_x are different.
8094
8095 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
8096
8097         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
8098         to GC allocated copy of the string.
8099         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
8100         before .debug_line, not after it.
8101
8102 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8103
8104         PR middle-end/47046
8105         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
8106         evolution_function_is_affine_p on CHREC_RIGHT.
8107
8108 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8109
8110         * tree-data-ref.c (max_stmt_executions_tree): Do not call
8111         lang_hooks.types.type_for_size.
8112
8113 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8114
8115         PR middle-end/47653
8116         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
8117         loops using wrapping semantics.
8118
8119 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8120
8121         PR middle-end/48805
8122         * tree-scalar-evolution.c (instantiate_scev_r): Return
8123         chrec_dont_know for ADDR_EXPR.
8124
8125 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
8126             H.J. Lu  <hongjiu.lu@intel.com>
8127
8128         PR target/47369
8129         PR target/49853
8130         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
8131         if legitimize_tls_address returned operand in wrong mode. Allow
8132         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
8133         if legitimize_pic_address returned operand in wrong mode.
8134
8135 2011-07-26  Martin Jambor  <mjambor@suse.cz>
8136
8137         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
8138         return false for invariants.
8139
8140 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
8141
8142         * config/i386/i386.md (add->lea splitter): Implement using SWI
8143         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
8144         (add->lea zext splitter): Change operand 2 predicate to
8145         x86_64_nonmemory_operand.
8146
8147 2011-07-26  Richard Guenther  <rguenther@suse.de>
8148
8149         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
8150         frequency makes everything hot.
8151
8152 2011-07-26  Richard Guenther  <rguenther@suse.de>
8153
8154         PR tree-optimization/49840
8155         * tree-vrp.c (range_fits_type_p): Properly handle full
8156         double-int precision.
8157
8158 2011-07-26  Martin Jambor  <mjambor@suse.cz>
8159
8160         PR bootstrap/49786
8161         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
8162         counts.
8163         (update_specialized_profile): Likewise.
8164
8165 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
8166             H.J. Lu  <hongjiu.lu@intel.com>
8167
8168         PR target/47381
8169         PR target/49832
8170         PR target/49833
8171         * config/i386/i386.md (i): Change SImode attribute to "e".
8172         (g): Change SImode attribute to "rme".
8173         (di): Change SImode attribute to "nF".
8174         (general_operand): Change SImode attribute to x86_64_general_operand.
8175         (general_szext_operand): Change SImode attribute to
8176         x86_64_szext_general_operand.
8177         (immediate_operand): Change SImode attribute to
8178         x86_64_immediate_operand.
8179         (nonmemory_operand): Change SImode attribute to
8180         x86_64_nonmemory_operand.
8181         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
8182         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
8183         (*lea_1): Use SWI48 mode iterator.
8184         (*lea_1_zext): New insn pattern.
8185         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
8186         (*bt<mode>): Ditto.
8187         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
8188         Update operand constraints.
8189         (addsi_1_zext): Ditto.
8190         (*add<mode>2): Ditto.
8191         (*addsi_3_zext): Ditto.
8192         (*subsi_1_zext): Ditto.
8193         (*subsi_2_zext): Ditto.
8194         (*subsi_3_zext): Ditto.
8195         (*addsi3_carry_zext): Ditto.
8196         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
8197         (*mulsi3_1_zext): Ditto.
8198         (*andsi_1): Ditto.
8199         (*andsi_1_zext): Ditto.
8200         (*andsi_2_zext): Ditto.
8201         (*<any_or:code>si_1_zext): Ditto.
8202         (*<any_or:code>si_2_zext): Ditto.
8203         (*test<mode>_1): Use <general_operand> predicate for operand 1.
8204         (*and<mode>_2): Ditto.
8205         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
8206         (add->lea splitter): Check operand modes in insn constraint.  Extend
8207         operands less than SImode wide to SImode.
8208         (add->lea zext splitter): Do not extend input operands to DImode.
8209         (*lea_general_1): Handle only QImode and HImode operands.
8210         (*lea_general_2): Ditto.
8211         (*lea_general_3): Ditto.
8212         (*lea_general_1_zext): Remove.
8213         (*lea_general_2_zext): Ditto.
8214         (*lea_general_3_zext): Ditto.
8215         (*lea_general_4): Check operand modes in insn constraint.  Extend
8216         operands less than SImode wide to SImode.
8217         (ashift->lea splitter): Ditto.
8218         * config/i386/i386.c (ix86_print_operand_address): Print address
8219         registers with 'q' modifier on 64bit targets.
8220         * config/i386/predicates.md (pic_32bit_opreand): Define as special
8221         predicate.  Reject non-SI and non-DI modes.
8222
8223 2011-07-25  Andrew Pinski  <apinski@cavium.com>
8224
8225         PR tree-opt/49671
8226         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
8227         TREE_THIS_NOTRAP into the inner most MEM_REF.
8228         Always copy TREE_THIS_VOLATILE.
8229         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
8230         arguments are not volatile references.
8231
8232 2011-07-25  Richard Henderson  <rth@redhat.com>
8233
8234         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
8235         * final.c (final_scan_insn): Don't test for it.
8236         (rest_of_clean_state): Likewise.
8237
8238 2011-07-25  Richard Henderson  <rth@redhat.com>
8239
8240         PR debug/49841
8241         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
8242         (emit_frame_save): Likewise.
8243         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
8244         insn onto a dummy blockage insn after the join label.
8245
8246 2011-07-25  Richard Henderson  <rth@redhat.com>
8247
8248         * dwarf2cfi.c (dw_trace_info): Add ID member.
8249         (get_trace_index): Remove.  Change users to use ID member.
8250         (before_next_cfi_note): New.
8251         (connect_traces): Remove unreachable traces before the main loop.
8252         Look across one trace and generate remember/restore_state if needed.
8253
8254 2011-07-25  Richard Henderson  <rth@redhat.com>
8255
8256         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
8257
8258 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
8259
8260         * genattr.c (write_upcase, gen_attr <enum definition writing>):
8261         Move to ...
8262         * genattr-common.c ... here.
8263         (main): Call gen_attr.
8264         * optc-gen.awk: Make generated program include insn-attr-common.h .
8265         * Makefile.in (oprions.o): Depend on insn-attr-common.h
8266
8267 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
8268
8269         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8270         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
8271         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
8272         m32c_print_operand, m32c_print_operand_address): Remove.
8273         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
8274         Change return type to bool. Change argument type to bool.
8275         (m32c_print_operand, m32c_print_operand_address): Make static.
8276         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
8277         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8278
8279 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8280
8281         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
8282         attributes): Document mmap.
8283
8284 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
8285
8286         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8287         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
8288         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
8289         mmix_print_operand, mmix_print_operand_address): Remove.
8290         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
8291         Change return type to bool. Change argument type to bool.
8292         (mmix_print_operand, mmix_print_operand_address): Make static.
8293         (mmix_intval, mmix_output_condition): Change 'x' argument type
8294         to const_rtx.
8295         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
8296         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8297
8298 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
8299
8300         PR target/39386
8301         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
8302         shift counter for x << x and x >> x shifts.
8303
8304 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8305
8306         PR target/47124
8307         * config.gcc: Reject *-*-solaris2 configuration.
8308
8309 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
8310
8311         PR tree-optimization/49809
8312         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
8313         gimple_get_lhs instead of gimple_assign_lhs.
8314
8315 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8316
8317         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
8318
8319 2011-07-25  Richard Guenther  <rguenther@suse.de>
8320
8321         PR tree-optimization/49822
8322         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
8323         more.  Make sure to preserve stmts with side-effects.  Properly
8324         handle virtual defs, follow a longer def chain.
8325
8326 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
8327
8328         PR plugins/45348
8329         PR plugins/48425
8330         PR plugins/46577
8331         * Makefile.in: Do not flatten c-family directory when installing
8332         plugin headers.
8333
8334 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8335
8336         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
8337         original nodes if we are dealing with virtual clones.
8338
8339 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
8340
8341         * common/config/c6x/c6x-common.c: New file.
8342
8343 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
8344
8345         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
8346
8347 2011-07-25  Richard Guenther  <rguenther@suse.de>
8348
8349         PR tree-optimization/49715
8350         * tree-vrp.c: Include expr.h and optabs.h.
8351         (range_fits_type_): New function.
8352         (simplify_float_conversion_using_ranges): Likewise.
8353         (simplify_stmt_using_ranges): Call it.
8354         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
8355         * optabs.c (can_float_p): Export.
8356         * optabs.h (can_float_p): Declare.
8357
8358 2011-07-25  Richard Guenther  <rguenther@suse.de>
8359
8360         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
8361         (get_value_range): For out-of-range SSA names or names created
8362         after propagation return a read-only varying range.
8363         (dump_all_value_ranges): Adjust.
8364         (vrp_initialize): Likewise.
8365         (vrp_finalize): Likewise.
8366
8367 2011-07-24  Richard Henderson  <rth@redhat.com>
8368
8369         PR debug/49831
8370         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
8371         them entirely.
8372
8373 2011-07-24  Richard Henderson  <rth@redhat.com>
8374
8375         PR debug/49825
8376         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
8377         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
8378
8379 2011-07-24  Richard Henderson  <rth@redhat.com>
8380
8381         PR debug/49827
8382         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
8383
8384 2011-07-24  Richard Henderson  <rth@redhat.com>
8385
8386         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
8387         Zero args_size for abnormal edges.  Adjust all callers.
8388
8389 2011-07-24  Richard Henderson  <rth@redhat.com>
8390
8391         PR debug/49825
8392         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
8393
8394 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
8395
8396         PR bootstrap/49835
8397         * collect2.c (demangle_flag): Removed.
8398
8399 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
8400
8401         * configure.ac (demangler_in_ld): Default to yes.
8402         * configure: Regenerated.
8403         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
8404         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
8405         --no-demangle options straight through to ld.  When
8406         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
8407         way that has the intended effect on Windows.
8408
8409 2011-07-23  Richard Henderson  <rth@redhat.com>
8410
8411         * dwarf2cfi.c: Include basic-block.h.
8412         (dw_label_info): Remove.
8413         (trace_work_list, trace_index): New.
8414         (remember_row, emit_cfa_remember): Remove.
8415         (dw_trace_info_hash, dw_trace_info_eq): New.
8416         (get_trace_index, get_trace_info): New.
8417         (save_point_p): New.
8418         (free_cfi_row): Remove.
8419         (add_cfi): Do not emit DW_CFA_remember_state.
8420         (cfa_row_equal_p): New.
8421         (barrier_args_size): Remove.
8422         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
8423         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
8424         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
8425         (dwarf2out_cfi_begin_epilogue): Remove.
8426         (dwarf2out_frame_debug_restore_state): Remove.
8427         (connect_traces, create_pseudo_cfg): New.
8428         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
8429         * Makefile.in (dwarf2cfi.o): Update.
8430
8431 2011-07-23  Richard Henderson  <rth@redhat.com>
8432
8433         * dwarf2cfi.c (dw_trace_info): New.
8434         (dw_label_info): New.
8435         (cie_return_save): New.
8436         (cur_trace): New.
8437         (queued_args_size): Rename from args_size.  Update all users.
8438         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
8439         (def_cfa_1): Use cur_trace instead of cfa_*.
8440         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
8441         (clobbers_queued_reg_save, reg_saved_in): Likewise.
8442         (dwarf2out_frame_debug_expr): Likewise.
8443         (create_cie_data): Split out from ...
8444         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
8445
8446 2011-07-23  Richard Henderson  <rth@redhat.com>
8447
8448         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
8449         Update all users to match.
8450         (execute_dwarf2_frame): Free reg_saved_in_data.
8451
8452 2011-07-23  Richard Henderson  <rth@redhat.com>
8453
8454         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
8455         (queued_reg_saves): Don't GTY.  Change to a VEC.
8456         (queue_reg_save): Update to match.
8457         (dwarf2out_flush_queued_reg_saves): Likewise.
8458         (clobbers_queued_reg_save): Likewise.
8459         (reg_saved_in): Likewise.
8460         (execute_dwarf2_frame): Free queued_reg_saves.
8461
8462 2011-07-23  Richard Henderson  <rth@redhat.com>
8463
8464         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
8465
8466 2011-07-23  Richard Henderson  <rth@redhat.com>
8467
8468         * dwarf2cfi.c (add_cfi_args_size): Split out from...
8469         (dwarf2out_args_size): ... here.
8470         (add_cfi_restore): Split out from ...
8471         (dwarf2out_frame_debug_cfa_restore): ... here.
8472         (def_cfa_0): Split out from ...
8473         (def_cfa_1): ... here.
8474         (cfi_oprnd_equal_p, cfi_equal_p): New.
8475         (change_cfi_row): New.
8476         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
8477         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
8478         (output_cfis): Remove.
8479         * dwarf2out.c (output_fde): Simplify output_cfi loop.
8480         (dwarf2out_switch_text_section): Don't call output_cfis.
8481         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
8482         * dwarf2out.h: Update decls.
8483         (enum dw_val_class): Add dw_val_class_none.
8484
8485 2011-07-23  Richard Henderson  <rth@redhat.com>
8486
8487         * dwarf2cfi.c (update_row_reg_save): New.
8488         (dwarf2out_frame_debug_cfa_expression): Use it.
8489         (dwarf2out_frame_debug_cfa_restore): Likewise.
8490         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
8491
8492 2011-07-23  Richard Henderson  <rth@redhat.com>
8493
8494         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
8495
8496 2011-07-23  Richard Henderson  <rth@redhat.com>
8497
8498         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
8499         (cie_cfi_row): New.
8500         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
8501         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
8502         (cur_row, remember_row): New.
8503         (def_cfa_1): Use cur_row instead of the old_* variables.
8504         (dwarf2out_frame_debug_restore_state): Similarly.
8505         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
8506         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
8507         (dwarf2out_frame_debug_adjust_cfa): Likewise.
8508         (dwarf2out_frame_debug_cfa_offset): Likewise.
8509         (dwarf2out_frame_debug_expr): Likewise.
8510         (execute_dwarf2_frame): Set up cur_row.
8511         * dwarf2out.h (struct cfa_loc): Mark for GTY.
8512
8513 2011-07-23  Richard Henderson  <rth@redhat.com>
8514
8515         * basic-block.h (EDGE_PRESERVE): New.
8516         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
8517         * bb-reorder.c: Include except.h.
8518         (fix_up_crossing_landing_pad): New.
8519         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
8520         landing pads in the right partition.  Duplicate as necessary.
8521         (partition_hot_cold_basic_blocks): Fix up DF info after
8522         duplicating landing pads.
8523         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
8524         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
8525         is set properly.  Validate that EH edges are not CROSSING.
8526         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
8527         (dw2_build_landing_pads): ... here.
8528         (convert_to_eh_region_ranges): Remove code to fixup crossing
8529         landing pads.
8530         * except.h (expand_dw2_landing_pad_for_region): Declare.
8531         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
8532
8533 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
8534
8535         PR target/49816
8536         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
8537
8538 2011-07-22  Jason Merrill  <jason@redhat.com>
8539
8540         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
8541
8542 2011-07-22  Richard Henderson  <rth@redhat.com>
8543
8544         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
8545
8546 2011-07-22  Richard Henderson  <rth@redhat.com>
8547
8548         * jump.c (maybe_propagate_label_ref): Split out of...
8549         (mark_all_labels): ... here.  Do not attempt label_ref
8550         propagation while in cfglayout mode.
8551
8552 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
8553
8554         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
8555         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
8556         (dwarf_attr_name): Handle DW_AT_GNU_macros.
8557         (dwarf2out_define): If the vector is empty and
8558         lineno is 0, emit a dummy entry first.
8559         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
8560         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
8561         optimize_macinfo_range): New functions.
8562         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
8563         mergeable, optimize longer strings using
8564         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
8565         optimize longer sequences of define/undef ops from headers
8566         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
8567         emit a section headers.
8568         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
8569         and macinfo_section_label to DEBUG_MACRO_SECTION
8570         resp. DEBUG_MACRO_SECTION_LABEL.
8571         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
8572         instead of DW_AT_macro_info.
8573
8574         PR other/32998
8575         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
8576         options.
8577         * dwarf2out.c: Include opts.h.
8578         (dchar_p): New typedef.  Define heap VEC for it.
8579         (producer_string): New variable.
8580         (gen_producer_string): New function.
8581         (gen_compile_unit_die): Use it.
8582         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
8583         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
8584         * doc/invoke.texi: Document -grecord-gcc-switches and
8585         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
8586         to -frecord-gcc-switches description.
8587
8588 2011-07-22  Jason Merrill  <jason@redhat.com>
8589
8590         PR c++/30112
8591         * c-decl.c (c_linkage_bindings): Define.
8592
8593 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
8594
8595         PR debug/49815
8596         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
8597
8598 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
8599
8600         * config/i386/i386.c (ix86_option_override_internal): Disallow
8601         MS ABI in x32 mode.
8602         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
8603         only for TARGET_LP64.
8604         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
8605
8606 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
8607
8608         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
8609         avoid warnings when GCC is built with a C++ compiler.
8610
8611 2011-07-22  Martin Jambor  <mjambor@suse.cz>
8612
8613         PR lto/49796
8614         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
8615         if decl node is in another partition, call cgraph_get_node only once.
8616
8617 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
8618
8619         * config.gcc (x86_64-*-linux*): Set
8620         default_gnu_indirect_function to yes.
8621
8622 2011-07-22  Richard Guenther  <rguenther@suse.de>
8623
8624         PR tree-optimization/45819
8625         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
8626         preserve volatile and notrap flags.
8627
8628 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8629             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8630
8631         PR bootstrap/49794
8632         * configure.ac: Test AM_ICONV with CXX.
8633         * configure: Regenerate.
8634         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
8635
8636 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8637
8638         PR bootstrap/49797
8639         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
8640         (set_cloog_options): Use it.
8641
8642 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
8643
8644         PR c++/49756
8645         * gcc.c (main): Call stack_limit_increase (64MB).
8646         * toplev.c (toplev_main): Likewise.
8647
8648 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8649
8650         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
8651         instead of force_reg.
8652
8653 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8654
8655         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
8656         needed and use force_reg after convert.
8657         (ix86_expand_call): Likewise.
8658         (ix86_expand_special_args_builtin): Likewise.
8659         (ix86_expand_builtin): Likewise.
8660
8661 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8662
8663         PR middle-end/47654
8664         PR middle-end/49649
8665         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
8666         in parameter.  Initialize v1 and v2 based on the values returned
8667         by clast_name_to_lb_ub.
8668         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
8669         values.
8670         (type_for_clast_bin): Same.
8671         (type_for_clast_expr): Same.
8672         (type_for_clast_eq): Update calls to type_for_clast_expr.
8673         (type_for_clast_for): Same.
8674         (build_iv_mapping): Same.
8675         * graphite-ppl.h (value_min): New.
8676
8677 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8678
8679         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
8680         types whenever possible.
8681
8682 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8683
8684         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
8685         and ub fields.
8686         (new_clast_name_index): Add lb and ub parameters.
8687         (free_clast_name_index): New.
8688         (clast_name_to_lb_ub): New.
8689         (save_clast_name_index): Add lb and ub parameters.
8690         (compute_bounds_for_param): New.
8691         (type_for_level): Removed.
8692         (type_for_clast_for): Removed level parameter.  Do not call
8693         type_for_level.
8694         (graphite_create_new_loop): Store the lb and ub for the clast_name
8695         of the iterator of the loop that has been generated.
8696         (graphite_create_new_loop_guard): Remove parameter level.
8697         (create_params_index): Store the lb and ub of each parameter.
8698         (gloog): Use free_clast_name_index.  Pass to create_params_index
8699         the current scop.
8700
8701 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8702
8703         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
8704         (max_precision_type): Inline max_signed_precision_type.
8705         (type_for_clast_red): Use max_precision_type.
8706         (type_for_clast_bin): Same.
8707         (type_for_clast_for): Same.
8708
8709 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8710
8711         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
8712         type_for_interval.
8713         (gcc_type_for_value): Renamed type_for_value.
8714         (gcc_type_for_clast_term): Renamed type_for_clast_term.
8715         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
8716         (gcc_type_for_clast_red): Renamed type_for_clast_red.
8717         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
8718         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
8719         (graphite_translate_clast_equation): Update calls.
8720         (compute_type_for_level): Renamed type_for_level.
8721         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
8722         (build_iv_mapping): Update calls.
8723         (graphite_create_new_loop_guard): Same.
8724
8725 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8726
8727         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
8728         comment.
8729
8730 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8731
8732         * graphite-clast-to-gimple.c (struct ivs_params): New.
8733         (clast_name_to_gcc): Use ivs_params to pass around parameters.
8734         (clast_to_gcc_expression): Same.
8735         (clast_to_gcc_expression_red): Same.
8736         (gcc_type_for_clast_term): Same.
8737         (gcc_type_for_clast_expr): Same.
8738         (gcc_type_for_clast_red): Same.
8739         (gcc_type_for_clast_bin): Same.
8740         (gcc_type_for_clast_eq): Same.
8741         (graphite_translate_clast_equation): Same.
8742         (graphite_create_guard_cond_expr): Same.
8743         (graphite_create_new_guard): Same.
8744         (graphite_create_new_loop): Same.
8745         (build_iv_mapping): Same.
8746         (translate_clast_user): Same.
8747         (graphite_create_new_loop_guard): Same.
8748         (translate_clast): Same.
8749         (translate_clast_for_loop): Same.
8750         (translate_clast_for): Same.
8751         (translate_clast_guard): Same.
8752         (initialize_cloog_names): Fix typo.
8753         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
8754
8755 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8756
8757         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
8758         (new_clast_name_index): Add level parameter.
8759         (clast_name_to_level): New.
8760         (save_clast_name_index): Add level parameter.
8761         (newivs_to_depth_to_newiv): Removed.
8762         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
8763         (graphite_create_new_loop): Add level parameter.  Pass level to
8764         save_clast_name_index.
8765         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
8766         (create_params_index): Pass level to save_clast_name_index.
8767
8768 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8769
8770         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
8771         recompute type, lb, and ub.  Get them from...
8772         (graphite_create_new_loop_guard): ...here.  Pass in parameter
8773         pointers to type, lb, and ub.
8774         (translate_clast_for_loop): Update function calls.
8775         (translate_clast_for): Same.
8776
8777 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8778
8779         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
8780         psct_dynamic_dim.
8781         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
8782         (gcc_type_for_iv_of_clast_loop): Update use of level.
8783         (gloog): Start counting nesting level from 0.
8784         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
8785         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
8786         psct_dynamic_dim on level.
8787
8788 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8789
8790         * config/i386/i386.c (ix86_legitimize_address): Convert to
8791         Pmode if needed.
8792
8793 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8794
8795         * config/i386/i386.c (function_value_64): Always return pointers
8796         in Pmode.
8797         (ix86_promote_function_mode): New.
8798         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
8799
8800 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8801
8802         PR tree-optimization/49749
8803         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
8804         remove no-longer-used maxrank variable.
8805
8806 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
8807
8808         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
8809
8810 2011-07-21  Jason Merrill  <jason@redhat.com>
8811
8812         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
8813         * recog.h (struct insn_data_d): Check it instead of
8814         HAVE_DESIGNATED_INITIALIZERS.
8815         * genoutput.c (output_insn_data): Likewise.
8816
8817 2011-07-21  Richard Guenther  <rguenther@suse.de>
8818
8819         PR tree-optimization/49770
8820         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
8821         valueized any operand.  Renamed from ...
8822         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
8823         (valueize_shared_reference_ops_from_ref): Return whether we
8824         valueized any operand.
8825         (vn_reference_lookup): Only when we valueized any operand
8826         use the valueized reference for alias analysis.  Do not preserve
8827         the original reference tree in this case.
8828
8829 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
8830
8831         * config/i386/i386.c (ix86_decompose_address): Reject all but
8832         register operands and subregs of DImode hard registers in index.
8833
8834 2011-07-21  Kai Tietz  <ktietz@redhat.com>
8835
8836         * fold-const.c (fold_unary_loc): Preserve indirect
8837         comparison cast to none-boolean type.
8838         * tree-ssa.c (useless_type_conversion_p): Preserve cast
8839         from/to boolean-type.
8840         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
8841         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
8842         * tree-cfg.c (verify_gimple_comparison): Check result
8843         type of comparison expression.
8844         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
8845         of condition result and disallow type-cast sinking into comparison.
8846
8847 2011-07-21  Richard Guenther  <rguenther@suse.de>
8848
8849         * tree-ssa-forwprop.c (combine_conversions): Return whether
8850         we have to run cfg-cleanup.  Properly remove dead stmts.
8851         (ssa_forward_propagate_and_combine): Adjust.
8852
8853 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
8854
8855         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
8856
8857 2011-07-21  Kai Tietz  <ktietz@redhat.com>
8858
8859         * tree-ssa-propagate.c (substitute_and_fold): Use
8860         do_dce flag to deside, if BB's statements are scanned
8861         in last to first, or first to last order.
8862
8863 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
8864
8865         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
8866
8867 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
8868             Uros Bizjak  <ubizjak@gmail.com>
8869             Richard Henderson  <rth@redhat.com>
8870
8871         * config/i386/constraints.md (w): New.
8872
8873         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
8874         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
8875
8876         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
8877         instead of TARGET_64BIT.
8878
8879         * config/i386/i386.md (indirect_jump): Replace
8880         nonimmediate_operand with indirect_branch_operand.
8881         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
8882         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
8883         Convert operand 0 to Pmode for x32 if not PIC.
8884         (*tablejump_1): Replace nonimmediate_operand with
8885         indirect_branch_operand.  Replace constraint "m" with "w".
8886         (*call_vzeroupper): Replace constraint "m" with "w".
8887         (*call): Likewise.
8888         (*call_rex64_ms_sysv_vzeroupper): Likewise.
8889         (*call_rex64_ms_sysv): Likewise.
8890         (*call_value_vzeroupper): Likewise.
8891         (*call_value): Likewise.
8892         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
8893         (*call_value_rex64_ms_sysv): Likewise.
8894         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
8895
8896         * config/i386/predicates.md (indirect_branch_operand): New.
8897         (call_insn_operand): Support x32.
8898
8899 2011-07-20  Michael Eager  <eager@eagercon.com>
8900
8901         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
8902
8903 2011-07-20  Richard Henderson  <rth@redhat.com>
8904
8905         * cfg.c (dump_bb_info): Dump basic_block->flags.
8906         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
8907
8908 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
8909
8910         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8911         of DImode hard registers in index.
8912         (ix86_legitimate_address_p): Allow subregs of base and index to span
8913         more than a word.  Assert that subregs of base and index satisfy
8914         register_no_elim_operand predicates.  Reject addresses where
8915         base and index have different modes.
8916
8917 2011-07-20  Robert Millan  <rmh@gnu.org>
8918
8919         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
8920
8921 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8922
8923         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
8924         removing now-unnecessary assignment.
8925
8926 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8927
8928         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
8929         memory address space to the type's address space.
8930
8931 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
8932
8933         PR target/36467
8934         PR target/49687
8935         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
8936         and expand appropriately if there is a CONST_INT in operand2.
8937         (usmulqihi3): New insn.
8938         (*sumulqihi3): New insn.
8939         (*osmulqihi3): New insn.
8940         (*oumulqihi3): New insn.
8941         (*muluqihi3.uconst): New insn_and_split.
8942         (*muluqihi3.sconst): New insn_and_split.
8943         (*mulsqihi3.sconst): New insn_and_split.
8944         (*mulsqihi3.uconst): New insn_and_split.
8945         (*mulsqihi3.oconst): New insn_and_split.
8946         (*ashifthi3.signx.const): New insn_and_split.
8947         (*ashifthi3.signx.const7): New insn_and_split.
8948         (*ashifthi3.zerox.const): New insn_and_split.
8949         (mulsqihi3): New insn.
8950         (muluqihi3): New insn.
8951         (muloqihi3): New insn.
8952         * config/avr/predicates.md (const_2_to_7_operand): New.
8953         (const_2_to_6_operand): New.
8954         (u8_operand): New.
8955         (s8_operand): New.
8956         (o8_operand): New.
8957         (s9_operand): New.
8958         (register_or_s9_operand): New.
8959
8960 2011-07-20  Kai Tietz  <ktietz@redhat.com>
8961
8962         * builtins.c (fold_builtin_expect): See through the cast
8963         from truthvalue_type_node to long.
8964
8965 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8966
8967         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
8968         where we can use them from the standard and altivec instruction
8969         sets, instead of always using the 3 operand VSX forms that require
8970         the destination to overlap one of the inputs.
8971         (vsx_fms*): Ditto.
8972         (vsx_fnma*): Ditto.
8973         (vsx_fnms*): Ditto.
8974
8975         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
8976         for DF types.
8977         (fmsdf4_fpr): Ditto.
8978         (nfmadf4_fpr): Ditto.
8979         (nfmsdf4_fpr): Ditto.
8980
8981 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
8982
8983         * genrecog.c (make_insn_sequence): Correct position numbering
8984         when filtering out match_scratch and match_dup.
8985
8986 2011-07-20  Richard Guenther  <rguenther@suse.de>
8987
8988         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
8989         against already removed statements.
8990         (forward_propagate_into_comparison): Remove dead defining stmts.
8991         (forward_propagate_into_gimple_cond): Likewise.
8992         (forward_propagate_into_cond): Simplify.
8993         (ssa_forward_propagate_and_combine): Handle changed cfg from
8994         forward_propagate_into_comparison.
8995         * tree-ssa-phiopt.c (conditional_replacement): Use proper
8996         locations for newly built statements.
8997
8998 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
8999
9000         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
9001
9002 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9003
9004         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
9005         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
9006
9007 2011-07-20  Richard Guenther  <rguenther@suse.de>
9008
9009         PR middle-end/18908
9010         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
9011         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
9012         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
9013
9014 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
9015
9016         * config/frv/frv.c (frv_register_move_cost): Define explicitly
9017         costs for subclasses of GR_REGS.
9018
9019 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
9020
9021         PR target/49780
9022         * config/i386/predicates.md (no_seg_addres_operand): No more special.
9023         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9024         of DImode hard registers in base.
9025         (ix86_legitimate_address_p): Allow SImode and DImode base and index
9026         registers.
9027
9028 2011-07-20  Richard Guenther  <rguenther@suse.de>
9029
9030         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
9031         (unify_nodes): Deal with that.
9032         (solve_graph): Likewise.
9033
9034 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
9035
9036         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
9037         canonicalize left operand from ZERO_EXTEND to AND.
9038
9039 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
9040
9041         * target.def (class_max_nregs): New hook.
9042         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
9043         * doc/tm.texi: Regenerate.
9044         * targhooks.c (default_class_max_nregs): New function.
9045         * targhooks.h (default_class_max_nregs): Declare.
9046         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
9047         x_ira_reg_class_min_nregs arrays to unsigned char.
9048         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
9049         hook instead of CLASS_MAX_NREGS macro.
9050         * reginfo.c (restore_register_info): Ditto.
9051         * ira-conflicts.c (process_regs_for_copy): Use
9052         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9053         Change type rclass and aclass vars to reg_class_t.
9054         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
9055         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
9056         reg_class_t.
9057         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
9058         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9059
9060         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
9061         * config/i386/i386.c (ix86_class_max_nregs): New function.
9062         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
9063         instead of CLASS_MAX_NREGS macro.
9064         (TARGET_CLASS_MAX_NREGS): Define.
9065         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
9066         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
9067         * config/avr/avr.c (class_max_nregs): Remove function.
9068         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
9069         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
9070         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
9071         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
9072         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
9073         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
9074         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
9075         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
9076         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
9077         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
9078         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
9079         * config/score/score.h (CLASS_MAX_NREGS): Remove.
9080         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
9081         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
9082         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
9083
9084 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
9085
9086         * cif-code.def (OVERWRITABLE): Fix typo and move around.
9087         (TARGET_OPTIMIZATION_MISMATCH): Delete.
9088         (EH_PERSONALITY): Fix typo.
9089         (NON_CALL_EXCEPTIONS): Fix message.
9090         (OPTIMIZATION_MISMATCH): Adjust message.
9091         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
9092
9093 2011-07-19  Ian Lance Taylor  <iant@google.com>
9094
9095         * doc/install.texi (Configuration): Document
9096         --enable-build-poststage1-with-cxx.
9097
9098 2011-07-19  Robert Millan  <rmh@gnu.org>
9099
9100         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
9101         (GLIBC_DYNAMIC_LINKER): Remove.
9102
9103         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
9104         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9105         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9106         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
9107         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
9108         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
9109
9110         * config/mips/linux.h: Remove everything except for ...
9111         (GLIBC_DYNAMIC_LINKER): ... this macro.
9112
9113         * config/mips/linux64.h: Remove everything except for ...
9114         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9115         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9116         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
9117         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
9118         (GNU_USER_LINK_EMULATIONN32): New macros.
9119
9120         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
9121         Use the new headers.
9122
9123 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9124
9125         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
9126         Add offset_known_p and size_known_p fields.
9127         (MEM_OFFSET_KNOWN_P): Update accordingly.
9128         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
9129         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
9130         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
9131         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
9132         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
9133         (init_emit_regs): Likewise.
9134
9135 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9136
9137         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
9138         (MEM_OFFSET): Change from returning an rtx to returning a
9139         HOST_WIDE_INT.
9140         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
9141         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
9142         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
9143         (clear_mem_offset): Declare.
9144         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
9145         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
9146         MEM_OFFSET to get a HOST_WIDE_INT offset.
9147         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
9148         (adjust_offset_for_component_ref): Take a bool "known_p"
9149         parameter and a HOST_WIDE_INT "offset" parameter.
9150         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
9151         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
9152         than an rtx.  Use clear_mem_offset to clear the offset.
9153         * cfgcleanup.c (merge_memattrs): Likewise.
9154         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
9155         * function.c (assign_parm_find_stack_rtl): Likewise.
9156         (assign_parm_setup_stack): Likewise.
9157         * print-rtl.c (print_rtx): Likewise.
9158         * reload.c (find_reloads_subreg_address): Likewise.
9159         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9160         * var-tracking.c (INT_MEM_OFFSET): Likewise.
9161         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
9162         (get_mem_align_offset): Likewise.
9163         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
9164         (clear_mem_offset): New function.
9165         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
9166         offset rather than an rtx.  Assume both the expressio and offset
9167         are available.
9168         (r10k_needs_protection_p_1): Update accordingly, checking the
9169         expression and offset availability here instead.
9170
9171 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9172
9173         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
9174         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
9175         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
9176         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
9177         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
9178         (clear_mem_size): Declare.
9179         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
9180         (clear_mem_size): New function.
9181         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
9182         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
9183         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
9184         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
9185         to clear the size.
9186         (nonoverlapping_memrefs_p): Likewise.
9187         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
9188         (expand_builtin_init_trampoline): Likewise.
9189         * calls.c (compute_argument_addresses): Likewise.
9190         * cfgcleanup.c (merge_memattrs): Likewise.
9191         * dce.c (find_call_stack_args): Likewise.
9192         * dse.c (record_store, scan_insn): Likewise.
9193         * dwarf2out.c (dw_sra_loc_expr): Likewise.
9194         * expr.c (emit_block_move_hints): Likewise.
9195         * function.c (assign_parm_find_stack_rtl): Likewise.
9196         * print-rtl.c (print_rtx): Likewise.
9197         * reload.c (find_reloads_subreg_address): Likewise.
9198         * rtlanal.c (may_trap_p_1): Likewise.
9199         * var-tracking.c (track_expr_p): Likewise.
9200         * varasm.c (assemble_trampoline_template): Likewise.
9201         * config/arm/arm.c (arm_print_operand): Likewise.
9202         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
9203         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
9204         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
9205         (expand_constant_setmem_prologue): Likewise.
9206         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
9207         * config/rs6000/rs6000.c (expand_block_move): Likewise.
9208         (adjacent_mem_locations): Likewise.
9209         * config/s390/s390.c (s390_expand_setmem): Likewise.
9210         (s390_expand_insv): Likewise.
9211         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
9212         (*extendqi<mode>2_short_displ): Likewise.
9213         * config/sh/sh.c (expand_block_move): Likewise.
9214         * config/sh/sh.md (extv, extzv): Likewise.
9215
9216 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9217
9218         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
9219         (mem_attrs_htab_eq): ...here.
9220         (find_mem_attrs): Replace with...
9221         (set_mem_attrs): ...this function.  Take a mem_attrs structure
9222         rather than individual fields.
9223         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
9224         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
9225         (set_mem_size, change_address, adjust_address_1, offset_address)
9226         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
9227         Update accordingly.
9228
9229 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9230
9231         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
9232         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
9233         Provide a dummy definition of MEM_ADDR_SPACE for generators.
9234         (target_rtl): Add x_mode_mem_attrs.
9235         (mode_mem_attrs): New macro.
9236         (get_mem_attrs): New function.
9237         * emit-rtl.c (get_mem_attrs): Rename to...
9238         (find_mem_attrs): ...this.
9239         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
9240         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
9241         (set_mem_size, change_address, adjust_address_1, offset_address)
9242         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
9243         Update accordingly.
9244         (init_emit_regs): Initialize mode_mem_attrs.
9245
9246 2011-07-19  Richard Guenther  <rguenther@suse.de>
9247
9248         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
9249         TRUTH_*_EXPR handling.
9250         * tree-ssa-operands.c (get_expr_operands): Likewise.
9251         * tree-ssa-pre.c (fully_constant_expression): Likewise.
9252         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
9253         Likewise.
9254         (is_and_or_or): Likewise.
9255         (is_norm_cond_subset_of): Likewise.
9256
9257 2011-07-19  Richard Guenther  <rguenther@suse.de>
9258
9259         * tree.h (fold_build_pointer_plus_loc): New helper function.
9260         (fold_build_pointer_plus_hwi_loc): Likewise.
9261         (fold_build_pointer_plus): Define.
9262         (fold_build_pointer_plus_hwi): Likewise.
9263         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
9264         (fold_builtin_memory_op): Likewise.
9265         (fold_builtin_stpcpy): Likewise.
9266         (fold_builtin_memchr): Likewise.
9267         (fold_builtin_strstr): Likewise.
9268         (fold_builtin_strchr): Likewise.
9269         (fold_builtin_strrchr): Likewise.
9270         (fold_builtin_strpbrk): Likewise.
9271         (fold_builtin_strcat): Likewise.
9272         (expand_builtin_memory_chk): Likewise.
9273         (fold_builtin_memory_chk): Likewise.
9274         * c-typeck.c (build_unary_op): Likewise.
9275         * cgraphunit.c (thunk_adjust): Likewise.
9276         * fold-const.c (build_range_check): Likewise.
9277         (fold_binary_loc): Likewise.
9278         * omp-low.c (extract_omp_for_data): Likewise.
9279         (expand_omp_for_generic): Likewise.
9280         (expand_omp_for_static_nochunk): Likewise.
9281         (expand_omp_for_static_chunk): Likewise.
9282         * tree-affine.c (add_elt_to_tree): Likewise.
9283         * tree-data-ref.c (split_constant_offset_1): Likewise.
9284         * tree-loop-distribution.c (generate_memset_zero): Likewise.
9285         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
9286         * tree-predcom.c (ref_at_iteration): Likewise.
9287         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
9288         (add_to_parts): Likewise.
9289         (create_mem_ref): Likewise.
9290         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
9291         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
9292         (number_of_iterations_le): Likewise.
9293         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
9294         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
9295         (vect_create_addr_base_for_vector_ref): Likewise.
9296         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
9297         (vect_create_cond_for_alias_checks): Likewise.
9298         * tree-vrp.c (extract_range_from_assert): Likewise.
9299         * config/alpha/alpha.c (alpha_va_start): Likewise.
9300         (alpha_gimplify_va_arg_1): Likewise.
9301         * config/i386/i386.c (ix86_va_start): Likewise.
9302         (ix86_gimplify_va_arg): Likewise.
9303         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
9304         * config/mep/mep.c (mep_expand_va_start): Likewise.
9305         (mep_gimplify_va_arg_expr): Likewise.
9306         * config/mips/mips.c (mips_va_start): Likewise.
9307         (mips_gimplify_va_arg_expr): Likewise.
9308         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
9309         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
9310         (rs6000_gimplify_va_arg): Likewise.
9311         * config/s390/s390.c (s390_va_start): Likewise.
9312         (s390_gimplify_va_arg): Likewise.
9313         * config/sh/sh.c (sh_va_start): Likewise.
9314         (sh_gimplify_va_arg_expr): Likewise.
9315         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
9316         * config/spu/spu.c (spu_va_start): Likewise.
9317         (spu_gimplify_va_arg_expr): Likewise.
9318         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
9319         Likewise.
9320         (xstormy16_gimplify_va_arg_expr): Likewise.
9321         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
9322         (xtensa_gimplify_va_arg_expr): Likewise.
9323
9324 2011-07-19  Richard Guenther  <rguenther@suse.de>
9325
9326         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
9327         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
9328         handling.
9329
9330         PR middle-end/18908
9331         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
9332         result of BIT_*_EXPR to bitfield precision.
9333
9334 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
9335
9336         PR tree-optimization/49742
9337         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
9338         as a potential write.
9339
9340 2011-07-19  Richard Guenther  <rguenther@suse.de>
9341
9342         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
9343         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
9344         (forward_propagate_comparison): Simplify, remove obsolete code.
9345
9346 2011-07-19  Richard Guenther  <rguenther@suse.de>
9347
9348         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
9349         BIT_XOR_EXPR, same as the RTL expander does.
9350         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
9351         (verify_gimple_assign_unary): Likewise.
9352         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
9353         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
9354         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
9355
9356 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
9357
9358         PR tree-optimization/49768
9359         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
9360         if offset is smaller than bitoffset, but offset+size is bigger
9361         than bitoffset.
9362
9363 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
9364
9365         PR tree-optimization/49771
9366         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
9367         zero step, set segment length to the size of the data-ref's type.
9368
9369 2011-07-18  Martin Jambor  <mjambor@suse.cz>
9370
9371         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
9372         comments.
9373         (ipcp_values_pool): Declare.
9374         (ipcp_sources_pool): Likewise.
9375         (ipcp_lattice): Changed to forward declaration.
9376         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
9377         cannot_devirtualize.
9378         (ipa_node_params): New fields descriptors, lattices, known_vals,
9379         clone_for_all_contexts and node dead, removed fields params and
9380         count_scale.
9381         (ipa_set_param_count): Removed.
9382         (ipa_get_param_count): Made to work with descriptors vector.
9383         (ipa_get_param): Updated.
9384         (ipa_param_cannot_devirtualize_p): Removed.
9385         (ipa_param_types_vec_empty): Likewise.
9386         (ipa_set_param_used): New function.
9387         (ipa_get_param_used): Updated to use descriptors vector.
9388         (ipa_func_list): Removed.
9389         (ipa_init_func_list): Removed declaration.
9390         (ipa_push_func_to_list_1): Likewise.
9391         (ipa_pop_func_from_list): Likewise.
9392         (ipa_push_func_to_list): Removed.
9393         (ipa_lattice_from_jfunc): Remove declaration.
9394         (ipa_get_jf_pass_through_result): Declare.
9395         (ipa_get_jf_ancestor_result): Likewise.
9396         (ipa_value_from_jfunc): Likewise.
9397         (ipa_get_lattice): Update.
9398         (ipa_lat_is_single_const): New function.
9399         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
9400         (ipa_init_func_list): Likewise.
9401         (ipa_pop_func_from_list): Likewise.
9402         (ipa_get_param_decl_index): Fix coding style.
9403         (count_formal_params): Removed.
9404         (count_formal_params_1): Renamed to count_formal_params.
9405         (ipa_populate_param_decls): Update to use descriptors vector.
9406         (ipa_initialize_node_params): Likewise.
9407         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
9408         (ipa_analyze_params_uses): Likewise.
9409         (ipa_free_node_params_substructures): Likewise and free also lattices
9410         and known values.
9411         (duplicate_array): Removed.
9412         (ipa_edge_duplication_hook): Add the new edge to the list of edge
9413         clones.
9414         (ipa_node_duplication_hook): Update to use new lattices.
9415         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
9416         (ipa_free_all_structures_after_iinln): Likewise.
9417         (ipa_write_node_info): Update to use new lattices.
9418         (ipa_read_node_info): Likewise.
9419         (ipa_get_jf_pass_through_result): New function.
9420         (ipa_get_jf_ancestor_result): Likewise.
9421         (ipa_value_from_jfunc): Likewise.
9422         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
9423         * ipa-cp.c: Reimplemented.
9424         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
9425         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
9426         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
9427         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
9428         * doc/invoke.texi (devirt-type-list-size): Removed description.
9429         (ipa-cp-value-list-size): Added description.
9430
9431 2011-07-18  Richard Henderson  <rth@redhat.com>
9432
9433         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
9434         before calling create_basic_block.
9435
9436 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
9437
9438         PR middle-end/49675
9439         * tree.c (build_common_builtin_nodes): Register
9440         __builtin_return_address, __cyg_profile_func_enter
9441         and __cyg_profile_func_exit.
9442
9443 2011-07-18  Richard Henderson  <rth@redhat.com>
9444
9445         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
9446         (add_labels_and_missing_jumps): ... here.
9447         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
9448
9449 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
9450
9451         PR target/47744
9452         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9453         of DImode hard registers in PLUS address chains.
9454
9455 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9456
9457         PR bootstrap/49769
9458         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
9459         (alpha*-*-freebsd*): Likewise.
9460         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
9461         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
9462         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
9463         crtprec80.o, crtfastmath.o to extra_parts for all targets.
9464         (ia64*-*-elf*): Remove extra_parts.
9465         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
9466         (sparc64-*-linux*): Likewise.
9467         (sparc64-*-freebsd*): Likewise.
9468
9469         Revert:
9470         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
9471         (ia64*-*-linux*): Likewise.
9472         (mips64*-*-linux*): Likewise.
9473         (mips*-*-linux*): Likewise.
9474
9475 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
9476
9477         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
9478
9479 2011-07-18  Richard Guenther  <rguenther@suse.de>
9480
9481         * gimplify.c (gimplify_expr): Use input_location, not saved_location
9482         when building new trees.
9483
9484 2011-07-18  Richard Guenther  <rguenther@suse.de>
9485
9486         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
9487         expansion result to bitfield precision if required.
9488
9489 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9490
9491         * config.gcc (i[3456x]86-*-netware*): Remove.
9492
9493         * gthr-nks.h: Remove.
9494         * configure.ac (enable_threads): Remove nks.
9495         * configure: Regenerate.
9496
9497         * config/i386/i386.c (ix86_encode_section_info): Remove netware
9498         reference.
9499         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
9500         <netware.h> reference.
9501
9502         * config/i386/netware-libgcc.c,
9503         gcc/config/i386/netware-libgcc.def,
9504         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
9505         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
9506         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
9507         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
9508
9509         * doc/extend.texi (Function Attributes,
9510         callee_pop_aggregate_return): Remove i?86-netware reference.
9511         * doc/install.texi (Configuration, --enable-threads): Remove nks.
9512
9513 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9514
9515         PR target/49746
9516         Revert:
9517         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9518
9519         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
9520         patterns.
9521
9522 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
9523
9524         PR middle-end/49732
9525         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
9526
9527 2011-07-16  Matthias Klose  <doko@ubuntu.com>
9528
9529         * doc/install.texi: Document --enable-static-libjava.
9530
9531 2011-07-15  Richard Henderson  <rth@redhat.com>
9532
9533         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
9534         Replace all three arguments by returning a VEC of edges.
9535         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
9536         pointers and counts.
9537         (fix_edges_for_rarely_executed_code): Merge ...
9538         (rest_of_handle_partition_blocks): ... into...
9539         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
9540         any work was performed.
9541         (pass_partition_blocks): Clear todo_flags_finish.
9542
9543 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
9544             Jakub Jelinek  <jakub@redhat.com>
9545             Jonathan Wakely  <jwakely.gcc@gmail.com>
9546
9547         PR libstdc++/49745
9548         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
9549         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
9550
9551 2011-07-15  Jason Merrill  <jason@redhat.com>
9552
9553         PR testsuite/49741
9554         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
9555         rather than --tool_opts.
9556
9557 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
9558
9559         * doc/plugins.texi (Building GCC plugins): gengtype needs its
9560         corresponding gtype.state.
9561
9562 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9563
9564         PR target/49723
9565         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
9566
9567 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
9568
9569         PR target/48220
9570         * doc/md.texi (Standard Names): Document window_save.
9571         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
9572         expand_debug_expr and expand_debug_source_expr.  If the target has
9573         a window_save instruction, adjust the ENTRY_VALUE_EXP.
9574         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
9575         SSA_NAME_VAR is a parameter.
9576         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
9577         * var-tracking.c (parm_reg_t): New type and associated vector type.
9578         (windowed_parm_regs): New variable.
9579         (adjust_insn): If the target has a window_save instruction and this
9580         is the instruction, make its effect on parameter registers explicit.
9581         (next_non_note_insn_var_location): New function.
9582         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
9583         (vt_add_function_parameter): If the target has a window_save insn,
9584         adjust the incoming RTL and record that in windowed_parm_regs.
9585         (vt_finalize): Free windowed_parm_regs.
9586
9587 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
9588
9589         * doc/invoke.texi (C6X Options): New section.
9590         * doc/md.texi (TI C6X family): New section.
9591         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
9592         tic6x-*-uclinux.
9593         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
9594         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
9595         Provide C6X definitions.
9596         * config/c6x/c6x.md: New file.
9597         * config/c6x/constraints.md: New file.
9598         * config/c6x/predicates.md: New file.
9599         * config/c6x/c6x-sched.md.in: New file.
9600         * config/c6x/c6x-sched.md: New file.
9601         * config/c6x/gensched.sh: New file.
9602         * config/c6x/c6x-mult.md.in: New file.
9603         * config/c6x/genmult.sh: New file.
9604         * config/c6x/c6x-mult.md: New file.
9605         * config/c6x/sync.md: New file.
9606         * config/c6x/c6x-protos.h: New file.
9607         * config/c6x/sfp-machine.h: New file.
9608         * config/c6x/c6x.c: New file.
9609         * config/c6x/c6x.h: New file.
9610         * config/c6x/crti.s: New file.
9611         * config/c6x/crtn.s: New file.
9612         * config/c6x/lib1funcs.asm: New file.
9613         * config/c6x/c6x-modes.def: New file.
9614         * config/c6x/genopt.sh: New file.
9615         * config/c6x/c6x.opt: New file.
9616         * config/c6x/c6x-tables.opt: New file.
9617         * config/c6x/c6x-opts.h: New file.
9618         * config/c6x/c6x-isas.def: New file.
9619         * config/c6x/elf.h: New file.
9620         * config/c6x/elf-common.h: New file.
9621         * config/c6x/uclinux-elf.h: New file.
9622         * config/c6x/t-c6x: New file.
9623         * config/c6x/t-c6x-elf: New file.
9624         * config/c6x/t-c6x-uclinux: New file.
9625         * config/c6x/t-c6x-softfp: New file.
9626         * config/c6x/gtd.c: New file.
9627         * config/c6x/gtf.c: New file.
9628         * config/c6x/ltd.c: New file.
9629         * config/c6x/ltf.c: New file.
9630         * config/c6x/ged.c: New file.
9631         * config/c6x/gef.c: New file.
9632         * config/c6x/led.c: New file.
9633         * config/c6x/lef.c: New file.
9634         * config/c6x/eqd.c: New file.
9635         * config/c6x/eqf.c: New file.
9636         * config/c6x/libgcc-c6xeabi.ver: New file.
9637
9638         Revert
9639         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
9640         PR rtl-optimization/11320
9641         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
9642         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
9643         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
9644         current_sched_info->compute_jump_reg_dependencies. Record which
9645         registers are used and which registers are set by the jump.
9646         Clear deps->reg_conditional_sets after a barrier.
9647         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
9648         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
9649         (init_deps): Initialize reg_conditional_sets.
9650         (free_deps): Clear reg_conditional_sets.
9651         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
9652         Mark registers live on entry of the fallthrough block and conditionally
9653         set as set by the jump. Mark registers live on entry of non-fallthrough
9654         blocks as used by the jump.
9655         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
9656         Mark new parameters as unused.
9657
9658 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
9659
9660         PR tree-opt/49309
9661         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
9662         Use fold_build2_loc instead of build2.
9663         Use the correct type for the new tree.
9664
9665 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9666
9667         PR rtl-optimization/11320
9668         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
9669         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
9670
9671 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
9672
9673         PR target/49487
9674         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
9675         of REG.
9676         (*rotw<mode>): Use const_int_operand for operand2.
9677         Use match_scatch for operand3.
9678         (*rotb<mode>): Ditto
9679         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
9680
9681 2011-07-14  Richard Guenther  <rguenther@suse.de>
9682
9683         PR tree-optimization/49651
9684         * tree-ssa-structalias.c (get_constraint_for_1): Properly
9685         handle dereferences with subvariables.
9686
9687 2011-07-14  Richard Guenther  <rguenther@suse.de>
9688
9689         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
9690         (fold_stmt_1): Do it here directly on gimple and as a first thing.
9691
9692 2011-07-14  Richard Guenther  <rguenther@suse.de>
9693
9694         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
9695         not bool_var when folding bool_var != 1 or bool_var == 0.
9696
9697 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9698
9699         * haifa-sched.c (schedule_insns): Remove outdated comment.
9700         (schedule_block): When computing a known value for TODO_SPEC,
9701         just set it rather than using logical operations.
9702         (try_ready): Likewise.  Use a local variable rather than a
9703         pointer to TODO_SPEC.  Reorder an if statement to move the
9704         easy case to the then block.
9705         * sched-deps.c (dep_spec_p): New static function.
9706         (update_dep): Use it to decide whether to call
9707         change_spec_dep_to_hard.
9708         (get_back_and_forw_lists): Use it.
9709         (sd_resolve_dep): Likewise.
9710         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
9711         (haifa_note_mem_dep): Likewise.
9712         (check_dep): Likewise.
9713         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
9714         (sched_free_deps): Free in two passes.
9715
9716 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
9717
9718         PR middle-end/49736
9719         * expr.c (all_zeros_p): Undo bogus part of last change.
9720
9721 2011-07-14  Matthias Klose <doko@ubuntu.com>
9722
9723         * doc/extend.texi (optimize attribute): Fix typo.
9724
9725 2011-07-14  Richard Guenther  <rguenther@suse.de>
9726
9727         * gimplify.c (gimplify_expr): Only do required conversions.
9728
9729 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
9730
9731         PR target/43746
9732         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
9733         i.e. use default_elf_select_section.
9734         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
9735         (READONLY_DATA_SECTION_ASM_OP): Remove.
9736         (TARGET_ASM_NAMED_SECTION): Move from here...
9737         * config/avr/avr.c: ...to here.
9738         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
9739         (avr_asm_named_section): Make static.
9740
9741 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9742
9743         PR bootstrap/49739
9744         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
9745         and crtfastmath.o for Linux/x86.
9746
9747 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9748
9749         * haifa-sched.c: Include "hashtab.h"
9750         (sched_no_dce): New global variable.
9751         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
9752         SHADOW_P): New macros.
9753         (last_clock_var, cycle_issued_insns): Move declarations.
9754         (must_backtrack): New static variable.
9755         (struct delay_pair): New structure.
9756         (delay_htab, delay_htab_i2): New static variables.
9757         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
9758         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
9759         functions.
9760         (dep_cost_1): If delay pairs exist, try to look up the insns and
9761         use the correct pair delay if we find them.
9762         (rank-for_schedule): Tweak priority for insns that must be scheduled
9763         soon to avoid backtracking.
9764         (queue_insn): Detect conditions which force backtracking.
9765         (ready_add): Likewise.
9766         (struct sched_block_state): Add member shadows_only_p.
9767         (struct haifa_save_data): New structure.
9768         (backtrack_queue): New static variable.
9769         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
9770         unschedule_insns_until, restore_last_backtrack_point,
9771         free_topmost_backtrack_point, free_backtrack_queue,
9772         estimate_insn_tick, estimate_shadow_tick): New functions.
9773         (prune_ready_list): New arg shadows_only_p.  All callers changed.
9774         If true, remove everything that isn't SHADOW_P.  Look up delay
9775         pairs and estimate ticks to avoid scheduling the first insn too early.
9776         (verify_shadows): New function.
9777         (schedule_block): Add machinery to enable backtracking.
9778         (sched_init): Take sched_no_dce into account when setting
9779         DF_LR_RUN_DCE.
9780         (free_delay_pairs): New function.
9781         (init_h_i_d): Initialize INSN_EXACT_TICK.
9782         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
9783         * sched-deps.c (sd_unresolve_dep): New function.
9784         * sched-int. (struct haifa_sched_info): New fields save_state
9785         and restore_state.
9786         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
9787         feeds_backtrack_insn and shadow_p.
9788         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
9789         (sched_no_dce): Declare variable.
9790         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
9791         sd_unresolve_dep): Declare functions.
9792         * modulo-sched.c (sms_sched_info): Clear the two new fields.
9793         * sched-rgn.c (rgn_const_sched_info): Likewise.
9794         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9795         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
9796         (ebb_sched_info): Add them for the two new fields.
9797         (add_deps_for_risky_insns): Call add_delay_dependencies.
9798
9799 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
9800
9801         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
9802         Rename -mr11.
9803         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
9804         (rs6000_call_indirect_aix): Ditto.
9805         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
9806         (call_indirect_aix<ptrsize>_internal): Ditto.
9807         (call_indirect_aix<ptrsize>_nor11): Ditto.
9808         (call_indirect_aix<ptrsize>_internal2): Ditto.
9809         (call_value_indirect_aix<ptrsize>): Ditto.
9810         (call_value_indirect_aix<ptrsize>_internal): Ditto.
9811         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9812         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9813         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
9814
9815 2011-07-13  Jason Merrill  <jason@redhat.com>
9816
9817         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
9818
9819 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9820
9821         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
9822         * config/spu/spu.md ("clrsb<mode>2"): New expander.
9823
9824 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
9825
9826         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
9827         * configure: Regenerate.
9828
9829 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9830
9831         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
9832         (asm_file_start): Remove.
9833         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
9834         free_bb_for_insn around code that modifies insns before
9835         restarting df analysis.
9836
9837 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9838
9839         PR target/49541
9840         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
9841         (LINK_SPEC): ... here.
9842
9843 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9844
9845         * haifa-sched.c (struct sched_block_state): New.
9846         (schedule_block): Move some local variables into such a structure.
9847
9848 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9849
9850         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
9851         * config/i386/t-crtpc: Remove.
9852         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9853         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
9854         tmake_file.
9855         (x86_64-*-darwin*): Likewise.
9856         (i[34567]86-*-linux*): Likewise.
9857         (x86_64-*-linux*): Likewise.
9858
9859         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
9860         Handle -mpc32, -mpc64, -mpc80.
9861
9862 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9863
9864         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
9865         * config/alpha/t-crtfm: Remove.
9866         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
9867         * config/i386/t-crtfm: Remove.
9868         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
9869         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
9870         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
9871         * config/sparc/t-crtfm: Remove.
9872
9873         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
9874         (alpha*-*-freebsd*): Likewise.
9875         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
9876         (x86_64-*-darwin*): Likewise.
9877         (i[34567]86-*-linux*): Likewise.
9878         (x86_64-*-linux*): Likewise.
9879         (x86_64-*-mingw*): Likewise.
9880         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
9881         (ia64*-*-freebsd*): Likewise.
9882         (ia64*-*-linux*): Likewise.
9883         (mips64*-*-linux*): Likewise.
9884         (mips*-*-linux*): Likewise.
9885         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
9886         (sparc64-*-linux*): Likewise.
9887         (sparc64-*-freebsd*): Likewise.
9888
9889 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9890
9891         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
9892         * config/darwin-crt3.c: Move to ../libgcc/config.
9893         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9894         ($(T)crt3$(objext)): Remove.
9895         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
9896         ($(T)crt2$(objext)): Remove.
9897         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
9898         (powerpc64-*-darwin*): Likewise.
9899
9900 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9901
9902         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
9903
9904         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
9905         (addsi_1_zext): This.
9906
9907 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9908
9909         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
9910         * doc/tm.texi: Regenerate.
9911         * target.def (mergeable_rodata_prefix): New defhookpod.
9912         * varasm.c (mergeable_string_section, mergeable_constant_section):
9913         Use it. Allocate name with alloca.
9914
9915 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9916
9917         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
9918
9919 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
9920
9921         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
9922         overlap check.
9923
9924 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
9925
9926         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
9927         (count_type_elements): Delete.
9928         (complete_ctor_at_level_p): Declare.
9929         * expr.c (flexible_array_member_p): New function, split out from...
9930         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
9931         parameter with for_ctor_p.  When for_ctor_p is true, return the
9932         number of elements that should appear in the top-level constructor,
9933         otherwise return an estimate of the number of scalars.
9934         (categorize_ctor_elements): Replace p_must_clear with p_complete.
9935         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
9936         (complete_ctor_at_level_p): New function, borrowing union logic
9937         from old categorize_ctor_elements_1.
9938         (mostly_zeros_p): Return true if the constructor is not complete.
9939         (all_zeros_p): Update call to categorize_ctor_elements.
9940         * gimplify.c (gimplify_init_constructor): Update call to
9941         categorize_ctor_elements.  Don't call count_type_elements.
9942         Unconditionally prevent clearing for variable-sized types,
9943         otherwise rely on categorize_ctor_elements to detect
9944         incomplete initializers.
9945
9946 2011-07-13  Richard Guenther  <rguenther@suse.de>
9947
9948         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
9949         the final type is integral.
9950
9951 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9952
9953         * sched-int.h (struct _dep): Add member cost.
9954         (DEP_COST, UNKNOWN_DEP_COST): New macros.
9955         * sched-deps.c (init_dep_1): Initialize DEP_COST.
9956         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
9957         (sched_change_pattern): Reset it for dependent insns.
9958
9959 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9960
9961         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
9962         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
9963         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
9964         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
9965         (CRT0_S, MCRT0_S): Remove.
9966         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
9967         Remove.
9968         (s-crt0): Remove.
9969         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
9970
9971 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
9972
9973         * cse.c (insert_with_costs): Put semi-colon after empty loop body
9974         on the next line.
9975         * emit-rtl.c (push_to_sequence): Likewise.
9976         * haifa-sched.c (max_issue): Likewise.
9977         * matrix-reorg.c (add_allocation_site): Likewise.
9978         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
9979         * reload.c (alternative_allows_const_pool_ref): Likewise.
9980         * sched-rgn.c (rgn_add_block): Likewise.
9981         (rgn_fix_recovery_cfg): Likewise.
9982         * tree.c (attribute_list_contained): Likewise.
9983
9984 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
9985
9986         * config/i386/i386.c: Tidy processor feature bitmasks.
9987         (m_P4_NOCONA): New.
9988
9989 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
9990
9991         PR rtl-opt/49474
9992         * cprop.c (find_implicit_sets): Correct the condition.
9993
9994 2011-07-12  Richard Henderson  <rth@redhat.com>
9995
9996         PR target/49713
9997         * dwarf2out.h (dwarf_frame_regnum): Remove.
9998         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
9999         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
10000         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
10001         (execute_dwarf2_frame): Initialize them.
10002         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
10003         users of the macros with the variables.
10004         (expand_builtin_dwarf_sp_column): Revert last change.
10005         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
10006         result of DWARF_FRAME_REGNUM into a local variable.
10007
10008 2011-07-12  Richard Henderson  <rth@redhat.com>
10009
10010         PR target/49714
10011         * config/i386/i386.c (x86_output_mi_thunk): Use
10012         machopic_indirect_call_target instead of machopic_indirection_name
10013         directly.
10014
10015 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
10016             Eric Botcazou  <ebotcazou@adacore.com>
10017
10018         * prefix.h: Wrap up in extern "C" block.
10019
10020 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
10021
10022         AMD bdver2 Enablement
10023         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
10024         (case ${target}): Add bdver2.
10025         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10026         -march=native recognize bdver2 processors.
10027         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10028         bdver2 def_and_undef
10029         * config/i386/i386.c (struct processor_costs bdver2_cost): New
10030         bdver2 cost table.
10031         (m_BDVER2): New definition.
10032         (m_AMD_MULTIPLE): Includes m_BDVER2.
10033         (initial_ix86_tune_features): Add bdver2 tuning.
10034         (processor_target_table): Add bdver2 entry.
10035         (static const char *const cpu_names): Add bdver2 entry.
10036         (ix86_option_override_internal): Add bdver2 instruction sets.
10037         (ix86_issue_rate): Add bdver2.
10038         (ix86_adjust_cost): Add bdver2.
10039         (has_dispatch): Add bdver2.
10040         * config/i386/i386.h (TARGET_BDVER2): New definition.
10041         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
10042         (enum processor_type): Add PROCESSOR_BDVER2.
10043         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
10044         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
10045         description.
10046
10047 2011-07-12  Richard Henderson  <rth@redhat.com>
10048
10049         PR target/49714
10050         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
10051         destination address in memory on some paths.
10052
10053 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
10054
10055         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
10056         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
10057         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
10058         * function.c (locate_and_pad_parm): Take it into account.
10059         * target.def (function_arg_round_boundary): New hook.
10060         * targhooks.c (default_function_arg_round_boundary): New function.
10061         * targhooks.h (default_function_arg_round_boundary): Declare.
10062         * doc/tm.texi: Regenerate.
10063
10064 2011-07-12  Richard Guenther  <rguenther@suse.de>
10065
10066         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
10067         Do not perform no-op changes.
10068
10069 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
10070
10071         * config/arm/predicates.md (neon_struct_operand): Make a normal
10072         predicate.
10073         (neon_struct_or_register_operand): New predicate.
10074         * config/arm/neon.md (movmisalign<mode>): Replace predicates
10075         with neon_struct_or_register_operand.
10076         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
10077         neon_struct_operand instead of memory_operand.
10078
10079 2011-07-12  Martin Jambor  <mjambor@suse.cz>
10080
10081         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
10082         * cgraph.c (cgraph_get_node_or_alias): Removed.
10083         (change_decl_assembler_name): Changed all calls to
10084         cgraph_get_node_or_alias to a call to cgraph_get_node.
10085         (cgraph_make_decl_local): Likewise.
10086         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
10087         * varasm.c (default_binds_local_p_1): Likewise.
10088         (decl_binds_to_current_def_p): Likewise.
10089
10090 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
10091
10092         PR tree-optimization/49712
10093         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
10094
10095 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
10096
10097         * genautomata.c (add_arc): Return void.  All callers changed.
10098         (make_automaton): Remove dead code.
10099
10100 2011-07-11  Richard Henderson  <rth@redhat.com>
10101
10102         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
10103         (DW_FRAME_POINTER_REGNUM): New.
10104         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
10105         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
10106         (dwf_regno): New.
10107         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
10108         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
10109         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
10110         Use it.
10111         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
10112         * dwarf2out.h (dwarf_frame_regnum): New.
10113         (struct cfa_loc): Document the domain of the reg member.
10114
10115 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
10116
10117         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
10118         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
10119
10120 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
10121
10122         PR debug/49676
10123         * dwarf2out.c (int_shift_loc_descriptor): New function.
10124         (int_loc_descriptor): If shorter, emit i as
10125         (i >> shift), shift, DW_OP_shl for suitable shift value.
10126         Similarly, try to optimize large negative values using
10127         DW_OP_neg of a positive value if shorter.
10128         (size_of_int_shift_loc_descriptor): New function.
10129         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
10130         changes.
10131         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
10132         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
10133         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
10134         is shorter.
10135         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
10136         addend as added DW_OP_plus if it is shorter.
10137
10138 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10139
10140         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
10141         (DTORS_SECTION_ASM_OP): Define.
10142
10143 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10144
10145         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
10146         * config/t-dfprules: Move to ../libgcc/config.
10147         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10148         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
10149         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
10150         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
10151         Likewise.
10152         (i[34567]86-*-cygwin*): Likewise.
10153         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
10154         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
10155         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
10156         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
10157         D64PBIT_FUNCS, D128PBIT_FUNCS.
10158
10159 2011-07-11  Richard Guenther  <rguenther@suse.de>
10160
10161         * tree-vrp.c (simplify_conversion_using_ranges): Manually
10162         translate the source value-range through the conversion chain.
10163
10164 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
10165
10166         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
10167
10168 2011-07-11  Arthur Loiret  <aloiret@debian.org>
10169
10170         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
10171         a bi-arch compiler defaulting to 31-bit. In this case:
10172         (tmake_file): Add s390/t-linux64.
10173         * doc/install.texi: Add s390-linux to the list of targets supporting
10174         --enable-targets=all.
10175
10176 2011-07-11  Arthur Loiret  <aloiret@debian.org>
10177             Matthias Klose <doko@debian.org>
10178
10179         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
10180         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
10181         (tm_file): Add mips/linux64.h.
10182         (tmake_file): Add mips/t-linux64.
10183         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
10184         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
10185         instead of hardcoded mabi=n32.
10186         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
10187         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
10188         convention.
10189
10190 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10191
10192         * passes.c (init_optimization_passes): Add invariant motion pass
10193         after induction variable optimization.
10194
10195 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
10196
10197         PR target/39633
10198         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
10199         offsets 1..5 set cc0 in a usable way.
10200
10201 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
10202
10203         * tree.h (call_expr_arg): Remove.
10204         (call_expr_argp): Likewise.
10205
10206 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
10207
10208         * config/sparc/sparc.md (save_register_window_1): Rename to...
10209         (window_save): ...this.
10210         * config/sparc/sparc.c (emit_save_register_window): Rename to...
10211         (emit_window_save): ...this.
10212         (sparc_expand_prologue): Adjust to above renaming.
10213
10214 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
10215
10216         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
10217         of movabs for x32.
10218
10219 2011-07-10  Richard Henderson  <rth@redhat.com>
10220
10221         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
10222         run final, instead of emitting text directly.
10223
10224 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
10225
10226         * config/i386/i386.c (ix86_option_override_internal): Turn on
10227         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
10228         small PIC models for TARGET_X32.
10229
10230 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
10231
10232         PR target/49684
10233         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
10234         $(LIBGCC2_CFLAGS).
10235
10236         PR bootstrap/49680
10237         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
10238         stray notes and debug insns by using prev_nonnote_nondebug_insn
10239         instead of PREV_INSN.
10240
10241 2011-07-09  Richard Henderson  <rth@redhat.com>
10242
10243         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
10244         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
10245         * dwarf2out.c: ... here.
10246         (output_all_cfis): Remove.
10247         (dwarf2out_switch_text_section): Use output_cfis directly.
10248         (size_of_locs): Export.
10249         (output_loc_sequence, output_loc_sequence_raw): Export.
10250         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
10251         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
10252         output_cfa_loc_raw): Move to ...
10253         * dwarfcfi.c: ... here.
10254         * dwarf2out.h: Update decls.
10255
10256 2011-07-09  Richard Henderson  <rth@redhat.com>
10257
10258         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
10259         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
10260         * dwarf2cfi.c: ... here.
10261         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
10262         (DWARF_ROUND, DWARF_CIE_ID): Remove.
10263         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
10264         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
10265         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
10266
10267 2011-07-09  Richard Henderson  <rth@redhat.com>
10268
10269         * dwarf2cfi.c (cie_return_save): New.
10270         (queue_reg_save): Use compare_reg_or_pc.
10271         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
10272         (dwarf2out_frame_debug_expr): Likewise.
10273         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
10274         (initial_return_save): Likewise.
10275         (execute_dwarf2_frame): Save and restore initial return save from
10276         the cie to the fde.
10277         * config/mips/mips.c (mips_frame_set): Remove special case for
10278         DWARF_FRAME_RETURN_COLUMN.
10279
10280 2011-07-09  Richard Henderson  <rth@redhat.com>
10281
10282         * dwarf2cfi.c (lookup_cfa): Remove.
10283         (execute_dwarf2_frame): Assert queues are empty on entry.
10284         Setup initial cfa directly, not via lookup_cfa.
10285         Don't clear args_size state here.
10286
10287 2011-07-09  Richard Henderson  <rth@redhat.com>
10288
10289         * dwarf2cfi.c (add_cfi_vec): New.
10290         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
10291         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
10292         (execute_dwarf2_frame): Set add_cfi_vec.
10293
10294 2011-07-09  Richard Henderson  <rth@redhat.com>
10295
10296         * defaults.h (ASM_COMMENT_START): Move here...
10297         * dwarf2asm.c: ... from here.
10298         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
10299         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
10300         * varasm.c: Likewise.
10301
10302 2011-07-09  Richard Henderson  <rth@redhat.com>
10303
10304         PR debug/49686
10305         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
10306         (create_cfi_notes): ... do it here instead.
10307
10308 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
10309
10310         PR debug/49676
10311         * dwarf2out.c (size_of_int_loc_descriptor): New function.
10312         (address_of_int_loc_descriptor): Use it.
10313         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
10314
10315 2011-07-09  Richard Henderson  <rth@redhat.com>
10316
10317         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
10318         (prologue, epilogue): New.
10319         (return, *rts): New.
10320         (blockage, setd, seti): New.
10321         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
10322         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
10323         (pdp11_saved_regno): New.
10324         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
10325         generate rtl instead of text.
10326         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
10327         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
10328         * config/pdp11/pdp11-protos.h: Update.
10329
10330 2011-07-09  Richard Henderson  <rth@redhat.com>
10331
10332         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
10333         try to insert an rtl prologue here.
10334         (rs6000_output_function_epilogue): Similarly.
10335         * config/rs6000/rs6000.md (prologue): Emit a barrier to
10336         satisfy !TARGET_SCHED_PROLOG.
10337         (epilogue, sibcall_epilogue): Likewise.
10338
10339 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
10340
10341         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
10342         (FP_REG_P): Delete.
10343         (IN_OR_GLOBAL_P): Likewise.
10344
10345 2011-07-08  Jason Merrill  <jason@redhat.com>
10346
10347         PR c++/45437
10348         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
10349         compound assignment.
10350
10351         * cgraph.c (cgraph_add_to_same_comdat_group): New.
10352         * cgraph.h: Declare it.
10353         * ipa.c (function_and_variable_visibility): Make sure thunks
10354         have the right visibility.
10355
10356 2011-07-08  Richard Henderson  <rth@redhat.com>
10357
10358         PR bootstrap/49680
10359         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
10360         any tablejump vector.
10361
10362         PR bootstrap/49680
10363         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
10364         end of the prologue.
10365
10366 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
10367
10368         PR target/49621
10369         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
10370         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
10371         * config/rs6000/vector.md (vector_select_<mode>,
10372         vector_select_<mode>_uns): Change second operand of NE to
10373         CONST0_RTX (<MODE>mode) instead of const0_rtx.
10374         * config/rs6000/altivec.md (*altivec_vsel<mode>,
10375         *altivec_vsel<mode>_uns): Expect second operand of NE to be
10376         zero_constant of the corresponding vector mode.
10377         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
10378         Likewise.
10379
10380 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10381
10382         * graphite-dependences.c (build_alias_set_powerset): Remove
10383         continue from loop, add one more assert.
10384
10385 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
10386
10387         PR target/46779
10388         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
10389         In particular, allow 8-bit values in r28 and r29.
10390         (avr_hard_regno_scratch_ok): Disallow any register that might be
10391         part of the frame pointer.
10392         (avr_hard_regno_rename_ok): Same.
10393         (avr_legitimate_address_p): Don't allow SUBREGs.
10394
10395 2011-07-08  Julian Brown  <julian@codesourcery.com>
10396
10397         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
10398         big-endian mode.
10399         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
10400         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
10401         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
10402         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
10403         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
10404         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
10405         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
10406         registers in big-endian mode.
10407
10408 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
10409
10410         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
10411         in terms of another.
10412         (write_attr_value): Write a cast if necessary.
10413
10414         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
10415         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
10416         (REG_WORDS_BIG_ENDIAN): Document.
10417         * doc/tm.texi: Regenerate.
10418         * reload.c (operands_match_p): Take it into account.
10419         (reload_adjust_reg_for_mode): Likewise.
10420         * rtlanal.c (subreg_get_info): Likewise.
10421
10422 2011-07-08  Richard Guenther  <rguenther@suse.de>
10423
10424         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
10425         folding.
10426
10427 2011-07-08  Kai Tietz  <ktietz@redhat.com>
10428
10429         * fold-const.c (fold_truth_andor): Factored out truth_andor
10430         label from fold_binary as function.
10431         (fold_binary_loc): Replace truth_andor lable
10432         by function fold_truth_andor.
10433
10434 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
10435
10436         PR middle-end/49519
10437         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
10438         check if address is stored in register. If so - give up.
10439         (check_sibcall_argument_overlap_1): Do not perform check of
10440         overlapping when it is call to address.
10441
10442 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
10443
10444         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
10445         of magic '31'.
10446
10447 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
10448
10449         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
10450         GET_MODE_BITSIZE where appropriate.
10451         (widen_leading, expand_parity, expand_ctz, expand_ffs,
10452         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
10453         expand_float, expand_fix): Likewise.
10454         * expr.c (convert_move, convert_modes, expand_expr_real_2,
10455         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
10456         * stor-layout.c (get_mode_bounds): Likewise.
10457         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
10458         Likewise.
10459         * convert.c (convert_to_integer): Likewise.
10460         * expmed.c (expand_shift_1): Likewise.
10461
10462         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
10463         a bitsize.
10464
10465         * optabs.c (expand_binop): Tighten conditions for doubleword
10466         expansions.
10467         (widen_bswap): Assert that mode bitsize and precision are the same.
10468         * stor-layout.c (get_best_mode): Skip modes that have lower
10469         precision than bitsize.
10470         * recog.c (simplify_while_replacing): Assert that bitsize and
10471         precision are the same.
10472
10473 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10474
10475         * Makefile.in (LIBGCOV): Remove.
10476         (libgcc.mvars): Remove LIBGCOV.
10477         * libgov.c: Move to ../libgcc.
10478
10479 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10480
10481         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
10482
10483 2011-07-08  Martin Jambor  <mjambor@suse.cz>
10484
10485         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
10486         is too big for total scalarization.
10487
10488 2011-07-07  Richard Henderson  <rth@redhat.com>
10489
10490         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
10491         (DBX_DEBUGGING_INFO): Undef.
10492
10493 2011-07-07  Richard Henderson  <rth@redhat.com>
10494
10495         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
10496         Handle some opcodes specially for debugging.
10497         * print-rtl.c: Include dwarf2out.h
10498         (print_rtx): Handle NOTE_INSN_CFI.
10499         * Makefile.in (print-rtl.o): Update.
10500
10501 2011-07-07  Richard Henderson  <rth@redhat.com>
10502
10503         * tree-pass.h (pass_dwarf2_frame): Declare.
10504         * passes.c (init_optimization_passes): Add it.
10505         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
10506         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
10507         make static, do not call add_cfis_to_fde.
10508         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
10509         dwarf2out_frame_init): Merge into...
10510         (execute_dwarf2_frame): ... here.  New function.
10511         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
10512         saved_do_cfi_asm to a tri-state variable.
10513         (gate_dwarf2_frame, pass_dwarf2_frame): New.
10514         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
10515         if it has yet to be done.  Don't call dwarf2cfi_function_init.
10516         * dwarf2out.h, debug.h: Update decls.
10517         * final.c (final_start_function): Don't call
10518         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
10519         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
10520         * toplev.c (lang_dependent_init): Likewise.
10521
10522 2011-07-07  Richard Henderson  <rth@redhat.com>
10523
10524         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
10525         FDE_TABLE_INCREMENT): Replace with...
10526         (fde_vec): ... this, a new vector.
10527         (current_fde): Remove.  Replace all users with cfun->fde.
10528         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
10529         (size_of_aranges, dwarf2out_finish): Likewise.
10530         (dwarf2out_alloc_current_fde): Break out from ...
10531         (dwarf2out_begin_prologue): ... here.
10532         (dwarf2out_frame_init): Remove.
10533         * dwarf2cfi.c: Update all users of current_fde.
10534         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
10535         * dwarf2out.h: Update decls.
10536         (dw_fde_node): Add fde_index member.
10537         * function.h (struct function): Add fde member.
10538
10539 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10540             Richard Henderson  <rth@redhat.com>
10541
10542         * dwarf2cfi.c (add_cfi): Remove.
10543         (dwarf2out_cfi_label): Remove force argument.  Only generate the
10544         label name.
10545         (add_fde_cfi): Simplify the different code paths.
10546         (add_cie_cfi): New.
10547         (old_cfa, old_cfa_remember): New.
10548         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
10549         (last_reg_save_label): Remove.
10550         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
10551         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
10552         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
10553         dwarf2out_frame_debug_cfa_expression,
10554         dwarf2out_frame_debug_cfa_restore,
10555         dwarf2out_frame_debug_cfa_window_save,
10556         dwarf2out_frame_debug_expr): Remove label parameter.
10557         (cfi_label_required_p, add_cfis_to_fde): New.
10558         (dwarf2out_frame_debug_after_prologue): New.
10559         (dwarf2cfi_frame_init): Initialize old_cfa.
10560         (dwarf2out_frame_debug_restore_state): Likewise.
10561         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
10562         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
10563         * final.c (final_start_function): Call
10564         dwarf2out_frame_debug_after_prologue.
10565
10566 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10567             Richard Henderson  <rth@redhat.com>
10568
10569         * dwarf2cfi.c (cfi_insn): New.
10570         (dwarf2out_cfi_label): Don't emit cfi label here.
10571         (add_fde_cfi): Create a NOTE_INSN_CFI.
10572         (dwarf2out_frame_debug): Setup cfi_insn.
10573         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
10574         (dwarf2out_cfi_begin_epilogue): Make static.
10575         (dwarf2out_frame_debug_restore_state): Make static.
10576         * dwarf2out.c (output_cfi_directive): Make static.
10577         (dwarf2out_emit_cfi): New.
10578         * dwarf2out.h: Update.
10579         * final.c (final): Remove CFI notes.
10580         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
10581         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
10582         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
10583         * insn-notes.def (NOTE_INSN_CFI): New.
10584         (NOTE_INSN_CFI_LABEL): New.
10585         * rtl.h (union rtunion_def): Add rt_cfi member.
10586         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
10587
10588 2011-07-07  Richard Henderson  <rth@redhat.com>
10589
10590         * dwarf2cfi.c: New file.
10591         * Makefile.in (OBJS): Add it.
10592         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
10593         * gengtype.c (open_base_files): Include dwarf2out.h.
10594         * coretypes.h (enum var_init_status): Move from ...
10595         * rtl.h: ... here.
10596         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
10597         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
10598         expand_builtin_dwarf_sp_column, init_return_column_size,
10599         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
10600         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
10601         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
10602         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
10603         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
10604         compute_barrier_args_size, dwarf2out_args_size,
10605         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
10606         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
10607         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
10608         queue_reg_save, dwarf2out_flush_queued_reg_saves,
10609         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
10610         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
10611         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
10612         dwarf2out_frame_debug_cfa_expression,
10613         dwarf2out_frame_debug_cfa_restore,
10614         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
10615         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
10616         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
10617         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
10618         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
10619         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
10620         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
10621         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
10622         dw_loc_descr_node): Move to dwarf2out.h.
10623         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
10624         mem_loc_descriptor): Export.
10625         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
10626         (dwarf2out_frame_init): Extract CIE generation code to
10627         dwarf2cfi_frame_init.
10628
10629 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
10630
10631         PR target/49660
10632         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
10633         MASK_V8PLUS, remove commented out flag and reorder.
10634
10635 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10636
10637         PR c/49644
10638         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
10639         one non-complex and one complex argument, call c_save_expr on both
10640         operands.
10641
10642 2011-07-07  Martin Jambor  <mjambor@suse.cz>
10643
10644         PR middle-end/49495
10645         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
10646         (verify_cgraph_node): Some functinality moved to
10647         verify_edge_corresponds_to_fndecl, call it.
10648
10649 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10650
10651         * config.gcc (*local*): Remove.
10652         * doc/install-old.texi: Don't mention local configurations.
10653
10654 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10655
10656         PR debug/49522
10657         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
10658         referencing debug insns that have been reset.
10659         (dead_debug_insert_before): Don't assert reg is non-NULL,
10660         instead return immediately if it is NULL.
10661
10662 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10663
10664         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
10665
10666 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10667
10668         * hw-doloop.c: New file.
10669         * hw-doloop.h: New file.
10670         * Makefile.in (OBJS): Add hw-doloop.o.
10671         (hw-doloop.o): New rule.
10672         ($(obj_out_file)): Add hw-doloop.h dependency.
10673         * config/bfin/bfin.c: Include "hw-doloop.h".
10674         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
10675         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
10676         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
10677         type changed to hwloop_info.  Return bool, true if the loop was
10678         successfully optimized.  Remove code that was moved to
10679         hw-doloop.c, and adjust other parts.
10680         (hwloop_fail): New static function, containing parts that used
10681         to be in bfin_optimize_loop.
10682         (bfin_discover_loop, bfin_discover_loops, free_loops,
10683         bfin_reorder_loops): Remove.
10684         (hwloop_pattern_reg): New static function.
10685         (bfin_doloop_hooks): New variable.
10686         (bfin_reorg_loops): Remove most code, call reorg_loops.
10687         * config/bfin/bfin.md (doloop_end splitter): Also enable if
10688         loop counter is a memory_operand.
10689
10690 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10691
10692         * config.gcc: Support --with-multilib-list for x86 Linux targets.
10693
10694         * configure.ac: Mention x86-64 for --with-multilib-list.
10695         * configure: Regenerated.
10696
10697         * config/i386/gnu-user64.h (SPEC_64): Support x32.
10698         (SPEC_32): Likewise.
10699         (ASM_SPEC): Likewise.
10700         (LINK_SPEC): Likewise.
10701         (TARGET_THREAD_SSP_OFFSET): Likewise.
10702         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
10703         (SPEC_X32): New.
10704
10705         * config/i386/i386.h (TARGET_X32): New.
10706         (TARGET_LP64): New.
10707         (LONG_TYPE_SIZE): Likewise.
10708         (POINTER_SIZE): Likewise.
10709         (POINTERS_EXTEND_UNSIGNED): Likewise.
10710         (OPT_ARCH64): Support x32.
10711         (OPT_ARCH32): Likewise.
10712
10713         * config/i386/i386.opt (mx32): New.
10714
10715         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
10716         (GLIBC_DYNAMIC_LINKERX32): Likewise.
10717         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
10718         (GLIBC_DYNAMIC_LINKERX32): Likewise.
10719
10720         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
10721         (BIONIC_DYNAMIC_LINKERX32): Likewise.
10722         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
10723
10724         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
10725
10726         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
10727
10728         * doc/invoke.texi: Document -mx32.
10729
10730 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
10731
10732         * doc/invoke.texi (mwords-little-endian): Deprecate.
10733         * config/arm/arm.opt (mwords-little-endian): Likewise.
10734         * config/arm/arm.c (arm_option_override): Warn about the deprecation
10735         of -mwords-little-endian.
10736
10737 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
10738
10739         * reload1.c (choose_reload_regs): Use mode sizes to check whether
10740         an old reload register completely defines the required value.
10741
10742 2011-07-07  Richard Guenther  <rguenther@suse.de>
10743
10744         * fold-const.c (fold_unary_loc): Do not strip sign-changes
10745         for NEGATE_EXPR.
10746
10747 2011-07-07  Richard Guenther  <rguenther@suse.de>
10748
10749         * tree-vrp.c (simplify_conversion_using_ranges): New function.
10750         (simplify_stmt_using_ranges): Call it.
10751
10752 2011-07-07  Kai Tietz  <ktietz@redhat.com>
10753
10754         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
10755         (lookup_logical_inverted_value): Likewise.
10756         (simplify_bitwise_binary_1): Likewise.
10757         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
10758
10759 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10760
10761         * gcc.c (%[Spec]): Don't document.
10762         (struct spec_list): Update comment.
10763         (do_spec_1): Don't handle %[Spec].
10764         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
10765
10766 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10767
10768         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
10769         default based on TARGET_ASM_NAMED_SECTION.
10770         * common/common-target.def (have_named_sections): Default to true.
10771         * common/config/default-common.c: Don't include tm.h.
10772         * common/config/picochip/picochip-common.c
10773         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
10774         * common/config/m32c/m32c-common.c: Remove.
10775         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
10776         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10777         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10778         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10779         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10780         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10781         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10782
10783 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10784
10785         PR middle-end/49640
10786         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
10787         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
10788
10789 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10790
10791         PR libmudflap/49550
10792         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
10793
10794 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10795
10796         PR target/39150
10797         * configure.ac (gcc_cv_as_hidden): Also accept
10798         x86_64-*-solaris2.1[0-9]*.
10799         (gcc_cv_as_cfi_directive): Likewise.
10800         (gcc_cv_as_comdat_group_group): Likewise.
10801         (set_have_as_tls): Likewise.
10802         * configure: Regenerate.
10803         * config.gcc (i[34567]86-*-solaris2*): Also handle
10804         x86_64-*-solaris2.1[0-9]*.
10805         * config.host (i[34567]86-*-solaris2*): Likewise.
10806         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
10807         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
10808         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
10809         (TARGET_LD_EMULATION): Use it.
10810         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
10811         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
10812         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
10813         (ASM_CPU64_DEFAULT_SPEC): Define.
10814         (ASM_CPU_SPEC): Use %(asm_cpu_default).
10815         (ASM_SPEC): Redefine.
10816         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
10817         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
10818         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
10819         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
10820         configuration.
10821         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
10822
10823 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10824
10825         * config/sol2.h (ASM_SPEC): Split into ...
10826         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
10827         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
10828         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
10829         (ASM_SPEC): Use ASM_SPEC_BASE.
10830         * config/sparc/sol2.h (ASM_SPEC): Redefine.
10831
10832 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
10833
10834         * config/avr/avr.md (*reload_insi): Change predicate #1 to
10835         const_int_operand.  Ditto for peep2 producing this insn.
10836         Add argument to output_reload_insisf call.
10837         (*movsi,*movsf): Add argument to output_movsisf call.
10838         (*reload_insf): New insn and new peep2 to produce it.
10839         * config/avr/avr-protos.h (output_movsisf): Change prototype.
10840         (output_reload_insisf): Change prototype.
10841         * config/avr/avr.c (avr_asm_len): New function.
10842         (output_reload_insisf): Rewrite.
10843         (output_movsisf): Change prototype.  output_reload_insisf for
10844         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
10845         (adjust_insn_length): Add argument to output_movsisf and
10846         output_reload_insisf call.
10847
10848 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10849
10850         * emit-rtl.c (paradoxical_subreg_p): New function.
10851         * rtl.h (paradoxical_subreg_p): Declare.
10852         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
10853         apply_distributive_law, simplify_comparison, simplify_set): Use it.
10854         * cse.c (record_jump_cond, cse_insn): Likewise.
10855         * expr.c (force_operand): Likewise.
10856         * rtlanal.c (num_sign_bit_copies1): Likewise.
10857         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
10858         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
10859         (push_reload): Use precision to check for paradoxical subregs.
10860         * expmed.c (extract_bit_field_1): Likewise.
10861
10862         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
10863         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
10864         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
10865         simplify_set, simplify_logical, expand_compound_operation,
10866         make_extraction, force_to_mode, if_then_else_cond, extended_count,
10867         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
10868         record_value_for_reg): Likewise.
10869         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
10870         * simplify-rtx. c (simplify_unary_operation_1,
10871         simplify_binary_operation_1, simplify_const_relational_operation):
10872         Likewise.
10873
10874         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
10875         instead of GET_MODE_BITSIZE where appropriate.
10876         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
10877         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
10878         init_num_sign_bit_copies_in_rep): Likewise.
10879         * cse.c (fold_rtx, cse_insn): Likewise.
10880         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
10881         * simplify-rtx.c (simplify_unary_operation_1,
10882         simplify_const_unary_operation, simplify_binary_operation_1,
10883         simplify_const_binary_operation, simplify_ternary_operation,
10884         simplify_const_relational_operation, simplify_subreg): Likewise.
10885         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
10886         simplify_if_then_else, simplify_set, expand_compound_operation,
10887         expand_field_assignment, make_extraction, if_then_else_cond,
10888         make_compound_operation, force_to_mode, make_field_assignment,
10889         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
10890         extended_count, try_widen_shift_mode, simplify_shift_const_1,
10891         simplify_comparison, record_promoted_value, simplify_compare_const,
10892         record_dead_and_set_regs_1): Likewise.
10893
10894         Revert:
10895         * simplify-rtx.c (simplify_const_binary_operation): Use the
10896         shift_truncation_mask hook instead of performing modulo by width.
10897         Compare against mode precision, not bitsize.
10898         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10899         Use shift_truncation_mask instead of constructing the value manually.
10900
10901 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
10902
10903         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
10904         declaration.
10905         (rs6000_save_toc_in_prologue_p): Ditto.
10906
10907         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
10908         up the static chain (r11) during indirect function calls.
10909         (-msave-toc-indirect): New undocumented debug switch.
10910
10911         * config/rs6000/rs6000.c (struct machine_function): Add
10912         save_toc_in_prologue field to note whether the prologue needs to
10913         save the TOC value in the reserved stack location.
10914         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
10915         to save the TOC in the prologue, do so.
10916         (rs6000_trampoline_init): Don't allow creating AIX style
10917         trampolines if -mno-r11 is in effect.
10918         (rs6000_call_indirect_aix): New function to create AIX style
10919         indirect calls, adding support for -mno-r11 to suppress loading
10920         the static chain, and saving the TOC in the prologue instead of
10921         the call body.
10922         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
10923         TOC in the prologue.
10924
10925         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
10926         register numbers.
10927         (TOC_REGNUM): Ditto.
10928         (STATIC_CHAIN_REGNUM): Ditto.
10929         (ARG_POINTER_REGNUM): Ditto.
10930         (SFP_REGNO): Delete, unused.
10931         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
10932         function descriptor offsets.
10933         (TOC_SAVE_OFFSET_64BIT): Ditto.
10934         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
10935         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
10936         (AIX_FUNC_DESC_SC_32BIT): Ditto.
10937         (AIX_FUNC_DESC_SC_64BIT): Ditto.
10938         (ptrload): New mode attribute for the appropriate load of a pointer.
10939         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
10940         (call_indirect_aix64): Ditto.
10941         (call_value_indirect_aix32): Ditto.
10942         (call_value_indirect_aix64): Ditto.
10943         (call_indirect_nonlocal_aix32_internal): Ditto.
10944         (call_indirect_nonlocal_aix32): Ditto.
10945         (call_indirect_nonlocal_aix64_internal): Ditto.
10946         (call_indirect_nonlocal_aix64): Ditto.
10947         (call): Rewrite AIX indirect function calls.  Add support for
10948         eliminating the static chain, and for moving the save of the TOC
10949         to the function prologue.
10950         (call_value): Ditto.
10951         (call_indirect_aix<ptrsize>): Ditto.
10952         (call_indirect_aix<ptrsize>_internal): Ditto.
10953         (call_indirect_aix<ptrsize>_internal2): Ditto.
10954         (call_indirect_aix<ptrsize>_nor11): Ditto.
10955         (call_value_indirect_aix<ptrsize>): Ditto.
10956         (call_value_indirect_aix<ptrsize>_internal): Ditto.
10957         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10958         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10959         (call_nonlocal_aix32): Relocate in the rs6000.md file.
10960         (call_nonlocal_aix64): Ditto.
10961
10962         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
10963         -mno-r11 documentation.
10964
10965 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
10966
10967         PR other/49658
10968         * doc/extend.texi (Compound Literals): Fix typo.
10969
10970 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
10971
10972         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
10973
10974 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
10975
10976         * configure.ac (plugin-version.h): Generate
10977         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
10978         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
10979         macros.
10980
10981         * configure: Regenerate.
10982
10983         * doc/plugins.texi (Building GCC plugins): Mention
10984         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
10985
10986 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
10987
10988         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
10989         * combine.c (make_extraction, gen_lowpart_or_truncate,
10990         apply_distributive_law, simplify_comparison,
10991         reg_truncated_to_mode, record_truncated_value): Use it.
10992         * cse.c (notreg_cost): Likewise.
10993         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10994         * expr.c (convert_move, convert_modes): Likewise.
10995         * optabs.c (expand_binop, expand_unop): Likewise.
10996         * postreload.c (move2add_last_label): Likewise.
10997         * regmove.c (optimize_reg_copy_3): Likewise.
10998         * rtlhooks.c (gen_lowpart_general): Likewise.
10999         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11000
11001 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
11002
11003         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
11004
11005 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11006
11007         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
11008         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
11009         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
11010         (simplify_const_unary_operation, simplify_binary_operation_1,
11011         simplify_const_binary_operation, simplify_const_relational_operation):
11012         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
11013         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
11014         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
11015         simplify_shift_const_1, simplify_comparison): Likewise.
11016         * expr.c (convert_modes): Likewise.
11017         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
11018         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
11019         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
11020
11021         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
11022
11023 2011-07-06  Richard Guenther  <rguenther@suse.de>
11024
11025         PR tree-optimization/49645
11026         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
11027         register variables.
11028         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
11029         in type qualification here ...
11030         (copy_reference_ops_from_ref): ... not here.
11031         (vn_reference_lookup_3): ... or here.
11032         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
11033         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
11034
11035 2011-07-06  Ian Lance Taylor  <iant@google.com>
11036
11037         * doc/install.texi (Configuration): It's
11038         --enable-gnu-indirect-function, not --enable-indirect-function.
11039
11040 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11041
11042         * simplify-rtx.c (simplify_const_binary_operation): Use the
11043         shift_truncation_mask hook instead of performing modulo by width.
11044         Compare against mode precision, not bitsize.
11045         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11046         Use shift_truncation_mask instead of constructing the value manually.
11047
11048 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
11049
11050         PR middle-end/47383
11051         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
11052         address computation and convert to address_mode if needed.
11053
11054 2011-07-06  Richard Guenther  <rguenther@suse.de>
11055
11056         * tree.c (build_common_tree_nodes_2): Merge with
11057         build_common_tree_nodes.
11058         * tree.h (build_common_tree_nodes): Adjust prototype.
11059         (build_common_tree_nodes_2): Remove.
11060         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
11061         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
11062
11063 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
11064
11065         PR tree-optimization/49618
11066         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
11067         t recurse on the decl.
11068         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
11069         return true if expr isn't known to be defined in current
11070         TU or some other LTO partition.
11071
11072 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
11073
11074         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
11075         override CASE_VALUES_THRESHOLD.
11076
11077         * stmt.c (toplevel): Include params.h.
11078         (case_values_threshold): Use the --param case-values-threshold
11079         value if non-zero, otherwise use machine dependent value.
11080         (expand_case): Use case_values_threshold.
11081
11082         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
11083
11084         * doc/invoke.texi (--param case-values-threshold): Document.
11085
11086 2011-07-05  Richard Henderson  <rth@redhat.com>
11087
11088         * dwarf2out.c (dwarf2out_cfi_label): Make static.
11089         (dwarf2out_flush_queued_reg_saves): Make static.
11090         (dwarf2out_reg_save): Remove.
11091         (dwarf2out_return_save): Remove.
11092         (dwarf2out_return_reg): Remove.
11093         (dwarf2out_reg_save_reg): Remove.
11094         (dwarf2out_def_cfa): Merge into ...
11095         (dwarf2out_frame_init): ... here.
11096         * dwarf2out.h, tree.h: Remove declarations as necessary.
11097
11098 2011-07-05  Richard Henderson  <rth@redhat.com>
11099
11100         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
11101         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11102         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
11103         the alloc insn.
11104
11105         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
11106         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
11107         (process_epilogue): Don't call dwarf2out_def_cfa.
11108
11109         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
11110         indicate the return address save.
11111         (process_cfa_register): Likewise.
11112
11113         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
11114         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
11115
11116         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
11117         for ar.pfs save at alloc insn.
11118
11119 2011-07-05  Richard Henderson  <rth@redhat.com>
11120
11121         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
11122         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11123         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
11124         stack pointer save.
11125         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
11126         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
11127         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
11128         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
11129
11130 2011-07-05  Richard Henderson  <rth@redhat.com>
11131
11132         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
11133         VUNSPEC_* constants here instead of via define_constants.
11134         (VUNSPEC_PEM): New constant.
11135         (procedure_entry_mask): New insn.
11136         (prologue): New expander.
11137         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
11138         (vax_expand_prologue): Rename from vax_output_function_prologue;
11139         emit rtl instead of text.
11140         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11141         (print_operand): Add 'x' prefix.
11142
11143 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11144
11145         PR middle-end/47715
11146         * calls.c (precompute_register_parameters): Promote the function
11147         argument before checking non-legitimate constant.
11148
11149 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11150
11151         PR tree-optimization/47654
11152         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
11153         (lst_do_strip_mine_loop): Return an int.
11154         (lst_do_strip_mine): Same.
11155         (scop_do_strip_mine): Same.
11156         (scop_do_block): Loop blocking should strip-mine at least two loops.
11157         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
11158         (scop_do_interchange): Same.
11159         * graphite-poly.h (scop_do_interchange): Update declaration.
11160         (scop_do_strip_mine): Same.
11161
11162 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11163
11164         * graphite-clast-to-gimple.c (precision_for_value): Removed.
11165         (precision_for_interval): Removed.
11166         (gcc_type_for_interval): Use mpz_sizeinbase.
11167
11168 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11169
11170         * graphite-ppl.h (value_max): Correct computation of max.
11171
11172 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11173
11174         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
11175
11176 2011-07-05  Richard Guenther  <rguenther@suse.de>
11177
11178         * c-decl.c (c_init_decl_processing): Defer building common
11179         tree nodes to c_common_nodes_and_builtins.
11180
11181 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
11182
11183         PR tree-optimization/49580
11184         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
11185         the loop's number of iterations.
11186         * tree-parloops.c (transform_to_exit_first_loop): Add the
11187         handling of the loop's number of iterations before the call
11188         to gimple_duplicate_sese_tail.
11189         Insert the stmt caclculating the new rhs of the loop's
11190         condition stmt to the preheader instead of iters_bb.
11191
11192 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11193
11194         PR rtl-optimization/47449
11195         * fwprop.c (forward_propagate_subreg): Don't propagate hard
11196         register nor zero/sign extended hard register.
11197
11198 2011-07-05  Richard Guenther  <rguenther@suse.de>
11199
11200         PR tree-optimization/49518
11201         PR tree-optimization/49628
11202         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
11203         irrelevant and invariant data-references.
11204         (vect_analyze_data_ref_access): For invariant loads clear the
11205         group association.
11206
11207 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
11208
11209         PR rtl-optimization/49619
11210         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
11211         pass VOIDmode as op0_mode to recursive call, and return temp even
11212         when different from tor, just if it is not IOR of the original
11213         PLUS arguments.
11214
11215         PR rtl-optimization/49472
11216         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
11217         negating MULT, negate the second operand instead of first.
11218         (simplify_binary_operation_1) <case MULT>: If one operand is
11219         a NEG and the other is MULT, don't attempt to optimize by negation
11220         of the MULT operand if it only moves the NEG operation around.
11221
11222         PR debug/49602
11223         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
11224         get_current_def return value if it can't be trusted to be
11225         the current value of the variable in the current bb.
11226
11227 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
11228
11229         PR target/49600
11230         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
11231         general register to memory for !TARGET_INTER_UNIT_MOVES.
11232
11233 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
11234
11235         PR target/44643
11236         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
11237         instead of TREE_READONLY.
11238
11239 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
11240
11241         * doc/extend.texi (AVR Built-in Functions): Update documentation
11242         of __builtin_avr_fmul*.
11243         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
11244         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
11245         * config/avr/avr.md (fmul): Rename to fmul_insn.
11246         (fmuls): Rename to fmuls_insn.
11247         (fmulsu): Rename to fmulsu_insn.
11248         (fmul,fmuls,fmulsu): New expander.
11249         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
11250         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
11251         * config/avr/libgcc.S (__fmul): New function.
11252         (__fmuls): New function.
11253         (__fmulsu,__fmulsu_exit): New function.
11254
11255 2011-07-04  Richard Guenther  <rguenther@suse.de>
11256
11257         PR tree-optimization/49615
11258         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
11259         basic-block index check.
11260
11261 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
11262
11263         * longlong.h (count_leading_zeros, count_trailing_zeros,
11264         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
11265         resp. 64.
11266
11267 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
11268
11269         PR tree-optimization/49610
11270         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
11271         a basic block.
11272
11273 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11274             Olivier Hainque  <hainque@adacore.com>
11275             Nicolas Setton  <setton@adacore.com>
11276
11277         * tree.h (TYPE_ARTIFICIAL): New flag.
11278         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
11279         the DIE of the type if it is artificial.
11280         (gen_array_type_die): Likewise.
11281         (gen_enumeration_type_die): Likewise.
11282         (gen_struct_or_union_type_die): Likewise.
11283         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
11284         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
11285
11286 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
11287
11288         * tree-object-size.c (pass_through_call): Handle
11289         BUILT_IN_ASSUME_ALIGNED.
11290
11291 2011-07-01  Martin Jambor  <mjambor@suse.cz>
11292
11293         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
11294
11295 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
11296
11297         PR middle-end/48016
11298         * explow.c (update_nonlocal_goto_save_area): Use proper mode
11299         for stack save area.
11300         * function.c (expand_function_start): Likewise.
11301
11302 2011-07-01  Richard Guenther  <rguenther@suse.de>
11303
11304         PR middle-end/49596
11305         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
11306         may have unknown refs.
11307
11308 2011-07-01  Kai Tietz  <ktietz@redhat.com>
11309
11310         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
11311
11312 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11313
11314         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
11315         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
11316         (Specific, mips-sgi-irix6): Likewise.
11317
11318 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11319
11320         PR libmudflap/49549
11321         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
11322
11323 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
11324
11325         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
11326         [idx]= and [idx1 ... idx2]= before initializers if needed for
11327         array initializers.
11328
11329 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
11330
11331         * config.gcc (score-*-elf): Remove score7.o.
11332         * config/score/t-score-elf: Likewise.
11333         * config/score/score.c: Merge score7 to score.c and
11334         remove forwarding functions.
11335         * config/score/score7.c: Deleted.
11336         * config/score/score7.h: Deleted.
11337
11338 2011-07-01  Richard Guenther  <rguenther@suse.de>
11339
11340         PR tree-optimization/49603
11341         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
11342
11343 2011-06-30  Martin Jambor  <mjambor@suse.cz>
11344
11345         * tree-sra.c (struct access): Rename total_scalarization to
11346         grp_total_scalarization
11347         (completely_scalarize_var): New function.
11348         (sort_and_splice_var_accesses): Set total_scalarization in the
11349         representative access.
11350         (analyze_access_subtree): Propagate total scalarization accross the
11351         tree, no holes in totally scalarized trees, simplify coverage
11352         computation.
11353         (analyze_all_variable_accesses): Call completely_scalarize_var instead
11354         of completely_scalarize_record.
11355
11356 2011-06-30  Richard Henderson  <rth@redhat.com>
11357
11358         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
11359         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
11360         * config/i386/i386.c: Don't include dwarf2out.h.
11361         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
11362         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
11363         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
11364         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
11365         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
11366
11367 2011-06-30  Richard Henderson  <rth@redhat.com>
11368
11369         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
11370         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11371         * final.c (final_scan_insn): Look for it, and invoke
11372         dwarf2out_frame_debug before the insn if found.
11373
11374 2011-06-30  Richard Henderson  <rth@redhat.com>
11375
11376         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
11377         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
11378
11379 2011-06-30  Richard Henderson  <rth@redhat.com>
11380
11381         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
11382         Define a vector of this type.
11383         (regs_saved_in_regs): Use a VEC.
11384         (num_regs_saved_in_regs): Remove.
11385         (compare_reg_or_pc): New.
11386         (record_reg_saved_in_reg): Split out from...
11387         (dwarf2out_flush_queued_reg_saves): ... here.
11388         (clobbers_queued_reg_save): Update for VEC.
11389         (reg_saved_in): Likewise.
11390         (dwarf2out_frame_debug_init): Likewise.
11391         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
11392         (dwarf2out_frame_debug_cfa_register): Likewise.
11393
11394 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
11395
11396         PR tree-optimization/49572
11397         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
11398         type of the RHS instead of that of the LHS for the expression type.
11399
11400 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
11401
11402         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
11403         unconditionally.
11404
11405 2011-06-30  Richard Guenther  <rguenther@suse.de>
11406
11407         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
11408         * tree-ssa-structalias.c (create_variable_info_for): Do not
11409         add initial constraints for non-var-decls.  Properly handle
11410         globals in other ltrans partitions.
11411         (intra_create_variable_infos): Manually create constraints for
11412         the fake no-alias parameter.
11413         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
11414         and assert there are no clones.
11415
11416 2011-06-30  Richard Guenther  <rguenther@suse.de>
11417
11418         PR tree-optimization/46787
11419         * tree-data-ref.c (dr_address_invariant_p): Remove.
11420         (find_data_references_in_stmt): Invariant accesses are ok now.
11421         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
11422         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
11423         invariant loads.
11424
11425 2011-06-30  Martin Jambor  <mjambor@suse.cz>
11426
11427         PR tree-optimization/49094
11428         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
11429         (build_accesses_from_assign): Use it.
11430
11431 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
11432
11433         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
11434         handling of BUILT_IN_ASSUME_ALIGNED.
11435
11436         PR debug/49364
11437         * dwarf2out.c (output_abbrev_section): Don't return early
11438         if abbrev_die_table_in_use is 1.
11439         (dwarf2out_finish): Instead don't call output_abbrev_section
11440         nor emit abbrev_section_label in that case.
11441
11442 2011-06-30  Nick Clifton  <nickc@redhat.com>
11443
11444         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
11445         for the V850E.
11446
11447 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
11448
11449         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
11450         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
11451
11452 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
11453
11454         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
11455         both pattern and original statements if necessary.
11456         (vect_transform_loop): Likewise.
11457         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
11458         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
11459         Mark the pattern statement only if the original statement doesn't
11460         have its own uses.
11461         (process_use): Call vect_mark_relevant with additional parameter.
11462         (vect_mark_stmts_to_be_vectorized): Likewise.
11463         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
11464         (vect_analyze_stmt): Handle both pattern and original statements
11465         if necessary.
11466         (vect_transform_stmt): Don't store vectorized pattern statement
11467         in the original statement.
11468         (vect_is_simple_use_1): Use related pattern statement only if the
11469         original statement is irrelevant.
11470         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
11471
11472 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
11473
11474         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
11475         option.
11476         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
11477         entry.
11478         (TARGET_AVX128_OPTIMAL): New definition.
11479         * config/i386/i386.c (initial_ix86_tune_features): Initialize
11480         X86_TUNE_AVX128_OPTIMAL entry.
11481         (ix86_option_override_internal): Enable the generation
11482         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
11483         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
11484         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
11485
11486 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
11487
11488         PR tree-optimization/49539
11489         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
11490         names by means of stmt_references_abnormal_ssa_name.
11491         (associate_plusminus): Call can_propagate_from before propagating
11492         from definition statements.
11493         (ssa_forward_propagate_and_combine): Remove superfluous newline.
11494
11495 2011-06-29  Richard Guenther  <rguenther@suse.de>
11496
11497         * doc/invoke.texi: Document -scev dump modifier.
11498         * tree-pass.h (TDF_SCEV): New dump flag.
11499         * tree-dump.c (dump_option_value_in): Add scev.
11500         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
11501         * tree-scalar-evolution.c: Likewise.
11502
11503 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
11504
11505         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
11506         (cxa_type_match): Correct declaration.
11507         (__gnu_unwind_pr_common): Reconstruct additional indirection
11508         when __cxa_type_match returns succeeded_with_ptr_to_base.
11509
11510 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11511
11512         PR rtl-optimization/49114
11513         * reload.c (struct replacement): Remove SUBREG_LOC member.
11514         (push_reload): Do not set it.
11515         (push_replacement): Likewise.
11516         (subst_reload): Remove dead code.
11517         (copy_replacements): Remove assertion.
11518         (copy_replacements_1): Do not handle SUBREG_LOC.
11519         (move_replacements): Likewise.
11520         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
11521         Detect subregs via recursive descent instead of via SUBREG_LOC.
11522
11523 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
11524
11525         * config/avr/avr.c (avr_encode_section_info): Dispatch to
11526         default_encode_section_info.
11527
11528 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
11529
11530         PR tree-optimization/49545
11531         * builtins.c (get_object_alignment_1): Update function comment.
11532         Do not use DECL_ALIGN for functions, but test
11533         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
11534         * fold-const.c (get_pointer_modulus_and_residue): Don't check
11535         for functions here.
11536         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
11537
11538 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
11539
11540         PR debug/49567
11541         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
11542         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
11543
11544 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
11545
11546         PR target/34734
11547         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
11548         about uninitialized data attributed 'progmem' from here...
11549         (avr_encode_section_info): ...to this new function.
11550         (TARGET_ENCODE_SECTION_INFO): New define.
11551         (avr_section_type_flags): For data in ".progmem.data", remove
11552         section flag SECTION_WRITE.
11553
11554 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
11555
11556         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
11557         _xmulhisi3_exit.
11558         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
11559         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
11560         (__umulhisi3): Ditto.
11561         * config/avr/avr.md (mulhisi3): New insn expender.
11562         (umulhisi3): New insn expender.
11563         (*mulhisi3_call): New insn.
11564         (*umulhisi3_call): New insn.
11565
11566 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
11567
11568         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
11569
11570 2011-06-28  Richard Henderson  <rth@redhat.com>
11571
11572         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
11573         all code and arguments that handled pushes.  Update all callers.
11574
11575 2011-06-28  Richard Henderson  <rth@redhat.com>
11576
11577         * config/arm/arm.c (arm_output_function_prologue): Don't call
11578         thumb1_output_function_prologue.
11579         (arm_expand_prologue): Avoid dead store.
11580         (number_of_first_bit_set): Use ctz_hwi.
11581         (thumb1_emit_multi_reg_push): New.
11582         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
11583         to emit the entire prologue as rtl.
11584         (thumb1_output_interwork): Split out from
11585         thumb1_output_function_prologue.
11586         (thumb1_output_function_prologue): Remove.
11587         (arm_attr_length_push_multi): Handle thumb1.
11588         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
11589         (prologue_thumb1_interwork): New.
11590         (*push_multi): Allow thumb1; use push_mult_memory_operand.
11591         * config/arm/predicates.md (push_mult_memory_operand): New.
11592
11593 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
11594
11595         * config/sparc/sync.md (*stbar): Delete.
11596         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
11597
11598 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
11599
11600         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
11601
11602 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11603
11604         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
11605         (TARGET_64BIT_DEFAULT): Define.
11606         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
11607         of tm_file.
11608         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
11609
11610 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
11611
11612         * common.opt (in_lto_p): New Variable entry.
11613         * flags.h (in_lto_p): Move to common.opt.
11614         * gcc.c: Include params.h.
11615         (set_option_handlers): Also use common_handle_option and
11616         target_handle_option.
11617         (main): Call global_init_params, finish_params and init_options_struct.
11618         * opts.c (debug_type_names): Move from toplev.c.
11619         (print_filtered_help): Access quiet_flag through opts pointer.
11620         (common_handle_option): Return early in the driver for some options.
11621         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
11622         opts pointer.
11623         * toplev.c (in_lto_p): Move to common.opt.
11624         (debug_type_names): Move to opts.c.
11625         * Makefile.in (OBJS): Remove opts.o.
11626         (OBJS-libcommon-target): Add opts.o.
11627         (gcc.o): Update dependencies.
11628
11629 2011-06-28  Kai Tietz  <ktietz@redhat.com>
11630
11631         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
11632
11633 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11634
11635         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
11636         with '=' constraint modifier.
11637         (*divdf3_vfp): Likewise.
11638         ("*mulsf3_vfp"): Likewise.
11639         ("*muldf3_vfp"): Likewise.
11640         ("*mulsf3negsf_vfp"): Likewise.
11641         ("*muldf3negdf_vfp"): Likewise.
11642
11643 2011-06-28  Nick Clifton  <nickc@redhat.com>
11644
11645         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
11646         relaxation when performing an incremental link.
11647
11648 2011-06-28  Kai Tietz  <ktietz@redhat.com>
11649
11650         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
11651         within BB from last to first.
11652
11653 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
11654
11655         * genattr-common.c: New.  Based on genattr.c.
11656         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
11657         (MOSTLYCLEANFILES): Add insn-attr-common.h.
11658         (opts.o): Update dependencies.
11659         (.PRECIOUS): Add insn-attr-common.h.
11660         (simple_rtl_generated_h): Add insn-attr-common.h.
11661         (build/genattr-common.o): New.
11662         (genprogrtl): Add attr-common.
11663         * genattr.c (main): Include insn-attr-common.h.  Don't generate
11664         definitions of DELAY_SLOTS or INSN_SCHEDULING.
11665         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
11666
11667 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
11668
11669         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
11670         avr-*-* and avr-*-rtems* targets.
11671
11672         * config/avr/elf.h: New file.
11673         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
11674         (TARGET_ASM_SELECT_SECTION): Define.
11675         (INIT_SECTION_ASM_OP): Undefine.
11676         (FINI_SECTION_ASM_OP): Undefine.
11677         (READONLY_DATA_SECTION_ASM_OP): Undefine.
11678         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
11679         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
11680         * config/avr/avr.h:
11681         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
11682         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
11683         (MAX_OFILE_ALIGNMENT): Move to elf.h.
11684         (STRING_LIMIT): Move to elf.h.
11685         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
11686         (ASM_DECLARE_OBJECT_NAME): Remove.
11687         (ESCAPES): Remove.
11688         (ASM_OUTPUT_SKIP): Remove.
11689         (DWARF2_DEBUGGING_INFO): Remove.
11690         (OBJECT_FORMAT_ELF): Remove.
11691         (USER_LABEL_PREFIX): Remove.
11692         (ASM_OUTPUT_EXTERNAL): Remove.
11693         (ASM_OUTPUT_ASCII): Remove.
11694         (TYPE_ASM_OP): Remove.
11695         (SIZE_ASM_OP): Remove.
11696         (WEAK_ASM_OP): Remove.
11697         (STRING_ASM_OP): Remove.
11698         (SET_ASM_OP): Remove.
11699         (ASM_WEAKEN_LABEL): Remove.
11700         (TYPE_OPERAND_FMT): Remove.
11701         (ASM_DECLARE_FUNCTION_SIZE): Remove.
11702         (ASM_FINISH_DECLARE_OBJECT): Remove.
11703         (NO_DOLLAR_IN_LABEL): Remove.
11704         (ASM_GENERATE_INTERNAL_LABEL): Remove.
11705         (ASM_OUTPUT_CASE_LABEL): Remove.
11706         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
11707         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
11708         (gas_output_ascii): Remove.
11709         (gas_output_limited_string): Remove.
11710         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
11711         * config/avr/avr-protos.h
11712         (gas_output_ascii): Remove prototye.
11713         (gas_output_limited_string): Remove prototype.
11714
11715 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
11716
11717         PR target/48637
11718         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
11719         asm operands.
11720
11721 2011-06-27  Jan Hubicka  <jh@suse.cz>
11722
11723         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
11724         node instead of references in node.
11725
11726 2011-06-27  Richard Henderson  <rth@redhat.com>
11727
11728         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
11729         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
11730         inside ifdef.
11731
11732 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
11733
11734         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
11735
11736         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
11737         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
11738         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
11739         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
11740         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
11741         (evaluate_stmt, execute_fold_all_builtins): Handle
11742         BUILT_IN_ASSUME_ALIGNED.
11743         * tree-ssa-dce.c (propagate_necessity): Likewise.
11744         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11745         call_may_clobber_ref_p_1): Likewise.
11746         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
11747         (expand_builtin_assume_aligned): New function.
11748         * doc/extend.texi (__builtin_assume_aligned): Document.
11749
11750         PR debug/49544
11751         * cselib.c (promote_debug_loc): If cselib_preserve_constants
11752         and l has two DEBUG_INSN owned locs instead of just one, adjust
11753         the second location's setting_insn too.
11754
11755 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11756
11757         PR libmudflap/38738
11758         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
11759
11760 2011-06-27  Nick Clifton  <nickc@redhat.com>
11761
11762         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
11763         bit position of highest bit set into a count of the high zero bits.
11764
11765 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11766
11767         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
11768
11769 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11770
11771         PR lto/48492
11772         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
11773         to a NULL parent.
11774
11775 2011-06-27  Richard Guenther  <rguenther@suse.de>
11776
11777         PR tree-optimization/49394
11778         * passes.c (execute_one_pass): Restore current_pass after
11779         applying IPA transforms.
11780
11781 2011-06-27  Kai Tietz  <ktietz@redhat.com>
11782
11783         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
11784         out of type precision after operation.
11785         (find_bswap): Take for limit value the integer auto-promotion
11786         into account.
11787
11788 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11789
11790         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
11791         forward scan as well.
11792
11793 2011-06-27  Tristan Gingold  <gingold@adacore.com>
11794
11795         PR target/44241
11796         * config/vms/vms-protos.h: New file.
11797         * config/vms/vms-crtlmap.map: New file.
11798         * config/vms/vms.c: New file.
11799         * config/vms/make-crtlmap.awk: New file.
11800         * config/vms/vms-crtl.h: File removed.
11801         * config/vms/vms-crtl-64.h: File removed.
11802         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
11803         * config/alpha/vms64.h: Do not include vms-crtl-64.h
11804         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
11805         clear some builtins on VMS.  Calls vms_patch_builtins.
11806         (avms_asm_output_external): Remove.
11807         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
11808         (struct crtl_name_spec): Remove
11809         (DO_CTRL_NAMES): Remove.
11810         * config/ia64/vms.h (struct crtl_name_spec): Remove
11811         (DO_CTRL_NAMES): Remove.
11812         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
11813         clear some builtins on VMS.  Calls vms_patch_builtins.
11814         (ia64_asm_output_external): Remove DO_CRTL_NAME.
11815         * config/ia64/vms64.h: Do not include vms-crtl-64.h
11816         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
11817
11818 2011-06-27  Tristan Gingold  <gingold@adacore.com>
11819
11820         * config/alpha/alpha.c (alpha_end_function): Always generate .end
11821         directive on VMS.
11822
11823 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11824
11825         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
11826         the function receives nonlocal gotos.
11827
11828 2011-06-27  Richard Guenther  <rguenther@suse.de>
11829
11830         PR tree-optimization/49536
11831         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
11832         For non-scalar inner types use a scalar type according to
11833         the scalar inner mode.
11834
11835 2011-06-27  Richard Guenther  <rguenther@suse.de>
11836
11837         PR tree-optimization/49365
11838         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
11839
11840 2011-06-27  Richard Guenther  <rguenther@suse.de>
11841
11842         PR tree-optimization/49169
11843         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
11844         the alignment of function decls.
11845
11846 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
11847
11848         PR target/47997
11849         * config/darwin.c (darwin_mergeable_string_section): Place string
11850         constants in '.cstring' rather than '.const' when CF/NSStrings are
11851         active.
11852
11853 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
11854
11855         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
11856         (emit_save_register_window): Likewise.
11857         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
11858         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
11859         Swap back %o7/%i7 in register naming.
11860
11861 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
11862
11863         PR driver/49371
11864         * config/darwin.c (darwin_override_options): Improve warning when
11865         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
11866         is given with fpie/fPIE.
11867         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
11868         * config/darwin9.h (PIE_SPEC): New.
11869
11870 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
11871
11872         * timevar.c (timevar_print): Increase width for display of timevar
11873         name.
11874
11875 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
11876
11877         PR c++/46400
11878         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
11879         instead of TYPE_CHAIN for chain_next for types.
11880
11881 2011-06-24  Richard Henderson  <rth@redhat.com>
11882
11883         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
11884         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
11885         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
11886         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
11887         (sparc_flat_expand_prologue): Emit individual instructions
11888         instead of one of the above.
11889
11890 2011-06-24  Easwaran Raman  <eraman@google.com>
11891
11892         PR rtl-optimization/49429
11893         PR target/49454
11894         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
11895         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
11896         used to copy y into x.
11897         * calls.c (initialize_argument_information): Mark
11898         an argument addressable if it is passed by invisible reference.
11899         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
11900         if it is passed by reference.
11901
11902 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11903
11904         PR rtl-optimization/49504
11905         * rtlanal.c (nonzero_bits1): Properly handle addition or
11906         subtraction of a pointer in Pmode if pointers extend unsigned.
11907         (num_sign_bit_copies1): Likewise.
11908
11909 2011-06-24  Martin Jambor  <mjambor@suse.cz>
11910
11911         PR tree-optimizations/49516
11912         * tree-sra.c (sra_modify_assign): Choose the safe path for
11913         aggregate copies if we also did scalar replacements.
11914
11915 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11916
11917         PR target/49335
11918         * config/arm/predicates.md (add_operator): New.
11919         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
11920
11921 2011-06-24  Andi Kleen  <ak@linux.intel.com>
11922
11923         * tree-sra.c (type_internals_preclude_sra_p): Add msg
11924         parameter. Split up ifs and report reason in *msg.
11925         (reject): Add.
11926         (find_var_candiate): Add msg variable.
11927         Split up ifs and report reason to reject.
11928         (find_param_candidates): Add msg variable.
11929         Pass msg to type_internals_preclude_sra_p.
11930
11931 2011-06-23  Jeff Law  <law@redhat.com>
11932
11933         PR middle-end/48770
11934         * reload.h (reload): Change to return a bool.
11935         * ira.c (ira): If requested by reload, run a fast DCE pass after
11936         reload has completed.  Fix comment typo.
11937         * reload1.c (need_dce): New file scoped static.
11938         (reload): Set reload_completed here.  Return whether or not a DCE
11939         pass after reload is needed.
11940         (delete_dead_insn): Set need_dce as needed.
11941
11942         PR middle-end/49465
11943         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
11944         to detect threading through joiner block.  If there was already
11945         an edge to the new target, then do not change the PHI nodes.
11946
11947 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
11948
11949         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
11950         get_pointer_alignment to see if base isn't sufficiently aligned.
11951
11952 2011-06-23  Jan Hubicka  <jh@suse.cz>
11953
11954         PR tree-optimize/49373
11955         * tree-pass.h (all_late_ipa_passes): Declare.
11956         * cgraphunit.c (init_lowered_empty_function): Fix properties.
11957         (cgraph_optimize): Execute late passes; remove unreachable funcions
11958         after materialization.
11959         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
11960         LTOing.
11961         * passes.c (all_late_ipa_passes): Declare.
11962         (dump_passes, register_pass): Handle late ipa passes.
11963         (init_optimization_passes): Move ipa_pta to late passes; schedule
11964         fixup_cfg at beggining of all_passes.
11965         (apply_ipa_transforms): New function.
11966         (execute_one_pass): When doing simple ipa pass, apply all transforms.
11967
11968 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
11969
11970         * params.c: Include common/common-target.h.  Don't include tm.h.
11971         (lang_independent_params): Move from toplev.c.
11972         (global_init_params): New.
11973         * params.h (global_init_params): Declare.
11974         * target.def (default_params): Move to common-target.def.
11975         * toplev.c (lang_independent_options): Remove.
11976         (lang_independent_params): Move to params.c.
11977         (general_init): Use global_init_params.
11978         * common/common-target.def (option_default_params): Move from
11979         target.def.
11980         * common/config/ia64/ia64-common.c: Include params.h.
11981         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11982         from ia64.c.
11983         * common/config/rs6000/rs6000-common.c: Include params.h.
11984         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11985         from rs6000.c.
11986         * common/config/sh/sh-common.c: Include params.h.
11987         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11988         from sh.c.
11989         * common/config/spu/spu-common.c: Include params.h.
11990         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11991         from spu.c.
11992         * config/ia64/ia64.c (ia64_option_default_params,
11993         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
11994         * config/rs6000/rs6000.c (rs6000_option_default_params,
11995         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
11996         * config/sh/sh.c (sh_option_default_params,
11997         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
11998         * config/spu/spu.c (spu_option_default_params,
11999         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
12000         * Makefile.in (OBJS): Remove params.o.
12001         (OBJS-libcommon-target): Add params.o.
12002         (params.o, $(common_out_object_file)): Update dependencies.
12003         * doc/tm.texi: Regenerate.
12004
12005 2011-06-23  Alan Modra  <amodra@gmail.com>
12006
12007         PR bootstrap/49383
12008         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
12009         invocation for 2011-06-09 changes.
12010
12011 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12012
12013         PR libgomp/49490
12014         * omp-low.c (expand_omp_for_static_nochunk): Only
12015         use n ceil/ nthreads size for the first n % nthreads threads in the
12016         team instead of all threads except for the last few ones which
12017         get less work or none at all.
12018
12019         PR debug/49496
12020         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
12021         uses.
12022
12023 2011-06-22  Richard Guenther  <rguenther@suse.de>
12024
12025         PR tree-optimization/49493
12026         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
12027         Refer to the alias target of variables.
12028         (associate_varinfo_to_alias_1): Remove.
12029         (ipa_pta_execute): Do not associate aliases with anything.
12030         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
12031         (cgraph_function_node): Likewise.
12032         (cgraph_function_or_thunk_node): Likewise.
12033         (varpool_variable_node): Likewise.
12034
12035 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12036
12037         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
12038         * config.gcc (arm*-*-linux*): Default to gnu tls.
12039         (arm*-*-*): Add --with-tls option.
12040         (all_defaults): Add 'tls'.
12041
12042 2011-06-22  Richard Henderson  <rth@redhat.com>
12043
12044         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
12045         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12046         (dwarf2out_frame_debug_cfa_window_save): Rename from
12047         dwarf2out_window_save; make static.
12048         * tree.h (dwarf2out_window_save): Don't declare.
12049
12050         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
12051         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12052         (emit_save_register_window): Rename from gen_save_register_window;
12053         emit the insn and add REG_CFA_* notes.
12054         (sparc_expand_prologue): Update to match.
12055         * config/sparc/sparc.md (save_register_window_1): Simplify from
12056         save_register_window<P:mode>.
12057
12058 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
12059
12060         PR target/49497
12061         * config/i386/i386.md (*lea_general_2): Always allow SImode.
12062         (*lea_general_2_zext): Likewise.
12063         (imul to lea peepholes): Use const359_operand and check
12064         TARGET_PARTIAL_REG_STALL.
12065
12066         * config/i386/predicates.md (const359_operand): New.
12067
12068 2011-06-22  Michael Matz  <matz@suse.de>
12069
12070         * cgraphunit.c (assemble_thunk): Use correct return type.
12071
12072 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
12073             Dmitry Melnik  <dm@ispras.ru>
12074
12075         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
12076         (neon_output_shift_immediate): Ditto.
12077         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
12078         prototype.
12079         (neon_output_shift_immediate): Ditto.
12080         * config/arm/neon.md (vashl<mode>3): Modified constraint.
12081         (vashr<mode>3_imm): New insn pattern.
12082         (vlshr<mode>3_imm): Ditto.
12083         (vashr<mode>3): Modified constraint.
12084         (vlshr<mode>3): Ditto.
12085         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
12086         predicate.
12087         (imm_for_neon_rshift_operand): Ditto.
12088         (imm_lshift_or_reg_neon): Ditto.
12089         (imm_rshift_or_reg_neon): Ditto.
12090
12091         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
12092
12093 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12094
12095         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
12096         builtin calls even if likelyvalue is not CONSTANT.
12097         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
12098         Return get_value_for_expr of first operand
12099         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
12100         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12101         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
12102         their non-checking counterparts.
12103         (call_may_clobber_ref_p_1): Likewise.
12104         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
12105         like their non-checking counterparts.
12106         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12107         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
12108         like their non-checking counterparts.
12109         (find_func_clobbers): Likewise.
12110         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
12111         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
12112
12113         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
12114         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
12115         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
12116         of base type reference as argument.
12117         (resolve_addr_in_expr): Likewise.  Fix keep computation.
12118         (convert_descriptor_to_signed): Renamed to...
12119         (convert_descriptor_to_mode): ... this.  For wider types convert to
12120         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
12121         (typed_binop): New function.
12122         (scompare_loc_descriptor, ucompare_loc_descriptor,
12123         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
12124         default to unsigned type instead of signed.
12125
12126         PR debug/47858
12127         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
12128         (gimple_build_debug_source_bind_stat): New prototype.
12129         (gimple_build_debug_source_bind): Define.
12130         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
12131         gimple_debug_source_bind_get_value,
12132         gimple_debug_source_bind_get_value_ptr,
12133         gimple_debug_source_bind_set_var,
12134         gimple_debug_source_bind_set_value): New inlines.
12135         * gimple.c (gimple_build_debug_source_bind_stat): New function.
12136         * gimple-pretty-print.c (dump_gimple_debug): Handle
12137         GIMPLE_DEBUG_SOURCE_BIND.
12138         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
12139         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12140         * tree-parloops.c (eliminate_local_variables,
12141         separate_decls_in_region): Likewise.
12142         (separate_decls_in_region_debug): Renamed from
12143         separate_decls_in_region_debug_bind.  Handle
12144         gimple_debug_source_bind_p.
12145         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
12146         prototypes.
12147         (DECL_HAS_DEBUG_ARGS_P): Define.
12148         (struct tree_function_decl): Add has_debug_args_flag field.
12149         * tree.c (debug_args_for_decl): New variable.
12150         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
12151         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
12152         (rewrite_debug_stmt_uses): New function.
12153         (rewrite_stmt): Use it to rewrite debug stmt uses.
12154         * rtl.def (DEBUG_PARAMETER_REF): New.
12155         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
12156         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
12157         DEBUG_PARAMETER_REF.
12158         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
12159         * print-rtl.c (print_rtx): Likewise.
12160         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
12161         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
12162         debug stmts in the first bb.
12163         * tree-inline.c (remap_ssa_name): If remapping default def
12164         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
12165         a source bind debug stmt.
12166         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
12167         (maybe_move_debug_stmts_to_successors): Likewise.
12168         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
12169         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
12170         debug args vector from old_decl to new_decl.
12171         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
12172         or modified parameters, add debug bind stmts before call
12173         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
12174         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
12175         on DECL_DEBUG_EXPRs from debug args vector.
12176         (expand_debug_source_expr): New function.
12177         (expand_debug_locations): Use it for source bind insns.
12178         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
12179         * var-tracking.c (prepare_call_arguments): Add debug args
12180         to call_arguments if any.
12181         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
12182         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
12183         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
12184         (get_ref_die_offset, parameter_ref_descriptor): New functions.
12185         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
12186         (gen_subprogram_die): Handle parameters identified by
12187         DEBUG_PARAMETER_REF.
12188
12189 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12190
12191         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
12192         * doc/install.texi (Configuration): Document --with-tls.
12193         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
12194         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
12195         (arm_tls_descseq_addr): New.
12196         (legitimize_tls_address): Add tlsdesc support.
12197         (arm_cannot_copy_insn_p): Check for tlscall.
12198         (arm_emit_tls_decoration): Likewise.
12199         * config/arm/arm.h (TARGET_GNU2_TLS): New.
12200         (OPTION_DEFAULT_SPECS): Add with-tls support.
12201         * config/arm/arm.md (R1_REGNUM): Define.
12202         (tlscall): New.
12203         * config/arm/arm.opt (tls_type): New enumeration type and values.
12204         (mtls-dialect): New switch.
12205         * config/arm/arm-opts.h (enum tls_type): New.
12206
12207 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12208
12209         * attribs.c (register_attribute): Added assert to check that all
12210         attribute specs are registered with a name that is not empty and
12211         does not start with '_'.
12212         (decl_attributes): Avoid the lookup of the "naked" attribute spec
12213         if the function has no attributes.
12214         * tree.c (is_attribute_with_length_p): Removed.
12215         (is_attribute_p): Removed.
12216         (private_is_attribute_p): New.
12217         (private_lookup_attribute): New.
12218         (lookup_attribute): Removed.
12219         (lookup_ident_attribute): New.
12220         (remove_attribute): Require the first argument to be in the form
12221         'text', not '__text__'.  Updated asserts.
12222         (merge_attributes): Use lookup_ident_attributes instead of
12223         lookup_attribute.
12224         (merge_dllimport_decl_attributes): Use remove_attribute.
12225         (attribute_list_contained): Likewise.
12226         (attribute_list_equal): Immediately return 1 if the arguments are
12227         identical pointers.
12228         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
12229         'int'.  Require the first argument to be in the form 'text', not
12230         '__text__'.  Require the second argument to be an identifier.
12231         (lookup_attribute): Made inline.  Require the first argument to be
12232         in the form 'text', not '__text__'.
12233         (private_is_attribute_p, private_lookup_attribute): New.
12234         Updated comments.
12235
12236 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
12237
12238         * builtins.c: Add sync_ or SYNC__ to builtin names.
12239         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
12240         * omp-low.c: Add sync_ or SYNC__ to builtin names.
12241
12242 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
12243
12244         PR target/33049
12245         * config/avr/avr.md (extzv): New expander.
12246         (*extzv): New insn.
12247         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
12248         * config/avr/constraints.md (C04): New constraint.
12249         * doc/md.texi (Machine Constraints): Document it.
12250
12251 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
12252
12253         PR middle-end/49489
12254         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
12255         unsignedp argument instead of 1 for clrsb_optab.
12256         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
12257         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
12258         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
12259         * optabs.c (widen_leading): Call widen_operand and expand_unop
12260         with 0 as unsignedp argument instead of 1 for clrsb_optab.
12261         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
12262
12263 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
12264
12265         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
12266
12267 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
12268
12269         * gensupport.c (add_define_attr): New static function.
12270         (is_predicable): Allow multi-alternative lists for the "predicable"
12271         attribute.
12272         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
12273         (process_one_cond_exec): Call alter_attrs_for_insn.
12274         * doc/md.texi (Defining Attributes): Mention some standard names.
12275         (Conditional Execution): Update documentation for "predicable".
12276
12277         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
12278         __builtin_clrsbll): Document.
12279         * doc/rtl.texi (clrsb): New entry.
12280         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
12281         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
12282         (expand_unop): Handle clrsb_optab.
12283         (init_optabs): Initialize it.
12284         * optabs.h (enum optab_index): New entry OTI_clrsb.
12285         (clrsb_optab): Define.
12286         * genopinit.c (optabs): Add an entry for it.
12287         * builtins.c (expand_builtin): Handle clrsb builtin functions.
12288         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
12289         BUILT_IN_CLRSBLL): New.
12290         * rtl.def (CLRSB): New code.
12291         * dwarf2out.c (mem_loc_descriptor): Handle it.
12292         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12293         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
12294         and popcount.
12295         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
12296         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
12297         (__ctzDI2): Move declaration.
12298         * config/bfin/bfin.md (clrsbsi2): New expander.
12299         (signbitssi2): Use the CLRSB rtx.
12300         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
12301         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
12302
12303 2011-06-21  Richard Guenther  <rguenther@suse.de>
12304
12305         * ipa-inline-transform.c (inline_transform): Fix previous change.
12306
12307 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
12308
12309         PR tree-optimization/49478
12310         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
12311         with constant operand.
12312
12313 2011-06-21  Richard Guenther  <rguenther@suse.de>
12314
12315         * ipa-inline-transform.c (inline_transform): Fix typo.
12316
12317 2011-06-21  Richard Guenther  <rguenther@suse.de>
12318
12319         PR tree-optimization/49483
12320         * tree-vect-stmts.c (vectorizable_assignment): Also handle
12321         VIEW_CONVERT_EXPR conversions.
12322
12323 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
12324
12325         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
12326         * config/avr/avr-tables.opt: New file (generated).
12327         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
12328         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
12329         avr-mcus.def.
12330         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
12331         (avr_option_override): Don't process -mmcu= argument here.  Set
12332         avr_current_device using avr_mcu_index.
12333         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
12334         * config/avr/avr.opt (mmcu=): Use Enum.
12335         * config/avr/t-avr (avr-devices.o): Update dependencies.
12336         ($(srcdir)/config/avr/avr-tables.opt): New.
12337         * target.def (help): Remove.
12338         * doc/tm.texi.in (TARGET_HELP): Remove.
12339         * doc/tm.texi: Regenerate.
12340         * opts.c: Don't include target.h.
12341         (common_handle_option): Don't call targetm.help.
12342         * system.h (TARGET_HELP): Poison.
12343         * Makefile.in (opts.o): Update dependencies.
12344
12345 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12346
12347         * config/usegld.h: New file.
12348         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
12349         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
12350         (LIB_SPEC): Likewise.  Search /lib.
12351         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
12352         (RDYNAMIC_SPEC): Handle GNU ld.
12353         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
12354         Define.
12355         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
12356         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
12357         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
12358         (STACK_CHECK_STATIC_BUILTIN): Define.
12359         * config/sol2.opt (compat-bsd): Remove.
12360         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
12361         * config/sol2-bi.h: New file.
12362         * config/sol2-gld.h: Remove.
12363         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
12364         (NO_DBX_BNSYM_ENSYM): Remove.
12365         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
12366         (STACK_CHECK_STATIC_BUILTIN): Remove.
12367         Test USE_GLD instead of TARGET_GNU_LD.
12368         * config/i386/sol2-10.h: Rename to ...
12369         * config/i386/sol2-bi.h .. this.
12370         (SUBTARGET_EXTRA_SPECS): Redefine.
12371         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
12372         (MULTILIB_DEFAULTS): Remove.
12373         (DEFAULT_ARCH32_P): Define.
12374         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
12375         (ARCH64_SUBDIR): Define.
12376         Test USE_GLD instead of TARGET_GNU_LD.
12377         (I386_EMULATION): Rename to ...
12378         (ARCH32_EMULATION): ... this.
12379         (X86_64_EMULATION): Rename to ...
12380         (ARCH64_EMULATION): ... this.
12381         (TARGET_LD_EMULATION): Remove.
12382         (LINK_ARCH_SPEC): Remove.
12383         * config/i386/sol2-gas.h: Remove.
12384         * config/i386/t-sol2-10: Rename to ...
12385         * config/i386/t-sol2-64: ... this.
12386         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
12387         (AS_SPARC64_FLAG): Define.
12388         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
12389         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
12390         depending on TARGET_CPU_DEFAULT.
12391         (CPP_CPU_SPEC): Redefine.
12392         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
12393         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
12394         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
12395         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
12396         ASM_ARCH_DEFAULT_SPEC): Redefine.
12397         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12398         LINK_ARCH_DEFAULT_SPEC.
12399         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
12400         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
12401         (ARCH64_SUBDIR): Define.
12402         (LINK_ARCH64_SPEC): Redefine.
12403         (CC1_SPEC): Redefine.
12404         (OPTION_DEFAULT_SPECS): Redefine.
12405         (MULTILIB_DEFAULTS): Define.
12406         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
12407         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
12408         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
12409         (NO_DBX_BNSYM_ENSYM): Remove.
12410         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
12411         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
12412         (TARGET_ASM_NAMED_SECTION): Likewise.
12413         (STACK_CHECK_STATIC_BUILTIN): Remove.
12414         * config/sparc/sol2-bi.h: Remove.
12415         * config/sparc/sol2-gas-bi.h: Remove.
12416         * config/sparc/sol2-gas.h: Remove.
12417         * config/sparc/sol2-gld-bi.h: Remove.
12418         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
12419         common parts ...
12420         (*-*-solaris2*): ... here.
12421
12422 2011-06-21  Christian Bruel  <christian.bruel@st.com>
12423
12424         PR other/43564
12425         * ipa-inline.c (can_inline_edge_p): Check
12426         !DECL_DISREGARD_INLINE_LIMITS.
12427
12428 2011-06-21  Christian Bruel  <christian.bruel@st.com>
12429
12430         PR middle-end/49139
12431         * cgraphunit.c (process_function_and_variable_attributes): warn when
12432         always_inline functions that are not inline.
12433         * ipa-inline-transform.c (inline_transform): Always call
12434         optimize_inline.
12435         * tree-inline.c (tree_inlinable_function_p): Use error instead
12436         of sorry.
12437         (expand_call_inline): Likewise.
12438
12439 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
12440
12441         * Makefile.in (dg_target_exps): Set.
12442         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
12443         instead of 7, try to divide it more evenly.
12444
12445 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
12446
12447         PR target/49089
12448         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
12449         (avx256_split_unaligned_store): New definition.
12450         (ix86_option_override_internal): Enable avx256 unaligned load/store
12451         splitting only when avx256_split_unaligned_load/store is set.
12452
12453 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
12454
12455         * regrename.c (scan_rtx_reg): Handle the case where we write to an
12456         open chain in a smaller mode without failing the entire block.
12457
12458 2011-06-21  Alan Modra  <amodra@gmail.com>
12459
12460         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
12461         CONST high part large-toc address.
12462         (rs6000_tls_referenced_p): Make static.
12463         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
12464
12465 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12466
12467         PR target/49385
12468         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
12469         one of the operands is a register.
12470
12471 2011-06-20  Kai Tietz  <ktietz@redhat.com>
12472
12473         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
12474         operations in combination with binary and.
12475
12476 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
12477
12478         * regrename.c (do_replace): Don't update notes.
12479
12480 2011-06-20  Alan Modra  <amodra@gmail.com>
12481
12482         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
12483         of toc-relative address in CONST.
12484         (rs6000_delegitimize_address): Recognize changed address.
12485         (rs6000_legitimize_reload_address): Likewise.
12486         (rs6000_emit_move): Don't force these constants to memory.
12487         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
12488         toc-relative address in CONST.
12489         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
12490         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
12491
12492 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12493
12494         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
12495         (count_trailing_zeros): Likewise.
12496
12497 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12498
12499         PR other/49325
12500         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
12501         .init_array can be used with .ctors on targets.
12502         * configure: Regenerated.
12503
12504 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
12505
12506         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
12507         if the element type is volatile.
12508
12509 2011-06-18  Jan Hubicka  <jh@suse.cz>
12510
12511         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
12512         extra name aliases.
12513         (lto_symtab_resolve_can_prevail_p): Likewise.
12514         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
12515         * cgraphbuild.c (record_reference): Remove extra body alias code.
12516         (mark_load): Likewise.
12517         (mark_store): Likewise.
12518         * cgraph.h (varpool_node): Remove extra_name filed;
12519         add alias_of and extraname_alias.
12520         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
12521         (varpool_alias_aliased_node): New inline function.
12522         (varpool_variable_node): New function.
12523         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
12524         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
12525         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
12526         (input_varpool_node): Likewise.
12527         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
12528         (varpool_externally_visible_p): Remove extra body alias code.
12529         (function_and_variable_visibility): Likewise.
12530         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
12531         (ipa_pta_execute): Use it.
12532         * varpool.c (varpool_remove_node): Remove extra name alias code.
12533         (varpool_mark_needed_node): Likewise.
12534         (varpool_analyze_pending_decls): Analyze aliases.
12535         (assemble_aliases): New functoin.
12536         (varpool_assemble_decl): Use it.
12537         (varpool_create_variable_alias): New function.
12538         (varpool_extra_name_alias): Rewrite.
12539         (varpool_for_node_and_aliases): New function.
12540
12541 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
12542
12543         PR target/49411
12544         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
12545         last_arg_constant and last argument doesn't match its predicate,
12546         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
12547         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
12548         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
12549         spelling of error message.
12550         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
12551         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
12552         const_0_to_255_operand instead of const_int_operand.
12553
12554         Revert:
12555         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
12556
12557         * config/i386/sse.md (blendbits): Remove mode attribute.
12558         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
12559         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
12560         Check integer value of operand 3 in insn constraint.
12561
12562 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
12563
12564         PR rtl-optimization/48542
12565         * reload.c (find_equiv_reg): Stop looking when finding a
12566         setjmp-type call.
12567         * reload1.c (reload_as_needed): Invalidate all reload
12568         registers when crossing a setjmp-type call.
12569
12570 2011-06-16  Jeff Law  <law@redhat.com>
12571
12572         * tree-ssa-threadupdate.c (struct redirection_data): New field
12573         intermediate_edge.
12574         (THREAD_TARGET2): Define.
12575         (redirection_data_eq): Also check that the intermediate edge is equal.
12576         (lookup_redirection_data): Drop useless argument.  Extract the
12577         outgoing_edge and intermediate edge from E.  Callers updated.
12578         (copy_phi_args, update_destination_phis): New functions.
12579         (fix_duplicate_block_edges): Likewise.
12580         (create_edge_and_update_destination_phis): Duplicate all the edges
12581         hung off e->aux.  Use copy_phi_args.
12582         (create_duplicates): Use fix_duplicate_block_edges.
12583         (fixup_template_block): Likewise.
12584         (redirect_edges): If necessary, redirect the joiner block's incoming
12585         edge to the duplicate of the joiner block.
12586         (thread_block): Don't muck up loops when threading through a joiner
12587         block.
12588         (thread_through_loop_header): Handle threading through a joiner block.
12589         (mark_threaded_blocks, register_jump_thread): Likewise.
12590         * tree-flow.h (register_jump_thread): Add new argument.  Callers
12591         updated.
12592         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
12593         (thread_across_edge): Handle threading through a joiner block.
12594
12595 2011-06-16  Martin Jambor  <mjambor@suse.cz>
12596
12597         PR tree-optimization/49343
12598         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
12599         calculate offset, provide 2nd operand for the new COMPONENT_REF.
12600
12601 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
12602
12603         * config/darwin-protos.h (machopic_select_rtx_section): Move to
12604         inside RTX_CODE ifdef.
12605
12606 2011-06-16  Tom de Vries  <tom@codesourcery.com>
12607
12608         PR target/45098
12609         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
12610         Disallow NULL pointer for pointer arithmetic.
12611
12612 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12613
12614         PR target/49398
12615         Revert.
12616         2011-06-10  Wei Guozhi  <carrot@google.com>
12617
12618         PR target/45335
12619         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
12620         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
12621         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
12622         related peephole2.
12623         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
12624         related peephole2.
12625         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
12626         (arm_legitimate_ldrd_p): New prototype.
12627         (arm_output_ldrd): New prototype.
12628         * config/arm/arm.c (arm_check_ldrd_operands): New function.
12629         (arm_legitimate_ldrd_p): New function.
12630         (arm_output_ldrd): New function.
12631
12632 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
12633
12634         PR middle-end/46500
12635         * doc/tm.texi.in: Update Copyright date.
12636         * doc/tm.texi: Regenerate.
12637         * targhooks.c (default_setup_incoming_varargs): Replace
12638         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12639         (default_pretend_outgoing_varargs_named): Likewise.
12640         (hook_pass_by_reference_must_pass_in_stack): Likewise.
12641         (hook_callee_copies_named): Likewise.
12642         (default_function_arg_advance): Likewise.
12643         (default_function_arg): Likewise.
12644         (default_function_incoming_arg): Likewise.
12645         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
12646         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
12647         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
12648         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12649         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
12650         * targhooks.h (default_setup_incoming_varargs): Likewise.
12651         (default_pretend_outgoing_varargs_named): Likewise.
12652         (hook_pass_by_reference_must_pass_in_stack): Likewise.
12653         (hook_callee_copies_named): Likewise.
12654         (default_function_arg_advance): Likewise.
12655         (default_function_arg): Likewise.
12656         (default_function_incoming_arg): Likewise.
12657         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
12658         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
12659         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
12660         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12661         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
12662         * target.def (pass_by_reference): Likewise.
12663         (setup_incoming_varargs, strict_argument_naming): Likewise.
12664         (pretend_outgoing_varargs_named, callee_copies): Likewise.
12665         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
12666         (function_incoming_arg): Likewise.
12667         * target.h: Don't include "tm.h" .
12668         (cumulative_args_t): New typedef.
12669         [GCC_TM_H] (get_cumulative_args): New static inline function.
12670         [GCC_TM_H] (pack_cumulative_args): Likewise.
12671         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
12672         argument type with cumulative_args_t.
12673         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
12674         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
12675         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
12676         (frv_arg_partial_bytes, frv_function_arg): Likewise.
12677         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
12678         (frv_function_arg_1): Likewise.
12679         * config/s390/s390.c (s390_pass_by_reference): Likewise.
12680         (s390_function_arg_advance, s390_function_arg): Likewise.
12681         * config/m32c/m32c.c (m32c_function_arg): Likewise.
12682         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
12683         (m32c_strict_argument_naming): Likewise.
12684         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
12685         (spu_function_arg_advance): Likewise.
12686         (spu_setup_incoming_varargs): Likewise.  Make static.
12687         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
12688         Remove prototype.
12689         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
12690         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12691         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
12692         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
12693         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
12694         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
12695         (mep_pass_by_reference, mep_function_arg): Likewise.
12696         (mep_function_arg_advance): Likewise.
12697         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12698         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
12699         (m32r_function_arg, m32r_function_arg_advance): Likewise.
12700         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
12701         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
12702         (ix86_function_arg, ix86_pass_by_reference): Likewise.
12703         (ix86_setup_incoming_varargs): Likewise.
12704         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
12705         (sh_strict_argument_naming): Likewise.
12706         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
12707         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
12708         (sh_function_arg_advance, sh_function_arg): Likewise.
12709         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
12710         (pdp11_function_arg_advance): Likewise.
12711         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
12712         Likewise.
12713         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
12714         * config/avr/avr.c (avr_function_arg): Likewise.
12715         (avr_function_arg_advance): Likewise.
12716         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
12717         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
12718         (xtensa_function_arg_1): Likewise.
12719         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
12720         Likewise.
12721         (xstormy16_function_arg): Likewise.
12722         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
12723         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
12724         (fr30_function_arg_advance): Likewise.
12725         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12726         (lm32_function_arg, lm32_function_arg_advance): Likewise.
12727         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
12728         (moxie_function_arg, moxie_function_arg_advance): Likewise.
12729         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
12730         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12731         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
12732         (cris_function_arg, cris_function_incoming_arg): Likewise.
12733         (cris_function_arg_advance, cris_function_arg_1): Likewise.
12734         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12735         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
12736         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
12737         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12738         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
12739         (mn10300_arg_partial_bytes): Likewise.
12740         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12741         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
12742         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
12743         (ia64_function_arg_1): Likewise.
12744         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
12745         (m68k_function_arg): Likewise.
12746         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
12747         (rs6000_function_arg, setup_incoming_varargs): Likewise.
12748         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
12749         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
12750         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
12751         (picochip_arg_advance): Likewise.
12752         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12753         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
12754         (mcore_function_arg_advance): Likewise.
12755         * config/score/score.c (score_pass_by_reference): Likewise.
12756         (score_function_arg_advance): Likewise.
12757         (score_arg_partial_bytes): Likewise.  Make static.
12758         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
12759         * config/arm/arm.c (arm_arg_partial_bytes): Replace
12760         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12761         (arm_function_arg, arm_function_arg_advance): Likewise.
12762         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
12763         * config/pa/pa.c (pa_pass_by_reference): Likewise.
12764         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
12765         (pa_function_arg): Likewise.
12766         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
12767         (mips_function_arg, mips_function_arg_advance): Likewise.
12768         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
12769         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
12770         * config/vax/vax.c (vax_function_arg): Likewise.
12771         (vax_function_arg_advance): Likewise.
12772         * config/h8300/h8300.c (h8300_function_arg): Likewise.
12773         (h8300_function_arg_advance): Likewise.
12774         * config/v850/v850.c (v850_pass_by_reference): Likewise.
12775         (v850_strict_argument_naming, v850_function_arg): Likewise.
12776         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
12777         (v850_setup_incoming_varargs): Likewise.
12778         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12779         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
12780         (mmix_function_arg, mmix_pass_by_reference): Likewise.
12781         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
12782         with const void *.
12783         * config/bfin/bfin.c (setup_incoming_varargs): Replace
12784         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12785         (bfin_function_arg_advance, bfin_function_arg): Likewise.
12786         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
12787         * calls.c (emit_call_1): Change type of args_so_far to
12788         cumulative_args_t.  Changed all callers.
12789         (initialize_argument_information): Likewise.
12790         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
12791         * dse.c (get_call_args): Likewise.
12792         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12793         * function.c (pass_by_reference, reference_callee_copied): Likewise.
12794         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
12795         New member args_so_far_v.  Changed all users.
12796         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
12797         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12798         * config/mips/mips.c (mips_output_args_xfer): Likewise.
12799         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12800         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12801         * config/microblaze/microblaze.c (microblaze_expand_prologue):
12802         Likewise.
12803         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
12804         m32r_pass_by_reference.
12805
12806 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
12807
12808         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
12809         argument to be a VEC of statements.
12810         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
12811         assert that pattern statements have to have their vector type set.
12812         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
12813         Change the first argument to be a VEC of statements.  Update
12814         documentation.
12815         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
12816         (vect_handle_widen_mult_by_const): New function.
12817         (vect_recog_widen_mult_pattern):  Change the first argument to be a
12818         VEC of statements.  Update documentation.  Check that the constant is
12819         INTEGER_CST.  Support multiplication by a constant that fits an
12820         intermediate type - call vect_handle_widen_mult_by_const.
12821         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
12822         call.  Handle additional pattern statements if necessary.
12823
12824 2011-06-16  Nick Clifton  <nickc@redhat.com>
12825
12826         PR target/49427
12827         * config.gcc: Set cpu_type to v850 for any V850 architecture.
12828         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
12829         md_file, extra_modes, out_file and extra_options are these are all
12830         deduced from cpu_type.
12831
12832 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
12833
12834         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
12835         truncation mask to 63.
12836
12837 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
12838
12839         PR target/49313
12840         PR target/29524
12841         * longlong.h: Add AVR support:
12842         (count_leading_zeros): New macro.
12843         (count_trailing_zeros): New macro.
12844         (COUNT_LEADING_ZEROS_0): New macro.
12845         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
12846         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
12847         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
12848         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
12849         (LIB2FUNCS_EXCLUDE): Add _clz.
12850         * config/avr/libgcc.S (XCALL): Move up in file.
12851         (XJMP): New C Macro.
12852         (DEFUN): New asm macro.
12853         (ENDF): New asm macro.
12854         (__ffssi2): New function.
12855         (__ffshi2): New function.
12856         (__loop_ffsqi2): New function.
12857         (__ctzsi2): New function.
12858         (__ctzhi2): New function.
12859         (__clzdi2): New function.
12860         (__clzsi2): New function.
12861         (__clzhi2): New function.
12862         (__paritydi2): New function.
12863         (__paritysi2): New function.
12864         (__parityhi2): New function.
12865         (__parityqi2): New function.
12866         (__popcounthi2): New function.
12867         (__popcountsi2): New function.
12868         (__popcountdi2): New function.
12869         (__popcountqi2): New function.
12870         (__bswapsi2): New function.
12871         (__bswapdi2): New function.
12872         (__ashldi3): New function.
12873         (__ashrdi3): New function.
12874         (__lshrdi3): New function.
12875         Fix suspicous lines.
12876
12877 2011-06-16  Richard Guenther  <rguenther@suse.de>
12878
12879         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
12880         the same as x != 0.
12881         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
12882         to (bool) X & 1.
12883         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
12884         equality compares against zero for the lower bit.
12885
12886 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
12887
12888         PR tree-optimization/49419
12889         * tree-vrp.c (execute_vrp): Call init_range_assertions
12890         before estimate_numbers_of_iterations, call
12891         free_number_of_iterations_estimates before calling
12892         remove_range_assertions.
12893
12894 2011-06-16  Revital Eres  <revital.eres@linaro.org>
12895
12896         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
12897         (struct partial_schedule): Add rows_length field.
12898         (verify_partial_schedule): Check rows_length.
12899         (ps_insert_empty_row): Handle rows_length.
12900         (create_partial_schedule): Likewise.
12901         (free_partial_schedule): Likewise.
12902         (reset_partial_schedule): Likewise.
12903         (create_ps_insn): Remove rest_count argument.
12904         (remove_node_from_ps): Update rows_length.
12905         (add_node_to_ps): Update rows_length and call create_ps_insn
12906         without passing row_rest_count.
12907         (rotate_partial_schedule): Update rows_length.
12908
12909 2011-06-16  Revital Eres  <revital.eres@linaro.org>
12910
12911         * ddg.c (add_intra_loop_mem_dep): New function.
12912         (build_intra_loop_deps): Call it.
12913
12914 2011-06-13  Jeff Law  <law@redhat.com>
12915
12916         * df-problems.c (df_lr_local_compute): Manually CSE
12917         PIC_OFFSET_TABLE_REGNUM.
12918         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
12919         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
12920
12921 2011-06-13  Jan Hubicka  <jh@suse.cz>
12922
12923         * cgraphunit.c (handle_alias_pairs): New function.
12924         (cgraph_finalize_compilation_unit): Use it.
12925         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
12926         as externally visible.
12927
12928 2011-06-15  Richard Guenther  <rguenther@suse.de>
12929
12930         * expr.c (expand_expr_real_2): Reduce all integral types to
12931         bitfield precision.
12932         (expand_expr_real_1): Likewise.
12933
12934 2011-06-15  Martin Jambor  <mjambor@suse.cz>
12935
12936         PR tree-optimization/48613
12937         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
12938         ipa_node_params_vector is NULL.
12939
12940 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
12941
12942         PR debug/49382
12943         * dwarf2out.c (dw_loc_list_node): Add force field.
12944         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
12945         location in the list, even if it is modified before first real insn.
12946         (output_loc_list): Emit empty ranges with force flag set.
12947         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
12948
12949 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
12950
12951         PR target/49349
12952         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
12953         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
12954         above a fence.  Update comments.
12955         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
12956         placed just above it.  Do not allow NULL place_to_insert.
12957
12958 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
12959
12960         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
12961         (slpeel_tree_peel_loop_to_edge): Don't call
12962         remove_dead_stmts_from_loop.
12963         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
12964         remove irrelevant pattern statements.  For irrelevant statements
12965         check if it is the last statement of a detected pattern, use
12966         corresponding pattern statement instead.
12967         (destroy_loop_vec_info): No need to remove pattern statements,
12968         only free stmt_vec_info.
12969         (vect_transform_loop): For irrelevant statements check if it is
12970         the last statement of a detected pattern, use corresponding
12971         pattern statement instead.
12972         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
12973         pattern statements.  Set basic block for the new statement.
12974         (vect_pattern_recog): Update documentation.
12975         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
12976         operands of pattern statements.
12977         (vectorizable_call): Fix printing.  In case of a pattern statement
12978         use the lhs of the original statement when creating a dummy
12979         statement to replace the original call.
12980         (vect_analyze_stmt): For irrelevant statements check if it is
12981         the last statement of a detected pattern, use corresponding
12982         pattern statement instead.
12983         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
12984         statements use gsi of the original statement.
12985
12986 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
12987
12988         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
12989         common/common-target-def.h.
12990         * target.def (default_target_flags, handle_option,
12991         supports_split_stack, optimization_table, init_struct,
12992         except_unwind_info, unwind_tables_default, have_named_sections):
12993         Move to common/common-target.def.
12994         * target.h (enum opt_levels, struct default_options): Move to
12995         common/common-target.h.
12996         * targhooks.c (default_except_unwind_info,
12997         dwarf2_except_unwind_info, sjlj_except_unwind_info,
12998         default_target_handle_option, empty_optimization_table): Move to
12999         common/common-targhooks.c.
13000         * targhooks.h (default_except_unwind_info,
13001         dwarf2_except_unwind_info, sjlj_except_unwind_info,
13002         default_target_handle_option, empty_optimization_table): Move to
13003         common/common-targhooks.h.
13004         * common/common-target-def.h: Include common/common-targhooks.h.
13005         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
13006         defined.
13007         * common/common-target.def (handle_option, option_init_struct,
13008         option_optimization_table, default_target_flags,
13009         except_unwind_info, supports_split_stack, unwind_tables_default,
13010         have_named_sections): Move from target.def.
13011         (HOOK_PREFIX): Undefine at end of file.
13012         * common/common-target.h: Include input.h.
13013         (enum opt_levels, struct default_options): Move from target.h.
13014         * common/common-targhooks.c, common/common-targhooks.h: New.
13015         * config.gcc (target_has_targetm_common): Default to yes.
13016         (moxie*): Set target_has_targetm_common=no.
13017         (hppa*-*-*): Don't set target_has_targetm_common=yes.
13018         * doc/tm.texi: Regenerate.
13019         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
13020         (C_TARGET_DEF_H): Add common/common-targhooks.h.
13021         (GCC_OBJS): Remove vec.o.
13022         (OBJS): Remove hooks.o and vec.o.
13023         (OBJS-libcommon-target): Add vec.o, hooks.o and
13024         common/common-targhooks.o.
13025         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
13026         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
13027         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
13028         cfglayout.o, $(out_object_file), $(common_out_object_file)):
13029         Update dependencies.
13030         (common/common-targhooks.o): New.
13031         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
13032         * common/config/pa/pa-common.c: Include more headers.  Take
13033         copyright dates from pa.c.
13034         (pa_option_optimization_table, pa_handle_option,
13035         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
13036         TARGET_HANDLE_OPTION): Move from pa.c.
13037         * common/config/alpha/alpha-common.c,
13038         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
13039         common/config/bfin/bfin-common.c,
13040         common/config/cris/cris-common.c,
13041         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
13042         common/config/h8300/h8300-common.c,
13043         common/config/i386/i386-common.c,
13044         common/config/ia64/ia64-common.c,
13045         common/config/iq2000/iq2000-common.c,
13046         common/config/lm32/lm32-common.c,
13047         common/config/m32c/m32c-common.c,
13048         common/config/m32r/m32r-common.c,
13049         common/config/m68k/m68k-common.c,
13050         common/config/mcore/mcore-common.c,
13051         common/config/mep/mep-common.c,
13052         common/config/microblaze/microblaze-common.c,
13053         common/config/mips/mips-common.c,
13054         common/config/mmix/mmix-common.c,
13055         common/config/mn10300/mn10300-common.c,
13056         common/config/pdp11/pdp11-common.c,
13057         common/config/picochip/picochip-common.c,
13058         common/config/rs6000/rs6000-common.c,
13059         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
13060         common/config/score/score-common.c, common/config/sh/sh-common.c,
13061         common/config/sparc/sparc-common.c,
13062         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
13063         common/config/vax/vax-common.c,
13064         common/config/xstormy16/xstormy16-common.c,
13065         common/config/xtensa/xtensa-common.c: New.
13066         * config/alpha/alpha.c: Include common/common-target.h.
13067         (alpha_option_optimization_table, alpha_handle_option,
13068         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13069         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
13070         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
13071         * config/arm/arm.c (arm_option_optimization_table,
13072         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13073         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
13074         arm-common.c.
13075         * config/avr/avr.c (avr_option_optimization_table,
13076         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13077         to avr-common.c.
13078         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
13079         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
13080         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
13081         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
13082         * config/cris/cris.c (cris_option_optimization_table,
13083         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13084         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
13085         cris-common.c.
13086         * config/fr30/fr30.c (fr30_option_optimization_table,
13087         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
13088         to fr30-common.c.
13089         * config/frv/frv.c (frv_option_optimization_table,
13090         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
13091         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
13092         * config/h8300/h8300.c (h8300_option_optimization_table,
13093         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13094         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
13095         * config/i386/i386-protos.h (ix86_handle_option): Declare.
13096         * config/i386/i386.c: Include common/common-target.h.
13097         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
13098         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
13099         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
13100         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
13101         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
13102         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
13103         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
13104         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
13105         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
13106         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
13107         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
13108         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
13109         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
13110         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
13111         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
13112         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
13113         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
13114         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
13115         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
13116         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
13117         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
13118         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
13119         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
13120         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
13121         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
13122         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
13123         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
13124         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
13125         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
13126         ix86_option_optimization_table, ix86_option_init_struct,
13127         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
13128         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13129         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
13130         i386-common.c.
13131         * config/i386/t-i386 (i386.o): Update dependencies.
13132         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
13133         * config/ia64/ia64.c (ia64_option_optimization_table,
13134         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
13135         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13136         ia64_handle_option): Move to ia64-common.c.
13137         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
13138         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
13139         * config/lm32/lm32.c (lm32_option_optimization_table,
13140         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13141         to lm32-common.c.
13142         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
13143         m32c-common.c.
13144         * config/m32r/m32r.c (m32r_option_optimization_table,
13145         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13146         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
13147         m32r_handle_option): Move to m32r-common.c.
13148         (m32r_memory_move_cost): Remove comment referring to
13149         TARGET_HANDLE_OPTION.
13150         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
13151         Move to m68k-common.c.
13152         * config/mcore/mcore.c (mcore_option_optimization_table,
13153         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13154         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
13155         * config/mep/mep.c (mep_option_optimization_table,
13156         mep_handle_option, TARGET_HANDLE_OPTION,
13157         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
13158         Move to mep-common.c.
13159         * config/microblaze/microblaze.c
13160         (microblaze_option_optimization_table,
13161         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13162         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
13163         * config/mips/mips.c (mips_handle_option,
13164         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
13165         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
13166         mips-common.c.
13167         * config/mmix/mmix.c (mmix_option_optimization_table,
13168         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
13169         Move to mmix-common.c.
13170         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
13171         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
13172         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13173         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
13174         * config/pa/pa.c: Include common/common-target.h.
13175         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
13176         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13177         pa_handle_option): Move to pa-common.c.
13178         (pa_option_override): Use targetm_common.except_unwind_info.
13179         (pa_asm_output_mi_thunk, pa_function_section): Use
13180         targetm_common.have_named_sections.
13181         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
13182         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13183         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
13184         pdp11_handle_option, pdp11_option_init_struct): Move to
13185         pdp11-common.c.
13186         * config/picochip/picochip.c (picochip_option_optimization_table,
13187         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
13188         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
13189         * config/rs6000/rs6000.c: Include common/common-target.h.
13190         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
13191         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
13192         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
13193         rs6000_handle_option): Move to rs6000-common.c.
13194         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13195         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
13196         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13197         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
13198         * config/s390/s390.c (processor_flags_table,
13199         s390_option_optimization_table, s390_option_init_struct,
13200         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
13201         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13202         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
13203         * config/s390/s390.h (processor_flags_table): Declare.
13204         * config/score/score.c (score_option_optimization_table,
13205         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13206         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
13207         score_handle_option): Move to score-common.c.
13208         * config/sh/sh.c (sh_option_optimization_table,
13209         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
13210         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13211         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
13212         * config/sparc/sparc.c: Include common/common-target.h.
13213         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
13214         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
13215         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
13216         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
13217         spu_option_init_struct): Move to spu-common.c.
13218         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
13219         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
13220         * config/v850/v850.c (small_memory_physical_max,
13221         v850_handle_memory_optionn v850_handle_option,
13222         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
13223         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
13224         v850-common.c.
13225         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
13226         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
13227         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
13228         Move to xtensa-common.c.
13229         * cfglayout.c: Include common/common-target.h.
13230         (fixup_reorder_chain): Use targetm_common.have_named_sections.
13231         * cfgrtl.c: Include common/common-target.h.
13232         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
13233         targetm_common.have_named_sections.
13234         * dbxout.c: Include common/common-target.h.
13235         (dbxout_function_end): Use targetm_common.have_named_sections.
13236         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
13237         targetm_common.except_unwind_info.
13238         * dwarf2out.c: Include common/common-target.h.
13239         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
13240         dwarf2out_begin_prologue, dwarf2out_frame_init,
13241         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
13242         targetm_common.except_unwind_info.
13243         * except.c: Include common/common-target.h.
13244         (init_eh, finish_eh_generation,
13245         output_one_function_exception_table): Use
13246         targetm_common.except_unwind_info.
13247         (switch_to_exception_section): Use targetm_common.have_named_sections.
13248         * explow.c: Include common/common-target.h.
13249         * expr.c: Include common/common-target.h.
13250         (build_personality_function): Use targetm_common.except_unwind_info.
13251         * function.c: Include common/common-target.h.
13252         (expand_function_end): Use targetm_common.except_unwind_info.
13253         * haifa-sched.c: Include common/common-target.h.
13254         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
13255         * lto-opts.c: Include common/common-target.h instead of target.h.
13256         (lto_reissue_options): Use targetm_common.handle_option.
13257         * opts.c: Include common/common-target.h.
13258         (target_handle_option): Use targetm_common.handle_option.
13259         (init_options_struct): Update comment referring to
13260         targetm.target_option.optimization.  Use
13261         targetm_common.default_target_flags,
13262         targetm_common.unwind_tables_default and
13263         targetm_common.option_init_struct.
13264         (default_options_optimization): Use
13265         targetm_common.option_optimization_table.
13266         (finish_options): Use targetm_common.except_unwind_info,
13267         targetm_common.unwind_tables_default,
13268         targetm_common.have_named_sections and
13269         targetm_common.supports_split_stack.
13270         * toplev.c: Include common/common-target.h.
13271         (process_options): Use targetm_common.have_named_sections.
13272         * tree-tailcall.c: Include common/common-target.h.
13273         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
13274         * tree.c: Include common/common-target.h.
13275         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
13276         * varasm.c: Include common/common-target.h.
13277         (resolve_unique_section, hot_function_section,
13278         default_function_section): Use targetm_common.have_named_sections.
13279
13280 2011-06-14  Easwaran Raman  <eraman@google.com>
13281
13282         PR rtl-optimization/44194
13283         * dse.c: Include tree-flow.h
13284         (insn_info): Add new field non_frame_wild_read.
13285         (group_info): Add new fields escaped_n and escaped_p.
13286         (kill_on_calls): New variable.
13287         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
13288         (dse_step0): Initialize kill_on_calls.
13289         (can_escape): New function.
13290         (set_usage_bits): Add additional parameter; record information
13291         about escaped locations.
13292         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
13293         (dse_step2_nospill): Set kill_on_calls based on
13294         group->escaped_n and group->escaped_n.
13295         (add_wild_read): Refactor into...
13296         (reset_active_stores): ... New function, and
13297         (free_read_records): ... New function.
13298         (add_non_frame_wild_read): New function.
13299         (scan_insn): Call add_non_frame_wild_read on non-const calls.
13300         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
13301         (dse_step5_nospill): Call scan_reads_nospill for instructions
13302         marked as non_frame_wild_read.
13303         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
13304
13305 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
13306
13307         * common/common-target-def.h, common/common-target.def,
13308         common/common-target.h, common/config/default-common.c,
13309         common/config/pa/pa-common.c: New files.
13310         * Makefile.in (common_out_file, common_out_object_file,
13311         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
13312         (OBJS-libcommon-target): Include $(common_out_object_file).
13313         (prefix.o): Update dependencies.
13314         ($(common_out_object_file), common/common-target-hooks-def.h,
13315         s-common-target-hooks-def-h): New.
13316         (s-tm-texi): Also check timestamp on common-target.def.
13317         (build/genhooks.o): Update dependencies.
13318         * config.gcc (common_out_file, target_has_targetm_common): Define.
13319         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
13320         TARGET_ALWAYS_STRIP_DOTDOT.
13321         * configure.ac (common_out_object_file): Define.
13322         (common_out_file, common_out_object_file): Substitute.
13323         (common): Create directory.
13324         * configure: Regenerate.
13325         * doc/tm.texi.in (targetm_common): Document.
13326         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
13327         * doc/tm.texi: Regenerate.
13328         * genhooks.c (hook_array): Also include common/common-target.def.
13329         * prefix.c (tm.h): Don't include.
13330         (common/common-target.h): Include.
13331         (ALWAYS_STRIP_DOTDOT): Don't define.
13332         (update_path): Use targetm_common.always_strip_dotdot instead of
13333         ALWAYS_STRIP_DOTDOT.
13334         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
13335
13336 2011-06-14  David Li  <davidxl@google.com>
13337
13338         * passes.c (execute_function_todo): Remove TODO_dump_func.
13339         (execute_one_pass): Remove TODO_dump_func.
13340         (execute_function_dump): New function.
13341         * tree-vrp.c: Remove TODO_dump_func.
13342         * regrename.c: Remove TODO_dump_func.
13343         * fwprop.c: Remove TODO_dump_func.
13344         * tree-into-ssa.c: Remove TODO_dump_func.
13345         * tree-complex.c: Remove TODO_dump_func.
13346         * tracer.c: Remove TODO_dump_func.
13347         * tree-loop-distribution.c: Remove TODO_dump_func.
13348         * postreload-gcse.c: Remove TODO_dump_func.
13349         * postreload.c: Remove TODO_dump_func.
13350         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
13351         * tree-tailcall.c: Remove TODO_dump_func.
13352         * ipa-cp.c: Remove TODO_dump_func.
13353         * final.c: Remove TODO_dump_func.
13354         * tree-emutls.c: Remove TODO_dump_func.
13355         * omp-low.c: Remove TODO_dump_func.
13356         * tree-ssa-dse.c: Remove TODO_dump_func.
13357         * tree-ssa-uncprop.c: Remove TODO_dump_func.
13358         * auto-inc-dec.c: Remove TODO_dump_func.
13359         * reorg.c: Remove TODO_dump_func.
13360         * tree-ssa-copyrename.c: Remove TODO_dump_func.
13361         * tree-ssa-ccp.c: Remove TODO_dump_func.
13362         * compare-elim.c: Remove TODO_dump_func.
13363         * mode-switching.c: Remove TODO_dump_func.
13364         * modulo-sched.c: Remove TODO_dump_func.
13365         * tree-call-cdce.c: Remove TODO_dump_func.
13366         * cse.c: Remove TODO_dump_func.
13367         * web.c: Remove TODO_dump_func.
13368         * tree-stdarg.c: Remove TODO_dump_func.
13369         * lto-streamer-out.c: Remove TODO_dump_func.
13370         * tree-ssa-math-opts.c: Remove TODO_dump_func.
13371         * tree-ssa-dom.c: Remove TODO_dump_func.
13372         * tree-nrv.c: Remove TODO_dump_func.
13373         * loop-init.c: Remove TODO_dump_func.
13374         * gimple-low.c: Remove TODO_dump_func.
13375         * ipa-inline.c: Remove TODO_dump_func.
13376         * tree-ssa-sink.c: Remove TODO_dump_func.
13377         * jump.c: Remove TODO_dump_func.
13378         * ifcvt.c: Remove TODO_dump_func.
13379         * tree-ssa-loop.c: Remove TODO_dump_func.
13380         * recog.c: Remove TODO_dump_func.
13381         * dse.c: Remove TODO_dump_func.
13382         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
13383         * matrix-reorg.c: Remove TODO_dump_func.
13384         * tree-eh.c: Remove TODO_dump_func.
13385         * regmove.c: Remove TODO_dump_func.
13386         * function.c: Remove TODO_dump_func.
13387         * tree-vectorizer.c: Remove TODO_dump_func.
13388         * ipa-split.c: Remove TODO_dump_func.
13389         * gcse.c: Remove TODO_dump_func.
13390         * tree-if-conv.c: Remove TODO_dump_func.
13391         * init-regs.c: Remove TODO_dump_func.
13392         * tree-ssa-phiopt.c: Remove TODO_dump_func.
13393         * implicit-zee.c: Remove TODO_dump_func.
13394         * lower-subreg.c: Remove TODO_dump_func.
13395         * bt-load.c: Remove TODO_dump_func.
13396         * tree-dfa.c: Remove TODO_dump_func.
13397         * except.c: Remove TODO_dump_func.
13398         * emit-rtl.c: Remove TODO_dump_func.
13399         * store-motion.c: Remove TODO_dump_func.
13400         * cfgexpand.c: Remove TODO_dump_func.
13401         * tree-cfgcleanup.c: Remove TODO_dump_func.
13402         * cfgcleanup.c: Remove TODO_dump_func.
13403         * tree-ssa-pre.c: Remove TODO_dump_func.
13404         * tree-sra.c: Remove TODO_dump_func.
13405         * tree-mudflap.c: Remove TODO_dump_func.
13406         * tree-ssa-copy.c: Remove TODO_dump_func.
13407         * cfglayout.c: Remove TODO_dump_func.
13408         * tree-ssa-forwprop.c: Remove TODO_dump_func.
13409         * tree-ssa-dce.c: Remove TODO_dump_func.
13410         * ira.c: Remove TODO_dump_func.
13411         * tree-ssa.c: Remove TODO_dump_func.
13412         * integrate.c: Remove TODO_dump_func.
13413         * tree-optimize.c: Remove TODO_dump_func.
13414         * tree-ssa-phiprop.c: Remove TODO_dump_func.
13415         * tree-object-size.c: Remove TODO_dump_func.
13416         * combine.c: Remove TODO_dump_func.
13417         * bb-reorder.c: Remove TODO_dump_func.
13418         * cprop.c: Remove TODO_dump_func.
13419         * var-tracking.c: Remove TODO_dump_func.
13420         * tree-profile.c: Remove TODO_dump_func.
13421         * tree-vect-generic.c: Remove TODO_dump_func.
13422         * reg-stack.c: Remove TODO_dump_func.
13423         * sched-rgn.c: Remove TODO_dump_func.
13424         * tree-ssa-structalias.c: Remove TODO_dump_func.
13425         * tree-switch-conversion.c: Remove TODO_dump_func.
13426         * tree-cfg.c: Remove TODO_dump_func.
13427         * tree-ssa-reassoc.c: Remove TODO_dump_func.
13428         * combine-stack-adj.c: Remove TODO_dump_func.
13429         * dce.c: Remove TODO_dump_func.
13430         * tree-ssanames.c: Remove TODO_dump_func.
13431         * regcprop.c: Remove TODO_dump_func.
13432
13433 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
13434
13435         PR middle-end/47364
13436         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
13437         and properly handle result not in Pmode.
13438
13439 2011-06-14  Robert Millan  <rmh@gnu.org>
13440
13441         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
13442         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
13443         `config/linux.h'.
13444
13445         * config/i386/kfreebsd-gnu64.h: New file.
13446         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
13447         with `i386/kfreebsd-gnu64.h'.
13448
13449         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
13450         (GNU_USER_LINK_EMULATION64): New macros.
13451         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
13452         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
13453         of hardcoding `elf_i386' and `elf_x86_64'.
13454
13455 2011-06-14  Nick Clifton  <nickc@redhat.com>
13456
13457         PR target/49403
13458         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
13459
13460         PR target/49402
13461         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
13462
13463 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
13464
13465         PR fortran/49103
13466         * tree.h (DECL_NONSHAREABLE): Define.
13467         (struct tree_decl_common): Change decl_common_unused to
13468         decl_nonshareable_flag.
13469         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
13470         Ignore vars with DECL_NONSHAREABLE bit set.
13471         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
13472         on stores to automatic aggregate vars.
13473
13474         PR rtl-optimization/49390
13475         Revert:
13476         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
13477
13478         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
13479         MEM_ALIAS_SET.
13480
13481 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
13482             Tom de Vries  <tom@codesourcery.com>
13483
13484         PR target/45098
13485         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
13486         Document changed semantics.
13487         (max_stmt_executions, max_stmt_executions_int): Declare.
13488         * tree-data-ref.c (estimated_loop_iterations)
13489         (estimated_loop_iterations_int): Move functions...
13490         * tree-ssa-loop-niter.c (estimated_loop_iterations)
13491         (estimated_loop_iterations_int): here.
13492         (record_estimate): Change nb_iterations_upper_bound and
13493         nb_iterations_estimate semantics.
13494         (max_stmt_executions, max_stmt_executions_int): New function.
13495         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
13496         (max_stmt_executions_tree): this.
13497         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
13498         estimated_loop_iterations_tree.
13499         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
13500         max_stmt_executions_int instead of estimated_loop_iterations_int.
13501         * predict.c (predict_loops): Idem.
13502         * tree-parloops.c (parallelize_loops): Idem.
13503         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
13504         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
13505         (init_omega_for_ddr_1): Idem.
13506         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
13507         (loop_prefetch_arrays): Idem
13508         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
13509         max_stmt_executions instead of estimated_loop_iterations.
13510         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
13511         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
13512         instead of nb_iterations_upper_bound.
13513
13514 2011-06-13  Jan Hubicka  <jh@suse.cz>
13515
13516         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
13517
13518 2011-06-14  Richard Henderson  <rth@redhat.com>
13519
13520         PR debug/48459
13521         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
13522         (based_loc_descr): Assert it's true.
13523         (compute_frame_pointer_to_fb_displacement): Set it, rather than
13524         aborting immediately.
13525
13526 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
13527             Mingfeng Wu  <mingfeng@faraday-tech.com>
13528
13529         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
13530
13531 2011-06-13  Jan Hubicka  <jh@suse.cz>
13532
13533         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
13534
13535 2011-06-13  Jan Hubicka  <jh@suse.cz>
13536
13537         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
13538         similarly to DECL_COMDAT.
13539         * cgraphunit.c (cgraph_analyze_function): Likewise.
13540         * ipa.c (function_and_variable_visibility): Likewise.
13541
13542 2011-06-13  Jan Hubicka  <jh@suse.cz>
13543
13544         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
13545         BINFO_VIRTUALS when streaming for ltrans unit.
13546
13547 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
13548
13549         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
13550         (movdi_internal64): Same.
13551
13552 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
13553
13554         PR target/44618
13555         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
13556         a set of similar patterns, where the MATCH_OPERAND for the function
13557         argument is replaced with individual references to hardware registers.
13558         (save_fpregs_<mode>): Ditto
13559         (restore_gpregs_<mode>): Ditto
13560         (return_and_restore_gpregs_<mode>): Ditto
13561         (return_and_restore_fpregs_<mode>): Ditto
13562         (return_and_restore_fpregs_aix_<mode>): Ditto
13563
13564 2011-06-13  Jan Hubicka  <jh@suse.cz>
13565
13566         * ipa-utils.c (postorder_stack): New structure.
13567         (ipa_reverse_postorder): Handle aliases.
13568
13569 2011-06-13  Jan Hubicka  <jh@suse.cz>
13570
13571         * ipa-inline.c (reset_edge_caches): Walk aliases.
13572         (update_caller_keys): Do not test inlinability of aliases.
13573         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
13574         (do_estimate_growth): Fix typo.
13575
13576 2011-06-13  Jan Hubicka  <jh@suse.cz>
13577
13578         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
13579         (can_remove_node_now_p): ... here; handle same comdat groups.
13580         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
13581         (inline_call): Update use of can_remove_node_now_p.
13582
13583 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
13584
13585         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
13586         condition to disallow non-identical memory locations.
13587         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
13588         preference to bit manipulation instructions.
13589
13590 2011-06-13  Jan Hubicka  <jh@suse.cz>
13591
13592         * cgraph.c (cgraph_for_node_thunks_and_aliases,
13593         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
13594         (nonremovable_p): New function.
13595         (cgraph_can_remove_if_no_direct_calls_p): New function.
13596         (used_from_object_file_p): New functoin.
13597         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
13598         references from aliases.
13599         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
13600         * ipa-inline.c (check_caller_edge): New function.
13601         (want_inline_function_called_once_p): Use it; accept aliases called
13602         once, too.
13603         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
13604
13605 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13606
13607         PR target/48454
13608         * config/arm/neon.md (vec_pack_trunc): Set the lengths
13609         correctly for the case with Quad vectors.
13610
13611 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
13612            Ira Rosen  <ira.rosen@linaro.org>
13613
13614         PR tree-optimization/49352
13615         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
13616         all, make sure loop_use_stmt after the loop is a def stmt of a used
13617         SSA_NAME that is the only one defined inside of the loop.  Don't
13618         check for COND_EXPR and GIMPLE_BINARY_RHS.
13619         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
13620         check_reduction is true.
13621
13622 2011-06-11  Jan Hubicka  <jh@suse.cz>
13623
13624         PR middle-end/49373
13625         * ipa.c (cgraph_externally_visible_p): Check resolution info.
13626
13627 2011-06-11  Jan Hubicka  <jh@suse.cz>
13628
13629         PR middle-end/48836
13630         * ipa-inline-transform.c: Include tree-pass.h
13631         (inline_transform): Set TODO_update_ssa_only_virtuals.
13632         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
13633
13634 2011-06-11  Jan Hubicka  <jh@suse.cz>
13635
13636         PR middle-end/49378
13637         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
13638         aliases and thunks.
13639
13640 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
13641
13642         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
13643         Take number of iterations to peel into account for equally frequent
13644         misalignment values.
13645
13646 2011-06-11  Jan Hubicka  <jh@suse.cz>
13647
13648         * lto-streamer-out.c (produce_symtab): Stream out the newly
13649         represented aliases.
13650
13651 2011-06-11  Jan Hubicka  <jh@suse.cz>
13652
13653         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
13654         varying args.
13655         (ipa_update_after_lto_read): Likewise.
13656         (ipa_write_node_info): Do not sream call_with_var_arguments.
13657         (ipa_read_node_info): Likewise.
13658
13659 2011-06-11  Jan Hubicka  <jh@suse.cz>
13660
13661         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
13662
13663 2011-06-11  Jan Hubicka  <jh@suse.cz>
13664
13665         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
13666         (lto_symtab_resolve_can_prevail_p): Likewise.
13667         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
13668         * cgraph.c (same_body_aliases_done): New global var.
13669         (cgraph_same_body_alias_1): Rename to ...
13670         (cgraph_create_function_alias): ... this one; reorg to new
13671         representation.
13672         (cgraph_same_body_alias): Use cgraph_create_function_alias;
13673         record references when asked to.
13674         (cgraph_add_thunk): Fix formating.
13675         (cgraph_get_node): Kill same body alias code.
13676         (cgraph_node_for_asm): Likewise.
13677         (cgraph_remove_same_body_alias): Remove.
13678         (cgraph_remove_node): Kill same body alias code.
13679         (cgraph_mark_address_taken_node): Mark also the aliased function
13680         as having address taken.
13681         (dump_cgraph_node): Dump same body aliases.
13682         (cgraph_for_node_thunks_and_aliases): Update for new alias
13683         representation.
13684         (cgraph_for_node_and_aliases): Likewise.
13685         * cgraph.h (same_body): Kll pointer.
13686         (same_body_alias): Update comment.
13687         (same_body_aliases_done): Declare.
13688         (cgraph_remove_same_body_alias): Remove declaration.
13689         (cgraph_create_function_alias): Declare.
13690         (cgraph_process_same_body_aliases): Declare.
13691         (cgraph_function_with_gimple_body_p): Check for alias.
13692         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
13693         (cgraph_alias_aliased_node): New function.
13694         (cgraph_function_node): Update for new aliases.
13695         (cgraph_function_or_thunk_node): Likewise.
13696         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
13697         (inline_call): Remove dead aliases.
13698         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
13699         name hack for same body aliases.
13700         (clone_of_p): Look through aliases.
13701         (verify_cgraph_node): Verify aliases.
13702         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
13703         (cgraph_process_same_body_aliases): New function.
13704         (process_function_and_variable_attributes): Disable weakref warning on
13705         alias.
13706         (cgraph_analyze_functions): Handle aliases.
13707         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
13708         (assemble_thunks): Rename to ...
13709         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
13710         (cgraph_expand_function): Remove alias output code.
13711         (cgraph_output_in_order): Skip aliases.
13712         (cgraph_preserve_function_body_p): Aliases don't need preserving.
13713         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
13714         (ipa_record_reference): Do not assert on alias references.
13715         (ipa_ref_has_aliases_p): New function.
13716         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
13717         (ipa_ref_has_aliases_p): Declare.
13718         * lto-cgraph.c (lto_output_node): Handle aliases.
13719         (input_node): Likewise.
13720         * lto-streamer-out.c (lto_output): Skip aliases.
13721         (produce_symtab): Kill same_body_alias code.
13722         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
13723         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
13724         * ipa-inline.c (update_caller_keys): Walk aliases.
13725         (inline_small_functions): Fix thinko in previous patch.
13726         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
13727         (function_and_variable_visibility): Do not walk same body aliases.
13728         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
13729         (ipa_pta_execute): Use it.
13730
13731 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13732
13733         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
13734         (*vec_dupv2df): Rename from vec_dupv2df.
13735         (vec_dupv2df): New expander.
13736
13737 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13738
13739         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
13740
13741 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13742
13743         * config/i386/i386.md: Use default value in "isa" attribute.
13744         * config/i386/sse.md: Ditto.
13745         * config/i386/mmx.md: Ditto.
13746
13747 2011-06-10  Wei Guozhi  <carrot@google.com>
13748
13749         PR target/45335
13750         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13751         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13752         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13753         related peephole2.
13754         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13755         related peephole2.
13756         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13757         (arm_legitimate_ldrd_p): New prototype.
13758         (arm_output_ldrd): New prototype.
13759         * config/arm/arm.c (arm_check_ldrd_operands): New function.
13760         (arm_legitimate_ldrd_p): New function.
13761         (arm_output_ldrd): New function.
13762
13763 2011-06-10  David Li  <davidxl@google.com>
13764
13765         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
13766         * passes.c (passr_eq): New function.
13767         (create_pass_tab): New function.
13768         (pass_traverse): New function.
13769         (dump_one_pass): New function.
13770         (dump_pass_list): New function.
13771         (dump_passes): New function.
13772
13773 2011-06-10  Jan Hubicka  <jh@suse.cz>
13774
13775         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
13776         setting the nothrow flag.
13777         * ipa-reference.c (propagate): Skip aliases.
13778         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
13779         (propagate_nothrow): Skip aliases; do not update cgraph.
13780         (local_pure_const): Do not update cgraph.
13781         * tree-profile.c (tree_profiling): Do fixup_cfg.
13782
13783 2011-06-10  Jan Hubicka  <jh@suse.cz>
13784
13785         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
13786         (cgraph_local_node_p): ... here; handle aliases.
13787         (has_addr_references_p): Break out from ...;
13788         (cgraph_remove_unreachable_nodes) ... here.
13789
13790 2011-06-10  Jan Hubicka  <jh@suse.cz>
13791
13792         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
13793         * common.opt (flag_inline_functions_called_once): Do not
13794         initialize to 1.
13795
13796 2011-06-10  Jan Hubicka  <jh@suse.cz>
13797
13798         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
13799         (ipcp_initialize_node_lattices): Do not deal with aliases;
13800         Do not try to propagate through thunks.
13801         (ipcp_change_tops_to_bottom): Do not deal with aliases.
13802
13803 2011-06-10  Jan Hubicka  <jh@suse.cz>
13804
13805         * ipa-prop.c (ipa_write_node_info): Stream jump functions
13806         for indirect calls.
13807         (ipa_read_node_info): Likewise.
13808
13809 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13810
13811         PR lto/49302
13812         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
13813         (build_and_insert_call): Likewise.
13814         (build_and_insert_ref): New.
13815         (gimple_expand_builtin_pow): Minor cleanup.
13816         (gimple_expand_builtin_cabs): New.
13817         (execute_cse_sincos): Add case for BUILT_IN_CABS.
13818
13819 2011-06-10  Jan Hubicka  <jh@suse.cz>
13820
13821         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
13822         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
13823         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
13824         (ipcp_propagate_stage): Skip aliases when propagating.
13825         (ipcp_need_redirect_p): Skip aliases.
13826         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
13827         collect_callers_of_node.
13828         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
13829         for aliases.
13830         (ipa_compute_jump_functions): Look through aliases.
13831
13832 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13833
13834         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
13835
13836 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13837
13838         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
13839         Adjust comments.
13840         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
13841
13842 2011-06-10  Jan Hubicka  <jh@suse.cz>
13843
13844         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
13845         Update call of gimple_get_virt_method_for_binfo.
13846         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
13847         refuse_thunks parameter.
13848         (gimple_fold_call): Update.
13849         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
13850
13851 2011-06-10  Jan Hubicka  <jh@suse.cz>
13852
13853         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
13854         (not_all_callers_have_enough_arguments_p): ... this one; turn into
13855         worker for cgraph_for_node_and_aliases.
13856         (convert_callers_for_node): Break out from ...
13857         (convert_callers): ... here.
13858         (modify_function): Use collect_callers_of_node.
13859         (ipa_early_sra): Use cgraph_for_node_and_aliases.
13860
13861 2011-06-10  Richard Guenther  <rguenther@suse.de>
13862
13863         PR tree-optimization/49361
13864         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
13865         when not already in gimple form.
13866
13867 2011-06-10  Richard Guenther  <rguenther@suse.de>
13868
13869         PR bootstrap/49344
13870         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
13871         FOR_EACH_PHI_OR_STMT_USE.
13872
13873 2011-06-10  Jan Hubicka  <jh@suse.cz>
13874
13875         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
13876         (clone_inlined_nodes): ... here.
13877         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
13878         to real destination prior inlining.
13879         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
13880         can_early_inline_edge_p, want_early_inline_function_p,
13881         want_early_inline_function_p, want_inline_small_function_p,
13882         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
13883         edge_badness, update_all_callee_keys, lookup_recursive_calls,
13884         add_new_edges_to_heap, inline_small_functions, flatten_function,
13885         inline_always_inline_functions, early_inline_small_functions): Use
13886         cgraph_function_or_thunk_node.
13887         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
13888         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
13889         (do_estimate_edge_growth_1): Break out from ...
13890         (do_estimate_growth) ... here; walk aliases.
13891         (inline_generate_summary): Skip aliases.
13892
13893 2011-06-10  Richard Guenther  <rguenther@suse.de>
13894
13895         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
13896         forward when combining, visit inserted stmts when a stmt was changed.
13897
13898 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
13899
13900         * tree.h (error_operand_p): Add.
13901         * dbxout.c (dbxout_type_fields): Use the latter.
13902         * c-decl.c (add_stmt): Likewise.
13903         * gimplify.c (omp_add_variable, omp_notice_variable,
13904         gimplify_scan_omp_clauses): Likewise.
13905
13906 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
13907
13908         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
13909         when a value is actually passed in regs.
13910
13911 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
13912             Laurent Rougé  <laurent.rouge@menta.fr>
13913
13914         * doc/invoke.texi (SPARC options): Add -mflat.
13915         * config/sparc/sparc.opt: Likewise.
13916         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
13917         (sparc_flat_expand_prologue): Declare.
13918         (sparc_flat_expand_epilogue): Likewise.
13919         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
13920         (CPP_ENDIAN_SPEC): Replace with...
13921         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
13922         (CPP_SPEC): Adjust to above change.
13923         (EXTRA_SPECS): Likewise.
13924         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
13925         (INCOMING_REGNO): Likewise.
13926         (OUTGOING_REGNO): Likewise.
13927         (LOCAL_REGNO): Likewise.
13928         (SETUP_FRAME_ADDRESSES): Likewise.
13929         (FIXED_REGISTERS): Set 0 for %fp.
13930         (CALL_USED_REGISTERS): Likewise.
13931         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
13932         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
13933         (RETURN_ADDR_REGNUM): Define.
13934         (RETURN_ADDR_RTX): Use it.
13935         (INCOMING_RETURN_ADDR_REGNUM): Define.
13936         (INCOMING_RETURN_ADDR_RTX): Use it.
13937         (DWARF_FRAME_RETURN_COLUMN): Likewise.
13938         (EH_RETURN_REGNUM): Define.
13939         (EH_RETURN_STACKADJ_RTX): Use it.
13940         (EH_RETURN_HANDLER_RTX): Delete.
13941         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
13942         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
13943         Delete.
13944         (struct machine_function): Add frame_size, apparent_frame_size,
13945         frame_base_reg, frame_base_offset, n_global_fp_regs and
13946         save_local_in_regs_p fields.
13947         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
13948         sparc_frame_base_offset, sparc_n_global_fp_regs,
13949         sparc_save_local_in_regs_p): New macros.
13950         (sparc_option_override): Error out if -fcall-saved-REG is specified
13951         for Out registers.
13952         (eligible_for_restore_insn): Fix formatting.
13953         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
13954         (eligible_for_sibcall_delay): Likewise.
13955         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
13956         (sparc_legitimate_address_p): Adjust to above change.
13957         (save_global_or_fp_reg_p): New predicate.
13958         (return_addr_reg_needed_p): Likewise.
13959         (save_local_or_in_reg_p): Likewise.
13960         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
13961         (SORR_SAVE, SORR_RESTORE): Delete.
13962         (sorr_pred_t): New typedef.
13963         (sorr_act_t): New enum.
13964         (save_or_restore_regs): Rename to...
13965         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
13966         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
13967         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
13968         mechanism.  Add CFI information for double-word saves in 32-bit mode.
13969         (emit_adjust_base_to_offset): New function extracted from...
13970         (emit_save_or_restore_regs): ...this.  Rename the rest to...
13971         (emit_save_or_restore_regs_global_fp_regs): ...this.
13972         (emit_save_or_restore_regs_local_in_regs): New function.
13973         (gen_create_flat_frame_[123]): New functions.
13974         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
13975         (sparc_flat_expand_prologue): New function.
13976         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
13977         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
13978         (sparc_flat_expand_epilogue): New function.
13979         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
13980         (output_return): Likewise.
13981         (output_sibcall): Likewise.
13982         (sparc_output_mi_thunk): Likewise.
13983         (sparc_frame_pointer_required): Likewise.
13984         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
13985         function optimization.
13986         * config/sparc/sparc.md (flat): New attribute.
13987         (prologue): Add TARGET_FLAT handling.
13988         (save_register_window): Disable if TARGET_FLAT.
13989         (create_flat_frame_[123]): New patterns.
13990         (epilogue): Add TARGET_FLAT handling.
13991         (sibcall_epilogue): Likewise.
13992         (eh_return): New expander.
13993         (eh_return_internal): New insn and splitter.
13994         (return_internal): Add TARGET_FLAT handling.
13995         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
13996         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
13997         (nonlocal_goto): Add TARGET_FLAT handling.
13998         * config/sparc/t-elf: Add -mflat multilib.
13999         * config/sparc/t-leon: Likewise.
14000
14001 2011-06-10  Jan Hubicka  <jh@suse.cz>
14002
14003         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
14004         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
14005         (self_recursive_p): Use cgraph_function_node.
14006         (propagate_pure_const): Likewise.
14007         (propagate_nothrow): Likewise.
14008         * ipa-reference.c (ipa_reference_get_not_read_global): Use
14009         cgraph_function_node.
14010         (propagate_bits): Likewise.
14011         (propagate): Likewise.
14012
14013 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14014             Richard Earnshaw  <rearnsha@arm.com>
14015
14016         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
14017         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
14018         (*thumb2_movdi_vfp): Delete.
14019         (*arm_movdi_vfp_cortexa8): Delete.
14020         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
14021         (*movdi_vfp_cortexa8): Likewise.
14022
14023 2011-06-10  Richard Guenther  <rguenther@suse.de>
14024
14025         * stor-layout.c (initialize_sizetypes): Give names to all
14026         sizetype kinds.
14027
14028 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
14029
14030         PR tree-optimization/49318
14031         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
14032         irrelevant pattern statements.
14033
14034 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14035
14036         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
14037
14038         PR bootstrap/49354
14039         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
14040         to last assignment.
14041
14042 2011-06-09  Jan Hubicka  <jh@suse.cz>
14043
14044         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
14045         do not recompute reachable flag.
14046         (cgraph_finalize_function, cgraph_analyze_functions): Set
14047         redefined_extern_inline here.
14048
14049 2011-06-09  Jan Hubicka  <jh@suse.cz>
14050
14051         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
14052         (cgraph_only_called_directly_p): ... this one; bring offline.
14053         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
14054         varpool_used_from_object_file_p): Drop names from the declaratoin.
14055         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
14056         collect_callers_of_node): New.
14057         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
14058         (cgraph_edge_recursive_p): Use cgraph_function_node.
14059         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
14060         (cgraph_node_cannot_be_local_p_1): Break out from ...
14061         (cgraph_node_can_be_local_p): ... here; walk aliases.
14062         (cgraph_for_node_thunks_and_aliases): New function.
14063         (cgraph_for_node_and_aliases): New function.
14064         (cgraph_make_node_local_1): Break out from ...
14065         (cgraph_make_node_local) ... here; use
14066         cgraph_for_node_thunks_and_aliases.
14067         (cgraph_set_nothrow_flag_1): Break out from ...
14068         (cgraph_set_nothrow_flag) ... here;
14069         use cgraph_for_node_thunks_and_aliases.
14070         (cgraph_set_const_flag_1): Break out from ...
14071         (cgraph_set_const_flag) ... here;
14072         use cgraph_for_node_thunks_and_aliases.
14073         (cgraph_set_pure_flag_1): Break out from ...
14074         (cgraph_set_pure_flag) ... here;
14075         use cgraph_for_node_thunks_and_aliases.
14076         (cgraph_propagate_frequency_1): Break out from ...
14077         (cgraph_propagate_frequency) ... here; use
14078         cgraph_for_node_thunks_and_aliases.
14079         (cgraph_used_from_object_file_p): Do not care about aliases.
14080         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
14081         New functions.
14082         (collect_callers_of_node_1, collect_callers_of_node): New functions.
14083
14084 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14085
14086         PR rtl-optimization/49154
14087         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
14088         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
14089         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
14090         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
14091         * config/cris/cris.h (cris_register_move_cost): Remove
14092         !TARGET_V32 code.  Tweak comments.
14093
14094 2011-06-09  Jan Hubicka  <jh@suse.cz>
14095
14096         * cgraphbuild.c (record_eh_tables): Mark personality function as having
14097         address taken.
14098
14099 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14100
14101         PR rtl-optimization/49154
14102         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
14103         is a matching slot in the hashtable, assign it to classes_ptr.
14104
14105         PR rtl-optimization/49154
14106         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
14107         register classes.
14108         * doc/tm.texi: Regenerate.
14109
14110 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
14111
14112         PR target/49307
14113         * config/sh/sh.md (UNSPEC_CHKADD): New.
14114         (chk_guard_add): New define_insn_and_split.
14115         (symGOT_load): Use chk_guard_add instead of blockage.
14116
14117 2011-06-09  Kai Tietz  <ktietz@redhat.com>
14118
14119         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
14120
14121 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
14122
14123         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
14124
14125 2011-06-09  Wei Guozhi  <carrot@google.com>
14126
14127         PR target/46975
14128         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
14129         (peephole2 for conditional move): Generate 16 bit instructions.
14130
14131 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
14132
14133         * config/i386/i386.md (*movdi_internal_rex64): Merge
14134         alternatives 6 and 8.
14135
14136 2011-06-09  David Li  <davidxl@google.com>
14137
14138         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14139         * passes.c (passr_eq): New function.
14140         (create_pass_tab): New function.
14141         (pass_traverse): New function.
14142         (dump_one_pass): New function.
14143         (dump_pass_list): New function.
14144         (dump_passes): New function.
14145
14146 2011-06-09  David Li  <davidxl@google.com>
14147
14148         * tree-complex.c (tree_lower_complex): Gate cleanup.
14149         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
14150         (execute_optimize_stdarg): Ditto.
14151         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
14152         (execute_cleanup_eh_1): Ditto.
14153         (execute_cleanup_eh): Ditto.
14154         * gcse.c (gate_rtl_pre): Ditto.
14155         (execute_rtl_pre): Ditto.
14156         * except.c (finish_eh_generation): Ditto.
14157         (convert_to_eh_region_ranges): Ditto.
14158         * cprop.c (one_cprop_pass): Ditto.
14159
14160 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
14161
14162         PR target/48673
14163         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
14164         in all basic blocks.
14165
14166 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14167
14168         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
14169         (HAVE_ENABLE_EXECUTE_STACK): Define.
14170         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
14171         (HAVE_ENABLE_EXECUTE_STACK): Define.
14172         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
14173         (HAVE_ENABLE_EXECUTE_STACK): Define.
14174         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
14175         (ENABLE_EXECUTE_STACK): Remove.
14176         (HAVE_ENABLE_EXECUTE_STACK): Define.
14177         [IN_LIBGCC2]: Don't include <windows.h>.
14178         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
14179         (HAVE_ENABLE_EXECUTE_STACK): Define.
14180         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
14181         (HAVE_ENABLE_EXECUTE_STACK): Define.
14182         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
14183         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
14184         (HAVE_ENABLE_EXECUTE_STACK): Define.
14185         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
14186         (HAVE_ENABLE_EXECUTE_STACK): Define.
14187         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
14188         (HAVE_ENABLE_EXECUTE_STACK): Define.
14189         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
14190         (HAVE_ENABLE_EXECUTE_STACK): Define.
14191         * config/alpha/alpha.c (alpha_trampoline_init): Test
14192         HAVE_ENABLE_EXECUTE_STACK.
14193         * config/i386/i386.c (ix86_trampoline_init): Likewise.
14194         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
14195         (sparc64_initialize_trampoline): Likewise.
14196         * libgcc2.c [L_enable_execute_stack]: Remove.
14197         * system.h (ENABLE_EXECUTE_STACK): Poison.
14198         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
14199         * doc/tm.texi: Regenerate.
14200         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
14201
14202 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
14203
14204         PR middle-end/49308
14205         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
14206         variable.  After resetting and rescanning insn continue with previous
14207         statement.
14208
14209 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14210
14211         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
14212         (gcc_cv_ld_hidden): Likewise.
14213         * configure: Regenerate.
14214         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
14215         (ix86_stack_protect_fail): Mark unused.
14216         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
14217         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
14218         [TARGET_MACHO]: Don't define.
14219         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
14220         (TARGET_STACK_PROTECT_FAIL): Likewise.
14221         (rs6000_stack_protect_fail): Mark unused.
14222         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
14223         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
14224
14225 2011-06-08  Andi Kleen  <ak@linux.intel.com>
14226
14227         * varasm.c (get_section): Print location of other conflict
14228         for section conflicts.
14229
14230 2011-06-08  Andi Kleen  <ak@linux.intel.com>
14231
14232         * config/i386/driver-i386.c (host_detect_local_cpu):
14233         Add model 0x2d Intel CPU.
14234
14235 2011-06-08  Andi Kleen  <ak@linux.intel.com>
14236
14237         * reginfo.c (global_regs_decl): Add.
14238         (globalize_reg): Add decl parameter. Compute location.  Pass location
14239         to warnings and add inform. Store decl in global_regs_decl.
14240         * rtl.h (globalize_reg): Update prototype.
14241         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
14242
14243 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
14244
14245         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
14246
14247 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
14248
14249         PR target/49305
14250         * config/sh/predicates.md (general_movsrc_operand): Check
14251         mode for memory with indexed address for QI and HImode.
14252         (general_movdst_operand): Likewise.
14253
14254 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14255
14256         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
14257
14258 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
14259
14260         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
14261         (num_ssa_operands): Likewise.
14262         (op_iter_init_phiuse): Forward-declare.
14263         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
14264
14265 2011-06-08  Nick Clifton  <nickc@redhat.com>
14266
14267         * doc/invoke.texi (ARM Options): Update description of
14268         -mthumb-interwork.
14269
14270 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14271
14272         * config/i386/driver-i386.c (host_detect_local_cpu): Support
14273         unknown Intel family 0x6 CPUs.
14274
14275 2011-06-08  Martin Jambor  <mjambor@suse.cz>
14276
14277         * tree-sra.c (mark_rw_status): Removed.
14278         (analyze_access_subtree): New parameter parent instead of
14279         mark_read and mark_write, propagate from that.
14280
14281 2011-06-08  Julian Brown  <julian@codesourcery.com>
14282
14283         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
14284         for double-precision helper functions in hard-float mode if only
14285         single-precision arithmetic is supported in hardware.
14286
14287 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
14288
14289         PR rtl-optimization/49303
14290         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
14291         code_motion_path_driver returned 0 or 1.
14292         (sel_region_finish): Clear h_d_i_d.
14293
14294 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
14295
14296         * config/sh/sh.c (prepare_move_operands): Set pic register
14297         appropriately for global and local dynamic tls models even
14298         if flag_pic is unset.
14299
14300 2011-06-07  Jason Merrill  <jason@redhat.com>
14301
14302         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
14303
14304 2011-06-07  Xinliang David Li  <davidxl@google.com>
14305         * passes.c (enable_disable_pass): Handle assembler name.
14306         (is_pass_explicitly_enabled_or_disabled): Ditto.
14307
14308 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14309
14310         PR tree-optimization/48497
14311         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
14312
14313 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14314
14315         PR tree-optimization/46728
14316         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
14317         to use gimple_val_nonnegative_real_p.
14318         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
14319         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
14320
14321 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
14322
14323         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
14324
14325 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
14326
14327         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
14328         constant vectors.
14329
14330 2011-06-07  Richard Guenther  <rguenther@suse.de>
14331
14332         * stor-layout.c (initialize_sizetypes): Initialize all
14333         sizetypes based on target definitions.
14334         (set_sizetype): Remove.
14335         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
14336         * tree.h (set_sizetype): Remove.
14337
14338 2011-06-07  Nick Clifton  <nickc@redhat.com>
14339
14340         * config.gcc: Unify V850 architecture options and add support for
14341         newer V850 architectures.
14342         * config/v850/t-v850e: Delete.
14343
14344 2011-06-07  Richard Guenther  <rguenther@suse.de>
14345
14346         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
14347         Call set_sizetype from here.
14348
14349 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
14350
14351         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
14352         (*maddhisi4tb, *maddhisi4tt): New define_insns.
14353
14354 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
14355             Andrew Stubbs  <ams@codesourcery.com>
14356
14357         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
14358         multiplies.
14359         * doc/md.texi (Canonicalization of Instructions): Document widening
14360         multiply canonicalization.
14361
14362 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
14363
14364         PR gcov-profile/49299
14365         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
14366
14367 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
14368
14369         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
14370         a pointer.
14371         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
14372         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
14373         vect_recog_pow_pattern): Likewise.
14374         (vect_pattern_recog_1): Remove declaration.
14375         (widened_name_p): Remove declaration.  Add new argument to specify
14376         whether to check that both types are either signed or unsigned.
14377         (vect_recog_widen_mult_pattern): Update documentation.  Handle
14378         unsigned patterns and multiplication by constants.
14379         (vect_pattern_recog_1): Update vect_recog_func references.  Use
14380         statement information from the statement returned from pattern
14381         detection functions.
14382         (vect_pattern_recog): Update vect_recog_func reference.
14383         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
14384         multiplication by a constant use the type of the other operand.
14385
14386 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
14387
14388         PR rtl-optimization/49145
14389         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
14390
14391 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
14392
14393         PR debug/49262
14394         * dwarf2out.c (native_encode_initializer): Decrement count in each
14395         iteration.
14396
14397         PR debug/49294
14398         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
14399         non-MODE_INT modes.
14400
14401         PR c++/49264
14402         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
14403         if stmt folded into nothing.
14404         * tree-inline.c (fold_marked_statements): If a builtin at the end of
14405         a bb folded into nothing, just update cgraph edges and move to next bb.
14406         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
14407         to be NULL.  Don't compute count and frequency if new_call is NULL.
14408
14409 2011-06-04  Diego Novillo  <dnovillo@google.com>
14410
14411         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
14412         (cgraph.o): Likewise.
14413         (cgraphunit.o): Likewise.
14414         * cgraphunit.c: Include lto-streamer.h
14415         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
14416         if LTO is enabled.
14417         * lto-streamer-in.c (unpack_value_fields): Call
14418         streamer_hooks.unpack_value_fields if set.
14419         (lto_materialize_tree): For unhandled nodes, first try to
14420         call lto_streamer_hooks.alloc_tree, if it exists.
14421         (lto_input_ts_decl_common_tree_pointers): Move reading of
14422         DECL_INITIAL to lto_streamer_read_tree.
14423         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
14424         (lto_streamer_read_tree): New.
14425         (lto_reader_init): Rename from lto_init_reader.
14426         Move initialization code to lto/lto.c.
14427         * lto-streamer-out.c (pack_value_fields): Call
14428         streamer_hooks.pack_value_fields if set.
14429         (lto_output_tree_ref): For tree nodes that are not normally indexable,
14430         call streamer_hooks.indexable_with_decls_p before giving up.
14431         (lto_output_ts_decl_common_tree_pointers): Move handling
14432         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
14433         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
14434         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
14435         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
14436         (lto_streamer_write_tree): New.
14437         (lto_output): Call lto_streamer_init directly.
14438         (lto_writer_init): Remove.
14439         * lto-streamer.c (streamer_hooks): New.
14440         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
14441         instead of lto_preload_common_nodes.
14442         (lto_is_streamable): Move from lto-streamer.h
14443         (lto_streamer_hooks_init): New.
14444         (streamer_hooks): New.
14445         (streamer_hooks_init): New.
14446         * lto-streamer.h (struct output_block): Forward declare.
14447         (struct lto_input_block): Likewise.
14448         (struct data_in): Likewise.
14449         (struct bitpack_d): Likewise.
14450         (struct streamer_hooks): Declare.
14451         (streamer_hooks): Declare.
14452         (lto_streamer_hooks_init): Declare.
14453         (lto_streamer_write_tree): Declare.
14454         (lto_streamer_read_tree): Declare.
14455         (streamer_hooks_init): Declare.
14456         (lto_is_streamable): Move to lto-streamer.c
14457
14458 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14459
14460         * longlong.h (smul_ppmm): The resulting register pair contains the
14461         higher order word first.
14462
14463 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14464
14465         PR tree-optimization/46728
14466         * builtins.c (powi_table): Remove.
14467         (powi_lookup_cost): Remove.
14468         (powi_cost): Remove.
14469         (expand_powi_1): Remove.
14470         (expand_powi): Remove.
14471         (expand_builtin_pow_root): Remove.
14472         (expand_builtin_pow): Remove.
14473         (expand_builtin_powi): Eliminate handling of constant exponent.
14474         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
14475
14476 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
14477
14478         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
14479
14480 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
14481
14482         * dce.c (reset_unmarked_insns_debug_uses): New.
14483         (delete_unmarked_insns): Skip debug insns.
14484         (prescan_insns_for_dce): Likewise.
14485         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
14486         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
14487         active reg can be found.
14488         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
14489         (convert_regs_1): Use it.
14490
14491 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
14492
14493         * tree-pretty-print.c (dump_function_header): Add flags.
14494         Don't dump decl_uid with nouid.
14495         * tree-pretty-print.h (dump_function_header): Adjust.
14496         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
14497         * passes.c (pass_init_dump_file): Pass dump_flags on.
14498         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
14499
14500 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
14501
14502         PR bootstrap/49270
14503         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
14504
14505 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
14506
14507         PR tree-optimization/49243
14508         * calls.c (setjmp_call_p): Also check if fndecl has the
14509         returns_twice attribute.
14510
14511 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14512
14513         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
14514         -ffast-math etc.
14515
14516 2011-06-06  Richard Henderson  <rth@redhat.com>
14517             Georg-Johann Lay  <avr@gjlay.de>
14518
14519         PR target/42210
14520         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
14521         New predicates.
14522         * config/avr/avr.md ("insv"): New insn expander.
14523         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
14524         "*insv.not.io", "*insv.reg"): New insns.
14525
14526 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
14527
14528         PR target/49285
14529         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
14530         to nonimmediate_operand from memory_operand for the operand that is to
14531         be forced to memory by the expander.  Lose the constraints.
14532
14533 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
14534
14535         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
14536         EH return when delayed branches are disabled.
14537
14538 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
14539
14540         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
14541         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
14542         calculation.
14543         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
14544         Simplify MODE_V1DF and MODE_V2SF handling.
14545         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
14546         Simplify MODE_SF handling.
14547
14548 2011-06-04  Jan Hubicka  <jh@suse.cz>
14549
14550         PR tree-optimization/48893
14551         PR tree-optimization/49091
14552         PR tree-optimization/49179
14553         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
14554         Bounds check.
14555
14556 2011-06-04  Jan Hubicka  <jh@suse.cz>
14557
14558         PR lto/48954
14559         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
14560         bitmaps.
14561
14562 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
14563
14564         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
14565
14566 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
14567
14568         PR target/49281
14569         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
14570         to be strictly smaller than 1 << shiftcount.
14571
14572 2011-06-04  Jan Hubicka  <jh@suse.cz>
14573
14574         PR tree-optimize/48929
14575         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
14576         of empty predicate.
14577
14578 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
14579
14580         PR debug/48333
14581         * calls.c (emit_call_1): Prefer the __builtin declaration of
14582         builtin functions.
14583
14584 2011-06-03   Diego Novillo  <dnovillo@google.com>
14585
14586         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
14587         (lto_input_tree_pointers): Likewise.
14588         * lto-streamer-out.c (pack_value_fields): Likewise.
14589         (lto_output_tree_pointers): Likewise.
14590         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
14591         and OPTIMIZATION_NODE.
14592
14593 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14594
14595         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
14596         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
14597         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
14598         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
14599         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
14600         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
14601         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
14602         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
14603         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
14604         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
14605         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
14606         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
14607         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
14608         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
14609         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
14610         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
14611         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
14612         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
14613         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
14614         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
14615         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
14616         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
14617         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
14618         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
14619         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
14620         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
14621         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
14622         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
14623         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
14624         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
14625         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
14626         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
14627         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
14628         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
14629         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
14630         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
14631         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
14632         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
14633         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
14634         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
14635         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
14636         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
14637         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
14638         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
14639         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
14640         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
14641         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
14642         * system.h (MD_UNWIND_SUPPORT): Poison.
14643         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
14644         * doc/tm.texi: Regenerate.
14645         * unwind-dw2.c: Include md-unwind-support.h instead of
14646         MD_UNWIND_SUPPORT.
14647         * config/ia64/unwind-ia64.c: Likewise.
14648         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
14649
14650 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
14651
14652         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
14653
14654 2011-06-03  Richard Henderson  <rth@redhat.com>
14655             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14656
14657         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
14658         (sigill_hdlr): Correct insn, insn size.
14659         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
14660
14661 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14662
14663         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
14664         t-slibgcc-dummy.
14665         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
14666         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
14667         * config/mips/t-iris: Remove.
14668         * config/mips/t-irix6: New file.
14669         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
14670
14671 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14672
14673         * Makefile.in (LIB2ADDEHDEP): Remove.
14674         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
14675         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
14676         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
14677         * config/t-darwin (LIB2ADDEHDEP): Remove.
14678         * config/t-freebsd (LIB2ADDEHDEP): Remove.
14679         * config/t-linux (LIB2ADDEHDEP): Remove.
14680
14681 2011-06-03  Diego Novillo  <dnovillo@google.com>
14682
14683         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
14684         (lto_register_var_decl_in_symtab): Likewise.
14685         (lto_register_function_decl_in_symtab): Likewise.
14686         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
14687         logic to uniquify_nodes.
14688
14689 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14690
14691         * config/alpha/t-osf5: Remove.
14692         * config/alpha/t-osf-pthread: Remove.
14693         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
14694         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
14695
14696 2011-06-03  Julian Brown  <julian@codesourcery.com>
14697
14698         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
14699         (strongarm1110): Use strongarm tuning.
14700         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
14701         * config/arm/arm.c (arm_strongarm_tune): New.
14702         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
14703         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
14704         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
14705         setting, using previous defaults or 1 for Cortex-A5.
14706         (arm_option_override): Set max_insns_skipped from current tuning.
14707
14708 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
14709
14710         * doc/install.texi (Options specification): Document --with-specs.
14711
14712 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14713
14714         * config/arm/neon.md (orndi3_neon): Actually split it.
14715
14716 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
14717
14718         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
14719         * var-tracking.c (reverse_op): Limite recurse depth to 5.
14720
14721 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
14722
14723         PR debug/47590
14724         * target.def (delay_sched2, delay_vartrack): New.
14725         * doc/tm.texi.in: Update.
14726         * doc/tm.texi: Rebuild.
14727         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
14728         * var-tracking.c (gate_handle_var_tracking): Likewise.
14729         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
14730         (bfin_flag_var_tracking): Drop.
14731         (output_file_start): Don't save and override flag_var_tracking.
14732         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
14733         (bfin_reorg): Test original variables.
14734         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14735         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
14736         (ia64_flag_var_tracking): Drop.
14737         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14738         (ia64_file_start): Don't save and override flag_var_tracking.
14739         (ia64_override_options_after_change): Ditto
14740         flag_schedule_insns_after_reload.
14741         (ia64_reorg): Test original variables.
14742         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
14743         (picochip_flag_var_tracking): Drop.
14744         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14745         (picochip_option_override): Don't save and override
14746         flag_schedule_insns_after_reload.
14747         (picochip_asm_file_start): Ditto flag_var_tracking.
14748         (picochip_reorg): Test original variables.
14749         * config/spu/spu.c (spu_flag_var_tracking): Drop.
14750         (TARGET_DELAY_VARTRACK): Define.
14751         (spu_var_tracking): New.
14752         (spu_machine_dependent_reorg): Call it.
14753         (asm_file_start): Don't save and override flag_var_tracking.
14754
14755 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
14756
14757         PR target/49163
14758         * config/sh/predicates.md (general_movsrc_operand): Return 0
14759         for memory and memory subreg of which address is an invalid
14760         indexed address for QI and HImode.
14761         (general_movdst_operand): Likewise.
14762
14763 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
14764
14765         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
14766         edges only, when there is a non-local label in the function.
14767         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
14768
14769 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
14770
14771         * config/i386/constraints.md (Y3): New register constraint.
14772         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
14773         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
14774         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
14775         *sse2_interleave_lowv2df.
14776
14777 2011-06-02  Julian Brown  <julian@codesourcery.com>
14778
14779         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
14780         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
14781         (arm_cortex_a5_tune): New.
14782
14783 2011-06-02  Julian Brown  <julian@codesourcery.com>
14784
14785         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
14786         * config/arm/arm.c (arm_default_branch_cost): New.
14787         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
14788         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
14789         (arm_fa726_tune): Set branch_cost field using
14790         arm_default_branch_cost.
14791         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
14792         current_tune structure.
14793         * dojump.c (tm_p.h): Include file.
14794
14795 2011-06-02  Julian Brown  <julian@codesourcery.com>
14796
14797         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
14798         tuning.
14799         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
14800         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
14801         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
14802         field.
14803         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
14804         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
14805         (arm_fa726te_tune): Add prefer_constant_pool setting.
14806         (arm_v6t2_tune, arm_cortex_tune): New.
14807         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
14808         prefer_constant_pool setting.
14809
14810 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
14811
14812         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
14813         switch statement.
14814         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
14815         (*movdf_internal) <case 6,7,8>: Ditto.
14816
14817         * config/i386/constraints.md (Y4): New register constraint.
14818         * config/i386/sse.md (vec_set<mode>_0): Merge with
14819         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
14820         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
14821         *vec_extractv2di_1_sse.
14822         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
14823         and *vec_concatv2di_rex64_sse.
14824
14825 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
14826
14827         PR target/48807
14828         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
14829         of cgraph_local_info for null before attempting to use it.
14830
14831 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
14832
14833         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
14834         (current_function_dynamic_alloc_count): Delete.
14835         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
14836         (expand_builtin_nonlocal_goto): Remove obsolete comment.
14837         (expand_builtin_update_setjmp_buf): Remove dead code.
14838         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
14839         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
14840         support.
14841         * function.c (instantiate_virtual_regs): Likewise.
14842         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
14843         for a block with a single abnormal incoming edge.
14844         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
14845         (SETJMP_VIA_SAVE_AREA): Delete.
14846         * config/sparc/sparc-protos.h (load_got_register): Declare.
14847         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
14848         (load_got_register): Make global.
14849         (sparc_frame_pointer_required): Add 'static'.
14850         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
14851         (sparc_builtin_setjmp_frame_value): New function.
14852         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
14853         (save_stack_nonlocal): New expander.
14854         (restore_stack_nonlocal): Likewise.
14855         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
14856         (nonlocal_goto_internal): New insn.
14857         (goto_handler_and_restore): Delete.
14858         (builtin_setjmp_setup): Likewise.
14859         (do_builtin_setjmp_setup): Likewise.
14860         (setjmp): Likewise.
14861         (builtin_setjmp_receiver): New expander.
14862
14863 2011-06-01  David Li  <davidxl@google.com>
14864
14865         PR middle-end/49261
14866         * tree-pretty-print.c (dump_function_header): Format cleanup.
14867
14868 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
14869
14870         PR target/49238
14871         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
14872         needed when original operands are used for msw_skip comparison.
14873
14874 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
14875
14876         PR debug/49250
14877         * var-tracking.c (add_uses, add_stores): Don't call
14878         cselib_subst_to_values on ENTRY_VALUE.
14879
14880 2011-06-01  Diego Novillo  <dnovillo@google.com>
14881
14882         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
14883         output_record_start with LTO_null instead of output_zero.
14884         (lto_output_ts_binfo_tree_pointers): Likewise.
14885         (lto_output_tree): Likewise.
14886         (output_eh_try_list): Likewise.
14887         (output_eh_region): Likewise.
14888         (output_eh_lp): Likewise.
14889         (output_eh_regions): Likewise.
14890         (output_bb): Likewise.
14891         (output_function): Likewise.
14892         (output_unreferenced_globals): Likewise.
14893         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
14894         instead of NUM_TREE_CODES.
14895         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
14896         (lto_output_int_in_range): Change << to >> when shifting VAL.
14897
14898 2011-06-01  Diego Novillo  <dnovillo@google.com>
14899
14900         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
14901         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
14902
14903 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
14904
14905         PR target/45074
14906         * optabs.h (valid_multiword_target_p): Declare.
14907         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
14908         doing multi-word operations.
14909         * optabs.c (expand_binop): Likewise.
14910         (expand_doubleword_bswap): Likewise.
14911         (expand_absneg_bit): Likewise.
14912         (expand_unop): Likewise.
14913         (expand_copysign_bit): Likewise.
14914         (multiword_target_p): New function.
14915
14916 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
14917
14918         PR rtl-optimization/48830
14919         PR rtl-optimization/48808
14920         PR rtl-optimization/48792
14921         * reload.c (push_reload): Check contains_reg_of_mode.
14922         * reload1.c (strip_paradoxical_subreg): New function.
14923         (gen_reload_chain_without_interm_reg_p): Use it to handle
14924         paradoxical subregs.
14925         (emit_output_reload_insns, gen_reload): Likewise.
14926
14927 2011-06-01  David Li  <davidxl@google.com>
14928
14929         * predict.c : Change pass name
14930         * ipa.c: Ditto.
14931         * dce.c: Ditto.
14932         * tree-profile.c: Ditto.
14933         * except.c: Ditto.
14934
14935 2011-06-01  David Li  <davidxl@google.com>
14936
14937         * tree-pretty-print.c (dump_function_header): New function.
14938         * final.c (rest_of_clean_state): Use header dumper.
14939         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
14940         * passes.c (pass_init_dump_file): Use header dumper.
14941
14942 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
14943
14944         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
14945         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
14946         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
14947         New functions.
14948         (mem_loc_descriptor): Use them.
14949
14950         * var-tracking.c (create_entry_value): New function.
14951         (vt_add_function_parameter): Use it.
14952
14953 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14954
14955         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
14956         Include <signal.h>, <ucontext.h>.
14957         (sigill_caught): Define.
14958         (sigill_hdlr): New function.
14959         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
14960         insns can be executed.
14961         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
14962         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
14963
14964 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14965
14966         * config/t-slibgcc-darwin: Move to ...
14967         * config/t-slibgcc-dummy: ... this.  Clarify comments.
14968         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
14969         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
14970         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
14971         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
14972         Remove i386/t-crtstuff from tmake_file.
14973         (i[34567]86-*-solaris2*): Remove t-svr4,
14974         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
14975         t-slibgcc-dummy.
14976         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
14977         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
14978         sparc/t-crtfm from tmake_file.
14979         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
14980         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
14981         Remove extra_parts.
14982         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
14983         * config/i386/t-nwld (SHLIB_LINK): Remove.
14984         * config/i386/t-rtems-i386: Rename to ...
14985         * config/i386/t-rtems: ... this.
14986         ($(T)crti.o, $(T)crtn.o): Remove.
14987         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
14988         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
14989         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
14990         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
14991         EXTRA_MULTILIB_PARTS): Remove.
14992         * config/sparc/t-sol2-64: Likewise.
14993         * config/sparc/t-sol2: Remove.
14994         * config/sparc/t-crtin: Remove.
14995         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
14996         * config/i386/gmon-sol2.c: Remove.
14997         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
14998         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
14999         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
15000         * config/i386/sol2-gc1.asm: Remove.
15001         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
15002         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
15003         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
15004         * config/t-slibgcc-sld: Remove.
15005
15006 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15007
15008         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
15009         base_type_for_mode with op_mode instead of mode.
15010
15011 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
15012
15013         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
15014         Cortex-A15.
15015         * config/arm/arm-tune.md: Regenerate.
15016         * config/arm/arm-tables.opt: Regenerate.
15017         * config/arm/arm.c (FL_DIV): Rename...
15018         (FL_THUMB_DIV): ... to this.
15019         (FL_ARM_DIV): Define.
15020         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
15021         (arm_arch_hwdiv): Remove.
15022         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
15023         (arm_issue_rate): Add cortexr5.
15024         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
15025         __ARM_ARCH_EXT_IDIV__.
15026         (TARGET_IDIV): Define.
15027         (arm_arch_hwdiv): Remove.
15028         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
15029         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
15030         (divsi3, udivsi3): New patterns.
15031         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
15032         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
15033
15034 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15035
15036         * ipa-utils.c (ipa_dfs_info): New field scc_no.
15037         * ipa-utils.c (searchc): Set scc_no.
15038
15039 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15040
15041         * ipa-utils.c (searchc_env): New field allow_overwritable.
15042         (searchc): do not ignore edges to overwritable nodes if indicated
15043         by env->allow_overwritable.
15044         (ipa_reduced_postorder): Set env.allow_overwritable.
15045
15046 2011-06-01  Richard Guenther  <rguenther@suse.de>
15047
15048         * tree.c (free_lang_data): Do not reset boolean_type_node nor
15049         char_type_node.
15050         * lto-streamer.c (lto_record_common_node): Take node pointer,
15051         do not register types.
15052         (lto_preload_common_nodes): Explicitly skip preloading nodes
15053         that differ between frontends.
15054
15055 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15056
15057         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
15058         NON_FLOAT_REGS.
15059
15060 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15061
15062         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
15063         parameter value for dump. Dump cost on outermost call only.
15064         (rs6000_memory_move_cost): Dump cost on outermost call only.
15065
15066 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
15067
15068         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
15069         DW_OP_GNU_convert ops.
15070
15071         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
15072         cselib_preserve_constants.
15073         (cselib_lookup_1): If cselib_preserve_constants,
15074         a new VALUE is being created for REG and there is a VALUE for the
15075         same register in wider mode, add another loc with lowpart SUBREG of
15076         the wider VALUE.
15077         (cselib_subst_to_values): Handle ENTRY_VALUE.
15078         * var-tracking.c  (replace_expr_with_values): Return NULL for
15079         ENTRY_VALUE too.
15080         * dwarf2out.c (convert_descriptor_to_signed): New function.
15081         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
15082         instead of two shifts.
15083         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
15084         the right mode if needed.
15085         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
15086         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
15087         convert_descriptor_to_signed.
15088         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
15089         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
15090
15091         PR target/48688
15092         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
15093
15094 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15095
15096         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
15097         of X87MODEI12 and SWI48x instead of SSEMODEI24.
15098         (SWI248x): New mode iterator, rename from X87MODEI.
15099         (X87MODEI): Remove mode iterator.
15100         (X87MODEI12): Ditto.
15101         (SSEMODEI24): Ditto.
15102
15103 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15104
15105         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
15106         * doc/invoke.texi: Document max-vartrack-expr-depth.
15107         * var-tracking.c (EXPR_DEPTH): New.
15108         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
15109
15110 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15111
15112         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
15113         * config/i386/sse.md: Add n to negated FMA pattern names.
15114
15115 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15116
15117         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
15118
15119 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15120
15121         * gengtype-state.c (read_state_params_structs): Initialize previous.
15122
15123 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15124
15125         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
15126         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
15127
15128 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15129
15130         * config/i386/i386.md (*movtf_internal): Avoid allocating general
15131         registers.  Penalize F*r->o alternative to prevent partial memory
15132         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
15133         CONST_DOUBLE immediates when optimizing function for size.  Do not move
15134         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
15135         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
15136         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
15137         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
15138         alternatives.
15139         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
15140
15141         (fp_register_operand splitters): Use fp_register_operand
15142         constraint.  Do not use FP_REG_P in insn condition.
15143         (any_fp_register_operand splitters): Use any_fp_register_operand
15144         constraint.  Do not use ANY_FP_REG_P in insn condition.
15145
15146 2011-05-31  Jan Hubicka  <jh@suse.cz>
15147
15148         * cgraph.h (cgraph_inline_failed_t): Give enum a name
15149         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
15150         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
15151         (lto_output_edge): Use output_enum and var_len_unsigned.
15152         (lto_output_varpool_node): Likewise.
15153         (input_overwrite_node): Do not take resolution parameter;
15154         extract it from a bitpack.
15155         (input_node): Do not read resolution; use input_enum and
15156         var_len_unsigned.
15157         (input_varpool_node): Likewise.
15158         (input_edge): Likewise.
15159         (input_cgraph_1): Likewise.
15160
15161 2011-05-31  Richard Guenther  <rguenther@suse.de>
15162
15163         * gimple.c (gimple_register_canonical_type): Do not register
15164         any types via gimple_register_type.
15165
15166 2011-05-31  Jan Hubicka  <jh@suse.cz>
15167
15168         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
15169         of thunks.
15170
15171 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
15172
15173         PR rtl-optimization/49235
15174         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
15175         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
15176
15177 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
15178
15179         PR tree-optimization/49093
15180         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
15181         data references.
15182
15183 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
15184
15185         PR debug/49047
15186         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
15187         for concrete functions containing the code of cloned functions.
15188
15189 2011-05-31  Richard Guenther  <rguenther@suse.de>
15190
15191         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
15192         to ...
15193         (forward_propagate_into_comparison_1): ... this.
15194         (forward_propagate_comparison): Rename to ...
15195         (forward_propagate_into_comparison): ... this.  Split out
15196         real forward propagation code to ...
15197         (forward_propagate_comparison): ... this.
15198         (forward_propagate_into_gimple_cond): Remove looping.
15199         (forward_propagate_into_cond): Likewise.
15200         (simplify_not_neg_expr): Return whether we have done something.
15201         (simplify_gimple_switch): Likewise.
15202         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
15203         (ssa_forward_propagate_and_combine): ... this.  Re-structure
15204         to do a forward forward-propagation walk on BBs and a backward
15205         stmt combining walk on BBs.  Consistently re-scan changed statements.
15206         (pass_forwprop): Adjust.
15207
15208 2011-05-30  Ian Lance Taylor  <iant@google.com>
15209
15210         * godump.c (go_format_type): Correct length of name added to
15211         obstack for anonymous field.
15212
15213 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
15214
15215         PR target/49186
15216         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
15217         part of the second operand is 0.
15218
15219 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
15220
15221         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
15222         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
15223         to memory for !TARGET_MEMORY_MISMATCH_STALL.
15224         (*movdf_internal_rex64): Do not penalize F->r alternative.
15225         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
15226         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
15227         when optimizing function for size.  Do not move CONST_DOUBLEs
15228         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
15229         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
15230         SUBREGs.  Do not check for MEM_P operands in the insn condition,
15231         check for ANY_FP_REGNO_P instead.
15232         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
15233         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
15234         function for speed.
15235         * config/i386/i386.c (ix86_option_override_internal): Do not
15236         set TARGET_INTEGER_DFMODE_MOVES here.
15237
15238 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
15239
15240         PR target/49168
15241         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
15242
15243 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
15244
15245         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
15246         DW_TAG_rvalue_reference_type even for
15247         -gdwarf-4 -fno-debug-types-section.
15248
15249 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15250
15251         PR tree-optimization/46728
15252         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
15253         (build_and_insert_binop): New.
15254         (gimple_expand_builtin_pow): Reorder args for
15255         build_and_insert_call; use build_and_insert_binop; add more
15256         optimizations for fractional exponents.
15257
15258 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
15259
15260         PR bootstrap/49190
15261
15262         Revert:
15263         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
15264
15265         * tree.h (struct tree_identifier): Inherit from tree_typed, not
15266         tree_common.
15267         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
15268         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
15269         TS_BASE instead of TS_COMMON.
15270         * varasm.c (assemble_name): Remove assert.
15271
15272 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
15273
15274         * config.gcc: Keep obselete list sorted.
15275
15276 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
15277             Eric Botcazou  <ebotcazou@adacore.com>
15278
15279         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
15280         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
15281         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
15282         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
15283         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
15284
15285 2011-05-30  Richard Guenther  <rguenther@suse.de>
15286
15287         * gimple.c (gimple_types_compatible_p_1): Compare record
15288         and union type members properly.
15289
15290 2011-05-30  Richard Guenther  <rguenther@suse.de>
15291
15292         PR tree-optimization/49210
15293         * ipa-split.c (split_function): Care for the case where the call
15294         result is not trivially convertible to the result holding variable.
15295
15296 2011-05-30  Richard Guenther  <rguenther@suse.de>
15297
15298         PR tree-optimization/49218
15299         * tree-vrp.c (adjust_range_with_scev): Properly check whether
15300         overflow occured.
15301
15302 2011-05-30  Richard Guenther  <rguenther@suse.de>
15303
15304         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
15305         New function split out from ...
15306         (forward_propagate_into_gimple_cond): ... here.  Adjust.
15307         (forward_propagate_into_cond): Likewise.
15308         (forward_propagate_comparison): Also propagate into
15309         comparisons on assignment RHS.  Change return value to
15310         behave similar to forward_propagate_into_cond.
15311         (tree_ssa_forward_propagate_single_use_vars): Handle
15312         strict-overflow warnings properly for forward_propagate_comparison.
15313
15314 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15315
15316         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
15317         from plugin linker.
15318         * configure: Regenerate.
15319
15320 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
15321
15322         PR tree-optimization/49199
15323         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
15324         non-reduction operands are either defined in the loop or by induction.
15325
15326 2011-05-29  Xinliang David Li  <davidxl@google.com>
15327
15328         * opts-global.c (handle_common_deferred_options): Handle new options.
15329         * passes.c (register_one_dump_file): Call register_pass_name.
15330         (execute_one_pass): Check explicit enable/disable flag.
15331         (passr_hash): New function.
15332         (passr_eq): Ditto.
15333         (register_pass_name): Ditto.
15334         (get_pass_by_name): Ditto.
15335         (pass_hash): Ditto.
15336         (pass_eq): Ditto.
15337         (enable_pass): Ditto.
15338         (disable_pass): Ditto.
15339         (is_pass_explicitly_enabled_or_disabled): Ditto.
15340
15341 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
15342
15343         * config/i386/i386.md (*movoi_internal_avx): Use
15344         standard_sse_constant_opcode for alternative 0.
15345         (*movti_internal_sse): Ditto.
15346         (*movti_internal_rex64): Use standard_sse_constant_opcode for
15347         alternative 2.
15348         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
15349         sselog1 type moves.
15350         (*movsi_internal): Ditto.
15351         (*movdi_internal): Ditto.  Add ssecvt type moves.
15352
15353 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
15354
15355         PR target/48830
15356         * rtlanal.c (simplify_subreg_regno): Adjust comment.
15357
15358 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
15359
15360         PR rtl-optimization/49095
15361         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
15362         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
15363
15364 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
15365
15366         PR target/43995
15367         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
15368         recurse_p argument.  Only follow register copies if it is set,
15369         and prevent mips_find_pic_call_symbol from recursing.
15370         (mips_find_pic_call_symbol): Add a recurse_p argument.
15371         Pass it to mips_pic_call_symbol_from_set.
15372         (mips_annotate_pic_calls): Update accordingly.
15373
15374 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
15375
15376         * emit-rtl.c (try_split): Use a loop to search for
15377         NOTE_INSN_CALL_ARG_LOCATIONs.
15378
15379 2011-05-29  Richard Guenther  <rguenther@suse.de>
15380
15381         PR tree-optimization/49217
15382         * ipa-pure-const.c (propagate_pure_const): Fix typos.
15383
15384 2011-05-28  Jan Hubicka  <jh@suse.cz>
15385
15386         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
15387         length.
15388         (string_slot_free): Remove
15389         (create_output_block): Initialize obstack.
15390         (destroy_output_block): Free obstack.
15391         (lto_string_index): Add PERSISTENT parameter; do not duplicate
15392         the string unless it needs to be added into the hash.
15393         (lto_output_string_with_length): Add persistent attribute;
15394         handle NULL strings.
15395         (lto_output_string): Add PERSISTENT parameter.
15396         (output_string_cst, output_identifier): Simplify.
15397         (lto_output_location_bitpack): Update.
15398         (lto_output_builtin_tree): Update.
15399         * lto-streamer.h (struct output_block): Add obstack.
15400         (lto_output_string, lto_output_string_with_length): Remove
15401         declarations; functions are static now.
15402
15403 2011-05-28  Jan Hubicka  <jh@suse.cz>
15404
15405         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
15406         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
15407         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
15408         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
15409         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
15410         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
15411         unpack_ts_decl_with_vis_value_fields,
15412         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
15413         lto_get_builtin_tree): Use enum and variable length i/o.
15414         * basic-block.h (profile_status_d): Add PROFILE_LAST.
15415         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
15416         New functions.
15417         (bp_pack_enum, bp_unpack_enum): New macros.
15418
15419 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15420
15421         * genrecog.c: Remove redundant forward declarations.
15422
15423 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15424
15425         * config.gcc: Deprecate mips*-*-openbsd*.
15426
15427 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15428
15429         PR bootstrap/49195
15430         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
15431         for match_op_dup.
15432
15433 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
15434
15435         PR middle-end/48981
15436         * gengtype.c (vec_prefix_type): New function.
15437         (note_def_vec): Use vec_prefix_type and change the length
15438         attribute to be based on the prefix.
15439         * vec.c: Include coretypes.h before vec.h.
15440         (struct vec_prefix): Remove.
15441         (vec_gc_p_reserve): Change the offsetof to sizeof.
15442         (vec_gc_p_reserve_exact): Likewise.
15443         (vec_heap_p_reserve): Likewise.
15444         (vec_heap_p_reserve_exact): Likewise.
15445         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
15446         (vec_stack_p_reserve): Change the offsetof to sizeof.
15447         (vec_stack_p_reserve_exact): Likewise.
15448         * vec.h (struct vec_prefix): New struct definition.
15449         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
15450         (VEC_T_GTY(T,B)): Likewise.
15451         (DEF_VEC_FUNC_P(T)): Use prefix field.
15452         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
15453         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
15454
15455 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15456
15457         PR tree-optimization/46728
15458         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
15459         (powi_as_mults): Add gimple_set_location.
15460         (build_and_insert_call): New.
15461         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
15462         0.5, 0.25, 0.75, 1./3., or 1./6.
15463
15464 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
15465
15466         * doc/contrib.texi: Update copyright years.
15467         (Contributors): Add Zdenek Sojka.
15468
15469 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
15470
15471         * c-decl.c (c_push_function_context): Copy the current statement
15472         list stack.
15473         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
15474         (finish_struct): Call building_stmt_list_p instead of checking
15475         cur_stmt_list.
15476         * c-parser.c (c_parser_postfix_expression): Likewise.
15477         * c-typeck.c (c_end_compound_stmt): Likewise.
15478         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
15479         * tree-iterator.c (stmt_list_cache): Change to a VEC.
15480         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
15481         (free_stmt_list): Likewise.
15482         * tree.h (struct tree_statement_list): Include typed_tree instead
15483         of tree_common.
15484         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
15485         as TS_TYPED instead of TS_COMMON.
15486
15487 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15488             Uros Bizjak  <ubizjak@gmail.com>
15489
15490         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
15491         (HAVE_AS_IX86_TLSGDPTL): Define.
15492         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
15493         (HAVE_AS_IX86_TLSLDMPLT): Define.
15494         * configure: Regenerate.
15495         * config.in: Regenerate.
15496         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
15497         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
15498         TARGET_SUN_TLS, use @tlsgdplt or @plt.
15499         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
15500         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
15501         @tlsldmplt or @plt.
15502         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
15503
15504 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
15505
15506         * sched-int.h (struct _haifa_deps_insn_data): New members cond
15507         and reverse_cond.
15508         (INSN_COND, INSN_REVERSE_COND): New macros.
15509         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
15510         once.
15511         (sched_get_condition_with_rev): Cache the results, and look them up
15512         if possible.
15513         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
15514         are clobbered by the current insn.
15515         * target.def (exposed_pipline): New sched data hook.
15516         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
15517         * doc/tm.texi: Regenerate.
15518
15519 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15520
15521         PR tree-optimization/49170
15522         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
15523         sincos or cexp.
15524
15525 2011-05-27  Richard Guenther  <rguenther@suse.de>
15526
15527         PR middle-end/49189
15528         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
15529         of comparisons.
15530
15531 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
15532
15533         * haifa-sched.c (sched_scan_info): Remove.
15534         (schedule_block): Call sched_extend_luids rather than sched_init_luids
15535         with NULL args.
15536         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
15537         Remove functions.
15538         (sched_scan): Remove.
15539         (sched_extend_luids): Renamed from luids_extend_insn and no longer
15540         static.  All callers changed.
15541         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
15542         static.  All callers changed.
15543         (sched_init_luids): Remove all arguments except the first.  All
15544         callers changed.  Don't use sched_scan.
15545         (haifa_init_h_i_d): Likewise.
15546         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
15547         manually rather than using sched_init_luids.  Likewise with
15548         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
15549         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
15550         rather than sched_init_luids with NULL args.
15551         * sel-sched-ir.c (new_insns): Remove variable.
15552         (sched_scan): New static function, previously in haifa-sched.c.  Remove
15553         all arguments but the first two; all callers changed.
15554         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
15555         rather than sched_init_luids.
15556         (sel_init_bbs): Remove second argument.  All callers changed.
15557         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
15558         with NULL arguments.
15559         (create_insn_rtx_from_pattern): Likewise.
15560         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
15561         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
15562         (sched_init_insn_luid, sched_extend_luids): Declare.
15563         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
15564         declarations.
15565
15566 2011-05-27  Richard Guenther  <rguenther@suse.de>
15567
15568         PR middle-end/49177
15569         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
15570         A CMP B ? (T) true : (T) false for non-integral types T again.
15571
15572 2011-05-27  Jan Hubicka  <jh@suse.cz>
15573
15574         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
15575         so 0 means NULL string.
15576         (lto_output_string_with_length): ... here.
15577         (lto_output_string, output_string_cst, output_identifier): Update
15578         handling of NULL strings.
15579         (lto_output_location_bitpack): New function.
15580         (lto_output_location): Use it.
15581         (lto_output_tree_ref): Use output_record_start.
15582         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
15583         len values.
15584         * lto-streamer-in.c (string_for_index): Break out from ...; offset
15585         values by 1.
15586         (input_string_internal): ... here;
15587         (input_string_cst, input_identifier, lto_input_string): Update handling
15588         of NULL strings.
15589         (lto_input_location_bitpack): New function
15590         (lto_input_location): Use it.
15591         (unpack_ts_type_common_value_fields): Pack align & alias in var len
15592         values.
15593         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
15594         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
15595         (bp_pack_value): Sanity check the value range.
15596         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
15597         New functions.
15598         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
15599         New functions.
15600
15601 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
15602
15603         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
15604         call_arg_location instructions down the floor.
15605
15606 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
15607
15608         PR rtl-optimization/49154
15609         * ira.c (setup_pressure_classes): Process class without sublcasses
15610         as a candidate for pressure classes.
15611
15612 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
15613
15614         PR rtl-optimization/48575
15615         * genrecog.c (position_type): New enum.
15616         (position): New structure.
15617         (decision): Use position structure instead of a string.
15618         (root_pos, peep2_insn_pos_list): New variables.
15619         (next_position, compare_positions): New functions.
15620         (new_decision): Use position structures instead of strings.
15621         (maybe_both_true): Likewise.
15622         (change_state): Likewise.
15623         (write_tree): Likewise.
15624         (make_insn_sequence): Likewise.
15625
15626 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
15627
15628         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
15629         TS_BASE instead of TS_COMMON.
15630         (find_decls_types_r): Check for TS_TYPED structure before looking at
15631         TREE_TYPE.
15632         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
15633         Add chain field.
15634         (BLOCK_CHAIN): Use new chain field.
15635
15636 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
15637
15638         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
15639         moves expensive on Power7 also.
15640
15641 2011-05-26  Richard Guenther  <rguenther@suse.de>
15642
15643         * fold-const.c (fold_unary_loc): Remove bogus code.
15644
15645 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
15646
15647         * tree.h (struct tree_identifier): Inherit from tree_typed, not
15648         tree_common.
15649         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
15650         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
15651         TS_BASE instead of TS_COMMON.
15652         * varasm.c (assemble_name): Remove assert.
15653
15654 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
15655
15656         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
15657         substituted first.
15658         * libgcc-std.ver: Delete file.
15659
15660 2011-05-26  Richard Guenther  <rguenther@suse.de>
15661
15662         PR tree-optimization/48702
15663         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
15664         only when we know the base address is within bounds.
15665         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
15666         assume the base address of TARGET_MEM_REFs is in bounds.
15667
15668 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15669
15670         PR target/49099
15671         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
15672         declaration in TARGET_SOLARIS.
15673
15674 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
15675
15676         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
15677         The instruction is then expanded explicitly.
15678         (supported_compare): Callable instruction.
15679         (compare): Likewise.
15680
15681 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
15682
15683         PR c++/49165
15684         * gimplify.c (shortcut_cond_r): Don't special case
15685         COND_EXPRs if they have void type on one of their arms.
15686
15687 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
15688
15689         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
15690         to reduce duplication, and to achieve a slightly more logical order
15691         of operations.
15692
15693 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
15694
15695         PR tree-optimization/49161
15696         * tree-vrp.c (struct case_info): New type.
15697         (compare_case_labels): Sort case_info structs instead of
15698         trees, and not primarily by CASE_LABEL uids but by
15699         label_for_block indexes.
15700         (find_switch_asserts): Put case labels into struct case_info
15701         array instead of TREE_VEC, adjust sorting, compare label_for_block
15702         values instead of CASE_LABELs.
15703
15704 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15705
15706         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
15707         ("orndi3_neon"): Likewise.
15708         ("bic<mode>3_neon"): Likewise.
15709
15710 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
15711
15712         PR tree-optimization/49038
15713         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
15714         Ensure at least one epilogue iteration if required by data
15715         accesses with gaps.
15716         * tree-vectorizer.h (struct _loop_vec_info): Add new field
15717         to mark loops that require peeling for gaps.
15718         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
15719         (vect_get_known_peeling_cost): Take peeling for gaps into
15720         account.
15721         (vect_transform_loop): Generate epilogue if required by data
15722         access with gaps.
15723         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
15724         loop as requiring an epilogue if there are gaps in the end of
15725         the strided group.
15726
15727 2011-05-25  Ian Lance Taylor  <iant@google.com>
15728
15729         * godump.c (go_format_type): Output the first field with a usable
15730         Go type, if any.
15731
15732 2011-05-25  Ian Lance Taylor  <iant@google.com>
15733
15734         * godump.c (go_format_type): Check for invalid type names, pointer
15735         target types, and struct field types.
15736
15737 2011-05-25  Jason Merrill  <jason@redhat.com>
15738
15739         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
15740
15741 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
15742
15743         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
15744
15745 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15746
15747         * config/i386/i386.md (*movqi_extv_1)): Put back
15748         "register_operand" check in "type" calculation.
15749         (*movqi_extzv_2): Likewise.
15750
15751 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15752
15753         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
15754
15755 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
15756
15757         PR bootstrap/49160
15758         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
15759         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
15760         __divxc3, __divtc3): Wrap definitions in #ifndef.
15761
15762 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15763
15764         PR target/49142
15765         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
15766         "register_operand" check and replace q_regs_operand with
15767         QIreg_operand in "type" calculation.
15768         (*movqi_extv_1): Likewise.
15769         (*movqi_extzv_2_rex64): Likewise.
15770         (*movqi_extzv_2): Likewise.
15771
15772         * config/i386/predicates.md (QIreg_operand): New.
15773
15774 2011-05-25  Richard Guenther  <rguenther@suse.de>
15775
15776         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15777         type-based offset disambiguation, streamline MEM_REF and
15778         TARGET_MEM_REF handling.
15779
15780 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15781
15782         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
15783         (bdesc_special_args): Add pause intrinsic.
15784
15785         * config/i386/i386.md (UNSPEC_PAUSE): New.
15786         (pause): Likewise.
15787         (*pause): Likewise.
15788         * config/i386/ia32intrin.h (__pause): Likewise.
15789
15790         * doc/extend.texi (X86 Built-in Functions): Add documentation for
15791         pause intrinsic.
15792
15793 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15794
15795         PR tree-optimization/46728
15796         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
15797         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
15798
15799 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
15800
15801         * tree.h (struct tree_exp): Inherit from struct tree_typed.
15802         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
15803         instead of TS_COMMON.
15804
15805 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
15806
15807         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
15808         LIBGCC2_GNU_PREFIX is defined.
15809         (__N): New macro.
15810         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
15811         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
15812         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
15813         __clz_tab): Define using __N.
15814         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
15815         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
15816         * target.def (libfunc_gnu_prefix): New hook.
15817         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
15818         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
15819         * doc/tm.texi: Regenerate.
15820         * system.h (LIBGCC2_GNU_PREFIX): Poison.
15821         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
15822         account.
15823         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
15824         (init_optabs): Likewise for the bswap libfuncs.
15825         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
15826         and divide.
15827         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
15828         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
15829         * libgcc-std.ver: Remove.
15830         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
15831         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
15832         libgcc-std.ver.
15833         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15834         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
15835         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
15836         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
15837         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
15838         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15839         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15840         * config/fixed-bit.h (FIXED_OP): Define differently depending on
15841         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
15842         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
15843
15844 2011-05-25  Jan Hubicka  <jh@suse.cz>
15845
15846         * lto-streamer-out.c (output_record_start): Use lto_output_enum
15847         (lto_output_tree): Use output_record_start.
15848         * lto-streamer-in.c (input_record_start): Use lto_input_enum
15849         (lto_get_pickled_tree): Use input_record_start.
15850         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
15851         (lto_value_range_error): New function.
15852         * lto-streamer.h (lto_value_range_error): Declare.
15853         (lto_output_int_in_range, lto_input_int_in_range): New functions.
15854         (lto_output_enum, lto_input_enum): New macros.
15855
15856 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15857
15858         * common.opt (flag_stack_usage_info): New variable.
15859         (-Wstack-usage): New option.
15860         * doc/invoke.texi (Warning options): Document -Wstack-usage.
15861         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
15862         <OPT_fstack_usage>: Likewise.
15863         * toplev.c (output_stack_usage): Handle -Wstack-usage.
15864         * calls.c (expand_call): Test flag_stack_usage_info variable instead
15865         of flag_stack_usage.
15866         (emit_library_call_value_1): Likewise.
15867         * explow.c (allocate_dynamic_stack_space): Likewise.
15868         * function.c (instantiate_virtual_regs ): Likewise.
15869         (prepare_function_start): Likewise.
15870         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
15871         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
15872         * config/arm/arm.c (arm_expand_prologue): Likewise.
15873         (thumb1_expand_prologue): Likewise.
15874         * config/avr/avr.c (expand_prologue): Likewise.
15875         * config/i386/i386.c (ix86_expand_prologue): Likewise.
15876         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
15877         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
15878         * config/mips/mips.c (mips_expand_prologue): Likewise.
15879         * config/pa/pa.c (hppa_expand_prologue): Likewise.
15880         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
15881         * config/s390/s390.c (s390_emit_prologue): Likewise.
15882         * config/sh/sh.c (sh_expand_prologue): Likewise.
15883         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
15884         * config/spu/spu.c (spu_expand_prologue): Likewise.
15885
15886 2011-05-25  Richard Guenther  <rguenther@suse.de>
15887
15888         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
15889         (gimple_canonical_types_compatible_p): Likewise.
15890
15891 2011-05-25  Jan Hubicka  <jh@suse.cz>
15892
15893         PR middle-end/49062
15894         * ipa.c (function_and_variable_visibility): Only add to same
15895         comdat group list if DECL_ONE_ONLY.
15896
15897 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
15898
15899         PR rtl-optimization/49014
15900         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
15901
15902 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
15903
15904         PR target/49128
15905         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
15906
15907 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
15908
15909         PR rtl-optimization/48757
15910         * ira-build.c (loop_with_eh_edge_p): Rename to
15911         loop_with_complex_edge_p, check edges on complexity, make function
15912         conditional.
15913         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
15914         conditional.
15915
15916 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
15917
15918         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
15919         force flag_ira_share_save_slots to 0.
15920
15921 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
15922
15923         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
15924         (vt_initialize): Set PROLOGUE_BB unconditionally.
15925         Add block comment about CFA_BASE_RTX machinery.
15926         Reset FP_CFA_OFFSET to -1 on all invalid paths.
15927         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
15928
15929 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
15930
15931         PR objc/48187
15932         * c-parser.c (c_parser_objc_class_instance_variables): More robust
15933         parsing of syntax error in ObjC instance variable lists.  In
15934         particular, avoid an infinite loop if there is a stray ']'.
15935         Updated error message.
15936
15937 2011-05-24  Ian Lance Taylor  <iant@google.com>
15938
15939         * godump.c (go_define): Don't accept a string immediately after
15940         another operand.
15941
15942 2011-05-24  Ian Lance Taylor  <iant@google.com>
15943
15944         * godump.c (struct godump_container): Add invalid_hash field.
15945         (go_format_type): Return false if type is found in invalid_hash.
15946         (go_output_typedef): Add invalid type to invalid_hash.
15947         (go_finish): Create and delete invalid_hash.
15948
15949 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15950
15951         PR tree-optimization/46728
15952         * tree-ssa-math-opts.c (powi_table): New.
15953         (powi_lookup_cost): New.
15954         (powi_cost): New.
15955         (powi_as_mults_1): New.
15956         (powi_as_mults): New.
15957         (gimple_expand_builtin_powi): New.
15958         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
15959         (gate_cse_sincos): Remove sincos/cexp restriction.
15960
15961 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15962
15963         PR target/3746
15964         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
15965         mips-tdump native.
15966         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
15967         * mips-tdump.c: Likewise.
15968
15969 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15970
15971         PR target/49128
15972         * config/i386/driver-i386.c (host_detect_local_cpu): Always
15973         add -mno-XXX.  Handle FMA.
15974
15975 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
15976
15977         PR rtl-optimization/48633
15978         * ira-build.c (loop_with_eh_edge_p): New function.
15979         (mark_loops_for_removal): Use it.
15980
15981 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
15982
15983         PR rtl-optimization/48971
15984         * ira.c (setup_pressure_classes): Don't check register move cost
15985         for classes with one registers.  Don't add pressure class if there
15986         is a pressure class with the same available hard registers.
15987         Check contains_reg_of_mode.  Fix a typo in collecting
15988         temp_hard_regset.  Ignore hard registers not belonging to a class.
15989
15990 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
15991
15992         PR target/49133
15993         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
15994
15995 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
15996             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15997
15998         PR gcov-profile/48845
15999         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
16000
16001 2011-05-24  Richard Guenther  <rguenther@suse.de>
16002
16003         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
16004         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
16005         (gimple_types_compatible_p_1): Adjust.
16006         (iterative_hash_canonical_type): Do not bother about complete vs.
16007         incomplete types.
16008         (gimple_canonical_types_compatible_p): Likewise.
16009
16010 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16011
16012         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
16013
16014 2011-05-24  Richard Guenther  <rguenther@suse.de>
16015
16016         PR bootstrap/49078
16017         * gimple.c (gimple_register_canonical_type): Revert
16018         previous change.
16019         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
16020         does not for a tree for the case where it matters.  Cache
16021         pointer-type alias-sets.
16022
16023 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
16024
16025         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
16026         (OBJS): Remove options.o, opts-common.o and prefix.o.
16027         (OBJS-libcommon-target): New.
16028         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
16029         (BACKEND): Include libcommon-target.a.
16030         (MOSTLYCLEANFILES): Include libcommon-target.a.
16031         (libcommon-target.a): New.
16032         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
16033         prefix.o.
16034
16035 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
16036
16037         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
16038         parts of output shared with the driver.
16039         * optc-gen.awk: Don't generate parts of output not shared with the
16040         driver.
16041         * opth-gen.awk: Remove GCC_DRIVER conditionals.
16042         * doc/options.texi (SourcerInclude): Mention options-save.c.
16043         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
16044         (OBJS): Add options-save.o.
16045         (options-save.c, options-save.o): New.
16046         (options.o): Update dependencies.
16047         (gcc-options.o): Remove.
16048         (mostlyclean): Remove options-save.c.
16049
16050 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16051
16052         PR debug/49032
16053         * dbxout.c: Include cgraph.h.
16054         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
16055         and without value expr, return NULL if no varpool node exists for
16056         it or if it is not needed.
16057         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
16058
16059         PR c/49120
16060         * c-decl.c (start_decl): Convert expr to void_type_node.
16061
16062 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
16063
16064         PR rtl-optimization/48826
16065         * emit-rtl.c (try_split): When splitting a call that is followed
16066         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
16067
16068 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16069
16070         * cfgexpand.c (expand_debug_expr): For unused non-addressable
16071         parameters passed in memory prefer using DECL_INCOMING_RTL over
16072         the pseudos it will be copied into.
16073
16074 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
16075
16076         PR target/47315
16077         * config/i386/i386.c (ix86_option_override_internal): Save the
16078         initial options after checking vzeroupper.
16079
16080 2011-05-23  David Li  <davidxl@google.com>
16081
16082         PR tree-optimization/48988
16083         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
16084         Initialize has_valid_pred for each pred chain.
16085
16086 2011-05-23  Richard Guenther  <rguenther@suse.de>
16087
16088         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
16089         (iterative_hash_gimple_type): Always hash type names.
16090
16091 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
16092
16093         * c-typeck.c (build_function_call_vec): Tweak call to
16094         check_function_arguments.
16095
16096 2011-05-23  Richard Guenther  <rguenther@suse.de>
16097
16098         PR tree-optimization/49115
16099         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
16100         is not necessarily carried out, do not claim it kills the ref.
16101         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
16102
16103 2011-05-23  Richard Guenther  <rguenther@suse.de>
16104
16105         PR middle-end/15419
16106         * builtins.c (fold_builtin_memory_op): Be less restrictive about
16107         what pointer types we accept for folding.
16108
16109 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16110
16111         * gthr-gnat.c: Remove.
16112         * gthr-gnat.h: Remove.
16113         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
16114         * config/t-freebsd (LIB2ADDEH): Likewise.
16115         * config/t-linux (LIB2ADDEH): Likewise.
16116         * config/t-sol2 (LIB2ADDEH): Likewise.
16117         * config/ia64/t-vms (LIB2ADDEH): Likewise.
16118         * configure.ac (target_thread_file): Remove gnat handling.
16119         * configure: Regenerate.
16120         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
16121
16122 2011-05-23  Tristan Gingold  <gingold@adacore.com>
16123             Eric Botcazou  <ebotcazou@adacore.com>
16124
16125         * gcov.c (create_file_names): If no object directory is specified,
16126         keep the directory of the file.
16127
16128 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16129
16130         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
16131         * configure: Regenerate.
16132
16133 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16134
16135         PR middle-end/48973
16136         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
16137         failed and the comparison has a single bit signed type, use
16138         constm1_rtx instead of const1_rtx for true value.
16139         (do_store_flag): If ops->type is single bit signed type, disable
16140         signel bit test optimization and pass -1 instead of 1 as last
16141         parameter to emit_store_flag_force.
16142
16143 2011-05-23  Tom de Vries  <tom@codesourcery.com>
16144
16145         PR target/45098
16146         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
16147         function.
16148         (infer_loop_bounds_from_undefined): Use new function.
16149
16150 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
16151
16152         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
16153         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
16154         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
16155         and -O0 otherwise.
16156         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
16157
16158 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16159
16160         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
16161         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
16162         returns true.
16163
16164 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
16165
16166         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
16167
16168 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16169
16170         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
16171         UNSPEC_MOVE_PIC pattern.
16172
16173 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16174
16175         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
16176         (sparc-*-rtems*): Likewise.
16177         (sparc64-*-elf*): Likewise.
16178         (sparc64-*-rtems*): Likewise.
16179         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
16180         * config/sparc/t-crtin: New file.
16181         * config/sparc/t-sol2 (crti.o): Delete rule.
16182         (crtn.o): Likewise.
16183         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
16184         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
16185         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
16186         (ENDFILE_SPEC): Add crtn.o.
16187
16188 2011-05-22  Tom de Vries  <tom@codesourcery.com>
16189
16190         PR middle-end/48689
16191         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
16192         CODE_CONTAINS_STRUCT (TS_COMMON).
16193
16194 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
16195
16196         PR middle-end/49029
16197         * expmed.c (extract_fixed_bit_field): Test whether target can be used
16198         only after deciding which mode to use.
16199
16200 2011-05-22  Tom de Vries  <tom@codesourcery.com>
16201
16202         PR target/45098
16203         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
16204         for call to get_shiftadd_cost.
16205
16206 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
16207
16208         PR target/49104
16209         * config/i386/cpuid.h (bit_MMXEXT): New define.
16210
16211 2011-05-22  Nick Clifton  <nickc@redhat.com>
16212
16213         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
16214         initialisation of non-existant args[2] element.  Use args[] array
16215         not arg[] array to pass arguments to build_function_type_list.
16216
16217 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
16218
16219         PR tree-optimization/49087
16220         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
16221
16222 2011-05-21  Jason Merrill  <jason@redhat.com>
16223
16224         PR c++/49092
16225         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
16226         static storage duration.
16227
16228 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
16229
16230         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
16231         frame pointer.
16232
16233 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
16234
16235         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
16236         false if there are call-saved registers here...
16237         (sparc_can_use_return_insn_p): ...but here instead.
16238         (save_or_restore_regs): Fix thinko.
16239         (sparc_expand_prologue): Use current_function_is_leaf.
16240         (sparc_frame_pointer_required): Likewise.
16241
16242 2011-05-21  Nick Clifton  <nickc@redhat.com>
16243
16244         PR target/49098
16245         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
16246
16247 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
16248
16249         * gengtype.c (walk_type): Implemented "atomic" GTY option.
16250         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
16251
16252 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
16253
16254         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
16255         * optc-gen.awk: Move common code to opt-read.awk.
16256         * opth-gen.awk: Likewise.
16257         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
16258
16259 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
16260
16261         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
16262
16263 2011-05-20  Tom de Vries  <tom@codesourcery.com>
16264
16265         PR target/45098
16266         * tree-ssa-loop-ivopts.c: Include expmed.h.
16267         (get_shiftadd_cost): New function.
16268         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
16269
16270 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
16271
16272         PR bootstrap/49086
16273         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
16274         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
16275
16276 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
16277
16278         * Makefile.in: Update comment referring to $(OBJS-common).
16279
16280 2011-05-20  Ian Lance Taylor  <iant@google.com>
16281
16282         * godump.c (go_output_typedef): Put enum constants in the macro
16283         hash table to avoid duplicate Go const definitions.
16284
16285 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
16286
16287         * Makefile.in (LIBDEPS): Add libcommon.a.
16288         (LIBS): Likewise.
16289         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
16290         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
16291         pretty-print.o and version.o.
16292         (OBJS-libcommon): New.
16293         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
16294         (BACKEND): Add libcommon.a.
16295         (MOSTLYCLEANFILES): Likewise.
16296         (libcommon.a): New.
16297         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
16298         (cpp$(exeext)): Likewise.
16299         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
16300         pretty-print.o and input.o.
16301         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
16302         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
16303         (errors.o): Remove.
16304         (mips-tfile): Don't explicitly use version.o.
16305         (mips-tdump): Likewise.
16306         (gcov.o): Depend on $(DIAGNOSTIC_H).
16307         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
16308         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
16309         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
16310         * gcov-dump.c: Include intl.h and diagnostic.h.
16311         (main): Initialize diagnostics.
16312         * gcov.c: Include diagnostic.h.
16313         (fnotice): Remove.
16314         (main): Initialize diagnostics.
16315         * lto-wrapper.c: Include diagnostic.h.
16316         (main): Initialize diagnostics.
16317
16318 2011-05-20  Michael Matz  <matz@suse.de>
16319
16320         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
16321
16322 2011-05-20  Michael Matz  <matz@suse.de>
16323             Richard Guenther  <rguenther@suse.de>
16324
16325         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
16326         use lto_streamer_cache_append directly instead of returning a VEC.
16327         (preload_common_node): Remove.
16328         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
16329         track seen nodes.
16330         (lto_streamer_cache_create): Call lto_preload_common_nodes.
16331
16332 2011-05-20  Richard Guenther  <rguenther@suse.de>
16333
16334         PR tree-optimization/49079
16335         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
16336         MEM_REFs correctly for the trailing array access detection.
16337         Special case constants the same way as decls for overall size
16338         constraining.
16339
16340 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
16341
16342         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
16343         argument expansion.
16344
16345 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
16346
16347         PR tree-optimization/49073
16348         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
16349         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
16350         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
16351
16352 2011-05-20  Richard Guenther  <rguenther@suse.de>
16353
16354         PR middle-end/48849
16355         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
16356         of pointer types the same way the middle-end does.
16357
16358 2011-05-20  Richard Guenther  <rguenther@suse.de>
16359
16360         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
16361         or pointer-to chains.  Delay all fixup to uniquify_nodes.
16362
16363 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
16364
16365         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
16366         (fma4_fmaddsub): Likewise
16367
16368 2011-05-19  Jan Hubicka  <jh@suse.cz>
16369
16370         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
16371         (GIMPLE_TYPE_PAIR_SIZE): New macro.
16372         (type_pair_cache): New static var.
16373         (lookup_type_pair): Use fixed sized custom hash; make inline.
16374         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
16375         calls of lookup_type_pair.
16376         (print_gimple_types_stats): Remove cache stats.
16377         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
16378         and gtc_ob.
16379
16380 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
16381
16382         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
16383         when TARGET_RDRND is active.
16384         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
16385         Generate dummy SImode target register when target is NULL.
16386
16387 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
16388
16389         * config/arm/arm-fpus.def: New.
16390         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
16391         arm-fpus.def.
16392         * config/arm/arm-tables.opt: Regenerate.
16393         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
16394         (arm_option_override): Don't decode FPU name to string here.
16395         * config/arm/arm.opt (mfpu=): Use Enum.
16396         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
16397         Update dependencies.
16398
16399 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
16400
16401         * collect2.c: Include diagnostic.h.
16402         (fatal_perror, fatal, error, fancy_abort): Remove.
16403         (main): Set progname.  Call xmalloc_set_program_name and
16404         diagnostic_initialize.
16405         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
16406         scan_libraries, resolve_lib_name): Call fatal_error instead of
16407         fatal and fatal_perror.
16408         * collect2.h (error, fatal, fatal_perror): Don't declare.
16409         * tlink.c: Include diagnostic-core.h.
16410         (recompile_files): Call fatal_error instead of fatal_perror.
16411         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
16412         pretty-print.o and input.o.
16413         (collect2.o, tlink.o): Update dependencies.
16414
16415 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16416
16417         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
16418
16419 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16420
16421         PR target/40483
16422         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
16423         COMDAT group syntax, both SPARC and x86 variants.
16424         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
16425         * configure: Regenerate.
16426         * config/sol2.h (TARGET_SOLARIS): Define.
16427         (PUSHSECTION_FORMAT): Remove.
16428         (SECTION_NAME_FORMAT): Define.
16429         * config/sol2.c: Include hashtab.h.
16430         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
16431         expansion, using SECTION_NAME_FORMAT.
16432         (solaris_comdat_htab): New variable.
16433         (struct comdat_entry): Define.
16434         (comdat_hash): New function.
16435         (comdat_eq): New function.
16436         (solaris_elf_asm_comdat_section): New function.
16437         (solaris_define_comdat_signature): New function.
16438         (solaris_code_end): New function.
16439         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
16440         (solaris_code_end): Declare.
16441         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
16442         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
16443         solaris_code_end.
16444         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
16445         Remove ATTRIBUTE_UNUSED.
16446         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
16447         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
16448         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
16449         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
16450         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
16451         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
16452         (PUSHSECTION_FORMAT): Remove.
16453         (SECTION_NAME_FORMAT): Redefine.
16454
16455 2011-05-19  Kai Tietz  <ktietz@redhat.com>
16456
16457         * tree-cfg.c (verify_gimple_assign_binary): Barf on
16458         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
16459         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
16460
16461 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
16462             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16463
16464         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
16465
16466 2011-05-19  Richard Guenther  <rguenther@suse.de>
16467
16468         PR middle-end/48985
16469         * tree-object-size.c (addr_object_size): If the pointed-to
16470         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
16471
16472 2011-05-19  Richard Guenther  <rguenther@suse.de>
16473
16474         * gimple.c (gimple_types_compatible_p_1): Compare names of
16475         the types themselves.
16476         (iterative_hash_gimple_type): And hash them that way.
16477         (gimple_register_type_1): If we register a main variant properly
16478         initialize the leader to ourselves.
16479
16480 2011-05-19  Tom de Vries  <tom@codesourcery.com>
16481
16482         PR target/45098
16483         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
16484         get_loop_invariant_expr_id.
16485         (get_loop_invariant_expr_id): Use get_expr_id.
16486         (parm_decl_cost): New function.
16487         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
16488         Improve bound cost estimation.  Use different inv_expr_id for elim and
16489         express cases.
16490
16491 2011-05-19  Tom de Vries  <tom@codesourcery.com>
16492
16493         PR target/45098
16494         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
16495         cost_base.cost == 0.
16496
16497 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16498
16499         PR target/49002
16500         * config/i386/sse.md
16501         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
16502         load cast.
16503
16504 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
16505
16506         PR tree-optimization/49039
16507         * tree-vrp.c (extract_range_from_binary_expr): For
16508         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
16509         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
16510
16511 2011-05-18  Tom de Vries  <tom@codesourcery.com>
16512
16513         PR target/45098
16514         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
16515
16516 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
16517
16518         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
16519         (*tls_global_dynamic_64): Ditto.
16520         (*tls_local_dynamic_base_32_gnu): Ditto.
16521         (*tls_local_dynamic_base_64): Ditto.
16522         (tls_initial_exec_64_sun): Ditto.
16523
16524 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
16525
16526         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
16527         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
16528         bf592-none.
16529         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
16530         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
16531         * config/bfin/bfin.c (bfin_cpus): Add bf592.
16532         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16533         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
16534         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
16535         * config/bfin/elf.h (LIB_SPEC): Add bf592.
16536
16537 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
16538
16539         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
16540         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
16541         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
16542         target_thread_pointer, arm_structure_size_boundary, struct
16543         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
16544         struct abi_name, arm_all_abis): Remove.
16545         (arm_option_override) Don't process most enumerated option values here.
16546         Don't process target_fpe_name here.  Work with integer not string for
16547         structure size boundary; use separate diagnostics for each case.
16548         * config/arm/arm.h (enum float_abi_type, enum
16549         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
16550         to arm-opts.h.
16551         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
16552         arm_structure_size_boundary): Remove.
16553         * config/arm/arm.opt (mabi=): Use Enum and Init.
16554         (arm_abi_type): New Enum and EnumValue entries.
16555         (mfloat-abi=): Use Enum and Init.
16556         (float_abi_type): New Enum and EnumValue entries.
16557         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
16558         (mfp16-format=): Use Enum and Init.
16559         (arm_fp16_format_type): New Enum and EnumValue entries.
16560         (mstructure-size-boundary=): Use UInteger and Init.
16561         (mtp=): Use Enum and Init.
16562         (arm_tp_type): New Enum and EnumValue entries.
16563
16564 2011-05-18  Richard Guenther  <rguenther@suse.de>
16565
16566         PR tree-optimization/49018
16567         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
16568         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
16569         gimple_has_side_effects.
16570
16571 2011-05-18  Richard Guenther  <rguenther@suse.de>
16572
16573         * gimple.c (gimple_register_type_1): New function, split out from ...
16574         (gimple_register_type): ... here.  Avoid infinite recursion.
16575
16576 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
16577
16578         PR tree-optimization/41881
16579         * tree-vectorizer.h (struct _loop_vec_info): Add new field
16580         reduction_chains along with a macro for its access.
16581         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
16582         (destroy_loop_vec_info): Free reduction chains.
16583         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
16584         (vect_is_slp_reduction): New function.
16585         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
16586         (vect_create_epilog_for_reduction): Support SLP reduction chains.
16587         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
16588         definition types for reduction chains.
16589         (vect_supported_load_permutation_p): Don't allow permutations for
16590         reduction chains.
16591         (vect_analyze_slp_instance): Support reduction chains.
16592         (vect_analyze_slp): Try to build SLP instance from reduction chains.
16593         (vect_get_constant_vectors):  Handle reduction chains.
16594         (vect_schedule_slp_instance): Mark the first statement of the
16595         reduction chain as reduction.
16596
16597 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
16598
16599         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
16600         names for group elements access.
16601         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
16602         reduction chains as well.  Remove data reference and interleaving
16603         related words from the fields names.
16604         * tree-vect-loop.c (vect_transform_loop): Use new names for group
16605         elements access.
16606         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
16607         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
16608         vect_update_interleaving_chain, vect_same_range_drs,
16609         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
16610         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
16611         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
16612         vect_analyze_group_access, vect_analyze_data_ref_access,
16613         vect_create_data_ref_ptr, vect_transform_strided_load,
16614         vect_record_strided_load_vectors): Likewise.
16615         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
16616         vect_model_load_cost, vectorizable_store, vectorizable_load,
16617         vect_remove_stores, new_stmt_vec_info): Likewise.
16618         * tree-vect-slp.c (vect_build_slp_tree,
16619         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
16620
16621 2011-05-18  Richard Guenther  <rguenther@suse.de>
16622
16623         PR middle-end/48989
16624         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
16625         operand verification.
16626         (verify_gimple_assign_binary): Likewise.
16627         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
16628         to non-1-precision BOOLEAN_TYPEs.
16629
16630 2011-05-18  Tom de Vries  <tom@codesourcery.com>
16631
16632         PR target/45098
16633         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
16634
16635 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
16636
16637         PR tree-optimization/49000
16638         * tree-ssa.c (execute_update_addresses_taken): Call
16639         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
16640         be rewritten and decl has been marked for renaming, reset
16641         the debug stmt.
16642
16643 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
16644
16645         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
16646         enum_opts_set when testing if attributes have set -mfpmath=.
16647
16648 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
16649
16650         * config/mips/mips.c (mips_handle_option): Remove unused variable.
16651
16652 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
16653
16654         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
16655         info->entry with 0
16656         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
16657         id.transform_lang_insert_block with NULL.
16658
16659 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
16660
16661         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
16662         (output_fp_compare): Change args 3 and 4 to bool.
16663         (ix86_expand_call): Change arg 6 to bool.
16664         (ix86_attr_length_immediate_default): Change arg 2 to bool.
16665         (ix86_attr_length_vex_default): Change arg 3 to bool.
16666         * config/i386/i386.md: Update all uses.
16667         * config/i386/i386.c: Ditto.
16668         (ix86_flags_dependent): Change return type to bool.
16669
16670 2011-05-17  Richard Guenther  <rguenther@suse.de>
16671
16672         * gimple.c (type_hash_pair_compare): Fix comparison.
16673
16674 2011-05-17  Richard Guenther  <rguenther@suse.de>
16675
16676         * gimple.c (iterative_hash_gimple_type): Simplify singleton
16677         case some more, fix final hash value of the non-singleton case.
16678
16679 2011-05-17  Richard Guenther  <rguenther@suse.de>
16680
16681         PR bootstrap/49013
16682         Revert
16683         2011-05-16  Richard Guenther  <rguenther@suse.de>
16684
16685         * gimple.c (gimple_types_compatible_p_1): Use names of the
16686         type itself, not its main variant.
16687         (iterative_hash_gimple_type): Likewise.
16688
16689 2011-05-17  Richard Guenther  <rguenther@suse.de>
16690
16691         * gimple.c (gimple_register_canonical_type): Use the main-variant
16692         leader for computing the canonical type.
16693
16694 2011-05-17  Nick Clifton  <nickc@redhat.com>
16695
16696         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
16697         moves.
16698
16699         * config/rx/rx.md: Add peephole to remove redundant extensions
16700         after loads.
16701         (bitset_in_memory): Use rx_restricted_mem_operand.
16702         (bitinvert_in_memory): Likewise.
16703         (bitclr_in_memory): Likewise.
16704
16705 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
16706             Nick Clifton  <nickc@redhat.com>
16707
16708         * config/rx/rx.md: Add peepholes to match a register move followed
16709         by a comparison of the moved register.  Replace these with an
16710         addition of zero that does both actions in one instruction.
16711
16712 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
16713
16714         PR target/48986
16715         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
16716         predicate to allow CONST_INT.
16717         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
16718
16719 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
16720
16721         * opts-common.c (opt_enum_arg_to_value): New.
16722         * opts.h (opt_enum_arg_to_value): Declare.
16723         * config/i386/i386.opt (fpmath): Remove.
16724         (mfpmath=): Use Enum, Init and Save.
16725         (fpmath_unit): New Enum and EnumValue entries.
16726         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
16727         name for function fpmath state.
16728         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
16729         * config/i386/i386.c: Include diagnostic.h.
16730         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
16731         (ix86_target_string): Take enum fpmath_unit value instead of string.
16732         (ix86_debug_options): Update call to ix86_target_string.
16733         (ix86_option_override_internal): Don't process fpmath strings here.
16734         (x86_function_specific_save, ix86_function_specific_restore):
16735         Don't handle fpmath state specially.
16736         (ix86_function_specific_print): Pass fpmath state to
16737         ix86_target_string instead of printing in this function.
16738         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
16739         Handle enum attributes.
16740         (IX86_ATTR_ENUM, ix86_opt_enum): New.
16741         (ix86_valid_target_attribute_tree): Update option_strings
16742         handling.  Handle fpmath as enum option.
16743         (ix86_can_inline_p): Update field names for function fpmath state.
16744         (ix86_expand_builtin): Update call to ix86_target_string.
16745         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
16746         (ix86_fpmath): Remove.
16747         * config/i386/t-i386 (i386.o): Update dependencies.
16748
16749 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
16750
16751         PR preprocessor/48677
16752         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
16753         from decoded_options[0], not from itself.
16754
16755 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
16756
16757         * config/i386/constraints.md (z): New constraint.
16758         * config/i386/i386.c (c): New mode attribute.
16759         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
16760         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
16761         constraint for operand 0.
16762         (*call_vzeroupper): Ditto.
16763         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
16764         (*call_rex64_ms_sysv_vzeroupper): Ditto.
16765         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
16766         Use "lzm" constraint for operand 0.
16767         (*call_pop_vzeroupper): Ditto.
16768         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
16769         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
16770         constraint for operand 0.
16771         (*sibcall_vzeroupper): Ditto.
16772         (*sibcall_rex64_ms_sysv): Ditto.
16773         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
16774         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
16775         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
16776         (*sibcall_pop_vzeroupper): Ditto.
16777         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
16778         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
16779         mode iterator.  Use "<c>zm" constraint for operand 1.
16780         (*call_value_vzeroupper): Ditto.
16781         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
16782         for operand 1.
16783         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
16784         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
16785         *call_value_pop_1.  Use "lzm" constraint for operand 1.
16786         (*call_value_pop_vzeroupper): Ditto.
16787         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
16788         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
16789         mode iterator.  Use "Uz" constraint for operand 1.
16790         (*sibcall_value_vzeroupper): Ditto.
16791         (*sibcall_value_rex64_ms_sysv): Ditto.
16792         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
16793         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
16794         constraint for operand 1.
16795         (*sibcall_value_pop_vzeroupper): Ditto.
16796         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
16797         and "z" constraint for operand 2.
16798         (*tls_global_dynamic_32_gnu): Ditto.
16799         (*tls_local_dynamic_base_32_gnu): Ditto.
16800         (*tls_local_dynamic_base_64): Ditto.
16801         (*tls_local_dynamic_32_once): Ditto.
16802         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
16803         Update all callers.
16804         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
16805
16806 2011-05-16  Richard Guenther  <rguenther@suse.de>
16807
16808         * gimple.c (gimple_types_compatible_p_1): Use names of the
16809         type itself, not its main variant.
16810         (iterative_hash_gimple_type): Likewise.
16811
16812 2011-05-16  Richard Guenther  <rguenther@suse.de>
16813
16814         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
16815         always visit pointer target and function result and argument types.
16816
16817 2011-05-16  Jason Merrill  <jason@redhat.com>
16818
16819         PR c++/48999
16820         * tree-inline.c (copy_statement_list): Put back recursion.
16821
16822 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
16823
16824         PR target/27663
16825         PR target/41076
16826         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
16827         * config/avr/avr.md ("*ior<mode>qi.byte0",
16828         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
16829
16830 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
16831
16832         PR target/45099
16833         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
16834         register is needed for a function argument.
16835
16836 2011-05-16  Richard Guenther  <rguenther@suse.de>
16837
16838         * gimple.c (struct type_hash_pair): New type.
16839         (type_hash_pair_compare): New function.
16840         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
16841
16842 2011-05-16  Revital Eres  <revital.eres@linaro.org>
16843
16844         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
16845
16846 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
16847
16848         * config/i386/i386.md (floating point move splitters): Fix
16849         usage of standard_80387_constant_p.
16850         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
16851
16852 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
16853
16854         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
16855
16856 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
16857
16858         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
16859         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
16860         (tree_ssa_lim_finalize): Likewise.
16861
16862 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
16863
16864         * config/i386/constraint.md (Yd, Yx): New register constraints.
16865         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
16866         Yd conditional register constraint.
16867         (*movtf_internal): Use standard_sse_constant_opcode.
16868         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
16869         Yx conditional register constraint.
16870         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
16871         Yd conditional register constraint.  Use standard_sse_constant_p to
16872         check for valid SSE constants and call standard_sse_constant_opcode to
16873         output SSE insn.
16874         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
16875         constants and call standard_sse_constant_opcode to output SSE insn.
16876         * config/i386/i386.c (ix86_option_ovverride_internal): Set
16877         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
16878         optimize_size is set.
16879         (standard_sse_constant_opcode): Output conditional AVX insn templates.
16880
16881 2011-05-14  Tobias Burnus  <burnus@net-b.de>
16882
16883         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
16884
16885 2011-05-13  Martin Jambor  <mjambor@suse.cz>
16886
16887         * ipa-prop.c (ipa_cst_from_jfunc): New function.
16888         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
16889         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
16890         (evaluate_conditions_for_ipcp_clone): Removed.
16891         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
16892         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
16893         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
16894
16895 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
16896
16897         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
16898         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
16899         lieu of MAY_HAVE_DEBUG_STMTS.
16900         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
16901         debug statements if !MAY_HAVE_DEBUG_STMTS.
16902
16903 2011-05-13  Martin Thuresson  <martint@google.com>
16904
16905         PR gcov-profile/47793
16906         * libgcov.c (gcov_exit): Support relative profile paths.
16907         * doc/invoke.texi (-fprofile-dir): Update for above change.
16908
16909 2011-05-13  Richard Guenther  <rguenther@suse.de>
16910
16911         * gimple.c (gimple_canonical_types_compatible_p): Do not use
16912         type-pair caching, do not compare hashes.
16913
16914 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
16915
16916         PR middle-end/48965
16917         * tree-cfg.c (edge_to_cases_cleanup): Return true.
16918         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
16919
16920 2011-05-13  Kai Tietz  <ktietz@redhat.com>
16921
16922         * gimplify.c (gimplify_expr): Make sure operand is boolified.
16923         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
16924         compatible type for TRUTH_NOT_EXPR.
16925
16926 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16927
16928         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
16929         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
16930         can_create_pseudo_p ().
16931
16932 2011-05-13  Richard Guenther  <rguenther@suse.de>
16933
16934         PR lto/48978
16935         * gimple.c (iterative_hash_gimple_type): Revert change in
16936         pointer target and function result and argument hashing.
16937
16938 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
16939
16940         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
16941         (*movxf_internal_nointeger): Ditto.
16942         (*movdf_internal_rex64): Ditto.
16943         (*movdf_internal): Ditto.
16944         (*movdf_internal_nointeger): Ditto.
16945         (*movsf_internal): Ditto.
16946         (sincos splitters): Use can_create_pseudo ().
16947
16948 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
16949
16950         * config/i386/i386-opts.h: New.
16951         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
16952         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
16953         ix86_section_threshold): Remove.
16954         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
16955         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
16956         OPT_mbranch_cost_.
16957         (ix86_option_override_internal): Don't decode strings for options
16958         other than -march=, -mtune= and -mfpmath=.  Don't allow for
16959         __attribute__ uses in remaining diagnostics for options with
16960         string arguments.  Don't check for integer arguments being negative.
16961         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
16962         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
16963         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
16964         ix86_branch_cost, ix86_section_threshold): Remove.
16965         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
16966         HeaderInclude.
16967         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
16968         but not Var.
16969         (masm=): Use Enum and Init.
16970         (asm_dialect): New Enum and EnumValue entries.
16971         (mbranch-cost=): Use UInteger.
16972         (mlarge-data-threshold=): Use UInteger and Init.
16973         (mcmodel=): Use Enum and Init.
16974         (cmodel): New Enum and EnumValue entries.
16975         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
16976         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
16977         mregparm=): Use UInteger.
16978         (mstringop-strategy=): Use Enum and Init.
16979         (stringop_alg): New Enum and EnumValue entries.
16980         (mtls-dialect=): Use Enum and Init.
16981         (tls_dialect): New Enum and EnumValue entries.
16982         (mabi=): Use Enum and Init.
16983         (calling_abi): New Enum and EnumValue entries.
16984         (mveclibabi=): Use Enum and Init.
16985         (ix86_veclibabi): New Enum and EnumValue entries.
16986
16987 2011-05-13  Nick Clifton  <nickc@redhat.com>
16988
16989         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
16990         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
16991
16992 2011-05-13  Kai Tietz  <ktietz@redhat.com>
16993
16994         PR middle-end/48984
16995         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
16996         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
16997         (gimple_boolify): Check for cast for boolean_type_node instead for
16998         BOOLEAN_TYPE.
16999
17000 2011-05-13  Richard Guenther  <rguenther@suse.de>
17001
17002         PR tree-optimization/48172
17003         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
17004         multiplying by number of iterations for equal step.
17005         (vect_create_cond_for_alias_checks): Likewise.
17006
17007 2011-05-13  Andreas Schwab  <schwab@redhat.com>
17008
17009         * configure.ac: Use AS_HELP_STRING throughout.
17010         * configure: Regenerate.
17011
17012 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
17013
17014         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
17015         (ix86_emit_restore_regs_using_mov): Likewise.
17016         (ix86_emit_restore_sse_regs_using_mov): Likewise.
17017
17018 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
17019
17020         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
17021         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
17022         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
17023         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
17024         RTX_OK_FOR_OLO10_P): ...here.
17025         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
17026         SYMBOLIC_CONST.
17027
17028 2011-05-12  Kai Tietz  <ktietz@redhat.com>
17029
17030         * gimplify.c (gimple_boolify): Re-boolify expression
17031         arguments even if expression type is of kind BOOLEAN_TYPE.
17032         (gimplify_boolean_expr): Removed.
17033         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
17034         and XOR. Additional take care that we keep expression's type.
17035         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
17036         of TRUTH_AND|OR|XOR_EXPR.
17037
17038 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17039
17040         PR tree-optimization/48975
17041         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
17042         on all bbs here and free and clear ifc_bbs at the end.
17043
17044 2011-05-12  Richard Guenther  <rguenther@suse.de>
17045
17046         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
17047         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
17048         until after simple checks.
17049         (gimple_types_compatible_p): Likewise.
17050         (iterative_hash_gimple_type): Always hash pointer targets
17051         and function return and argument types.
17052         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
17053         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
17054         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
17055         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
17056         completely in the simple compare section.
17057         (gimple_register_canonical_type): Query the cache again after
17058         registering.
17059
17060 2011-05-12  Richard Guenther  <rguenther@suse.de>
17061
17062         PR tree-optimization/48172
17063         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
17064         the number of iterations from the segment size calculation.
17065         (vect_create_cond_for_alias_checks): Adjust.
17066
17067 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17068
17069         PR debug/48967
17070         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
17071         if validate_subreg fails.
17072
17073 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
17074
17075         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
17076         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
17077         early.
17078
17079 2011-05-12  DJ Delorie  <dj@redhat.com>
17080
17081         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
17082         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
17083         created builtin into rx_builtins array.
17084         (rx_builtin_decl): New function.
17085         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
17086
17087 2011-05-12  DJ Delorie  <dj@redhat.com>
17088             Nick Clifton  <nickc@redhat.com>
17089
17090         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
17091         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
17092         (rx_is_legitimate_address): Add pre-decrement and post-increment
17093         addressing in HImode and QImode.  Fix test for out of range
17094         REG+INT addressing.
17095         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
17096         (rx_align_for_label): Test label before extracting its usage count.
17097         (rx_adjust_insn_lengths): Fix selection of insn codes.
17098         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
17099
17100 2011-05-11  Jason Merrill  <jason@redhat.com>
17101
17102         * tree.c (type_hash_canon): Use struct tree_type_non_common.
17103
17104 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
17105
17106         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
17107         reindent the subsequent block.
17108
17109 2011-05-11  Satoru Takabayashi  <satorux@google.com>
17110             Paul Pluzhnikov  <ppluzhnikov@google.com>
17111
17112         * doc/install.texi (Configuration): Document --with-linker-hash-style.
17113         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
17114         * config.in: Add LINKER_HASH_STYLE.
17115         * configure.ac: Add --with-linker-hash-style.
17116         * configure: Regenerate.
17117
17118 2011-05-11  Richard Guenther  <rguenther@suse.de>
17119
17120         PR middle-end/48964
17121         * gimple.c (iterative_hash_canonical_type): Fix typo.
17122
17123 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
17124
17125         * config/i386/i386.c (legitimize_tls_address)
17126         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17127         expanders directly for TARGET_GNU2_TLS.  Determine pic and
17128         __tls_get_addr symbol reference here.  Update call to
17129         gen_tls_global_dynamic_{32,64} for added arguments.
17130         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17131         expanders directly for TARGET_GNU2_TLS.  Determine
17132         __tls_get_addr symbol reference here.  Update call to
17133         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
17134         unique UNSPEC REG_EQUIV to libcall block.
17135         (ix86_tls_get_addr): Declare static.
17136         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
17137         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
17138         Do not determine pic and __tls_get_addr symbol reference here. Do not
17139         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
17140         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
17141         (tls_global_dynamic_64): Add operand 2.  Do not determine
17142         __tls_get_addr symbol reference here.  Do not call
17143         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
17144         (tls_local_dynamic_base64): Ditto for operand 1.
17145
17146 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
17147
17148         * function.c (expand_function_start): Initialize stack_check_probe_note
17149         only if the generic stack checking mechanism is used.
17150
17151 2011-05-11  Richard Guenther  <rguenther@suse.de>
17152
17153         PR tree-optimization/15256
17154         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
17155         (A & B) | C, combine (A op CST1) op CST2.
17156         (tree_ssa_forward_propagate_single_use_vars): Only bother to
17157         visit assigns that have uses.
17158
17159 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
17160
17161         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
17162         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
17163         (unpack_ts_type_common_value_fields): ...this.  Update comment.
17164         (unpack_value_fields): Adjust for renaming.
17165         (lto_input_ts_type_tree_pointers): Split into...
17166         (lto_input_ts_type_common_tree_pointer): ...this and...
17167         (lto_input_ts_type_non_common_tree_pointers): ...this.
17168         (lto_input_tree_pointers): Adjust for above split.
17169         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
17170         (pack_ts_type_common_value_fields): ...this.  Update comment.
17171         (lto_output_ts_type_tree_pointers): Split into...
17172         (lto_output_ts_type_common_tree_pointers): ...this and...
17173         (lto_output_ts_type_non_common_tree_pointers): ...this.
17174         (lto_output_tree_pointers): Adjust for above split.
17175         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
17176         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
17177         * stor-layout.c (vector_type_mode): Adjust location of mode field.
17178         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
17179         Define.
17180         (struct tree_type): Split into...
17181         (struct tree_type_common: ...this and...
17182         (struct tree_type_with_lang_specific): ...this and...
17183         (struct tree_type_non_common): ...this.  Adjust accessor macros
17184         accordingly.
17185         (TYPE_VALUES_RAW): Define.
17186         (union tree_node): Update for above changes.
17187         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
17188         TS_TYPE_NON_COMMON.
17189         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
17190         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
17191         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
17192         * treestructu.def (TS_TYPE): Remove.
17193         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
17194         Define.
17195
17196 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
17197
17198         PR debug/48159
17199         * tree-ssa.c (reset_debug_uses): New function.
17200         * tree-flow.h (reset_debug_uses): New prototype.
17201         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
17202         * tree-loop-distribution.c (generate_loops_for_partition): Call
17203         reset_debug_uses on the stmts that will be removed.  Keep around
17204         all debug stmts, don't count them as bits in partition bitmap.
17205         (generate_builtin): Don't count debug stmts or labels as bits in
17206         partition bitmap.
17207
17208 2011-05-11  Richard Guenther  <rguenther@suse.de>
17209
17210         * gimple.c (gimple_type_hash_1): Merge with ...
17211         (gimple_type_hash): ... this.
17212         (gtc_visit): Remove mode parameter and simplify accordingly.
17213         (gimple_types_compatible_p_1): Likewise.
17214         (gimple_types_compatible_p): Likewise.
17215         (iterative_hash_gimple_type): Likewise.
17216         (visit): Likewise.
17217         (gimple_type_eq): Adjust.
17218
17219 2011-05-11  Revital Eres  <revital.eres@linaro.org>
17220
17221         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
17222         enters the branch create an anti edge in the opposite direction
17223         to prevent the creation of reg-moves.
17224         * modulo-sched.c: Adjust comment to reflect the fact we are
17225         scheduling closing branch.
17226         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
17227         (stage_count): New field in struct partial_schedule.
17228         (calculate_stage_count): New function.
17229         (normalize_sched_times): Rename to reset_sched_times and handle
17230         incrementing the sched time of the nodes by a constant value
17231         passed as parameter.
17232         (duplicate_insns_of_cycles): Skip closing branch.
17233         (sms_schedule_by_order): Schedule closing branch.
17234         (ps_insn_find_column): Handle closing branch.
17235         (sms_schedule): Call reset_sched_times and adjust the code to
17236         support scheduling of the closing branch.
17237         (ps_insert_empty_row): Update calls to normalize_sched_times
17238         and rotate_partial_schedule functions.
17239
17240 2011-05-11  Richard Guenther  <rguenther@suse.de>
17241
17242         PR middle-end/48953
17243         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
17244
17245 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
17246
17247         * opts.c (finish_options): Move warning settings from process_options.
17248         * toplev.c (process_options): Move warning settings to finish_options.
17249
17250 2011-05-11  Richard Guenther  <rguenther@suse.de>
17251
17252         PR tree-optimization/18041
17253         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
17254         (simplify_bitwise_binary): ... this.  Handle operand conversions
17255         by applying them to the result instead.
17256         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
17257
17258 2011-05-11  Richard Guenther  <rguenther@suse.de>
17259
17260         * gimple.c (gimple_canonical_types_compatible_p): Split out
17261         from gimple_types_compatible_p and friends.  Do not recurse
17262         to pointed-to types.
17263         (gimple_canonical_type_eq): Use it.
17264         (iterative_hash_canonical_type): Split out from
17265         iterative_hash_gimple_type and friends.  Do not recurse
17266         to pointed-to types.
17267         (gimple_canonical_type_hash): Use it, allocate the hash here.
17268
17269 2011-05-11  Revital Eres  <revital.eres@linaro.org>
17270
17271         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
17272         recognizing doloop.
17273
17274 2011-05-11  Revital Eres  <revital.eres@linaro.org>
17275
17276         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
17277         instead of PREV_INSN.
17278
17279 2011-05-11  Revital Eres  <revital.eres@linaro.org>
17280
17281         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
17282         * loop-doloop.c (doloop_condition_get): Likewise.
17283         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
17284         (doloop_end): New.
17285         * config/arm/arm.md (*addsi3_compare0): Remove "*".
17286
17287 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
17288
17289         * tree.def (CASE_LABEL_EXPR): Add an operand.
17290         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
17291
17292 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17293
17294         * c-decl.c (c_override_global_bindings_to_false): Remove.
17295         (global_bindings_p): Don't check
17296         c_override_global_bindings_to_false.
17297         * c-tree.h (c_override_global_bindings_to_false): Remove.
17298         * c-typeck.c (composite_type): Don't set
17299         c_override_global_bindings_to_false.
17300
17301 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
17302
17303         PR target/48857, 48495
17304         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
17305         (VSX_MODE): Ditto.
17306         (VSX_MOVE_MODE): Ditto.
17307         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
17308         VSX vector types.  Add V2DImode.
17309         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
17310         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
17311         (MODES_TIEABLE_P): Ditto.
17312
17313         * config/rs6000/rs6000.c (rs6000_emit_move): Use
17314         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
17315         VSX_VECTOR_MODE.
17316         (init_cumulative_args): Ditto.
17317         (rs6000_function_arg_boundary): Ditto.
17318         (rs6000_function_arg_advance_1): Ditto.
17319         (rs6000_function_arg): Ditto.
17320         (rs6000_function_ok_for_sibcall): Ditto.
17321         (emit_frame_save): Ditto.
17322         (rs6000_function_value): Ditto.
17323         (rs6000_libcall_value): Ditto.
17324
17325 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17326
17327         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
17328         i386/darwin-lib.h to $libgcc_tm_file.
17329         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
17330
17331 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17332
17333         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
17334
17335 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17336
17337         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
17338         * config/rs6000/rs6000-tables.opt: New file (generated).
17339         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
17340         rs6000/rs6000-tables.opt to extra_options.
17341         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
17342         * config/rs6000/rs6000.c (rs6000_select): Remove.
17343         (processor_target_table): Move contents to rs6000-cpus.def.
17344         (darwin_rs6000_override_options): Check
17345         global_options_set.x_rs6000_cpu_index instead of
17346         rs6000_select[1].string.
17347         (rs6000_option_override_internal): Likewise.
17348         (rs6000_handle_option): Don't assert that global structures are in
17349         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
17350         (rs6000_default_cpu): New variable.
17351         (rs6000_file_start): Set it instead of local default_cpu.  Check
17352         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
17353         global_options_set.x_rs6000_tune_index instead of rs6000_select.
17354         (rs6000_darwin_file_start): Check rs6000_default_cpu and
17355         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
17356         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
17357         rs6000_select): Remove.
17358         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
17359         Remove.
17360         (mcpu=, mtune=): Use Var, Init, Enum and Save.
17361         * config/rs6000/t-rs6000
17362         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
17363         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
17364         global_options_set.x_rs6000_cpu_index instead of
17365         rs6000_select[1].string.
17366         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
17367         global_options_set.x_rs6000_cpu_index instead of
17368         rs6000_select[1].string.
17369
17370 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
17371
17372         * config.gcc (libgcc_tm_file): Define instead of including files
17373         from ../../libgcc/config/ in tm_file.
17374         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
17375         * configure: Regenerate.
17376         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
17377         libgcc_tm.h, cs-libgcc_tm.h): New.
17378         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
17379         (clean): Remove libgcc_tm.h.
17380         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
17381         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
17382         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
17383
17384 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
17385
17386         PR target/48896
17387         * config/avr/avr.c (avr_ret_register): Return unsigned int
17388         instead of int.
17389         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
17390         it to avr_libcall_value.
17391         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
17392         expand_expr.
17393         (avr_expand_binop_builtin): Ditto.
17394         (avr_expand_unop_builtin): Ditto.
17395
17396 2011-05-10  DJ Delorie  <dj@redhat.com>
17397
17398         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
17399         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
17400         * config/rx/rx.c (rx_align_for_label): Add label and
17401         uses_threshold parameters.  Do not align when the label is not
17402         used enough.
17403         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
17404
17405 2011-05-10  Richard Guenther  <rguenther@suse.de>
17406
17407         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
17408         a series of conversions and apply foldings similar to what
17409         fold-const does.
17410         (tree_ssa_forward_propagate_single_use_vars): Call it.
17411
17412 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
17413
17414         PR tree-optimization/48611
17415         PR tree-optimization/48794
17416         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
17417         referenced from RESX or EH_DISPATCH arguments.
17418
17419         PR debug/48928
17420         * dfp.c (decimal_to_decnumber): Handle conversion from
17421         dconst{1,2,m1,half}.
17422
17423 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17424
17425         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
17426         for !flag_prefer_avx128.
17427         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
17428
17429 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
17430
17431         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
17432         (fold_ternary_loc): Use expr_location_or.
17433
17434 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
17435
17436         PR debug/48853
17437         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
17438         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
17439         Pmode and mem_mode is not VOIDmode.
17440
17441 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
17442
17443         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
17444         TYPE_QUAL_RESTRICT): Convert to enum.
17445
17446 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17447
17448         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
17449         (const_pow2_1_to_8_operand): Ditto.
17450         (const_pow2_1_to_128_operand): Ditto.
17451         (const_pow2_1_to_32768_operand): Ditto.
17452         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
17453         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
17454         in insn constraint to check integer value of operand 3.
17455         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
17456
17457         (PINSR_MODE): New mode iterator.
17458         (sse2p4_1): New mode attribute.
17459         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
17460         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
17461         iterator.  Use const_int_operand instead of
17462         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
17463         exact_log2 in insn constraint to check integer value of operand 3.
17464
17465 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17466
17467         * config/i386/sse.md (blendbits): Remove mode attribute.
17468         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
17469         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
17470         Check integer value of operand 3 in insn constraint.
17471
17472 2011-05-09  Richard Guenther  <rguenther@suse.de>
17473
17474         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
17475         for diagnostics.
17476         (lto_symtab_merge): Likewise.  Do not register types here.
17477         (lto_symtab_merge_decls_2): Likewise.
17478         (lto_symtab_merge_decls_1): Likewise.
17479         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
17480         * gimple.c (enum gtc_mode): Declare.
17481         (gimple_types_compatible_p): Make static.
17482
17483 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17484
17485         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
17486         temporary register to match Pmode.
17487
17488 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17489
17490         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
17491         and *vec_concatv4si_1_avx.
17492
17493 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
17494
17495         PR rtl-optimization/48927
17496         * ira-conflicts.c (commutative_constraint_p): Use
17497         recog_data.alternative_enabled_p to disable alternatives where
17498         "enabled" attribute is false.
17499         (get_dup_num): Ditto.
17500         * ira-lives.c (single_reg_class): Ditto.
17501         (ira_implicitly_set_insn_hard_regs): Ditto.
17502
17503 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
17504
17505         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
17506         (dataflow_set_preserve_mem_locs): Likewise.
17507
17508 2011-05-09  Philipp Thomas  <pth@suse.de>
17509
17510         * config/mep/mep.c (mep_validate_vliw): Syntax description
17511         should not be translated.
17512
17513 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
17514
17515         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
17516         * config/mips/mips-tables.opt: New file (generated).
17517         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
17518         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
17519         MIPS_ARCH_OPTION_NATIVE): Define.
17520         * config/mips/mips.c (mips_cpu_info_table): Move contents to
17521         mips-cpus.def.
17522         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
17523         mips_parse_cpu): Remove.
17524         (mips_cpu_info_from_opt, mips_default_arch): New.
17525         (mips_handle_option): Don't assert that global structures are in
17526         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
17527         (mips_option_override): Use new variables and functions to set
17528         state of these options.  Use strcmp to check for individual CPU names.
17529         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
17530         definition.
17531         * config/mips/mips.opt (march=): Use ToLower and Enum.
17532         (mips): Use ToLower, Enum and Var.
17533         (mtune=): Use ToLower and Enum.
17534         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
17535
17536 2011-05-08  Jan Hubicka  <jh@suse.cz>
17537
17538         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
17539         Arrange type pairs to be UID ordered.
17540         (gimple_lookup_type_leader): Make inline.
17541
17542 2011-05-09  Nick Clifton  <nickc@redhat.com>
17543
17544         PR target/48899
17545         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
17546         PROCESSOR_DEFAULT.
17547
17548         PR target/48897
17549         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
17550         variable 's'.
17551
17552 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
17553
17554         * combine.c (simplify_comparison): Abstract out parts into...
17555         (simplify_compare_const): ... new function.
17556         (try_combine): Generalize parallel arithmetic/compare combining
17557         to call simplify_compare_const() and CANONICALIZE_COMPARE().
17558
17559 2011-05-08  Jan Hubicka  <jh@suse.cz>
17560
17561         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
17562         (cgraph_create_virtual_clone): Call hooks once virtual clone
17563         is finished.
17564         * cgraph.h (cgraph_clone_node): Update prototype.
17565         * ipa-cp.c (ipcp_estimate_growth): Use
17566         estimate_ipcp_clone_size_and_time.
17567         * ipa-inline-transform.c (clone_inlined_nodes): Update.
17568         * lto-cgraph.c (input_node): Update.
17569         * ipa-inline.c (recursive_inlining): Update.
17570         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
17571         (evaluate_conditions_for_known_args): Break out from ...
17572         (evaluate_conditions_for_edge): ... here.
17573         (evaluate_conditions_for_ipcp_clone): New function.
17574         (inline_node_duplication_hook): Update clone summary based
17575         on parameter map.
17576         (estimate_callee_size_and_time): Rename to ...
17577         (estimate_node_size_and_time): take NODE instead of EDGE;
17578         take POSSIBLE_TRUTHS as argument.
17579         (estimate_callee_size_and_time): Update.
17580         (estimate_ipcp_clone_size_and_time): New function.
17581         (do_estimate_edge_time): Update.
17582
17583 2011-05-08  Richard Guenther  <rguenther@suse.de>
17584
17585         PR middle-end/48908
17586         PR middle-end/48905
17587         * expmed.c (expand_shift_1): Compute adjusted constant shift
17588         amount manually.
17589
17590 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
17591
17592         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
17593
17594 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
17595
17596         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
17597
17598 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
17599
17600         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
17601
17602 2011-05-07  Jan Hubicka  <jh@suse.cz>
17603
17604         * ipa-inline-transform.c (inline_call): Account when program size
17605         decreases.
17606         * ipa-inline.c (relative_time_benefit): New function.
17607         (edge_badness): Reorganize to be power 2 based; fix thinko when
17608         computing badness for negative growth; update comments to match
17609         reality; better dumps.
17610
17611 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
17612
17613         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
17614         type to bool and adjust comment.
17615         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
17616         (fold_mathfn_compare): Remove calls to global_bindings_p.
17617         (fold_inf_compare): Likewise.
17618         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
17619         * c-tree.h (global_bindings_p): Adjust prototype.
17620         * c-decl.c (global_bindings_p): Return bool and simplify.
17621
17622 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
17623
17624         PR tree-optimization/48837
17625         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
17626         when accumulator transformation is performed.
17627
17628 2011-05-06  Jan Hubicka  <jh@suse.cz>
17629
17630         * i386.h (ix86_tune_indices): Add
17631         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
17632         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
17633         * i386.c (initial_ix86_tune_features): Add
17634         X86_SOFTARE_PREFETCHING_BENEFICIAL.
17635         (software_prefetching_beneficial_p): Remove predicate.
17636         (ix86_option_override_internal): Use new macro.
17637
17638 2011-05-06  Jan Hubicka  <jh@suse.cz>
17639
17640         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
17641
17642 2011-05-06  Jan Hubicka  <jh@suse.cz>
17643
17644         * cgraph.c (cgraph_add_thunk): Create real function node instead
17645         of alias node; finalize it and mark needed/reachale; arrange visibility
17646         to be right and add it into the corresponding same comdat group list.
17647         (dump_cgraph_node): Dump thunks.
17648         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
17649         cgraph_function_with_gimple_body_p,
17650         cgraph_first_function_with_gimple_body,
17651         cgraph_next_function_with_gimple_body): New functions.
17652         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
17653         New macros.
17654         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
17655         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
17656         * cgraphunit.c (cgraph_finalize_function): Only look into possible
17657         devirtualization when optimizing.
17658         (verify_cgraph_node): Verify thunks.
17659         (cgraph_analyze_function): Analyze thunks.
17660         (cgraph_mark_functions_to_output): Output thunks only in combination
17661         with function they are assigned to.
17662         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
17663         alias into normal node.
17664         (assemble_thunks): New functoin.
17665         (cgraph_expand_function): Use it.
17666         * lto-cgraph.c (lto_output_node): Stream thunks.
17667         (input_overwrite_node): Stream in thunks.
17668         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
17669         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
17670         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
17671         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
17672         (inline_analyze_function): Do not care about thunk jump functions.
17673         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
17674         * ipa-prop.c (ipa_prop_write_jump_functions): Use
17675         cgraph_function_with_gimple_body_p.
17676         * passes.c (do_per_function_toporder): Use
17677         cgraph_function_with_gimple_body_p.
17678         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
17679         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
17680         (function_called_by_processed_nodes_p): Likewise.
17681
17682 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
17683
17684         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
17685         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
17686         entries.
17687         (mabi=): Replace with separate entries for mabi=altivec,
17688         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
17689         mabi=ieeelongdouble and mabi=ibmlongdouble.
17690         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
17691         check for -mabi=spe without SPE ABI support here.
17692         (rs6000_handle_option): Replace OPT_mabi_ handling with
17693         OPT_mabi_altivec and OPT_mabi_spe handling.
17694
17695 2011-05-06  Cary Coutant  <ccoutant@google.com>
17696
17697         * dwarf2out.c (contains_subprogram_definition): New function.
17698         (should_move_die_to_comdat): Call it.
17699
17700 2011-05-06  Jeff Law  <law@redhat.com>
17701
17702         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
17703         remove_ctrl_stmt_and_useless_edges.
17704         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
17705         (fixup_template_block, thread_single_edge): Likewise.
17706         (mark_threaded_blocks): Use THREAD_TARGET.
17707
17708 2011-05-06  Alan Modra  <amodra@gmail.com>
17709
17710         PR target/48900
17711         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17712         const0_rtx as the arg to the dummy __tls_get_addr libcall.
17713
17714 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
17715
17716         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
17717         constraint modifier to "r".
17718
17719 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
17720
17721         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
17722         fall through for OPT_mcmodel_.
17723
17724 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17725
17726         * config/s390/s390.c (s390_asm_trampoline_template): Comment
17727         instruction sizes.
17728         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
17729
17730 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17731
17732         PR target/47930
17733         * config/arm/arm.opt (marm): Document it.
17734         (mthumb): Reject negative variant.
17735
17736 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
17737
17738         PR target/48898
17739         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
17740         Fix typo in "ccvt" variable name.
17741
17742 2011-05-06  Tristan Gingold  <gingold@adacore.com>
17743
17744         PR target/48895
17745         * config/vms/vms-ar.c (main): Remove cwd variable.
17746
17747 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
17748
17749         PR debug/48902
17750         * var-tracking.c (prepare_call_arguments): Move else before #endif.
17751
17752 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
17753
17754         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
17755         * gimplify.c (gimplify_switch_expr): Likewise.
17756         * omp-low.c (expand_omp_sections): Likewise.
17757         * tree-eh.c (lower_try_finally_switch): Likewise.
17758         (lower_eh_dispatch): Likewise.
17759         * tree.h (build_case_label): Declare.
17760         * tree.c (build_case_label): Define.
17761
17762 2011-05-05  Jason Merrill  <jason@redhat.com>
17763
17764         PR c++/40975
17765         * tree-inline.c (copy_tree_r): Use copy_statement_list.
17766         (copy_statement_list): Don't recurse.
17767         * stor-layout.c (copy_self_referential_tree_r): Don't allow
17768         STATEMENT_LIST.
17769
17770 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17771
17772         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
17773         through from -mfpu= handling.
17774         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
17775
17776 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
17777
17778         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
17779         POST_MODIFY.
17780
17781 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
17782
17783         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
17784         for 11.31.
17785         (hppa[12]*-*-hpux11*): Ditto.
17786         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
17787         * config/ia64/hpux-unix2003.h: New.
17788         * config/pa/pa-hpux1131.opt: New.
17789         * config/pa/pa-hpux1131.h: New.
17790         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
17791         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
17792         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
17793
17794 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
17795
17796         PR debug/48853
17797         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
17798         instead of mode as 3rd argument to recursive call.
17799         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
17800         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
17801         VOIDmode.
17802         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
17803         don't give up if mode is Pmode and mem_mode is not VOIDmode.
17804         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
17805         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
17806
17807 2011-05-05  Julian Brown  <julian@codesourcery.com>
17808
17809         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
17810         parenthesis in D-register case.
17811
17812 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17813
17814         * opt-functions.awk (var_type_struct): Handle Enum options.
17815         * optc-gen.awk: Don't check range of variables of character type.
17816         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
17817         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
17818         rs6000_sdata_name, rs6000_explicit_options): Remove.
17819         (rs6000_option_override_internal): Check for -malign-power here.
17820         Use global_options_set instead of rs6000_explicit_options.
17821         (rs6000_parse_fpu_option): Remove.
17822         (rs6000_handle_option): Access variables via opts and opts_set
17823         pointers.  Use error_at and warning_at.  Add fall-through
17824         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
17825         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
17826         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
17827         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
17828         here.  Don't use rs6000_parse_fpu_option.
17829         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
17830         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
17831         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
17832         (mrecip=): Use Var.
17833         (mspe): Use Var and Save.
17834         (mtraceback=): Use Enum and Var.
17835         (rs6000_traceback_type): New Enum and EnumValue entries.
17836         (mfloat-gprs=): Use Enum, Var and Save.
17837         (rs6000_float_gprs): New Enum and EnumValue entries.
17838         (mlong-double-): use Var and Save.
17839         (msched-costly-dep=, minsert-sched-nops=): Use Var.
17840         (malign-): Use Enum and Var.
17841         (rs6000_alignment_flags): New Enum and EnumValue entries.
17842         (mfpu=): Use Enum.
17843         (fpu_type_t): New Enum and EnumValue entries.
17844         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17845         global_options_set instead of rs6000_explicit_options.
17846         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17847         global_options_set instead of rs6000_explicit_options.
17848         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17849         global_options_set instead of rs6000_explicit_options.
17850         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17851         global_options_set instead of rs6000_explicit_options.
17852         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
17853         global_options_set instead of rs6000_explicit_options.
17854         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17855         global_options_set instead of rs6000_explicit_options.
17856         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
17857         definition.
17858         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17859         global_options_set instead of rs6000_explicit_options.
17860         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
17861         (rs6000_cmodel): New Enum and EnumValue entries.
17862         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17863         global_options_set instead of rs6000_explicit_options.
17864         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
17865         (mtls-size=): Use Enum and Var.
17866         (rs6000_tls_size): New Enum and EnumValue entries.
17867
17868 2011-05-05  Michael Matz  <matz@suse.de>
17869
17870         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
17871         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
17872         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
17873         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
17874         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
17875         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
17876         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
17877         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
17878         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
17879         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
17880         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
17881         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
17882         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
17883         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
17884         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
17885         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
17886
17887 2011-05-05  Richard Guenther  <rguenther@suse.de>
17888
17889         * expmed.c (expand_variable_shift): Rename to ...
17890         (expand_shift_1): ... this.  Take an expanded shift amount.
17891         For rotates recurse directly not building trees for the shift amount.
17892         (expand_variable_shift): Wrap around expand_shift_1.
17893         (expand_shift): Adjust.
17894
17895 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
17896
17897         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
17898
17899 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
17900
17901         * tree.h (get_pending_sizes): Remove prototype.
17902         (put_pending_size): Likewise.
17903         (put_pending_sizes): Likewise.
17904         * stor-layout.c (pending_sizes): Delete.
17905         (get_pending_sizes): Likewise.
17906         (put_pending_size): Likewise.
17907         (put_pending_sizes): Likewise.
17908         (variable_size): Do not call put_pending_size and tidy up.
17909         * function.h (struct function): Remove dont_save_pending_sizes_p.
17910         * lto-streamer-in.c (input_function): Do not stream it.
17911         * lto-streamer-out.c (output_function): Likewise.
17912         * tree-inline.c (initialize_cfun): Do not copy it.
17913         * c-decl.c (store_parm_decls): Do not set it.
17914         * omp-low.c (create_task_copyfn): Likewise.
17915         * tree-optimize.c (tree_rest_of_compilation): Likewise.
17916
17917 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
17918
17919         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
17920         conditions.
17921         (*movdf_internal): Ditto.
17922         (*movdf_internal_nointeger): Ditto.
17923         (*movsf_internal): Ditto.
17924
17925 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17926
17927         * c-decl.c (finish_decl): Don't call get_pending_sizes.
17928         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
17929         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
17930         (c_variable_size): Remove.
17931         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
17932         call put_pending_sizes.
17933         (get_parm_info): Add parameter expr.  Use it to set
17934         arg_info->pending_sizes.
17935         (store_parm_decls): Use arg_info->pending_sizes instead or calling
17936         get_pending_sizes.
17937         * c-parser.c (c_parser_parms_declarator): Update call to
17938         c_parser_parms_list_declarator.
17939         (c_parser_parms_list_declarator): Take parameter expr.  Update
17940         call to push_parm_decl.  Update recursive call.  Don't call
17941         get_pending_sizes.  Update calls to get_parm_info.
17942         (c_parser_objc_method_definition): Update calls to
17943         c_parser_objc_method_decl and objc_start_method_definition.
17944         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
17945         (c_parser_objc_method_decl): Add parameter expr.  Update call to
17946         grokparm.
17947         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
17948         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
17949         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
17950
17951 2011-05-05  Michael Hope  <michael.hope@linaro.org>
17952
17953         PR pch/45979
17954         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
17955         __ARM_EABI__ hosts.
17956
17957 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17958
17959         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17960         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
17961         (spu_output_mi_thunk): New function.
17962
17963 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17964
17965         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
17966         targetm.asm_out.print_operand.
17967         * config/sol2.c: Include target.h.
17968
17969 2011-05-04  Jan Hubicka  <jh@suse.cz>
17970
17971         * ipa-inline.c (reset_edge_caches): New function.
17972         (update_caller_keys): Add check_inlinablity_for; do not
17973         reset edge caches; remove now unnecesary loop.
17974         (update_callee_keys): Add comments; reset node_growth_cache of callee.
17975         (update_all_callee_keys): Likewise.
17976         (inline_small_functions): Sanity check cache; update code
17977         recomputing it.
17978
17979 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
17980
17981         PR rtl-optimization/47612
17982         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
17983         as the last insn of the sequence to be moved.
17984
17985 2011-05-04  Tobias Burnus  <burnus@net-b.de>
17986
17987         PR fortran/48864
17988         * doc/invoke.texi (Ofast): Document that it
17989         enables Fortran's -fno-protect-parens.
17990
17991 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
17992
17993         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
17994
17995 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
17996
17997         * stor-layout.c (variable_size): Do not issue errors.
17998
17999 2011-05-04  Richard Guenther  <rguenther@suse.de>
18000
18001         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
18002         for array-ref indices.
18003         (tree_coverage_counter_addr): Likewise.
18004         (build_fn_info_type): Use size_int for index types.
18005         (build_gcov_info): Likewise.
18006
18007 2011-05-04  Richard Guenther  <rguenther@suse.de>
18008
18009         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
18010         to build_int_cst.
18011         * c-typeck.c (really_start_incremental_init): Use bitsize_int
18012         for constructor indices.
18013         (push_init_level): Likewise.
18014
18015 2011-05-04  Richard Guenther  <rguenther@suse.de>
18016
18017         * explow.c (promote_mode): Move variable declarations before code.
18018
18019 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
18020
18021         * tree.h (build_function_type_array): Declare.
18022         (build_varargs_function_type_array): Declare.
18023         (build_function_type_vec, build_varargs_function_type_vec): Define.
18024         * tree.c (build_function_type_array_1): New function.
18025         (build_function_type_array): New function.
18026         (build_varargs_function_type_array): New function.
18027
18028 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
18029
18030         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
18031         before setting STMT_VINFO_TYPE.
18032
18033 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18034
18035         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
18036         instead of spu_pass_by_reference.
18037
18038 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18039
18040         * calls.c (emit_library_call_value_1): Invoke
18041         promote_function_mode hook on libcall arguments.
18042         * explow.c (promote_function_mode, promote_mode): Handle TYPE
18043         argument being NULL.
18044         * targhooks.c (default_promote_function_mode): Lisewise.
18045         * config/s390/s390.c (s390_promote_function_mode): Likewise.
18046         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
18047
18048         * doc/tm.texi: Document that TYPE argument might be NULL.
18049
18050 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18051
18052         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
18053
18054 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18055
18056         From Bernd Schmidt
18057         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
18058
18059 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18060
18061         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
18062         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
18063         Move ...
18064         * mips-tfile.c: ... here.
18065         Don't include coretypes.h, tm.h, filenames.h.
18066         (saber_stop): Remove definition and all calls.
18067         [__SABER__]: Remove.
18068         (__LINE__): Remove default.
18069         (Size_t, Ptrdiff_t): Remove definitions.
18070         Replace by size_t, ptrdiff_t.
18071         [!MIPS_DEBUGGING_INFO]: Remove.
18072         (SHASH_SIZE, THASH_SIZE): Remove defaults.
18073         (progname): Add const.
18074         (STATIC): Remove.
18075         Replace all uses by static.
18076         (ALIGN_SYMTABLE_OFFSET): Remove default.
18077         * mips-tdump.c: Don't include coretypes.h, tm.h.
18078         Remove !MIPS_IS_STAB guard.
18079         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
18080         $(TM_H), filenames.h dependencies.
18081         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
18082
18083 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18084
18085         From Jie Zhang
18086         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
18087         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
18088
18089 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18090
18091         From Bernd Schmidt
18092         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
18093         account and save/restore RETS.
18094         (PROFILE_BEFORE_PROLOGUE): Define.
18095         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
18096         the push insn to use predecrement.
18097
18098 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18099
18100         From Jie Zhang
18101         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
18102
18103 2011-05-04  Nick Clifton  <nickc@redhat.com>
18104
18105         * config/mn10300/mn10300.c: Include cfgloop.h.
18106         (DUMP): New macro.
18107         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
18108         Lcc or a FLcc insn into the instruction stream.
18109         (mn10300_block_contains_call): New function.  Returns true if the
18110         given basic block contains a CALL insn.
18111         (mn10300_loop_contains_call_insn): New function.  Returns true if
18112         the given loop contains a CALL insn.
18113         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
18114         to use the SETLB and Lcc or FLcc insns.
18115         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
18116         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
18117         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
18118         disable the SETLB optimization.
18119         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
18120         __SETLB__ or __NO_SETLB__.
18121         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
18122         (movsf_internal): Handle MDR register.
18123         (cmpsi): Make visible.
18124         (setlb): New pattern.
18125         (Lcc): New pattern.
18126         (FLcc): New pattern.
18127
18128 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
18129
18130         PR target/48860
18131         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
18132         for reg<->xmm moves.
18133         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
18134         (vec_concatv2di_rex64_sse): Ditto.
18135         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
18136         (*vec_extractv2di_1_rex64): Ditto.
18137
18138         Revert:
18139         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
18140
18141         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
18142         reg<->xmm moves.
18143         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
18144
18145 2011-05-04  Richard Guenther  <rguenther@suse.de>
18146
18147         * tree.h (int_const_binop): Remove notrunc argument.
18148         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
18149         create integer constants that are properly truncated.
18150         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
18151         (const_binop): Remove zero notrunc argument to int_const_binop.
18152         (size_binop_loc): Likewise.
18153         (fold_div_compare): Likewise.
18154         (maybe_canonicalize_comparison_1): Likewise.
18155         (fold_comparison): Likewise.
18156         (fold_binary_loc): Likewise.
18157         (multiple_of_p): Likewise.
18158         * expr.c (store_constructor): Likewise.
18159         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
18160         (maybe_fold_stmt_addition): Likewise.
18161         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
18162         * stor-layout.c (layout_type): Likewise.
18163         * tree-data-ref.c (tree_fold_divides_p): Likewise.
18164         * tree-sra.c (build_ref_for_offset): Likewise.
18165         (build_user_friendly_ref_for_offset): Likewise.
18166         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
18167         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
18168         * tree-ssa-loop-niter.c (inverse): Likewise.
18169         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
18170         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
18171         * tree-switch-conversion.c (check_range): Likewise.
18172         (build_constructors): Likewise.
18173         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
18174         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
18175         (extract_range_from_assert): Likewise.
18176         (vrp_int_const_binop): Likewise.
18177         (extract_range_from_binary_expr): Likewise.
18178         (extract_range_from_unary_expr): Likewise.
18179         (check_array_ref): Likewise.
18180         (find_case_label_range): Likewise.
18181         (simplify_div_or_mod_using_ranges): Likewise.
18182         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
18183         comparing case labels for merging.
18184
18185 2011-05-03  Mark Wielaard  <mjw@redhat.com>
18186
18187         * dwarf2out.c (debug_str_hash_forced): Removed.
18188         (gen_label_for_indirect_string): Removed.
18189         (get_debug_string_label): Removed.
18190         (AT_string_form): Generate label directly.
18191         (output_indirect_string): Test indirect_string_node for
18192         DW_FORM_strp instead of checking label and refcount.
18193         (prune_indirect_string): Removed.
18194         (prune_unused_types): Don't check debug_str_hash_forced or
18195         call prune_indirect_string.
18196
18197 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
18198
18199         PR other/48093
18200         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
18201
18202 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
18203
18204         PR debug/47994
18205         PR debug/47919
18206         * combine.c (try_combine): Skip debug insns at m_split tests.
18207
18208 2011-04-26  Mark Wielaard  <mjw@redhat.com>
18209
18210         PR42288
18211         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
18212         when info_section_emitted.
18213
18214 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
18215
18216         * config/mips/mips-opts.h: New.
18217         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
18218         to mips-opts.h.
18219         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
18220         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
18221         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
18222         via opts pointer.
18223         * config/mips/mips.h (enum mips_code_readable_setting): Move to
18224         mips-opts.h.
18225         (mips_abi, mips_code_readable): Don't declare.
18226         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
18227         (mabi=): Use Enum and Var.
18228         (mips_abi): New Enum and EnumValue entries.
18229         (mcode-readable=): Use Enum and Var.
18230         (mips_code_readable_setting): New Enum and EnumValue entries.
18231         (mr10k-cache-barrier=): Use Enum and Var.
18232         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
18233
18234 2011-05-03  Jan Hubicka  <jh@suse.cz>
18235
18236         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
18237         replace hash by pointer map.
18238         (cgraph_node_set_element_def, cgraph_node_set_element,
18239         const_cgraph_node_set_element, varpool_node_set_element_def,
18240         varpool_node_set_element, const_varpool_node_set_element): Remove.
18241         (free_cgraph_node_set, free_varpool_node_set): New function.
18242         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
18243         * tree-emutls.c: Free varpool node set.
18244         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
18245         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
18246         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
18247         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
18248         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
18249         Move here from ipa.c; implement using pointer_map
18250         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
18251         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
18252         debug_cgraph_node_set, varpool_node_set_new,
18253         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
18254         dump_varpool_node_set, debug_varpool_node_set):
18255         Move to ipa-uitls.c.
18256         * passes.c (ipa_write_summaries): Update.
18257
18258 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18259
18260         From Mike Frysinger:
18261         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
18262         bf542/bf544/bf547/bf548/bf549.
18263
18264 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
18265
18266         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
18267
18268 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18269
18270         From Bernd Schmidt:
18271         * config/bfin/bfin.md (MOVCC): New mode_macro.
18272         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
18273         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
18274         comments from generated assembly.
18275
18276 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18277
18278         From Bernd Schmidt
18279         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
18280         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
18281         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
18282         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
18283         * config/bfin/lib1funcs.asm (___muldi3): New function.
18284
18285 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18286
18287         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
18288         build_function_type_list instead of build_function_type.
18289         Rearrange initialization of `args' to do so.
18290
18291 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18292
18293         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
18294         instead of build_function_type.
18295
18296 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18297
18298         * config/rs6000/rs6000.c (spe_init_builtins): Call
18299         build_function_type_list instead of build_function_type.
18300         (paired_init_builtins, altivec_init_builtins): Likewise.
18301         (builtin_function_type): Likewise.
18302
18303 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18304
18305         * config/sh/sh.c (sh_media_init_builtins): Call
18306         build_function_type_list instead of build_function_type.
18307
18308 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18309
18310         * config/sparc/sparc.c (sparc_file_end): Call
18311         build_function_type_list instead of build_function_type.
18312
18313 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18314
18315         * config/alpha/alpha.c (alpha_init_builtins): Call
18316         build_function_type_list instead of build_function_type.
18317
18318 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18319
18320         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
18321         build_function_type_list instead of build_function_type.
18322
18323 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18324
18325         * config/iq2000/i2000.c (iq2000_init_builtins): Call
18326         build_function_type_list instead of build_function_type.
18327         Delete `endlink' variable.
18328
18329 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18330
18331         * config/avr/avr.c (avr_init_builtins): Call
18332         build_function_type_list instead of build_function_type.
18333
18334 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18335
18336         * config/picochip/picochip.c (picochip_init_builtins): Call
18337         build_function_type_list instead of build_function_type.
18338         Delete `endlink' variable.
18339
18340 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
18341
18342         * config/bfin/bfin.c (bfin_init_builtins): Call
18343         build_function_type_list instead of build_function_type.
18344
18345 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18346
18347         From Bernd Schmidt
18348         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
18349         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
18350
18351 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18352
18353         From Jie Zhang:
18354         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
18355         libbffastfp overrides libgcc when -mfast-fp.
18356
18357 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18358
18359         Originally from Bernd Schmidt
18360         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
18361         * config/bfin/bfin.c (override_options): Test it and error if
18362         TARGET_FDPIC.
18363
18364 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
18365
18366         Originally From Bernd Schmidt
18367         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
18368         FD-PIC.
18369
18370 2011-05-03  Jeff Law  <law@redhat.com>
18371
18372         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
18373         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
18374         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
18375         than accessing AUX field directly.  Free the AUX field before
18376         clearing it.
18377         (thread_block, thread_through_loop_header): Likewise.
18378         (thread_single_edge, mark_threaded_blocks): Likewise.
18379         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
18380         (register_jump_thread): Do not attempt to thread to a NULL edge.
18381
18382 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
18383
18384         * function.c (init_function_start): Call decide_function_section.
18385         * varasm.c (decide_function_section): New function.
18386         (assemble_start_function): When not using
18387         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
18388         or first_function_block_is_cold.
18389         * rtl.h (decide_function_section): Declare.
18390
18391 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
18392             Jakub Jelinek  <jakub@redhat.com>
18393
18394         PR target/48774
18395         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
18396         only succeed if req_mode is the same as set_mode.
18397
18398 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
18399
18400         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
18401         * genemit.c (gen_exp): Handle RETURN.
18402         * emit-rtl.c (verify_rtx_sharing): Likewise.
18403         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
18404         * rtl.c (copy_rtx): RETURN is shared.
18405         * rtl.h (enum global_rtl_index): Add GR_RETURN.
18406         (ret_rtx): New.
18407         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
18408         * config/s390/s390.c (s390_emit_epilogue): Likewise.
18409         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
18410         * config/cris/cris.c (cris_expand_return): Likewise.
18411         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
18412         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
18413         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
18414         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
18415         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
18416         Likewise.
18417         * config/v850/v850.c (expand_epilogue): Likewise.
18418         * config/bfin/bfin.c (bfin_expand_call): Likewise.
18419         * config/arm/arm.md (epilogue): Likewise.
18420         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
18421         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
18422         variable to ret_reg.
18423
18424 2011-05-03  Richard Guenther  <rguenther@suse.de>
18425
18426         PR lto/48846
18427         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
18428         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
18429         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18430
18431 2011-05-03  Richard Guenther  <rguenther@suse.de>
18432
18433         * c-decl.c (grokdeclarator): Instead of looking at
18434         TREE_OVERFLOW check if the constant fits in the index type.
18435
18436 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
18437
18438         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
18439         (vec_store_lanes<mode><mode>): Likewise.
18440
18441 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
18442
18443         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
18444         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
18445         convert_optab_index values.
18446         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
18447         * genopinit.c (optabs): Initialize the new optabs.
18448         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
18449         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
18450         (expand_STORE_LANES): New functions.
18451         * tree.h (build_array_type_nelts): Declare.
18452         * tree.c (build_array_type_nelts): New function.
18453         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
18454         (vect_model_load_cost): Likewise.
18455         (vect_store_lanes_supported, vect_load_lanes_supported)
18456         (vect_record_strided_load_vectors): Declare.
18457         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
18458         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
18459         (vect_transform_strided_load): Split out statement recording into...
18460         (vect_record_strided_load_vectors): ...this new function.
18461         * tree-vect-stmts.c (create_vector_array, read_vector_array)
18462         (write_vector_array, create_array_ref): New functions.
18463         (vect_model_store_cost): Add store_lanes_p argument.
18464         (vect_model_load_cost): Add load_lanes_p argument.
18465         (vectorizable_store): Try to use store-lanes functions for
18466         interleaved stores.
18467         (vectorizable_load): Likewise load-lanes and loads.
18468         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
18469         to vect_model_store_cost.
18470         (vect_build_slp_tree): Likewise vect_model_load_cost.
18471
18472 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
18473
18474         * hooks.h (hook_bool_mode_uhwi_false): Declare.
18475         * hooks.c (hook_bool_mode_uhwi_false): New function.
18476         * target.def (array_mode_supported_p): New hook.
18477         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
18478         * doc/tm.texi: Regenerate.
18479         * stor-layout.c (mode_for_array): New function.
18480         (layout_type): Use it.
18481         * config/arm/arm.c (arm_array_mode_supported_p): New function.
18482         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
18483
18484 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
18485
18486         PR target/48723
18487         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
18488         for -fstack-check if the size to allocate is negative.
18489
18490 2011-05-02  Lawrence Crowl  <crowl@google.com>
18491
18492         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
18493         (timevar_cond_start): New for starting a timer only when it is not
18494         already running.
18495         (timevar_cond_stop): New for stopping a timer when it was not already
18496         running.
18497
18498         * timevar.c (timevar_stop): Enable start/stop timers to start again.
18499         (timevar_cond_start): New as above.
18500         (timevar_cond_stop): New as above.
18501
18502         * timevar.def: Add start/stop timers for compiler phases,
18503         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
18504         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
18505         and TV_PHASE_FINALIZE.
18506         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
18507         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
18508         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
18509         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
18510         Make unused TV_OVERLOAD into a start/stop timer.
18511
18512         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
18513         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
18514         to indicate that they are start/stop timers.
18515
18516         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
18517         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
18518         Move initialization to do_compile.
18519         (do_compile): Add initialization from above.
18520         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
18521
18522         * c-decl.c (c_write_global_declarations): Add start/stop of
18523         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
18524
18525         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
18526         or TV_PARSE_INLINE, as appropriate.
18527         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
18528         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
18529
18530 2011-05-02  Jason Merrill  <jason@redhat.com>
18531
18532         PR c++/40975
18533         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
18534
18535 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
18536
18537         PR c/35445
18538         * c-decl.c (finish_decl): Only create a composite if the types are
18539         compatible.
18540
18541 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
18542
18543         * config/fr30/fr30-protos.h (Mmode): Don't define.
18544         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
18545         definition where used.
18546         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
18547         define.  Expand definitions where used.
18548         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
18549         Expand definitions where used.
18550         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
18551         rx_function_arg, rx_function_arg_advance,
18552         rx_function_arg_boundary): Expand definitions of those macros.
18553         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
18554         definition where used.
18555
18556 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
18557
18558         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
18559         reg<->xmm moves.
18560         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
18561         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
18562         with *movv2sf_internal_rex64_avx.
18563         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
18564         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
18565         Use %v prefix in insn mnemonic to handle TARGET_AVX.
18566         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
18567         "vex" in "prefix" attribute calculation.
18568         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
18569
18570 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
18571
18572         PR target/47951
18573         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
18574         inputs match the output.
18575
18576 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
18577
18578         PR target/47955
18579         * config/m68k/m68k.c (m68k_expand_prologue): Set
18580         current_function_static_stack_size.
18581
18582 2011-05-02   Jan Hubicka  <jh@suse.cz>
18583
18584         * lto-streamer.c (lto_streamer_cache_insert_1,
18585         lto_streamer_cache_lookup, lto_streamer_cache_create,
18586         lto_streamer_cache_delete): Use pointer map instead of hashtable.
18587         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
18588
18589 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
18590
18591         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
18592         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
18593         config/m68k/t-opts: New files.
18594         * config/m68k/m68k-tables.opt: New file (generated).
18595         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
18596         extra_options and m68k/t-opts to tmake_file.
18597         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
18598         (all_isas): Initialize using m68k-isas.def.
18599         (all_microarchs): Initialize using m68k-microarchs.def.
18600         (m68k_find_selection): Remove.
18601         (m68k_handle_option): Don't assert that global structures are in
18602         use.  Use error_at.  Access variables via opts pointer.  Don't
18603         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
18604         directly for -m68020-40 and -m68020-60.
18605         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
18606         m68k_tune_entry here.
18607         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
18608         to m68k-opts.h.
18609         (m68k_library_id_string): Remove declaration.
18610         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
18611         (m68k_library_id_string): New Variable.
18612         (march=, mcpu=, mtune=): Use Enum and Var.
18613
18614 2011-05-02  Richard Guenther  <rguenther@suse.de>
18615
18616         * varasm.c (output_constructor_regular_field): Compute zero-based
18617         index with double-ints.  Make sure to ICE instead of producing
18618         wrong code.
18619         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
18620         in asserts.  Properly use a signed type.
18621
18622 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
18623
18624         * config/i386/sse.md (V): New mode iterator.
18625         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
18626         TARGET_SSE2.
18627         (V_256): Rename from AVX256MODE.
18628         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
18629         condition to all users.
18630         (VF1): Ditto.
18631         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
18632         condition to all users.
18633         (VF_128): Make V4SF mode unconditional.
18634         (VF_256): Rename from AVX256MODEF2P.
18635         (VI4F_128): Rename from SSEMODE4S.
18636         (VI8F_128): Rename from SSEMODE2D.
18637         (VI4F_256): Rename from AVX256MODE8P.
18638         (VI8F_256): Rename from AVX256MODE4P.
18639         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
18640         (ssescalarmodesuffix): Remove SF and DF modes.
18641         (SSEMODE124): Remove.
18642         (SSEMODE1248): Ditto.
18643         (SSEMODEF2P): Ditto.
18644         (AVXMODEF2P): Ditto.
18645         (AVXMODEFDP): Ditto.
18646         (AVXMODEFSP): Ditto.
18647         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
18648         unconditional.
18649         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
18650         unconditional.
18651         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
18652         xop_pcmov_<mode>256.  Use V mode iterator.
18653
18654         Adjust RTX patterns globally for renamed mode attributes.
18655
18656 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18657
18658         * haifa-sched.c (sched_emit_insn): Emit insn before first
18659         non-scheduled insn.  Inform back-end about new insn.  Add
18660         new insn to scheduled_insns list.
18661
18662 2011-05-02  Richard Guenther  <rguenther@suse.de>
18663
18664         PR tree-optimization/48822
18665         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
18666         (process_scc): Indicate which iteration we start.
18667
18668 2011-05-02  Jan Hubicka  <jh@suse.cz>
18669
18670         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
18671         (lto_section_overrun): New.
18672         * lto-section-out.c (append_block): Rename to ...
18673         (lto_append_block): ... this one; export.
18674         (lto_output_1_stream): Move lto lto-streamer.h
18675         (lto_output_data_stream): Update.
18676         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
18677         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
18678         functions.
18679
18680 2011-05-02  Richard Guenther  <rguenther@suse.de>
18681
18682         * tree.c (tree_code_counts): New global array.
18683         (record_node_allocation_statistics): Count individual tree codes.
18684         (dump_tree_statistics): Dump individual code stats.
18685
18686 2011-05-01  Jan Hubicka  <jh@suse.cz>
18687
18688         * ipa-inline.c (caller_growth_limits): Fix thinko when
18689         looking for largest stack frame.
18690         * ipa-inline.h (dump_inline_summary): Declare.
18691         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
18692         on stack usage.
18693         (dump_inline_summary): Export.
18694         (debug_inline_summary): Declare as DEBUG_FUNCTION.
18695
18696 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
18697
18698         * reginfo.c (memory_move_cost): Change rclass argument type form
18699         'enum reg_class' to reg_class_t.
18700         * reload.h (memory_move_cost): Update prototype.
18701         * postreload.c reload_cse_simplify_set): Change type dclass var to
18702         reg_class_t.
18703         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
18704         Update prototype.
18705         (ira_allocate_and_set_costs): Change aclass argument type form
18706         'enum reg_class' to reg_class_t.
18707         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
18708         Change aclass argument type to reg_class_t.
18709         (update_conflict_hard_reg_costs): Change type aclass and pref vars
18710         to reg_class_t.
18711         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
18712         memory_move_cost call.
18713
18714         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
18715         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
18716         Change type tmp var to reg_class_t.
18717
18718 2011-04-30  Jan Hubicka  <jh@suse.cz>
18719
18720         * ipa-inline.c (can_inline_edge_p): Disregard limits when
18721         inlining into function with flatten attribute.
18722         (want_inline_small_function_p): Be more realistic about inlining
18723         cold calls where callee size grows.
18724
18725 2011-04-30  Jan Hubicka  <jh@suse.cz>
18726
18727         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
18728         flags.
18729
18730 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
18731
18732         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
18733         PRINT_OPERAND_PUNCT_VALID_P): Remove.
18734         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
18735         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
18736         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18737         (print_operand): Rename to...
18738         (sparc_print_operand): ...this. Make static. Adjust
18739         sparc_print_operand function call.
18740         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
18741         functions.
18742
18743 2011-04-30  Jan Hubicka  <jh@suse.cz>
18744
18745         PR middle-end/48752
18746         * ipa-inline.c (early_inliner): Disable when doing late
18747         addition of function.
18748
18749 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
18750
18751         * dwarf2out.c (get_address_mode): New inline.
18752         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
18753         if not dwarf_strict emit
18754         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
18755         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
18756         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
18757         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
18758         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
18759         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
18760         mem_loc_descriptor callers.
18761         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
18762         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
18763         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
18764         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
18765         (base_types): New variable.
18766         (get_base_type_offset, calc_base_type_die_sizes,
18767         base_type_for_mode, mark_base_types, base_type_cmp,
18768         move_marked_base_types): New functions.
18769         (calc_die_sizes): Assert that die_offset is 0 or equal to
18770         next_die_offset.
18771         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
18772         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
18773         callers.  If not dwarf_strict, call mem_loc_descriptor even for
18774         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
18775         (gen_subprogram_die): Don't give up on call site parameters
18776         with non-integral or large integral modes.  Adjust
18777         mem_loc_descriptor callers.
18778         (prune_unused_types): Call prune_unused_types_mark on base_types
18779         vector entries.
18780         (resolve_addr): Call mark_base_types.
18781         (dwarf2out_finish): Call move_marked_base_types.
18782
18783         PR tree-optimization/48809
18784         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
18785         type.
18786         (gen_inbound_check): Don't compute index_expr - range_min in utype
18787         again, instead reuse SSA_NAME initialized in build_arrays.
18788         Remove two useless gsi_for_stmt calls.
18789
18790 2011-04-29  Jeff Law  <law@redhat.com>
18791
18792         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
18793
18794 2011-04-29  Martin Jambor  <mjambor@suse.cz>
18795
18796         * cgraph.h (cgraph_postorder): Remove declaration.
18797         * ipa-utils.h (ipa_free_postorder_info): Declare.
18798         (ipa_reverse_postorder): Likewise.
18799         * cgraphunit.c: Include ipa-utils.h.
18800         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
18801         * ipa-inline.c: Include ipa-utils.h.
18802         (ipa_inline): Update call to ipa_reverse_postorder.
18803         * ipa-pure-const.c (propagate_pure_const): Update call to
18804         ipa_reduced_postorder and ipa_print_order.  Call
18805         ipa_free_postorder_info to clean up.
18806         (propagate_nothrow): Likewise.
18807         * ipa-reference.c (propagate): Removed a useless call to
18808         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
18809         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
18810         * ipa.c: Include ipa-utils.h.
18811         (ipa_profile): Update call to ipa_reverse_postorder.
18812         (cgraph_postorder): Moved to...
18813         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
18814         (ipa_utils_print_order): Renamed to ipa_print_order.
18815         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
18816         comments.
18817         (ipa_free_postorder_info): New function.
18818         * passes.c: Include ipa-utils.h.
18819         (do_per_function_toporder): Update call to ipa_reverse_postorder.
18820         (ipa_write_summaries): Likewise.
18821         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
18822         (cgraphunit.o): Likewise.
18823         (ipa.o): Likewise.
18824         (ipa-inline.o): Likewise.
18825
18826 2011-04-29  Jan Hubicka  <jh@suse.cz>
18827
18828         * gcc.dg/tree-ssa/inline-10.c: New testcase.
18829         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
18830         * ipa-inline.h (clause_t): Turn into unsigned int.
18831         * ipa-inline-analysis.c (add_clause): Do more simplification.
18832         (and_predicates): Shortcut more cases.
18833         (predicates_equal_p): Move forward; check that clauses are properly
18834         ordered.
18835         (or_predicates): Shortcut more cases.
18836         (edge_execution_predicate): Rewrite as...
18837         (set_cond_stmt_execution_predicate): ... this function; handle
18838         __builtin_constant_p.
18839         (set_switch_stmt_execution_predicate): New .
18840         (compute_bb_predicates): New.
18841         (will_be_nonconstant_predicate): Update TODO.
18842         (estimate_function_body_sizes): Use compute_bb_predicates
18843         and free them later, always try to estimate if stmt is constant.
18844         (estimate_time_after_inlining, estimate_size_after_inlining):
18845         Gracefully handle optimized out edges.
18846         (read_predicate): Fix off by one error.
18847
18848 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
18849
18850         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
18851
18852 2011-04-27  Xinliang David Li  <davidxl@google.com>
18853
18854         * tree-profile.c (init_ic_make_global_vars): Set
18855         tls attribute on ic vars.
18856         * coverage.c (coverage_end_function): Initialize
18857         function_list with zero.
18858
18859 2011-04-29  Richard Guenther  <rguenther@suse.de>
18860
18861         * builtins.c (fold_builtin_classify_type): Use integer_type_node
18862         for the type of the result.
18863         (fold_builtin_isascii): Likewise.
18864         (fold_builtin_toascii): Use integer_type_node where appropriate.
18865         (fold_builtin_logb): Likewise.
18866         (fold_builtin_frexp): Likewise.
18867         (fold_builtin_strstr): Likewise.
18868         (fold_builtin_strpbrk): Likewise.
18869         (fold_builtin_fputs): Likewise.
18870         (fold_builtin_sprintf): Likewise.
18871         (fold_builtin_snprintf): Likewise.
18872         (fold_builtin_printf): Likewise.
18873         (do_mpfr_remquo): Use a proper type for the assigned constant.
18874         (do_mpfr_lgamma_r): Likewise.
18875         * dwarf2out.c (resolve_one_addr): Use size_int.
18876         * except.c (init_eh): Likewise.
18877         (assign_filter_values): Use integer_type_node for filter values.
18878         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
18879         indices.
18880         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
18881         for EH region numbers.
18882         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
18883         for the shift amount.
18884
18885 2011-04-29  Richard Guenther  <rguenther@suse.de>
18886
18887         * expr.h (expand_shift): Rename to ...
18888         (expand_variable_shift): ... this.
18889         (expand_shift): Take a constant shift amount.
18890         * expmed.c (expand_shift): Rename to ...
18891         (expand_variable_shift): ... this.
18892         (expand_shift): New wrapper around expand_variable_shift.
18893         * expr.c (convert_move, emit_group_load_1, emit_group_store,
18894         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
18895         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
18896         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
18897         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
18898         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
18899         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
18900         emit_store_flag_1, emit_store_flag): Likewise.
18901         * builtins.c (expand_builtin_signbit): Likewise.
18902         * calls.c (load_register_parameters): Likewise.
18903         * function.c (assign_parm_setup_block): Likewise.
18904         * lower-subreg.c (resolve_shift_zext): Likewise.
18905         * optabs.c (widen_bswap, expand_abs_nojump,
18906         expand_one_cmpl_abs_nojump, expand_float): Likewise.
18907         * spu/spu.c (spu_expand_extv): Likewise.
18908         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
18909
18910 2011-04-29  Richard Guenther  <rguenther@suse.de>
18911
18912         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
18913         for the remapped region number.
18914         * predict.c (build_predict_expr): Use integer_type_node for the
18915         predict kind.
18916         * fold-const.c (fold_binary_loc): Use integer_type_node for
18917         the shift amount.  Use a proper type for the PLUS_EXPR operand.
18918
18919 2011-04-29  Michael Matz  <matz@suse.de>
18920
18921         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
18922         other trees that just builtins.
18923         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
18924
18925 2011-04-29  Richard Guenther  <rguenther@suse.de>
18926
18927         * tree-nested.c (get_trampoline_type): Use size_int.
18928         (get_nl_goto_field): Likewise.
18929         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
18930         for all indexes.
18931         (lower_eh_constructs_2): Likewise.
18932         (lower_resx): Likewise.
18933         (lower_eh_dispatch): Likewise.
18934         * tree-mudflap.c (mf_build_string): Use size_int.
18935         (mudflap_register_call): Use integer_type_node for the flag.
18936         (mudflap_enqueue_constant): Use size_int.
18937         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
18938         instead of rebuilding it.
18939
18940 2011-04-29  Richard Guenther  <rguenther@suse.de>
18941
18942         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
18943         Handle OBJ_TYPE_REF.
18944         (find_func_aliases_for_call): Use it more consistently.
18945
18946 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
18947
18948         * haifa-sched.c (last_nondebug_scheduled_insn): New.
18949         (rank_for_schedule): Use it.
18950         (schedule_block): Set it.
18951
18952 2011-04-28  David Li  <davidxl@google.com>
18953
18954         * tree.c (crc32_string): Use crc32_byte.
18955         (crc32_byte): New function.
18956         * tree.h (crc32_byte): New function.
18957         * gcov.c (read_graph_file): Handle new cfg_cksum.
18958         (read_count_file): Ditto.
18959         * profile.c (instrument_values): Ditto.
18960         (get_exec_counts): Ditto.
18961         (read_profile_edge_counts): Ditto.
18962         (compute_branch_probabilities): Ditto.
18963         (compute_value_histograms): Ditto.
18964         (branch_prob): Ditto.
18965         (end_branch_prob): Ditto.
18966         * coverage.c (read_counts_file): Ditto.
18967         (get_coverage_counts): Ditto.
18968         (tree_coverage_counter_addr): Ditto.
18969         (coverage_checksum_string): Ditto.
18970         (coverage_begin_output): Ditto.
18971         (coverage_end_function): Ditto.
18972         (build_fn_info_type): Ditto.
18973         (build_fn_info_value): Ditto.
18974         * libgcov.c (gcov_exit): Ditto.
18975         * gcov-dump.c (tag_function): Ditto.
18976         (compute_checksum): Remove.
18977
18978 2011-04-29  Alan Modra  <amodra@gmail.com>
18979
18980         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18981         unspec plus offset.  Tidy macho code.
18982
18983 2011-04-29  Martin Jambor  <mjambor@suse.cz>
18984
18985         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
18986         node instead of a decl.  Update all callers.
18987         * cgraph.h: Update declaration.
18988
18989 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
18990
18991         PR tree-optimization/48765
18992         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
18993         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
18994         to indicate if loop aware SLP is being used.  Scan the statements
18995         and update the vectorization factor according to the type of
18996         vectorization before statement analysis.
18997         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
18998         pass it to vect_analyze_loop_operations.
18999         (vectorizable_reduction): Set number of copies to 1 in case of pure
19000         SLP statement.
19001         * tree-vect-stmts.c (vectorizable_conversion,
19002         vectorizable_assignment, vectorizable_shift,
19003         vectorizable_operation, vectorizable_type_demotion,
19004         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
19005         Likewise.
19006         (vectorizable_condition): Move the check that it is not SLP
19007         vectorization before the number of copies check.
19008         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
19009         to vectorize the loop using SLP.
19010
19011 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
19012
19013         PR middle-end/48597
19014         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
19015         inline asm.
19016
19017 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
19018
19019         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
19020         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
19021         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19022         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19023         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
19024         linux*.h headers.
19025         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
19026         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19027         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19028         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19029         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19030         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
19031         REG_NAME.
19032         * config/i386/linux.h (REG_NAME): Don't define.
19033         * config/i386/linux64.h (REG_NAME): Don't define.
19034         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
19035         Undefine before defining.
19036
19037 2011-04-28  Jan Hubicka  <jh@suse.cz>
19038
19039         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
19040         nonconstant_names array.
19041         (estimate_function_body_sizes): Build nonconstant_names array; handle
19042         BUILT_IN_CONSTANT_P.
19043
19044 2011-04-28  Richard Guenther  <rguenther@suse.de>
19045
19046         PR bootstrap/48804
19047         Revert
19048         2011-04-28  Richard Guenther  <rguenther@suse.de>
19049
19050         * tree-ssa-structalias.c (solve_constraints): Build succ graph
19051         as late as possible.
19052
19053 2011-04-28  Richard Guenther  <rguenther@suse.de>
19054
19055         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
19056         (debug_constraint): Do it here.
19057         (dump_constraints): And here.
19058         (rewrite_constraints): And here.
19059         (dump_constraint_edge): Remove.
19060         (dump_constraint_graph): Rewrite to produce DOT output.
19061         (solve_constraints): Build succ graph as late as possible.
19062         Dump constraint graphs before and after solving.
19063
19064 2011-04-28  Richard Guenther  <rguenther@suse.de>
19065
19066         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19067         New function split out from ...
19068         (find_func_aliases): ... here.  Call it.
19069         (find_func_aliases_for_call): Likewise.
19070
19071 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19072
19073         * internal-fn.h (internal_fn_name_array): Declare.
19074         (internal_fn_flags_array): Likewise.
19075
19076 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
19077
19078         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
19079         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
19080         Move from sse.md.
19081         (ssemodefsuffix): Remove.
19082         (ssevecmodesuffix): New mode attribute.
19083         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
19084         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
19085         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
19086         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
19087         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
19088         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
19089         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
19090         ssemodesuffix mode attribute.
19091         (float splitters): Use ssevecmodesuffix mode attribute.
19092         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
19093         (sseinsmode): Rename from avxvecmode.
19094         (avxsizesuffix): Rename from avxmodesuffix.
19095         (sseintvecmode): Rename from avxpermvecmode.
19096         (ssedoublevecmode): Rename from ssedoublesizemode.
19097         (ssehalfvecmode): Rename from avxhalfvecmode.
19098         (ssescalarmode): Rename from avxscalarmode.
19099         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
19100         templates for ssemodesuffix mode attribute.
19101         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
19102         mode attribute.
19103
19104         Adjust RTX patterns globally for renamed mode attributes.
19105
19106 2011-04-27  Jan Hubcika  <jh@suse.cz>
19107
19108         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
19109         * ipa-inline-analysis.c: Include alloc-pool.h.
19110         (edge_predicate_pool): New.
19111         (trye_predicate_p): New function
19112         (false_predicate_p): New function.
19113         (add_clause): Sanity check that false clauses are "optimized";
19114         never add clauses to predicate that is already known to be false.
19115         (and_predicate): Use flase_predicate_p.
19116         (evaulate_predicate): Rename to ...
19117         (evaluate_predicate): ... this one; update all callers; assert
19118         that false is not listed among possible truths.
19119         (dump_predicate): Use true_predicate_p.
19120         (account_size_time): Use false_predicate_p.
19121         (evaulate_conditions_for_edge): Rename to ...
19122         (evaluate_conditions_for_edge) ... this one.
19123         (edge_set_predicate): New function.
19124         (inline_edge_duplication_hook): Duplicate edge predicates.
19125         (inline_edge_removal_hook): Free edge predicates.
19126         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
19127         (dump_inline_summary): Update.
19128         (estimate_function_body_sizes): Set edge predicates.
19129         (estimate_calls_size_and_time): Handle predicates.
19130         (estimate_callee_size_and_time): Update.
19131         (remap_predicate): Add toplev_predicate; update comment.
19132         (remap_edge_predicates): New function.
19133         (inline_merge_summary): Compute toplev predicate; update.
19134         (read_predicate): New function.
19135         (read_inline_edge_summary): Use it.
19136         (inline_read_section): Likewise.
19137         (write_predicate): New function.
19138         (write_inline_edge_summary): Use it.
19139         (inline_write_summary): Likewise.
19140         (inline_free_summary): Free alloc pool and edge summary vec.
19141
19142 2011-04-27  Richard Guenther  <rguenther@suse.de>
19143
19144         * tree-ssa-structalias.c (changed_count): Remove.
19145         (changed): Use a bitmap.
19146         (unify_nodes): Adjust.
19147         (do_sd_constraint): Likewise.
19148         (do_ds_constraint): Likewise.
19149         (do_complex_constraint): Likewise.
19150         (solve_graph): Likewise.
19151
19152 2011-04-27  Jan Hubicka  <jh@suse.cz>
19153
19154         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
19155
19156 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
19157
19158         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
19159         (avx_vperm2f128_*_operand): Ditto.
19160         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
19161         Use avx_vpermilp_parallel in insn condition.
19162         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
19163         Use avx_vperm2f128_parallel in insn condition.
19164
19165 2011-04-27  Richard Guenther  <rguenther@suse.de>
19166
19167         * Makefile.in (tree-ssa-structalias.o): Remove
19168         gt-tree-ssa-structalias.h dependency.
19169         (GTFILES): Remove tree-ssa-structalias.c.
19170         * tree.c (allocate_decl_uid): New function.
19171         (make_node_stat): Use it.
19172         (copy_node_stat): Likewise.
19173         * tree.h (allocate_decl_uid): Declare.
19174         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
19175         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
19176         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
19177         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
19178         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
19179         (struct heapvar_map): Likewise.
19180         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
19181         heapvar_insert): Likewise.
19182         (make_heapvar_for): Rename to ...
19183         (make_heapvar): ... this.  Simplify.
19184         (fake_var_decl_obstack): New global var.
19185         (build_fake_var_decl): New function.
19186         (make_constraint_from_heapvar): Adjust.
19187         (handle_lhs_call): Likewise.
19188         (create_function_info_for): Likewise.
19189         (intra_create_variable_infos): Likewise.
19190         (init_alias_vars): Allocate fake_var_decl_obstack.
19191         (init_alias_heapvars, delete_alias_heapvars): Remove.
19192         (compute_points_to_sets): Do not call init_alias_heapvars.
19193         (ipa_pta_execute): Likewise.
19194         (delete_points_to_sets): Free fake_var_decl_obstack.
19195
19196 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19197
19198         * config/spu/divmovti4.c (union qword_UTItype): New data type.
19199         (si_from_UTItype, si_to_UTItype): New functions.
19200         (__udivmodti4): Use them to implement type-punning.
19201         * config/spu/multi3.c (union qword_TItype): New data type.
19202         (si_from_TItype, si_to_TItype): New functions.
19203         (__multi3): Use them to implement type-punning.
19204
19205 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19206
19207         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
19208
19209 2011-04-27  Jan Hubicka  <jh@suse.cz>
19210
19211         * ipa-prop.c (function_insertion_hook_holder): New holder.
19212         (ipa_add_new_function): New function.
19213         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
19214         Register/deregister holder.
19215
19216 2011-04-27  Richard Guenther  <rguenther@suse.de>
19217
19218         PR tree-optimization/48772
19219         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
19220
19221 2011-04-27  Richard Guenther  <rguenther@suse.de>
19222
19223         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
19224         TARGET_MEM_REF handling.
19225
19226 2011-04-27  Nick Clifton  <nickc@redhat.com>
19227
19228         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
19229         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
19230         (REG_CLASS_NAMES): Likewise.
19231         (REG_CLASS_CONTENTS): Likewise.
19232         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
19233         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
19234         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
19235         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
19236         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
19237         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
19238         duplicate register classes.
19239         (frv_class_likely_spilled_p): Likewise.
19240         (frv_register_move_cost): Likewise.
19241
19242         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
19243         end of the regno_reg_class array.
19244
19245 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
19246
19247         PR c/48742
19248         * c-typeck.c (build_binary_op): Don't wrap arguments if
19249         int_operands is true.
19250
19251 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
19252
19253         PR target/48767
19254         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
19255         targetm.calls.must_pass_in_stack for void type.
19256
19257 2011-04-26  Jan Hubicka  <jh@suse.cz>
19258
19259         * cgraphbuild.c (build_cgraph_edges): Update call
19260         of cgraph_create_edge and cgraph_create_indirect_edge.
19261         * cgraph.c (cgraph_create_edge_including_clones,
19262         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
19263         cgraph_update_edges_for_call_stmt_node): Do not take nest
19264         argument; do not initialize call_stmt_size/time.
19265         (dump_cgraph_node): Do not dump nest.
19266         (cgraph_clone_edge): Do not take loop_nest argument;
19267         do not propagate it; do not clone call_stmt_size/time.
19268         (cgraph_clone_node): Likewise.
19269         (cgraph_create_virtual_clone): Update.
19270         * cgraph.h (struct cgraph_edge): Remove
19271         call_stmt_size/call_stmt_time/loop_nest.
19272         (cgraph_create_edge, cgraph_create_indirect_edge,
19273         cgraph_create_edge_including_clones, cgraph_clone_node): Update
19274         prototype.
19275         * tree-emutls.c (gen_emutls_addr): Update.
19276         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
19277         loop_nest; handle indirect calls, too.
19278         (clone_inlined_nodes): Do not care about updating inline summaries.
19279         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
19280         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
19281         stream call_stmt_size/call_stmt_time/loop_nest.
19282         * ipa-inline.c (edge_badness): Update.
19283         (ipa_inline): dump summaries after inlining.
19284         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
19285         New.
19286         (inline_edge_summary): New function.
19287         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
19288         (inline_edge_removal_hook): Handle edge summaries.
19289         (inline_edge_duplication_hook): New hook.
19290         (inline_summary_alloc): Alloc hooks.
19291         (initialize_growth_caches): Do not register removal hooks.
19292         (free_growth_caches); Do not free removal hook.
19293         (dump_inline_edge_summary): New function.
19294         (dump_inline_summary): Use it.
19295         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
19296         (inline_update_callee_summaries): New function.
19297         (inline_merge_summary): Use it.
19298         (do_estimate_edge_time, do_estimate_edge_growth): Update.
19299         (read_inline_edge_summary): New function.
19300         (inline_read_section): Use it.
19301         (write_inline_edge_summary): New function.
19302         (inline_write_summary): Use it.
19303         (inline_free_summary): Free edge new holders.
19304         * tree-inline.c (copy_bb): Update.
19305
19306 2011-04-26  Jason Merrill  <jason@redhat.com>
19307
19308         * tree-eh.c (lower_try_finally_switch): Create the label along with
19309         the CASE_LABEL_EXPR.
19310
19311 2011-04-26  David S. Miller  <davem@davemloft.net>
19312             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19313
19314         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
19315         * configure: Regenerate.
19316
19317 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
19318
19319         PR target/48258
19320         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
19321         reduction.
19322         (VEC_reduc): New code iterator and splitters for vector reduction.
19323         (VEC_reduc_name): Ditto.
19324         (VEC_reduc_rtx): Ditto.
19325         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
19326         (reduc_<VEC_reduc_name>_v4sf): Ditto.
19327
19328         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19329         support for extracting SF on VSX.
19330
19331         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
19332         generating xscvspdp.
19333         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
19334         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
19335         double add, minimum, maximum vector reduction.
19336         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
19337         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
19338         optimize double vector reduction.
19339         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
19340
19341 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
19342
19343         * config/fr30/fr30.h (inhibit_libc): Don't define.
19344         * config/m32r/m32r-protos.h: Correct comment.
19345         * config/v850/v850.h (GHS_default_section_names,
19346         GHS_current_section_names): Use tree, not union tree_node *.
19347
19348 2011-04-26  Xinliang David Li  <davidxl@google.com>
19349
19350         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
19351         * c-family/c-opts.c (c_common_handle_option): Set
19352         warn_maybe_uninitialized.
19353         * opts.c (common_handle_option): Ditto.
19354         * common.opt:  New option.
19355         * tree-ssa.c (warn_uninit): Add one more parameter.
19356         (warn_uninitialized_var): Pass warning code.
19357         * tree-flow.h: Interface change.
19358
19359 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19360
19361         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
19362         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
19363         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
19364
19365 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19366
19367         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
19368         * config/mips/mips.opt (mmips-tfile): Remove.
19369
19370         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
19371         mips-tdump reference to ...
19372         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
19373         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
19374         reference by Tru64 UNIX.
19375
19376 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
19377
19378         PR debug/48768
19379         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
19380         is error_mark_node, set value to NULL.
19381
19382         PR tree-optimization/48734
19383         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
19384         if return value from maybe_fold_*_comparsions isn't something
19385         the code is prepared to handle.
19386
19387 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
19388
19389         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
19390         mode check.
19391         (ext_QIreg_nomode_operands): Remove.
19392         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
19393         (*andsi_1): Ditto.
19394         (*andhi_1): Ditto.
19395
19396 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
19397
19398         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
19399
19400 2011-04-26  Richard Guenther  <rguenther@suse.de>
19401
19402         * c-typeck.c (build_unary_op): Do not expand array-refs via
19403         pointer arithmetic.  Only adjust qualifiers for function types.
19404
19405 2011-04-26  Richard Guenther  <rguenther@suse.de>
19406
19407         PR middle-end/48694
19408         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
19409         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
19410         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
19411         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
19412
19413 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
19414
19415         * doc/extend.texi: Document __underlying_type.
19416
19417 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
19418
19419         * config/rs6000/titan.md (automata_option "progress"): Remove.
19420
19421 2011-04-25  Jeff Law  <law@redhat.com>
19422
19423         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
19424
19425 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
19426
19427         * system.h (ENUM_BITFIELD): Remove.
19428
19429 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
19430             Eric Botcazou  <ebotcazou@adacore.com>
19431
19432         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
19433         for STORE_FLAG_VALUE==-1 case.
19434
19435 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
19436
19437         PR target/43804
19438         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
19439         LEGITIMATE_PIC_OPERAND_P.
19440
19441 2011-04-24  Jan Hubicka  <jh@suse.cz>
19442
19443         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
19444         WPA hack.
19445         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
19446         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
19447         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
19448         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
19449         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
19450         Sanity check predicate length.
19451         (remap_predicate): Likewise; sanity check jump functions.
19452         (inline_read_section, inline_write_summary): Sanity check
19453         predicate length.
19454
19455 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
19456
19457         PR other/48748
19458         * doc/extend.texi (Type Traits): Document __is_standard_layout,
19459         __is_literal_type, and __is_trivial; update throughout about
19460         possibly cv-qualified void types.
19461
19462 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
19463
19464         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
19465         testsuite and make it version agnostic.
19466
19467 2011-04-22  Jan Hubicka  <jh@suse.cz>
19468
19469         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
19470
19471 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
19472
19473         PR c/48685
19474         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
19475         to VOID_TYPE even around MODIFY_EXPR.
19476
19477 2011-04-22  Mike Stump  <mikestump@comcast.net>
19478
19479         * gensupport.c (read_md_rtx): Fix typo in comment.
19480         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
19481         comment.
19482
19483 2011-04-22  Jan Hubicka  <jh@suse.cz>
19484
19485         * gengtype.c (open_base_files): Add ipa-inline.h include.
19486         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
19487         ipa-prop.c; update all uses.
19488         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
19489         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
19490         merge summary of inlined function into former caller.
19491         * ipa-inline.c (max_benefit): Remove.
19492         (edge_badness): Compensate for removal of benefits.
19493         (update_caller_keys): Use
19494         reset_node_growth_cache/reset_edge_growth_cache.
19495         (update_callee_keys): Likewise.
19496         (update_all_callee_keys): Likewise.
19497         (inline_small_functions): Do not collect max_benefit; do not reset
19498         estimated_growth; call free_growth_caches and initialize_growth_caches.
19499         * ipa-inline.h (struct condition, type clause_t, struct predicate,
19500         struct size_time_entry): New structures.
19501         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
19502         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
19503         and estimated_growth.
19504         (edge_growth_cache_entry): New structure.
19505         (node_growth_cache, edge_growth_cache): New global vars.
19506         (estimate_growth): Turn into inline.
19507         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
19508         initialize_growth_caches, free_growth_caches): Declare.
19509         (estimate_edge_growth): Rewrite.
19510         (estimate_edge_time): Implement as inline cache lookup.
19511         (reset_node_growth_cache, reset_edge_growth_cache): New inline
19512         functions.
19513         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
19514         (NUM_CONDITIONS): New constant.
19515         (predicate_conditions): New enum.
19516         (IS_NOT_CONSTANT): New constant.
19517         (edge_removal_hook_holder): New var.
19518         (node_growth_cache, edge_growth_cache): New global vars.
19519         (true_predicate, single_cond_predicate, false_predicate,
19520         not_inlined_predicate, add_condition, add_clause, and_predicates,
19521         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
19522         dump_clause, dump_predicate, account_size_time,
19523         evaulate_conditions_for_edge): New functions.
19524         (inline_summary_alloc): Move to heap.
19525         (inline_node_removal_hook): Clear condition and entry vectors.
19526         (inline_edge_removal_hook): New function.
19527         (initialize_growth_caches, free_growth_caches): New function.
19528         (dump_inline_summary): Update.
19529         (edge_execution_predicate): New function.
19530         (will_be_nonconstant_predicate): New function.
19531         (estimate_function_body_sizes): Compute BB and constantness predicates.
19532         (compute_inline_parameters): Do not clear estimated_growth.
19533         (estimate_edge_size_and_time): New function.
19534         (estimate_calls_size_and_time): New function.
19535         (estimate_callee_size_and_time): New function.
19536         (remap_predicate): New function.
19537         (inline_merge_summary): New function.
19538         (do_estimate_edge_time): New function based on...
19539         (estimate_edge_time): ... this one.
19540         (do_estimate_edge_growth): New function.
19541         (do_estimate_growth): New function based on....
19542         (estimate_growth): ... this one.
19543         (inline_analyze_function): Analyze after deciding on jump functions.
19544         (inline_read_section): New function.
19545         (inline_read_summary): Use it.
19546         (inline_write_summary): Write all the new data.
19547         * ipa-prop.c (ipa_get_param_decl_index): Export.
19548         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
19549         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
19550         Declare.
19551         (ipa_get_lattice): Move here from ipa-cp.c
19552         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
19553         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
19554         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
19555         cgraph_edge_inlinable_p): Remove.
19556         * cgraphunit.c: Include ipainline.h
19557         (cgraph_process_new_functions): Update call of
19558         compute_inline_parameters.
19559
19560 2011-04-22  Richard Guenther  <rguenther@suse.de>
19561
19562         * tree.c (build_int_cst): Properly create canonicalized integer
19563         constants.
19564         (build_int_cst_type): Remove scary comments.
19565
19566 2011-04-22  Xinliang David Li  <davidxl@google.com>
19567
19568         * toplev.c (process_options): Enable -Werror=coverage-mismatch
19569         by default when -Wno-error is not specified.
19570         * opts-global.c (decode_options): Remove call to
19571         control_warning_options.
19572
19573 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
19574
19575         PR tree-optimization/48717
19576         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
19577         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
19578
19579 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
19580
19581         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
19582         definition where used.
19583
19584 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
19585
19586         PR c/48716
19587         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
19588         TREE_STATIC variables declared inside of some OpenMP construct.
19589
19590 2011-04-22  Martin Jambor  <mjambor@suse.cz>
19591
19592         PR middle-end/48585
19593         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
19594
19595 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
19596
19597         PR c/36750
19598         * c-typeck.c (pop_init_level): Do not warn about initializing
19599         with ` = {0}'.
19600
19601 2011-04-22  Alan Modra  <amodra@gmail.com>
19602
19603         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
19604         when returning call_cookie.
19605         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
19606         pointers, to functions with no more vector args than the current
19607         function, and some non-local calls for ABI_V4.
19608         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
19609         sibcall_nonlocal_aix64): Combine to ..
19610         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
19611         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
19612         (sibcall_value_nonlocal_aix<mode>): ..likewise.
19613         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
19614         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
19615         operand.
19616         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
19617         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
19618         sibcall_value_symbolic_64): Delete.
19619
19620 2011-04-21  Xinliang David Li  <davidxl@google.com>
19621
19622         * cgraph.h: Remove pid.
19623         * cgraph.c: Remove pid.
19624         * value-prof.c (init_node_map): New function.
19625         (del_node_map): New function.
19626         (find_func_by_funcdef_no): New function.
19627         (gimple_ic_transform): Call new function.
19628         * cgraphunit.c (cgraph_finalize_function): Remove pid.
19629         * function.c (get_last_funcdef_no): New function.
19630         * function.h (get_last_funcdef_no): New function.
19631         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
19632         to libgcov function.
19633         (tree-profiling): Call node map init and delete function.
19634
19635 2011-04-21  Ian Lance Taylor  <iant@google.com>
19636
19637         * godump.c (go_format_type): Use exported Go name for anonymous
19638         field name.
19639
19640 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19641
19642         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
19643         Call builtin_function_type_list instead of builtin_function_type.
19644         (UNARY, BINARY, TRINARY, QUAD): Likewise.
19645
19646 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19647
19648         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
19649         build_function_type_list instead of build_function_type.
19650         Delete variable `endlink'.
19651
19652 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19653
19654         * config/s390/s390.c (s390_init_builtins): Call
19655         build_function_type_list instead of build_function_type.
19656
19657 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19658
19659         * config/ia64/ia64.c (ia64_init_builtins): Call
19660         build_function_type_list instead of builtin_function_type.
19661
19662 2011-04-21  Easwaran Raman  <eraman@google.com>
19663
19664         * cfgexpand.c (stack_var): Remove OFFSET...
19665         (add_stack_var): ...and its reference here...
19666         (expand_stack_vars): ...and here.
19667         (stack_var_cmp): Sort by descending order of size.
19668         (partition_stack_vars): Change heuristic.
19669         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
19670         (dump_stack_var_partition): Add newline after each partition.
19671
19672 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
19673             Jeff Law  <law@redhat.com>
19674
19675         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
19676         * gengtype.c (matching_file_name_substitute): Likewise.
19677
19678 2011-04-21  Richard Guenther  <rguenther@suse.de>
19679
19680         PR lto/48703
19681         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
19682
19683 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
19684
19685         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
19686
19687 2011-04-21  Richard Guenther  <rguenther@suse.de>
19688
19689         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
19690         file name.
19691
19692 2011-04-21  Richard Guenther  <rguenther@suse.de>
19693
19694         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
19695         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
19696         Use DECL_P, not SSA_VAR_P.
19697         (ptr_derefs_may_alias_p): Likewise.
19698         (ptr_deref_may_alias_ref_p_1): Likewise.
19699         (decl_refs_may_alias_p): Likewise.
19700         (refs_may_alias_p_1): Likewise.
19701         (ref_maybe_used_by_call_p_1): Likewise.
19702         (call_may_clobber_ref_p_1): Likewise.
19703         (indirect_ref_may_alias_decl_p): Assume indirect refrences
19704         are either MEM_REF or TARGET_MEM_REF.
19705         (indirect_refs_may_alias_p): Likewise.
19706         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
19707         for MEM_EXPR of indirect calls.
19708
19709 2011-04-21  Tristan Gingold  <gingold@adacore.com>
19710
19711         * vmsdbgout.c (write_srccorr): Compute file length from the string.
19712         (dst_file_info_struct): Remove flen field.
19713         (lookup_filename): Remove code that set flen field.
19714
19715 2011-04-21  Tristan Gingold  <gingold@adacore.com>
19716
19717         * config/ia64/ia64.c (ia64_start_function): Add a guard.
19718
19719 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
19720
19721         PR target/48708
19722         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
19723         vec_extract and vec_concat for non-SSE4_1 targets.
19724
19725 2011-04-21  Richard Guenther  <rguenther@suse.de>
19726
19727         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
19728         return statements.
19729
19730 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
19731
19732         * config/i386/cygming.h (union tree_node, TREE): Don't define or
19733         undefine.
19734         (FILE): Don't undefine.
19735
19736 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
19737
19738         * config/alpha/alpha.c (struct machine_function): Use rtx, not
19739         struct rtx_def *.
19740         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
19741         struct rtx_def *.
19742         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
19743         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
19744         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
19745         rtx_def *.
19746         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
19747         definitions where used.
19748         * config/microblaze/microblaze.h (struct microblaze_args): Use
19749         rtx, not struct rtx_def *.
19750         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
19751         rtx_def *.
19752         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
19753         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
19754         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
19755         not struct rtx_def *.
19756         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
19757         struct rtx_def *.
19758         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
19759         rtx_def *.
19760         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
19761
19762 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19763
19764         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
19765         operand_equal_p to compare DR_BASE_ADDRESSes.
19766         (vect_check_interleaving): Likewise.
19767
19768 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19769
19770         PR target/46329
19771         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
19772         for all Neon struct constants.
19773
19774 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19775
19776         * target.def (legitimate_constant_p): New hook.
19777         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
19778         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
19779         * doc/tm.texi: Regenerate.
19780         * hooks.h (hook_bool_mode_rtx_true): Declare.
19781         * hooks.c (hook_bool_mode_rtx_true): Define.
19782         * system.h (LEGITIMATE_CONSTANT_P): Poison.
19783         * calls.c (precompute_register_parameters): Replace uses of
19784         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
19785         (emit_library_call_value_1): Likewise.
19786         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
19787         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
19788         * ira-costs.c (scan_one_insn): Likewise.
19789         * recog.c (general_operand, immediate_operand): Likewise.
19790         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
19791         * reload1.c (init_eliminable_invariants): Likewise.
19792
19793         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
19794         mode argument.
19795         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
19796         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
19797         argument.
19798         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19799         * config/alpha/predicates.md (input_operand): Update call to
19800         alpha_legitimate_constant_p.
19801
19802         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
19803         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
19804         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
19805         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19806         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
19807         (arm_legitimate_constant_p): New functions.
19808         (arm_cannot_force_const_mem): Make static.
19809
19810         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
19811
19812         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
19813         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
19814         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
19815         instead of bfin_legitimate_constant_p.
19816         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
19817         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19818
19819         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
19820
19821         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
19822
19823         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
19824         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
19825         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19826         (frv_legitimate_constant_p): Make static.  Add a mode argument.
19827
19828         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
19829         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
19830         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
19831
19832         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
19833         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
19834         * config/i386/i386.c (legitimate_constant_p): Rename to...
19835         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
19836         argument.
19837         (ix86_cannot_force_const_mem): Update accordingly.
19838         (ix86_legitimate_address_p): Likewise.
19839         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19840         * config/i386/i386.md: Update commentary.
19841
19842         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
19843         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
19844         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19845         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
19846
19847         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
19848
19849         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
19850         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
19851         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19852         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
19853
19854         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
19855         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
19856         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
19857
19858         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
19859         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19860         (m32r_legitimate_constant_p): New function.
19861
19862         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
19863         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
19864         LEGITIMATE_CONSTANT_P.
19865         (LEGITIMATE_CONSTANT_P): Delete.
19866         * config/m68k/m68k.c (m68k_expand_prologue): Call
19867         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
19868         (m68k_legitimate_constant_p): New function.
19869         * config/m68k/m68k.md: Update comments.
19870
19871         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
19872         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19873         (mcore_legitimate_constant_p): New function.
19874
19875         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
19876         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
19877         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
19878         Add a mode argument.
19879         (mep_legitimate_address): Update accordingly.
19880         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19881
19882         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
19883         Delete.
19884         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
19885         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
19886         static.  Check OP's mode for VOIDmode.
19887         (microblaze_legitimate_constant_p): New function.
19888         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19889
19890         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
19891         * config/mips/mips.c (mips_legitimate_constant_p): New function.
19892         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
19893         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19894         * config/mips/predicates.md: Update comments.
19895
19896         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
19897         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
19898         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19899         (mmix_legitimate_constant_p): Make static, return a bool, and take
19900         a mode argument.
19901         (mmix_print_operand_address): Update accordingly.
19902
19903         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
19904         Delete.
19905         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
19906         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
19907         static.  Add a mode argument.
19908         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19909
19910         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
19911
19912         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
19913         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19914         (pa_legitimate_constant_p): New function.
19915
19916         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
19917
19918         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
19919         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19920         (pdp11_legitimate_constant_p): New function.
19921
19922         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
19923         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19924         (rs6000_legitimate_constant_p): New function.
19925
19926         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
19927         (rx_legitimate_constant_p): ...this.
19928         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
19929         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
19930         (rx_legitimate_constant_p): ...this.
19931         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19932         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
19933
19934         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
19935         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
19936         * config/s390/s390.c (legitimate_constant_p): Rename to...
19937         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
19938         and add a mode argument.
19939         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19940
19941         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
19942
19943         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
19944         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19945         (sh_legitimate_constant_p): New function.
19946
19947         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
19948         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
19949         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19950         (legitimate_constant_p): Rename to...
19951         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
19952         argument.
19953         (constant_address_p): Update accordingly.
19954
19955         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
19956         argument and return a bool.
19957         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
19958         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19959         (spu_legitimate_constant_p): Add a mode argument and return a bool.
19960         (spu_rtx_costs): Update accordingly.
19961         * config/spu/predicates.md (vec_imm_operand): Likewise.
19962
19963         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
19964
19965         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
19966         * config/v850/v850.c (v850_legitimate_constant_p): New function.
19967         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19968
19969         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
19970         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
19971         * config/vax/vax.c (legitimate_constant_p): Likewise.
19972
19973         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
19974         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19975         (xtensa_legitimate_constant_p): New function.
19976
19977 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19978
19979         * target.def (cannot_force_const_mem): Add a mode argument.
19980         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
19981         * doc/tm.texi: Regenerate.
19982         * hooks.h (hook_bool_mode_rtx_false): Declare.
19983         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
19984         (hook_bool_mode_const_rtx_true): Likewise.
19985         (hook_bool_mode_rtx_false): New function.
19986         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
19987         to be non-VOID.  Update call to cannot_force_const_mem.
19988         (find_reloads): Update accordingly.
19989         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
19990         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
19991         argument.
19992         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
19993         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
19994         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
19995         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
19996         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
19997         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
19998         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
19999         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20000         (m68k_cannot_force_const_mem): ...this new function.
20001         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
20002         argument.
20003         (mips_const_insns, mips_legitimize_const_move): Update calls.
20004         (mips_secondary_reload_class): Likewise.
20005         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20006         (pa_cannot_force_const_mem): ...this new function.
20007         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
20008         (rs6000_cannot_force_const_mem): ...this new function.
20009         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
20010         argument.
20011         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
20012         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
20013         to...
20014         (xtensa_cannot_force_const_mem): ...this new function.
20015
20016 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20017
20018         * config/mips/mips.c (mips16_build_function_stub): Call
20019         build_function_type_list instead of build_function_type.
20020         (mips16_build_call_stub): Likewise.
20021
20022 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20023
20024         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
20025         instead of build_function_type.
20026
20027 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20028
20029         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
20030         instead of build_function_type.
20031
20032 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
20033
20034         PR target/48678
20035         * config/i386/i386.md (insv): Change operand 0 constraint to
20036         "register_operand".  Change operand 1 and 2 constraint to
20037         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
20038         * config/i386/sse.md (sse4_1_pinsrb): Export.
20039         (sse2_pinsrw): Ditto.
20040         (sse4_1_pinsrd): Ditto.
20041         (sse4_1_pinsrq): Ditto.
20042         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
20043         * config/i386/i386.c (ix86_expand_pinsr): New.
20044
20045 2011-04-20  Easwaran Raman  <eraman@google.com>
20046
20047         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
20048         containing union type only with -fstrict-aliasing.
20049
20050 2011-04-20  Jim Meyering  <meyering@redhat.com>
20051
20052         Remove useless if-before-free tests.
20053         * calls.c (expand_call, save_area): Likewise.
20054         * cfgcleanup.c (try_forward_edges): Likewise.
20055         * collect2.c (collect_execute): Likewise.
20056         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
20057         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
20058         * coverage.c (coverage_checksum_string): Likewise.
20059         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
20060         * cselib.c (cselib_init): Likewise.
20061         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
20062         (df_set_clean_cfg): Likewise.
20063         * function.c (free_after_compilation): Likewise.
20064         * gcc.c (do_spec_1, main): Likewise.
20065         * gcov.c (create_file_names): Likewise.
20066         * gensupport.c (identify_predicable_attribute): Likewise.
20067         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
20068         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
20069         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
20070         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
20071         * ipa-pure-const.c (local_pure_const): Likewise.
20072         * ipa-reference.c (propagate): Likewise.
20073         * ira-costs.c (free_ira_costs): Likewise.
20074         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
20075         * matrix-reorg.c (mat_free): Likewise.
20076         * prefix.c (get_key_value): Likewise.
20077         * profile.c (compute_value_histograms): Likewise.
20078         * reload1.c (free_reg_equiv): Likewise.
20079         * sched-deps.c (free_deps): Likewise.
20080         * sel-sched-ir.c (fence_clear): Likewise.
20081         * sese.c (set_rename, if_region_set_false_region): Likewise.
20082         * tree-data-ref.c (free_rdg): Likewise.
20083         * tree-eh.c (lower_try_finally): Likewise.
20084         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
20085         * tree-ssa-live.c (delete_var_map): Likewise.
20086         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
20087         * tree-ssa-pre.c (phi_trans_add): Likewise.
20088
20089 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
20090
20091         PR tree-optimization/48611
20092         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
20093         beyond ERT_MUST_NOT_THROW region.
20094
20095 2011-04-20  Catherine Moore  <clm@codesourcery.com>
20096
20097         * config/mips/mips.opt (mfix-24k): New.
20098         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
20099         * config/mips/mips.md (length): Increase by 4 for stores if
20100         fixing 24K errata.
20101         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
20102         all noreorder if fixing 24K errata.
20103         * doc/invoke.texi: Document mfix-24k.
20104
20105 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
20106
20107         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
20108         quad-word modes, reduce to 9-bit index range when above 1016 limit.
20109
20110 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
20111
20112         * config/arm/arm.c (arm_gen_constant): Move movw support ....
20113         (const_ok_for_op): ... to here.
20114
20115 2011-04-20  Kai Tietz  <ktietz@redhat.com>
20116
20117         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
20118         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
20119
20120 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
20121
20122         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
20123
20124 2011-04-20  Richard Guenther  <rguenther@suse.de>
20125
20126         PR tree-optimization/47892
20127         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
20128         are if-convertible.
20129
20130 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
20131
20132         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
20133
20134 2011-04-20  Tristan Gingold  <gingold@adacore.com>
20135
20136         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
20137
20138 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
20139
20140         PR target/18145
20141
20142         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
20143         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
20144         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
20145         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
20146         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
20147
20148         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
20149         New prototype.
20150
20151         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
20152         (avr_asm_named_section, avr_asm_output_aligned_common,
20153         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
20154         New functions to update...
20155         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
20156         (avr_asm_init_sections): Overwrite section callbacks for
20157         data_section, bss_section.
20158         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
20159         from here to...
20160         (avr_file_end): ...here.
20161
20162 2011-04-20  Richard Guenther  <rguenther@suse.de>
20163
20164         PR middle-end/48695
20165         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
20166         objects and types here.  Adjust for their offset before comparing.
20167
20168 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
20169
20170         * tree-vect-stmts.c (vectorizable_store): Only chain one related
20171         statement per copy.
20172
20173 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
20174
20175         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
20176         (GIMPLE_H): Include $(INTERNAL_FN_H).
20177         (OBJS-common): Add internal-fn.o.
20178         (internal-fn.o): New rule.
20179         * internal-fn.def: New file.
20180         * internal-fn.h: Likewise.
20181         * internal-fn.c: Likewise.
20182         * gimple.h: Include internal-fn.h.
20183         (GF_CALL_INTERNAL): New gf_mask.
20184         (gimple_statement_call): Put fntype into a union with a new
20185         internal_fn field.
20186         (gimple_build_call_internal): Declare.
20187         (gimple_build_call_internal_vec): Likewise.
20188         (gimple_call_same_target_p): Likewise.
20189         (gimple_call_internal_p): New function.
20190         (gimple_call_internal_fn): Likewise.
20191         (gimple_call_fntype): Return null for internal calls.
20192         (gimple_call_set_fntype): Assert that the function is not internal.
20193         (gimple_call_set_fn): Likewise.
20194         (gimple_call_set_fndecl): Likewise.
20195         (gimple_call_set_internal_fn): New function.
20196         (gimple_call_addr_fndecl): Handle null functions.
20197         (gimple_call_return_type): Likewise null types.
20198         * gimple.c (gimple_build_call_internal_1): New function.
20199         (gimple_build_call_internal): Likewise.
20200         (gimple_build_call_internal_vec): Likewise.
20201         (gimple_call_same_target_p): Likewise.
20202         (gimple_call_flags): Handle calls to internal functions.
20203         (gimple_call_fnspec): New function.
20204         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
20205         (gimple_has_side_effects): Handle null functions.
20206         (gimple_rhs_has_side_effects): Likewise.
20207         (gimple_call_copy_skip_args): Handle calls to internal functions.
20208         * cfgexpand.c (expand_call_stmt): Likewise.
20209         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
20210         * gimple-fold.c (gimple_fold_call): Handle null functions.
20211         (gimple_fold_stmt_to_constant_1): Don't fold
20212         calls to internal functions.
20213         * gimple-low.c (gimple_check_call_args): Handle calls to internal
20214         functions.
20215         * gimple-pretty-print.c (dump_gimple_call): Likewise.
20216         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
20217         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
20218         (do_warn_unused_result): Likewise.
20219         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
20220         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
20221         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
20222         the target of a call.
20223         (initialize_hash_element): Update accordingly.
20224         (hashable_expr_equal_p): Use gimple_call_same_target_p.
20225         (iterative_hash_hashable_expr): Handle calls to internal functions.
20226         (print_expr_hash_elt): Likewise.
20227         * tree-ssa-pre.c (can_value_number_call): Likewise.
20228         (eliminate): Handle null functions.
20229         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
20230         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
20231         (find_func_aliases): Likewise.
20232         * value-prof.c (gimple_ic_transform): Likewise.
20233         (gimple_indirect_call_to_profile): Likewise.
20234         * lto-streamer-in.c (input_gimple_stmt): Likewise.
20235         * lto-streamer-out.c (output_gimple_stmt): Likewise.
20236
20237 2011-04-19  Jan Hubicka  <jh@suse.cz>
20238
20239         * ipa-inline-transform.c (save_inline_function_body): Add comments.
20240         * ipa-inline.c (inline_small_functions): Compute summaries first,
20241         populate heap later.
20242
20243 2011-04-19  Jan Hubicka  <jh@suse.cz>
20244
20245         * cgraph.h (save_inline_function_body): Remove.
20246         * ipa-inline-transform.c: New file, broke out of...
20247         * ipa-inline.c: ... this one; Update toplevel comment.
20248         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
20249         make global.
20250         (update_noncloned_frequencies): Move to ipa-inline-transform.c
20251         (cgraph_mark_inline_edge): Rename to inline_call; move to
20252         ipa-inline-transform.c.
20253         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
20254         move to ipa-inline-transform.c
20255         (recursive_inlining, inline_small_functions, flatten_function,
20256         ipa_inline, inline_always_inline_functions,
20257         early_inline_small_functions): Update.
20258         (inline_transform): Move to ipa-inline-transform.c.
20259         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
20260         Declare.
20261         * Makefile.in (ipa-inline-transform.o): New file.
20262         * cgraphunit.c (save_inline_function_body): Move to
20263         ipa-inline-transform.c
20264
20265 2011-04-19  DJ Delorie  <dj@redhat.com>
20266
20267         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
20268         registers if we already know there aren't any.
20269         (m32c_emit_epilogue): Don't emit a barrier here.
20270         (m32c_emit_eh_epilogue): Likewise.
20271         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
20272         operands at expand time.
20273         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
20274         int" wchar type.
20275         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
20276         duplicates.  Provide aliases instead.
20277         * config/m32c/prologue.md (eh_return): Emit a barrier here.
20278         (eh_epilogue): Add a "(return)" here as a hint to other parts of
20279         the compiler.
20280
20281 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
20282
20283         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
20284         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
20285         (general_or_i64_p, sparc_register_move_cost): New function.
20286
20287 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20288
20289         * doc/install.texi (Configuration, --enable-threads): Remove mach.
20290         Add lynx, mipssde.  Sort table.
20291
20292 2011-04-19  Xinliang David Li  <davidxl@google.com>
20293
20294         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
20295         not negative.
20296
20297 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
20298
20299         PR target/48678
20300         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
20301         is a SUBREG with non-MODE_INT mode inside of it.
20302
20303 2011-04-19  Martin Jambor  <mjambor@suse.cz>
20304
20305         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
20306         also according to actual contants.
20307         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
20308         (gimple_fold_call): Use it.
20309         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
20310
20311 2011-04-19  Martin Jambor  <mjambor@suse.cz>
20312
20313         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
20314         non-pointer assignments.
20315
20316 2011-04-19  Martin Jambor  <mjambor@suse.cz>
20317
20318         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
20319         account anc_offset and otr_type from the indirect edge info.
20320         * ipa-prop.c (get_ancestor_addr_info): New function.
20321         (compute_complex_ancestor_jump_func): Assignment analysis moved to
20322         get_ancestor_addr_info, call it.
20323         (ipa_note_param_call): Do not initialize information about polymorphic
20324         calls, return the indirect call graph edge.  Remove the last
20325         parameter, adjust all callers.
20326         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
20327         parameters.  Initialize polymorphic information in the indirect edge.
20328
20329 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
20330
20331         PR lto/48148
20332         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
20333         the types if they have different enumeration identifiers.
20334
20335 2011-04-19  Jan Hubicka  <jh@suse.cz>
20336
20337         * cgraph.h (cgraph_optimize_for_size_p): Declare.
20338         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
20339         * predict.c (cgraph_optimize_for_size_p): Break out from ...
20340         (optimize_function_for_size_p) ... here.
20341
20342 2011-04-19  Richard Guenther  <rguenther@suse.de>
20343
20344         PR lto/48207
20345         * tree.c (free_lang_data): Do not reset the decl-assembler-name
20346         langhook.
20347
20348 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
20349
20350         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
20351         if DECL_NO_INLINE_WARNING_P is set on the function.
20352
20353 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
20354
20355         PR fortran/47976
20356         * reload1.c (inc_for_reload): Return void. All callers changed.
20357         (emit_input_reload_insns): Don't try to delete previous output
20358         reloads to a register, or record spill_reg_store for autoincs.
20359
20360 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
20361
20362         * gengtype.h: Updated copyright year.
20363         (struct input_file_st): Add inpisplugin field.
20364         (type_fileloc): New function.
20365         * gengtype.c
20366         (write_typed_struct_alloc_def): Add gcc_assert.
20367         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
20368         (write_typed_alloc_defns): Don't output for plugin files.
20369         (input_file_by_name): Clear inpisplugin field.
20370         (main): Set inpisplugin field for plugin files.
20371
20372 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
20373
20374         * gengtype-state.c (string_eq): New.
20375         (read_state): Use string_eq instead of strcmp when creating the
20376         state_ident_tab.
20377
20378 2011-04-19  Wei Guozhi  <carrot@google.com>
20379
20380         PR target/47855
20381         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
20382         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
20383         linkage.
20384         * config/arm/constraints.md (Uu): New constraint.
20385         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
20386
20387 2011-04-19  Tristan Gingold  <gingold@adacore.com>
20388
20389         * config.gcc (-*-*-*vms): Added.
20390         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
20391         definitions moved.
20392         * config/vms/vms-ld.c: New file.
20393         * config/vms/vms-ar.c: New file.
20394         * config/vms/t-vmsnative: New file.
20395
20396 2011-04-18  Xinliang David Li  <davidxl@google.com>
20397
20398         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
20399
20400 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
20401
20402         PR middle-end/48661
20403         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
20404         if TREE_TYPE (v) is non-NULL.
20405
20406         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
20407         gimple_get_virt_mehtod_for_binfo.
20408         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
20409         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
20410         callers.
20411         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20412
20413 2011-04-18  Michael Matz  <matz@suse.de>
20414             Steve Ellcey  <sje@cup.hp.com>
20415
20416         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
20417         use its mode as source mode if it isn't VOIDmode.
20418
20419 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
20420
20421         * doc/passes.texi: Fill crossref nodes.
20422
20423 2011-04-18  Jim Meyering  <meyering@redhat.com>
20424
20425         Fix doubled-word typos in comments and strings
20426         * config/alpha/vms-unwind.h: s/for for/for/
20427         * config/arm/unwind-arm.h: Likewise.
20428         * config/microblaze/microblaze.c: Likewise.
20429         * config/sh/constraints.md: s/in in/in/
20430         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
20431
20432 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
20433
20434         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
20435         (AVX_FLOAT_MODE_P): Ditto.
20436         (AVX128_VEC_FLOAT_MODE_P): Ditto.
20437         (AVX256_VEC_FLOAT_MODE_P): Ditto.
20438         (AVX_VEC_FLOAT_MODE_P): Ditto.
20439         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
20440         (UNSPEC_MASKSTORE): Ditto.
20441         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
20442         Merge from <sse>_movmsk<ssemodesuffix> and
20443         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
20444         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
20445         iterator.
20446         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
20447         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
20448         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
20449
20450 2011-04-18  Jan Hubicka  <jh@suse.cz>
20451
20452         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
20453
20454         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
20455         (want_inline_function_called_once_p): Break out the logic from
20456         ipa_inline.
20457         (edge_badness): Ensure that profile is not misupdated.
20458         (lookup_recursive_calls): Prioritize by call frequencies.
20459         (inline_small_functions): Move program size estimates here;
20460         actually process whole queue even when unit growth has been
20461         met. (to properly compute inline_failed reasons and for the
20462         case unit size decrease.) Revisit comments on recursive inlining.
20463         (ipa_inline): Remove unit summary code; first inline hot calls
20464         of functions called once, cold calls next.
20465         (order, nnodes): Remove unused variables.
20466         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
20467         (GTFILES): Remove ipa-inline.c
20468         * sel-sched.c (fill_insns): Silence uninitialized var warning.
20469
20470 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
20471
20472         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
20473
20474 2011-04-18  Jie Zhang  <jie@codesourcery.com>
20475             Richard Earnshaw  <rearnsha@arm.com>
20476
20477         * arm.c (neon_builtin_type_bits): Remove.
20478         (typedef enum neon_builtin_mode): New.
20479         (T_MAX): Don't define.
20480         (typedef enum neon_builtin_datum): Remove bits, codes[],
20481         num_vars and base_fcode.  Add mode, code and fcode.
20482         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
20483         VAR10): Change accordingly.
20484         (neon_builtin_data[]): Change accordingly
20485         (arm_init_neon_builtins): Change accordingly.
20486         (neon_builtin_compare): Remove.
20487         (locate_neon_builtin_icode): Remove.
20488         (arm_expand_neon_builtin): Change accordingly.
20489
20490         * arm.h (enum arm_builtins): Move to ...
20491         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
20492
20493         * arm.c (arm_builtin_decl): Declare.
20494         (TARGET_BUILTIN_DECL): Define.
20495         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
20496         (arm_builtin_decls[]): New.
20497         (arm_init_neon_builtins): Store builtin declarations in
20498         arm_builtin_decls[].
20499         (arm_init_tls_builtins): Likewise.
20500         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
20501         (arm_builtin_decl): New.
20502
20503 2011-04-18  Richard Guenther  <rguenther@suse.de>
20504
20505         * tree.c (upper_bound_in_type): Build properly canonicalized
20506         INTEGER_CSTs.
20507         (lower_bound_in_type): Likewise.
20508
20509 2011-04-18  Richard Guenther  <rguenther@suse.de>
20510
20511         * gimple.h (gimple_call_addr_fndecl): New function.
20512         (gimple_call_fndecl): Use it.
20513         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
20514         for direct calls.
20515         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
20516         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
20517
20518 2011-04-18  Richard Guenther  <rguenther@suse.de>
20519
20520         PR middle-end/48650
20521         * tree.c (build_string): STRING_CST is now derived from tree_typed.
20522
20523 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
20524
20525         PR lto/48492
20526         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
20527         DECL_IN_CONSTANT_POOL without RTL.
20528
20529 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
20530             Ira Rosen  <ira.rosen@linaro.org>
20531
20532         PR target/48252
20533         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
20534         to match neon_vzip/vuzp/vtrn_internal.
20535         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
20536         outputs explicitly dependent on both inputs.
20537         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
20538
20539 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
20540
20541         PR tree-optimization/48616
20542         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
20543         whether the shift is by scalar or vector based on whether all SLP
20544         scalar stmts have the same rhs.
20545
20546 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
20547
20548         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
20549         memory operands.
20550
20551 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
20552
20553         PR target/43700
20554         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
20555         registers.
20556
20557 2011-04-17  Jan Hubicka  <jh@suse.cz>
20558
20559         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
20560         * cgrpahunit.c (cgraph_finalize_function): Do not set
20561         finalized_by_frontend.
20562         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
20563         finalized_by_frontend.
20564
20565 2011-04-17  Jan Hubicka  <jh@suse.cz>
20566
20567         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
20568         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
20569         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
20570         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
20571         method.
20572         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
20573         gimple-fold.c
20574         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
20575
20576 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
20577
20578         PR lto/48538
20579         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
20580         is non-null before accessing it.
20581         (input_cgraph): Remove trailing spaces.
20582
20583 2011-04-17  Revital Eres  <revital.eres@linaro.org>
20584
20585         * params.def (sms-min-sc): New param flag.
20586         * modulo-sched.c (sms_schedule): Use it.
20587         * doc/invoke.texi (sms-min-sc): Document it.
20588
20589 2011-04-17  Jan Hubicka  <jh@suse.cz>
20590
20591         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
20592         present, also set gimple_call_set_cannot_inline.
20593         * ipa-inline.c: Update toplevel comment.
20594         (MAX_TIME): Remove.
20595         (cgraph_clone_inlined_nodes): Fix linebreaks.
20596         (cgraph_check_inline_limits): Restructure to ...
20597         (caller_growth_limits): ... this one; be more tolerant
20598         on growth in nested inline chains; add explanatory comment;
20599         fix stack accounting thinko introduced by previous patch.
20600         (cgraph_default_inline_p): Remove.
20601         (report_inline_failed_reason): New function.
20602         (can_inline_edge_p): New function.
20603         (can_early_inline_edge_p): New function.
20604         (leaf_node_p): Move upwards in file.
20605         (want_early_inline_function_p): New function.
20606         (want_inline_small_function_p): New function.
20607         (want_inline_self_recursive_call_p): New function.
20608         (cgraph_edge_badness): Rename to ...
20609         (edge_badness) ... this one; fix linebreaks.
20610         (update_edge_key): Update call of edge_baddness; add
20611         detailed dump about queue updates.
20612         (update_caller_keys): Use can_inline_edge_p and
20613         want_inline_small_function_p.
20614         (cgraph_decide_recursive_inlining): Rename to...
20615         (recursive_inlining): Use can_inline_edge_p and
20616         want_inline_self_recursive_call_p; simplify and remove no longer
20617         valid FIXME.
20618         (cgraph_set_inline_failed): Remove.
20619         (add_new_edges_to_heap): Use can_inline_edge_p and
20620         want_inline_small_function_p.
20621         (cgraph_decide_inlining_of_small_functions): Rename to ...
20622         (inline_small_functions): ... this one; cleanup; use
20623         can/want predicates; cleanup debug ouput; work edges till fibheap
20624         is exhausted and do not stop once unit growth is reached; remove
20625         later loop processing remaining edges.
20626         (cgraph_flatten): Rename to ...
20627         (flatten_function): ... this one; use can_inline_edge_p
20628         and can_early_inline_edge_p predicates.
20629         (cgraph_decide_inlining): Rename to ...
20630         (ipa_inline): ... this one; remove unreachable nodes before
20631         inlining functions called once; simplify the pass.
20632         (cgraph_perform_always_inlining): Rename to ...
20633         (inline_always_inline_functions): ... this one; use
20634         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
20635         (cgraph_decide_inlining_incrementally): Rename to ...
20636         (early_inline_small_functions): ... this one; simplify
20637         using new predicates; cleanup; make dumps prettier.
20638         (cgraph_early_inlining): Rename to ...
20639         (early_inliner): newer inline regular functions into always-inlines;
20640         fix updating of call stmt summaries.
20641         (pass_early_inline): Update for new names.
20642         (inline_transform): Fix formating.
20643         (gate_cgraph_decide_inlining): Rename to ...
20644         (pass_ipa_inline): ... this one.
20645         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
20646         * ipa-inline-analysis.c (dump_inline_summary): Update.
20647         (compute_inline_parameters): Do not compute disregard_inline_limits;
20648         look for mismatching arguments.
20649         (estimate_growth): Fix handlig of non-trivial self recursion.
20650         (inline_read_summary): Do not read info->disregard_inline_limits.
20651         (inline_write_summary): Do not write info->disregard_inline_limits.
20652         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
20653         and move all checks into can_inline_edge_p predicate; re-enable code
20654         comparing optimization levels.
20655         (expand_call_inline): Do not test inline_forbidden_into_p.
20656         * Makefile.in (ipa-inline.o): Update arguments.
20657
20658 2011-04-17  Revital Eres  <revital.eres@linaro.org>
20659
20660         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
20661
20662 2011-04-17  Revital Eres  <revital.eres@linaro.org>
20663
20664         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
20665
20666 2011-04-17  Michael Matz  <matz@suse.de>
20667
20668         PR tree-optimization/48622
20669         PR lto/48645
20670         * ipa-inline-analysis.c (inline_read_summary): Read size/time
20671         in same order as they're written.
20672
20673 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20674
20675         * config/pa/predicates.md: Reorganize and simplify predicates.
20676         Eliminate duplicate code checks.
20677         (arith_operand): Rename to arith14_operand
20678         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
20679         * config/pa/pa.md: Use renamed operands.
20680         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
20681         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
20682         arith11_operand, adddi3_operand, indexed_memory_operand,
20683         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
20684         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
20685         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
20686         move_dest_operand, move_src_operand, prefetch_cc_operand,
20687         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
20688         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
20689         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
20690         div_operand, int5_operand, movb_comparison_operator,
20691         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
20692         arith_double_operand, ireg_operand, lhs_lshift_operand,
20693         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
20694         integer_store_memory_operand): Likewise.
20695         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
20696         (integer_store_memory_operand, read_only_operand,
20697         function_label_operand, borx_reg_operand,
20698         non_hard_reg_operand): Likewise.
20699         (eq_neq_comparison_operator): Delete unused operator.
20700         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
20701         function_label_operand.
20702         (emit_move_sequence): Likewise.
20703
20704 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
20705
20706         * config/i386/sse.md (sseunpackmode): New mode attribute.
20707         (ssepackmode): Ditto.
20708         (vec_pack_trunc_<mode>): Macroize expander from
20709         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
20710         (vec_unpacks_lo_<mode>): Macroize expander from
20711         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20712         (vec_unpacks_hi_<mode>): Macroize expander from
20713         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20714         (vec_unpacku_lo_<mode>): Macroize expander from
20715         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20716         (vec_unpacku_hi_<mode>): Macroize expander from
20717         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20718         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
20719         ix86_expand_sse4_unpack.
20720         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
20721
20722 2011-04-16  Jan Hubicka  <jh@suse.cz>
20723
20724         * cgraphbuild.c: Include ipa-inline.h.
20725         (reset_inline_failed): Use initialize_inline_failed.
20726         * cgraph.c: Include ipa-inline.h.
20727         (cgraph_create_node_1): Do not initialize estimated_growth.
20728         (initialize_inline_failed): More to ipa-inline-analysis.c
20729         (dump_cgraph_node): Do not dump inline flags.
20730         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
20731         and disregard_inline_limits flags.
20732         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
20733         time, size, estimated_growth.
20734         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
20735         Update.
20736         * cgraphunit.c (cgraph_decide_is_function_needed): Use
20737         DECL_DISREGARD_INLINE_LIMITS.
20738         (cgraph_analyze_function): Do not initialize
20739         node->local.disregard_inline_limits.
20740         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
20741         inlinable, versionable and disregard_inline_limits.
20742         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
20743         cgraph_check_inline_limits, cgraph_default_inline_p,
20744         cgraph_edge_badness, update_caller_keys, update_callee_keys,
20745         add_new_edges_to_heap): Update.
20746         (cgraph_decide_inlining_of_small_function): Update; set
20747         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
20748         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
20749         cgraph_decide_inlining_incrementally): Update.
20750         * ipa-inline.h (inline_summary): Add inlinable, versionable,
20751         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
20752         time, size and estimated_growth parameters.
20753         (estimate_edge_growth): Update.
20754         (initialize_inline_failed): Declare.
20755         * ipa-split.c: Include ipa-inline.h
20756         (execute_split_functions): Update.
20757         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
20758         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
20759         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
20760         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
20761         estimated_growth to INT_MIN.
20762         (inline_node_duplication_hook): Likewise.
20763         (dump_inline_summary): Dump new fields.
20764         (compute_inline_parameters): Update.
20765         (estimate_edge_time, estimate_time_after_inlining,
20766         estimate_size_after_inlining, estimate_growth, inline_read_summary,
20767         inline_write_summary):
20768         (initialize_inline_failed): Move here from cgraph.c.
20769         * tree-sra.c: Include ipa-inline.h.
20770         (ipa_sra_preliminary_function_checks): Update.
20771         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
20772         ipa-inline.h.
20773
20774 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
20775
20776         * config/i386/sse.md (V16): New mode iterator.
20777         (VI1, VI8): Ditto.
20778         (AVXMODEQI, AVXMODEDI): Remove.
20779         (sse2, sse3): New mode attribute.
20780         (mov<mode>): Use V16 mode iterator.
20781         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
20782         (push<mode>1): Use V16 mode iterator.
20783         (movmisalign<mode>): Ditto.
20784         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
20785         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
20786         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
20787         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
20788         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
20789         avx_movdqu<avxmodesuffix>.
20790         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
20791         *avx_movdqu<avxmodesuffix>.
20792         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
20793         avx_lddqu<avxmodesuffix>.
20794         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
20795         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
20796         avx_movnt<AVXMODEDI:mode>.
20797         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
20798         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
20799
20800 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
20801
20802         PR target/48629
20803         * haifa-sched.c (prune_ready_list, schedule_block): Use
20804         sched_pressure_p rather than flag_sched_pressure.
20805
20806 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
20807
20808         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20809         cgraph_get_node instead of cgraph_get_create_node.
20810
20811 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
20812
20813         * cfgexpand.c (expand_debug_expr): Use
20814         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
20815
20816 2011-04-15  Michael Matz  <matz@suse.de>
20817
20818         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
20819         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
20820         * function.c (gimplify_parameters): Ditto.
20821         * gimplify.c (gimplify_vla_decl): Ditto.
20822
20823         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
20824         (gimple_call_set_alloca_for_var): New inline function.
20825         (gimple_call_alloca_for_var_p): Ditto.
20826         * gimple.c (gimple_build_call_from_tree): Remember
20827         CALL_ALLOCA_FOR_VAR_P state.
20828         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
20829
20830         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
20831         calls if they were for VLA objects.
20832
20833 2011-04-15  Martin Jambor  <mjambor@suse.cz>
20834
20835         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
20836         of ADR_EXPRs.
20837
20838 2011-04-15  Martin Jambor  <mjambor@suse.cz>
20839
20840         PR middle-end/48601
20841         * tree-emutls.c (lower_emutls_function_body): Call
20842         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
20843         result is non-NULL.
20844
20845 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
20846
20847         * c-decl.c (detect_field_duplicates): Call
20848         objc_detect_field_duplicates instead of objc_get_interface_ivars.
20849
20850 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
20851
20852         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
20853         * gimple.c (gimple_asm_clobbers_memory_p): Define.
20854         * ipa-pure-const.c (check_stmt): Call it.
20855         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
20856
20857 2011-04-15  Richard Guenther  <rguenther@suse.de>
20858
20859         PR tree-optimization/48290
20860         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
20861         Properly decide inhibiting propagation based on the valueized
20862         operand.  Do loop-closed SSA form preserving here ...
20863         (init_copy_prop): ... not here.
20864
20865 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
20866
20867         PR target/48612
20868         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
20869         (*ieee_smax<mode>3): Likewise.
20870
20871 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20872
20873         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
20874         Replace match_operand with match_dup for the third operand in
20875         these expanders.
20876
20877 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
20878
20879         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
20880         to track processing of conditionals.  Update all callers.
20881         (try_combine, simplify_if_then_else): Update.
20882
20883 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
20884
20885         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
20886         -fsched-pressure.
20887
20888 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
20889
20890         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
20891         instead of match_operand for operand 3.
20892
20893 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
20894
20895         * recog.h (insn_operand_data): Add an "allows_mem" field.
20896         * genoutput.c (output_operand_data): Initialize it.
20897         * optabs.c (maybe_legitimize_operand_same_code): New function.
20898         (maybe_legitimize_operand): Use it when matching the original
20899         op->value.
20900
20901 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
20902
20903         * gimplify.c: Fix issues in comments throughout.
20904         (voidify_wrapper_expr): Fix long line.
20905         (build_stack_save_restore): Likewise.
20906         (gimplify_loop_expr): Likewise.
20907         (gimplify_compound_lval): Likewise.
20908         (gimplify_init_ctor_eval): Likewise.
20909         (gimplify_modify_expr_rhs): Likewise.
20910         (omp_notice_threadprivate_variable): Likewise.
20911
20912 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
20913
20914         * cfgexpand.c (expand_call_stmt): Convert the function type to the
20915         original one if this is not a builtin function.
20916
20917 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
20918
20919         PR target/48605
20920         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
20921         offset it as needed based on top 2 bits in operands[3], change
20922         MEM mode to SFmode and mask those 2 bits away from operands[3].
20923
20924 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
20925
20926         * c-parser.c (c_parser_objc_protocol_definition): Updated for
20927         change from objc_declare_protocols() to objc_declare_protocol().
20928
20929 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
20930
20931         * config/i386/sse.md (sse4_1): New mode attribute.
20932         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
20933         avx_blend<ssemodesuffix><avxmodesuffix> and
20934         sse4_1_blend<ssemodesuffix> using VF mode iterator.
20935         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
20936         avx_blendv<ssemodesuffix><avxmodesuffix> and
20937         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
20938         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
20939         avx_dp<ssemodesuffix><avxmodesuffix> and
20940         sse4_1_dp<ssemodesuffix> using VF mode iterator.
20941         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
20942         (sse4_1_packusdw): Merge with *avx_packusdw.
20943         (sse4_1_pblendvb): Merge with *avx_pblendvb.
20944         (sse4_1_pblendw): Merge with *avx_pblendw.
20945         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
20946         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
20947         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
20948         VF mode iterator.
20949         (sse4_1_round<ssescalarmodesuffix>): Merge with
20950         *avx_round<ssescalarmodesuffix>.
20951         (aesenc): Merge with *avx_aesenc.
20952         (aesenclast): Merge with *avx_aesenclast.
20953         (aesdec): Merge with *avx_aesdec.
20954         (aesdeclast): Merge with *avx_aesdeclast.
20955         (pclmulqdq): Merge with *pclmulqdq.
20956         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
20957         New predicate.
20958         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
20959
20960 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
20961
20962         PR middle-end/48608
20963         * cfgexpand.c (get_decl_align_unit): Renamed to ...
20964         (align_local_variable): This.  Update DECL_ALIGN.
20965         (add_stack_var): Updated.
20966         (expand_one_stack_var): Likewise.
20967
20968 2011-04-14  Richard Guenther  <rguenther@suse.de>
20969
20970         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
20971         Remove.
20972         (dse_initialize_block_local_data, dse_leave_block,
20973         record_voperand_set, get_stmt_uid): Likewise.
20974         (dse_possible_dead_store_p): Allow any kind of killing stmt.
20975         (dse_optimize_stmt): Remove voperand set handling code.
20976         Simplify and improve to handle any kind of killing stmt.
20977         (dse_record_phi): Remove.
20978         (dse_enter_block): Simplify.
20979         (tree_ssa_dse): Likewise.
20980         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
20981
20982 2011-04-14  Jan Hubicka  <jh@suse.cz>
20983
20984         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
20985         * cgraph.h (struct inline_summary): Move to ipa-inline.h
20986         (cgraph_local_info): Remove inline_summary.
20987         * ipa-cp.c: Include ipa-inline.h.
20988         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
20989         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
20990         accesor.
20991         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
20992         (input_overwrite_node): Do not set inline summary.
20993         (input_node): Do not stream inline summary.
20994         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
20995         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
20996         growth; we do not have inline parameters computed for that anyway.
20997         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
20998         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
20999         (inline_summary_t): New type and VECtor.
21000         (debug_inline_summary, dump_inline_summaries): Declare.
21001         (inline_summary): Use VOCtor.
21002         (estimate_edge_growth): Kill hack computing call stmt size directly.
21003         * lto-section-in.c (lto_section_name): Add inline section.
21004         * ipa-inline-analysis.c: Include lto-streamer.h
21005         (node_removal_hook_holder, node_duplication_hook_holder): New holders
21006         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
21007         (inline_summary_vec): Define.
21008         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
21009         dump_inline_summaries): New functions.
21010         (estimate_function_body_sizes): Properly compute size/time of outgoing
21011         calls.
21012         (compute_inline_parameters): Alloc inline_summary; do not compute
21013         size/time of incomming calls.
21014         (estimate_edge_time): Avoid missing time summary hack.
21015         (inline_read_summary): Read inline summary info.
21016         (inline_write_summary): Write inline summary info.
21017         (inline_free_summary): Free all hooks and inline summary vector.
21018         * lto-streamer.h: Add LTO_section_inline_summary section.
21019         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
21020         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
21021
21022 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21023
21024         * tree-vectorizer.h (vect_strided_store_supported): Add a
21025         HOST_WIDE_INT argument.
21026         (vect_strided_load_supported): Likewise.
21027         (vect_permute_store_chain): Return void.
21028         (vect_transform_strided_load): Likewise.
21029         (vect_permute_load_chain): Delete.
21030         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
21031         count argument.  Check that the count is a power of two.
21032         (vect_strided_load_supported): Likewise.
21033         (vect_permute_store_chain): Return void.  Update after above changes.
21034         Assert that the access is supported.
21035         (vect_permute_load_chain): Likewise.
21036         (vect_transform_strided_load): Return void.
21037         * tree-vect-stmts.c (vectorizable_store): Update calls after
21038         above interface changes.
21039         (vectorizable_load): Likewise.
21040         (vect_analyze_stmt): Don't check for strided powers of two here.
21041
21042 2011-04-14  Richard Guenther  <rguenther@suse.de>
21043
21044         PR tree-optimization/48590
21045         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21046         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21047         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
21048         BUILT_IN_STACK_SAVE.
21049         * tree-ssa-dce.c (propagate_necessity): Handle
21050         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21051
21052 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
21053
21054         * c-parser.c (c_parser_objc_class_declaration): Updated call to
21055         objc_declare_class.
21056
21057 2011-04-14  Richard Guenther  <rguenther@suse.de>
21058
21059         * tree.h (get_object_alignment_1): Declare.
21060         * builtins.c (get_object_alignment_1): Split out worker from ...
21061         (get_object_alignment): ... here.
21062         * fold-const.c (get_pointer_modulus_and_residue): Use
21063         get_object_alignment_1.
21064
21065 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21066
21067         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
21068         type parameter.
21069         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
21070         parameter.  Generalise code to handle arrays as well as vectors.
21071         (vect_setup_realignment): Update accordingly.
21072         * tree-vect-stmts.c (vectorizable_store): Likewise.
21073         (vectorizable_load): Likewise.
21074
21075 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21076
21077         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
21078         within the per-copy loop.
21079
21080 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21081
21082         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
21083         in the dump file.
21084
21085 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21086
21087         * doc/options.texi (Negative): Explicitly mention that the
21088         Negative chain must be circular.
21089
21090 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
21091
21092         * function.h (block_chainon): Declare.
21093         * function.c (block_chainon): Define.
21094
21095 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
21096             Eric Weddington  <eric.weddington@atmel.com>
21097             Georg-Johann Lay  <avr@gjlay.de>
21098
21099         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
21100         New Includes
21101         (avr_init_builtins, avr_expand_builtin,
21102         avr_expand_delay_cycles, avr_expand_unop_builtin,
21103         avr_expand_binop_builtin ): New functions.
21104         (avr_builtin_id): New enum
21105         (struct avr_builtin_description): New struct
21106         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
21107         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
21108
21109         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
21110         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
21111         UNSPECV_DELAY_CYCLES): new enumeration values
21112         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
21113         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
21114         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
21115         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
21116         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
21117         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
21118         "fmulsu"): New insns
21119
21120         * config/avr/avr-c.c: fix line endings
21121         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
21122         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
21123         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
21124         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
21125         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
21126
21127         * doc/extend.texi (AVR Built-in Functions): New node
21128         (Target Builtins): Add documentation of AVR
21129         built-in functions.
21130
21131 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
21132
21133         PR target/44643
21134         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
21135         alone. Error if non-const data has attribute progmem.
21136
21137 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21138
21139         * tree.h (struct tree_constructor): Include tree_typed instead of
21140         tree_common.
21141         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
21142         TS_TYPED instead of TS_COMMON.
21143
21144 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
21145
21146         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
21147         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
21148         (sse2_psadbw): Merge with *avx_psadbw.
21149         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
21150         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
21151         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
21152         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
21153         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
21154         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
21155         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
21156         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
21157         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
21158         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
21159         (ssse3_palignrti): Merge with *avx_palignrti.
21160
21161 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21162
21163         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
21164         * tree-ssanames.c (fini_ssanames): VEC_free it.
21165         (make_ssa_name_fn): Update for VECness of free_ssanames.
21166         (release_ssa_name, release_dead_ssa_names): Likewise.
21167         * tree.h (struct tree_ssa_name): Include tree_typed instead of
21168         tree_common.
21169         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
21170         TS_TYPED instead of TS_COMMON.
21171
21172 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21173
21174         * postreload-gcse.c (gcse_after_reload_main): Add calls to
21175         statistics_counter_event.
21176         * tree-ssa-copyrename.c (stats): Define.
21177         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
21178         statistics_counter_event.
21179         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
21180         (bswap_stats, widen_mul_stats): Define.
21181         (insert_reciprocals): Increment rdivs_inserted.
21182         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
21183         rfuncs_inserted.  Add calls to statistics_counter_event.
21184         (execute_cse_sincos_1): Increment inserted.
21185         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
21186         statistics_counter_event.
21187         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
21188         of bswap_stats.  Add calls to statistics_counter_event.
21189         (convert_mult_to_widen): Increment widen_mults_inserted.
21190         (convert_plusminus_to_widen): Increment maccs_inserted.
21191         (convert_mult_to_fma): Increment fmas_inserted.
21192         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
21193         calls to statistics_counter_event.
21194
21195 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
21196
21197         PR rtl-optimization/48455
21198         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
21199         `temp_costs->mem_cost'.
21200
21201 2011-04-13  Jan Hubicka  <jh@suse.cz>
21202
21203         * ipa-inline.h: New file.
21204         * ipa-inline-analysis.c: New file. Broken out of ...
21205         * ipa-inline.c: ... this file; update toplevel comment;
21206         include ipa-inline.h
21207         (inline_summary): Move to ipa-inline.h
21208         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
21209         ipa-inline-analysis.c.
21210         (cgraph_estimate_time_after_inlining): Rename to
21211         estiamte_time_after_inlining; move to ipa-inline-analysis.c
21212         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
21213         to estimate_edge_growth.
21214         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
21215         rename to estimate_size_after_inlining.
21216         (cgraph_mark_inline_edge): Update for new naming convention.
21217         (cgraph_check_inline_limits): Likewise.
21218         (cgraph_edge_badness): Likewise.
21219         (cgraph_decide_recursive_inlining): Likewise.
21220         (cgraph_decide_inlining_of_small_functions): Likewise.
21221         (cgraph_decide_inlining_incrementally): Likewise.
21222         (cgraph_estimate_growth): Rename to estimate_growth; move to
21223         ipa-inline-analysis.c.
21224         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
21225         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
21226         (compute_inline_parameters): Likewise.
21227         (compute_inline_parameters_for_current): Likewise.
21228         (pass_inline_parameters): Likewise.
21229         (inline_indirect_intraprocedural_analysis): Likewise.
21230         (analyze_function): Rename to inline_analyze_function; likewise.
21231         (add_new_function): Move to ipa-inline-analysis.c.
21232         (inline_generate_summary): Likewise.
21233         (inline_read_summary): Likewise.
21234         (inline_write_summary): Likewise.
21235         * Makefile.in (ipa-inline-analysis.c): New file.
21236
21237 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21238
21239         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
21240         * configure: Regenerate.
21241
21242 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21243
21244         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
21245         instead of tree_common.
21246         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
21247         Likewise.
21248         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
21249         TS_TYPED rather than TS_COMMON.
21250         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
21251
21252 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
21253
21254         PR target/45263
21255         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
21256         r20 around calls of __tablejump_elpm__
21257
21258 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
21259
21260         PR middle-end/48591
21261         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
21262         NULL.
21263         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
21264
21265 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
21266
21267         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
21268         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
21269         (cfi_vec): New typedef.
21270         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
21271         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
21272         (cie_cfi_vec): New static variable.
21273         (cie_cfi_head): Delete.
21274         (add_cfi): Accept a cfi_vec * as first argument. All callers and
21275         declaration changed. Use vector rather than list operations.
21276         (new_cfi): Don't initialize the dw_cfi_next field.
21277         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
21278         rather than list operations.
21279         (lookup_cfa): Use vector rather than list operations.
21280         (output_cfis): New argument upto. Accept a cfi_vec rather than
21281         a dw_cfi_ref list head as argument. All callers changed.
21282         Iterate over the vector using upto as a maximum index.
21283         (output_all_cfis): New static function.
21284         (output_fde): Use vector rather than list operations. Use the
21285         new upto argument for output_cfis rather than manipulating a
21286         list.
21287         (dwarf2out_begin_prologue): Change initializations to match
21288         new struct members.
21289         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
21290         from the vector length rather than searching for the end of a list.
21291         Use output_all_cfis.
21292         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
21293
21294 2011-04-13  Nick Clifton  <nickc@redhat.com>
21295
21296         * config/rx/rx.md (movmemsi): Do not use this pattern when
21297         volatile pointers are involved.
21298
21299 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
21300
21301         * config/i386/sse.md (pinsrbits): Remove.
21302         (sse2_packsswb): Merge with *avx_packsswb.
21303         (sse2_packssdw): Merge with *avx_packssdw.
21304         (sse2_packuswb): Merge with *avx_packuswb.
21305         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
21306         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
21307         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
21308         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
21309         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
21310         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
21311         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
21312         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
21313         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
21314         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
21315         (sse2_loadld): Merge with *avx_loadld.
21316         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
21317         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
21318         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
21319         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
21320         (vec_concatv2di): Merge with *vec_concatv2di_avx.
21321
21322 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
21323
21324         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
21325         calling TREE_CHAIN.
21326         * print-tree.c (print_node): Likewise.
21327         * tree-inline.c (copy_tree_r): Likewise.
21328         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
21329         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
21330         instead of TS_COMMON.
21331         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
21332         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
21333         (copy_node_stat): Zero TREE_CHAIN only if necessary.
21334         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
21335         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
21336         ...and these...
21337         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
21338         * tree.h: ...here.
21339         (TREE_CHAIN): Check for a TS_COMMON structure.
21340         (TREE_TYPE): Check for a TS_TYPED structure.
21341
21342 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
21343
21344         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21345         cgraph_get_create_node instead of cgraph_node.
21346
21347 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
21348
21349         * c-parser.c (c_parser_initelt): Updated call to
21350         objc_build_message_expr.
21351         (c_parser_postfix_expression): Likewise.
21352
21353 2011-04-12  Kai Tietz  <ktietz@redhat.com>
21354
21355         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
21356         MASK_MS_BITFIELD_LAYOUT bit.
21357
21358 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
21359
21360         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
21361         assert it is always true.
21362         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
21363         moves.
21364
21365 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
21366
21367         * c-parser.c (c_lex_one_token): Rewritten conditional used when
21368         compiling Objective-C to be more efficient.
21369
21370 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
21371
21372         * opts-common.c (decode_cmdline_options_to_array): Remove variable
21373         argv_copied.
21374
21375 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
21376
21377         * recog.h, genoutput.c, optabs.c: Revert last patch.
21378
21379 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21380
21381         PR target/48090
21382         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
21383
21384 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
21385
21386         * recog.h (insn_operand_data): Add an "allows_mem" field.
21387         * genoutput.c (output_operand_data): Initialize it.
21388         * optabs.c (maybe_legitimize_operand_same_code): New function.
21389         (maybe_legitimize_operand): Use it when matching the original
21390         op->value.
21391
21392 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
21393
21394         * genpreds.c (process_define_predicate): Move most processing
21395         to gensupport.c.  Continue to validate the expression.
21396         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
21397         (process_define_predicate): Move processing to gensupport.c.
21398         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
21399         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
21400         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
21401         argument.
21402         (valid_predicate_name_p): New function, split out from old
21403         genpreds.c:process_define_predicate.
21404         (process_define_predicate): New function, combining code from
21405         old genpreds.c and genrecog.c functions.
21406         (process_rtx): Call it for DEFINE_PREDICATE and
21407         DEFINE_SPECIAL_PREDICATE.
21408
21409 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
21410
21411         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
21412         size of a '%A' memory reference.
21413         (T_DREG, T_QREG): New neon_builtin_type_bits.
21414         (arm_init_neon_builtins): Assert that the load and store operands
21415         are neon_struct_operands.
21416         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
21417         (NEON_ARG_MEMORY): New builtin_arg.
21418         (neon_dereference_pointer): New function.
21419         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
21420         Handle NEON_ARG_MEMORY.
21421         (arm_expand_neon_builtin): Update after above interface changes.
21422         Use NEON_ARG_MEMORY for loads and stores.
21423         * config/arm/predicates.md (neon_struct_operand): New predicate.
21424         * config/arm/iterators.md (V_two_elem): Tweak formatting.
21425         (V_three_elem): Use BLKmode for accesses that have no associated mode.
21426         (V_four_elem): Tweak formatting.
21427         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
21428         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
21429         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
21430         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
21431         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
21432         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
21433         (neon_vst4<mode>): Replace pointer operand with a memory operand.
21434         Use %A in the output template.
21435         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
21436         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
21437         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
21438         the width of the memory access.  Remove post-increment.
21439         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
21440
21441 2011-04-12  Nick Clifton  <nickc@redhat.com>
21442
21443         * config/v850/v850.c (expand_prologue): Do not use the CALLT
21444         instruction for interrupt handlers if the target is the basic V850
21445         architecture.
21446         (expand_epilogue): Likewise.
21447
21448 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
21449
21450         PR rtl-optimization/48549
21451         * combine.c (propagate_for_debug): Also stop after BB_END of
21452         this_basic_block.  Process LAST and just stop processing after it.
21453         (combine_instructions): If last_combined_insn has been deleted,
21454         set last_combined_insn to its PREV_INSN.
21455
21456 2011-04-12  Richard Guenther  <rguenther@suse.de>
21457
21458         PR tree-optimization/46076
21459         * gimple.h (struct gimple_statement_call): Add fntype field.
21460         (gimple_call_fntype): Adjust.
21461         (gimple_call_set_fntype): New function.
21462         * gimple.c (gimple_build_call_1): Set the call function type.
21463         * gimplify.c (gimplify_call_expr): Preserve the function
21464         type the frontend used for the call.
21465         (gimplify_modify_expr): Likewise.
21466         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
21467         function type.
21468         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
21469         function type.
21470         * tree-ssa.c (useless_type_conversion_p): Function pointer
21471         conversions are useless.
21472
21473 2011-04-12  Martin Jambor  <mjambor@suse.cz>
21474
21475         * cgraph.h (cgraph_node): Remove function declaration.
21476         (cgraph_create_node): Declare.
21477         (cgraph_get_create_node): Likewise.
21478         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
21479         Updated all callers.
21480         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
21481         the decl does not already exist.  Call cgraph_get_create_node instead
21482         of cgraph_node.
21483         (cgraph_get_create_node): New function.
21484         (cgraph_same_body_alias): Update comment.
21485         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
21486         assert it does not return NULL.
21487         (cgraph_update_edges_for_call_stmt): Likewise.
21488         (cgraph_clone_edge): Likewise.
21489         (cgraph_create_virtual_clone): Likewise.
21490         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
21491         instead of cgraph_node.
21492         (cgraph_add_new_function): Call cgraph_create_node or
21493         cgraph_get_create_node instead of cgraph_node.
21494         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
21495         instead of cgraph_node.
21496         (record_eh_tables): Likewise.
21497         (mark_address): Likewise.
21498         (mark_load): Likewise.
21499         (build_cgraph_edges): Call cgraph_get_create_node instead
21500         of cgraph_node.
21501         (rebuild_cgraph_edges): Likewise.
21502         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
21503         instead of cgraph_node.
21504         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
21505         cgraph_node.
21506         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
21507         cgraph_create_node instead of cgraph_node.
21508         * c-decl.c (finish_function): Call cgraph_get_create_node instead
21509         of cgraph_node.
21510         * lto-cgraph.c (input_node): Likewise.
21511         * lto-streamer-in.c (input_function): Likewise.
21512         * varasm.c (mark_decl_referenced): Likewise.
21513         (assemble_alias): Likewise.
21514
21515 2011-04-12  Martin Jambor  <mjambor@suse.cz>
21516
21517         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
21518         instead of cgraph_node and assert it does not return NULL.
21519         * lto-streamer-in.c (lto_read_body): Likewise.
21520         * omp-low.c (new_omp_context): Likewise.
21521         (create_task_copyfn): Likewise.
21522         * tree-emutls.c (lower_emutls_function_body): Likewise.
21523         * matrix-reorg.c (transform_allocation_sites): Likewise.
21524
21525 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
21526
21527         PR c/48552
21528         * c-typeck.c (build_asm_expr): Error out on attempts to use
21529         void type outputs or inputs for constraints that allow reg or
21530         don't allow memory.
21531
21532 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
21533             Richard Earnshaw  <rearnsha@arm.com>
21534
21535         PR target/48250
21536         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
21537         to use sign-magnitude offsets. Reject unsupported unaligned
21538         cases. Add detailed description in comments.
21539         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
21540         condition from TARGET_32BIT to TARGET_ARM.
21541
21542 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
21543
21544         * tree.h (struct typed_tree): New.
21545         (struct tree_common): Include it instead of tree_base.
21546         (TREE_TYPE): Update for new location of type field.
21547         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
21548         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
21549         (union tree_node): Add typed field.
21550         * treestruct.def (TS_TYPED): New.
21551         * lto-streamer.c (check_handled_ts_structures): Handle it.
21552         * tree.c (MARK_TS_TYPED): New macro.
21553         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
21554
21555 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
21556
21557         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
21558         (force_nonfallthru): Do not alter the loop nest if no basic block
21559         was created.
21560
21561 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
21562
21563         * config/i386/sse.md (VI): New mode iterator.
21564         (SSEMODEI): Remove.
21565         (AVX256MODEI): Ditto.
21566         (AVXMODEF4P): Ditto.
21567         (avxvecpsmode): Ditto.
21568         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
21569         (sse2_andnot<mode>3): New expander.
21570         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
21571         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
21572         (<any_logic:code><mode>3): Use VI mode iterator.
21573         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
21574         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
21575         (*andnottf3): Handle AVX three-operand constraints.
21576         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
21577
21578 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21579             Robert Millan  <rmh@gnu.org>
21580
21581         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
21582         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
21583         GNU_USER_DYNAMIC_LINKER64): Define.
21584         (REG_NAME): Don't undefine.
21585         (MD_UNWIND_SUPPORT): Undefine.
21586         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
21587         (REG_NAME): Don't undefine.
21588         (MD_UNWIND_SUPPORT): Undefine.
21589         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
21590
21591 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21592
21593         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
21594         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
21595
21596 2011-04-11  Xinliang David Li  <davidxl@google.com>
21597
21598         * value-profile.c (check_ic_target): New function.
21599         (gimple_ic_transform): Sanity check indirect call target.
21600         * gimple-low.c (gimple_check_call_args): Interface change.
21601         (gimple_check_call_matching_types): New function.
21602         * tree-inline.c (tree_can_inline_p): Call new function.
21603
21604 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
21605
21606         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
21607         tree-pretty-print.h & realmpfr.h.
21608
21609 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
21610
21611         PR middle-end/48464
21612         * ira.c (setup_pressure_classes): Fix typo in loop condition.
21613         (setup_allocno_and_important_classes): Ditto.
21614
21615 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21616
21617         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
21618         GNU_USER_DYNAMIC_LINKER.
21619         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
21620         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21621         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
21622         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21623         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
21624         GNU_USER_TARGET_OS_CPP_BUILTINS.
21625         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
21626         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21627         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
21628         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21629         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
21630         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21631         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
21632         GNU_USER_TARGET_OS_CPP_BUILTINS.
21633         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21634         GNU_USER_DYNAMIC_LINKER.
21635         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21636         GNU_USER_TARGET_OS_CPP_BUILTINS.
21637         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
21638         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21639         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
21640         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21641         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
21642         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
21643         GNU_USER_DYNAMIC_LINKER64): Remove.
21644         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
21645         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21646         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21647         GNU_USER_DYNAMIC_LINKER.
21648         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21649         GNU_USER_TARGET_OS_CPP_BUILTINS.
21650         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21651         GNU_USER_TARGET_OS_CPP_BUILTINS.
21652         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
21653         to GNU_USER_TARGET_OS_CPP_BUILTINS.
21654         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21655         GNU_USER_TARGET_OS_CPP_BUILTINS.
21656         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
21657         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
21658         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
21659         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
21660         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21661         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21662         GNU_USER_DYNAMIC_LINKER.
21663         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
21664         GNU_USER_TARGET_OS_CPP_BUILTINS.
21665         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
21666         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21667         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21668         GNU_USER_DYNAMIC_LINKER.
21669         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
21670         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21671         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
21672         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21673         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21674         GNU_USER_DYNAMIC_LINKER.
21675         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
21676         GNU_USER_DYNAMIC_LINKERN32.
21677         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
21678         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
21679         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
21680         GNU_USER_DYNAMIC_LINKER32.
21681         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
21682         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21683         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21684         GNU_USER_DYNAMIC_LINKER.
21685         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
21686         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21687         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
21688         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21689         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21690         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
21691         GNU_USER_DYNAMIC_LINKER32.
21692         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
21693         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
21694         GNU_USER_DYNAMIC_LINKER.
21695         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
21696         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21697         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
21698         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
21699         GNU_USER_DYNAMIC_LINKER64.
21700         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
21701         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21702         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21703         GNU_USER_DYNAMIC_LINKER.
21704         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
21705         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21706         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21707         GNU_USER_DYNAMIC_LINKER.
21708         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
21709         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21710         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
21711         GNU_USER_DYNAMIC_LINKER32.
21712         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
21713         GNU_USER_DYNAMIC_LINKER64.
21714         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
21715         GNU_USER_DYNAMIC_LINKER64.
21716         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
21717         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21718         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
21719         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21720         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21721
21722 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21723
21724         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
21725         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
21726         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
21727         GNU_USER_DYNAMIC_LINKER.
21728         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
21729         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
21730         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
21731         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
21732         GNU_USER_DYNAMIC_LINKER64.
21733         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
21734         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
21735         GNU_USER_LINK_EMULATION.
21736         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
21737         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
21738         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
21739         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
21740         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
21741         CPP_SPEC, CC1_SPEC): Remove.
21742         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
21743         (GNU_USER_DYNAMIC_LINKER): Define.
21744         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
21745         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
21746         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
21747         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
21748         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
21749         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
21750         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
21751         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
21752         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
21753         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
21754         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
21755         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
21756         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
21757         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
21758         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
21759         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
21760         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21761         GNU_USER_DYNAMIC_LINKER.
21762         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21763         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21764         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21765         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21766         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21767         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21768         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
21769         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
21770         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
21771         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
21772
21773 2011-04-11  Kai Tietz  <ktietz@redhat.com>
21774
21775         PR target/9601
21776         PR target/11772
21777         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
21778         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
21779         comment.
21780         (ix86_is_msabi_thiscall): Removed.
21781         (ix86_is_type_thiscall): Likewise.
21782         (ix86_get_callcvt): New function.
21783         (ix86_comp_type_attributes): Simplify check.
21784         (ix86_function_regparm): Use ix86_get_callcvt for calling
21785         convention attribute checks.
21786         (ix86_return_pops_args): Likewise.
21787         (ix86_static_chain): Likewise.
21788         (x86_this_parameter): Likewise.
21789         (x86_output_mi_thunk): Likewise.
21790         (ix86_function_type_abi): Optimize check for types without attributes.
21791         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
21792         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
21793         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
21794         by flag-values.
21795         (IX86_BASE_CALLCVT): Helper macro.
21796         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
21797         Use ix86_get_callcvt for calling convention attribute checks and avoid
21798         symbol-decoration for stdcall in TARGET_RTD case.
21799         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
21800         Likewise.
21801         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
21802         for declaration.
21803
21804 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
21805
21806         * config/i386/sse.md (VI_128): New mode iterator.
21807         (VI12_128): Rename from SSEMODE12.
21808         (VI14_128): Rename from SSEMODE14.
21809         (VI124_128): New mode iterator.
21810         (VI24_128): Rename from SSEMODE248.
21811         (VI248_128): Rename from SSEMODE248.
21812         (SSEMODE124C8): Remove.
21813         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21814         (*sse2_<plusminus_insn><mode>3): Merge with
21815         *avx_<plusminus_insn><mode>3.
21816         (*mulv8hi3): Merge with *avx_mulv8hi3.
21817         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
21818         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
21819         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
21820         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
21821         (ashr<mode>3): Merge with *avx_ashr<mode>3.
21822         (lshr<mode>3): Merge with *avx_lshr<mode>3.
21823         (ashl<mode>3): Merge with *avx_ashl<mode>3.
21824         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
21825         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
21826         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21827         (*<smaxmin:code>v8hi3): Ditto.
21828         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
21829         (*<smaxmin:code>v16qi3): Ditto.
21830         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
21831         (*sse2_eq<mode>3): Ditto.
21832         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
21833         (*sse2_gt<mode>3): Ditto.
21834         (vcondv2di): Split out of vcond<mode>.
21835         (vconduv2di): Split out of vcondu<mode>.
21836
21837 2011-04-11  Richard Guenther  <rguenther@suse.de>
21838
21839         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
21840         before calling tree_low_cst.
21841
21842 2011-04-11  Richard Guenther  <rguenther@suse.de>
21843
21844         * stor-layout.c (layout_type): Compute all array index size operations
21845         in the original type.
21846         (initialize_sizetypes): Add comment.
21847         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
21848
21849 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21850
21851         * common.opt (Tbss=, Tdata=, Ttext=): New options.
21852
21853 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21854
21855         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
21856         of cgraph_node, handle NULL return value.
21857         (cgraph_global_info): Likewise.
21858         (cgraph_rtl_info): Likewise.
21859         * tree-inline.c (estimate_num_insns): Likewise.
21860         * gimplify.c (unshare_body): Likewise.
21861         (unvisit_body): Likewise.
21862         (gimplify_body): Likewise.
21863         * predict.c (optimize_function_for_size_p): Likewise.
21864         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
21865         (call_may_clobber_ref_p_1): Likewise.
21866         * varasm.c (function_section_1): Likewise.
21867         (assemble_start_function): Likewise.
21868
21869 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21870
21871         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
21872         of cgraph_node.
21873         * final.c (rest_of_clean_state): Likewise.
21874         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
21875         * passes.c (pass_init_dump_file): Likewise.
21876         (execute_all_ipa_transforms): Likewise.
21877         (function_called_by_processed_nodes_p): Likewise.
21878         * predict.c (maybe_hot_frequency_p): Likewise.
21879         (probably_never_executed_bb_p): Likewise.
21880         (compute_function_frequency): Likewise.
21881         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
21882         (unnest_nesting_tree_1): Likewise.
21883         (lower_nested_functions): Likewise.
21884         * tree-optimize.c (execute_fixup_cfg): Likewise.
21885         (tree_rest_of_compilation): Likewise.
21886         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
21887         * tree-sra.c (ipa_early_sra): Likewise.
21888         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21889         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
21890         * ipa.c (record_cdtor_fn): Likewise.
21891         * ipa-inline.c (cgraph_early_inlining): Likewise.
21892         (compute_inline_parameters_for_current): Likewise.
21893         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
21894         * ipa-pure-const.c (local_pure_const): Likewise.
21895         * ipa-split.c (split_function): Likewise.
21896         (execute_split_functions): Likewise.
21897         * cgraphbuild.c (build_cgraph_edges): Likewise.
21898         (rebuild_cgraph_edges): Likewise.
21899         (cgraph_rebuild_references): Likewise.
21900         (remove_cgraph_callee_edges): Likewise.
21901         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
21902         (verify_cgraph_node): Likewise.
21903         (cgraph_analyze_functions): Likewise.
21904         (cgraph_preserve_function_body_p): Likewise.
21905         (save_inline_function_body): Likewise.
21906         (save_inline_function_body): Likewise.
21907         * tree-inline.c (copy_bb): Likewise.
21908         (optimize_inline_calls): Likewise.
21909
21910 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21911
21912         PR tree-optimization/48195
21913         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
21914         ipa_check_create_edge_args.
21915         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
21916         ipa_check_create_edge_args.
21917         * ipa-inline.c (inline_generate_summary): Do not call
21918         ipa_check_create_node_params and ipa_check_create_edge_args.
21919         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
21920         ipa_check_create_edge_args.
21921
21922 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
21923
21924         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
21925         instead of loop.
21926         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21927         * function.c (record_hard_reg_sets): Likewise.
21928         * ira.c (compute_regs_asm_clobbered): Likewise.
21929         * sched-deps.c (sched_analyze_1): Likewise.
21930         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
21931
21932 2011-04-09  Xinliang David Li  <davidxl@google.com>
21933
21934         PR tree-optimization/PR48484
21935         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
21936         has_valid_pred lazily
21937
21938 2011-04-09  Duncan Sands  <baldrick@free.fr>
21939
21940         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
21941
21942 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
21943
21944         * combine.c (combine_validate_cost): Adjust comments.  Set registered
21945         cost of I0 to zero at the end, if any.
21946
21947 2011-04-08  Xinliang David Li  <davidxl@google.com>
21948
21949         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
21950         to insane profile data.
21951
21952 2011-04-08  Xinliang David Li  <davidxl@google.com>
21953
21954         * ipa-cp.c (ipcp_update_profiling): Correct
21955          negative scale factor due to insane profile data.
21956
21957 2011-04-08  Xinliang David Li  <davidxl@google.com>
21958
21959         * final.c (dump_basic_block_info): New function.
21960         (final): Dump basic block.
21961         (final_scan_insn): Remove old dump.
21962
21963 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
21964
21965         PR target/47829
21966         * config.gcc (i386-*-freebsd): Disable unwind table generation for
21967         crtbegin/crtend.
21968
21969 2011-04-08  Michael Matz  <matz@suse.de>
21970
21971         PR middle-end/48389
21972         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
21973         functions.
21974         (rebuild_jump_labels): Call rebuild_jump_labels_1.
21975         * rtl.h (rebuild_jump_labels_chain): Declare.
21976         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
21977         insns inserted on edges.
21978
21979 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
21980
21981         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
21982         * config/arm/arm-arches.def: New.
21983         * config/arm/arm-opts.h: New.
21984         * config/arm/genopt.sh: New.
21985         * config/arm/arm-tables.opt: New (generated).
21986         * config/arm/arm.c (arm_handle_option, arm_target_help,
21987         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
21988         (all_architectures): Get most table contents from arm-arches.def.
21989         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
21990         arm_selected_tune here.
21991         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
21992         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
21993         (march=, mcpu=, mtune=): Use Enum and Var.
21994         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
21995         (arm.o): Update dependencies.
21996
21997 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
21998
21999         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
22000         of header_file.
22001         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
22002         (write_typed_alloc_defns): Likewise.
22003         (main): Calls write_typed_alloc_defns with output_header.
22004
22005 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
22006
22007         PR inline-asm/48435
22008         * ira-color.c (setup_profitable_hard_regs): Add comments.
22009         Don't take prohibited hard regs into account.
22010         (setup_conflict_profitable_regs): Rename to
22011         get_conflict_profitable_regs.
22012         (check_hard_reg_p): Check prohibited hard regs.
22013
22014 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
22015
22016         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
22017         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
22018         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
22019
22020 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22021
22022         PR target/48366
22023         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
22024         move from floating point to shift amount register.
22025         (emit_move_sequence): Remove secondary reload support for floating
22026         point to shift amount amount register copies.
22027         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
22028         amount register copies.
22029         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
22030         register, return false if mode isn't a scalar integer mode.
22031         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
22032
22033 2011-04-08  Richard Guenther  <rguenther@suse.de>
22034
22035         * gimple.c (gimple_call_flags): Remove kludge.
22036
22037 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22038
22039         * sel-sched.c (sel_region_init): Move call to
22040         sel_setup_region_sched_flags after setup_current_loop_nest.
22041
22042 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
22043
22044         PR rtl-optimization/48272
22045         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
22046         init_insn_reg_pressure_info.  Adjust a caller.
22047         * sched-int.h (init_insn_reg_pressure_info): Declare.
22048         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
22049         when sched-pressure is enabled.
22050
22051 2011-04-08  Richard Guenther  <rguenther@suse.de>
22052
22053         * gimple.c (gimple_set_modified): Do not queue calls to
22054         MODIFIED_NORETURN_CALLS here ...
22055         * tree-ssa-operands.c (update_stmt_operands): ... but here.
22056
22057 2011-04-08  Richard Guenther  <rguenther@suse.de>
22058
22059         PR lto/48467
22060         * toplev.c (lang_dependent_init): Do not open asm_out_file
22061         in WPA mode, nor perform debug machinery initialization.
22062         (finalize): Do not unlink asm_out_file in WPA mode.
22063
22064 2011-04-08  Richard Guenther  <rguenther@suse.de>
22065
22066         * gimple.h (gimple_call_fntype): New function.
22067         (gimple_call_return_type): Use it.
22068         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
22069         * gimple-low.c (gimple_check_call_args): Likewise.
22070         * gimple.c (gimple_call_flags): Likewise.
22071         (gimple_call_arg_flags): Likewise.
22072         (gimple_call_return_flags): Likewise.
22073         * tree-cfg.c (verify_gimple_call): Likewise.
22074         (do_warn_unused_result): Likewise.
22075         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
22076         * value-prof.c (gimple_ic_transform): Fix fndecl check.
22077
22078 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
22079
22080         PR rtl-optimization/48235
22081         * sel-sched.c (code_motion_process_successors): Recompute the last
22082         insn in basic block if control flow changed.
22083         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
22084         Update condition for ilist_remove.
22085
22086 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22087
22088         PR rtl-optimization/48302
22089         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
22090         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
22091         it to record added preheader blocks.
22092         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
22093         on to sel_add_loop_preheaders.
22094         (sel_region_init): Move call to setup_current_loop_nest after
22095         sel_init_bbs.
22096
22097 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22098
22099         PR target/48273
22100         * cfgloop.h (loop_has_exit_edges): New helper.
22101         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
22102         non-clonable.
22103         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
22104         that have no exit edges.
22105
22106 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22107
22108         PR rtl-optimization/48442
22109         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
22110         all callers.  Adjust assert.
22111
22112 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
22113
22114         PR tree-optimization/48377
22115         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
22116         is_packed to true even for types with smaller TYPE_ALIGN than
22117         TYPE_SIZE.
22118
22119 2011-04-08  Richard Guenther  <rguenther@suse.de>
22120
22121         PR bootstrap/48513
22122         * doc/tm.texi: Re-generate.
22123
22124 2011-04-08  Wei Guozhi  <carrot@google.com>
22125
22126         PR target/47855
22127         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
22128         * config/arm/arm.c (arm_attr_length_push_multi): New function.
22129         * config/arm/arm.md (*push_multi): Change the length computation to
22130         call a C function.
22131
22132 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
22133
22134         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
22135         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
22136         * doc/tm.texi: Regenerate.
22137         * system.h (ASM_OUTPUT_BSS): Poison.
22138         * varasm.c (asm_output_bss): Remove function.
22139         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
22140
22141         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
22142         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
22143         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
22144         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22145         Likewise.
22146         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22147         Likewise.
22148         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22149         Likewise.
22150         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
22151
22152 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
22153
22154         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
22155         EnumValue lines.
22156
22157 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
22158
22159         * config/m68k/m68k.c (m68k_handle_option): Don't handle
22160         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
22161         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
22162         OPT_mcpu32.
22163         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
22164         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
22165         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
22166         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
22167         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
22168         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
22169         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
22170         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
22171         options.  Don't map other m68k options manually.  Don't handle
22172         old-style options as canonical.
22173         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
22174         * doc/install.texi (m68k-*-*): Document binutils version requirement.
22175
22176 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
22177
22178         * basic-block.h (force_nonfallthru): Move to...
22179         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
22180         (force_nonfallthru): ...here.
22181         * cfghooks.c (force_nonfallthru): New function.
22182         * cfgrtl.c (force_nonfallthru): Rename into...
22183         (rtl_force_nonfallthru): ...this.
22184         (commit_one_edge_insertion): Do not set AUX field.
22185         (commit_edge_insertions): Do not discover new basic blocks.
22186         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
22187         (cfg_layout_rtl_cfg_hooks): Likewise.
22188         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
22189         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
22190         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
22191
22192 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
22193
22194         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
22195         Remove macros.
22196
22197 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
22198
22199         * config/i386/sse.md: Update copyright year.
22200         (avxcvtvecmode): Remove.
22201         (sse_movhlps): Merge with *avx_movhlps.
22202         (sse_movlhps): Merge with *avx_movlhps.
22203         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
22204         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
22205         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
22206         (sse_loadhps): Merge with *avx_loadhps.
22207         (sse_storelps): Merge with *avx_storelps.
22208         (sse_loadlps): Merge with *avx_loadlps.
22209         (sse_movss): Merge with *avx_movss.
22210         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
22211         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
22212         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
22213         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
22214         (vec_set<mode>_0): Ditto.
22215         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
22216         (sse4_1_insertps): Merge with *avx_insertps.
22217         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
22218         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
22219         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
22220         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
22221         (sse2_storehpd): Merge with *avx_storehpd.
22222         (sse2_loadhpd): Merge with *avx_loadhpd.
22223         (sse2_loadlpd): Merge with *avx_loadlpd.
22224         (sse2_movsd): Merge with *avx_movsd.
22225         (*vec_concatv2df): Merge with *vec_concatv2df.
22226
22227 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
22228
22229         PR debug/48343
22230         * combine.c (combine_instructions): Add last_combined_insn,
22231         update it if insn is after it, pass it to all try_combine calls.
22232         (try_combine): Add last_combined_insn parameter, pass it instead of
22233         i3 to propagate_for_debug.
22234
22235 2011-04-07  Nick Clifton  <nickc@redhat.com>
22236
22237         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
22238         to handle MDR <-> data register transfers.
22239         (movhi_internal): Likewise.
22240
22241 2011-04-07  Alan Modra  <amodra@gmail.com>
22242
22243         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
22244         previous stack info.
22245
22246 2011-04-07  Tom de Vries  <tom@codesourcery.com>
22247
22248         PR target/43920
22249         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
22250         flow_find_cross_jump.  Swap variables to implement backward replacement.
22251         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
22252
22253 2011-04-07  Tom de Vries  <tom@codesourcery.com>
22254
22255         PR target/43920
22256         * cfgcleanup.c (walk_to_nondebug_insn): New function.
22257         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
22258         and bb2.
22259         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
22260         src1 or src2.  Redirect edges to the last basic block.  Update
22261         frequency and count on multiple basic blocks in case of fallthru.
22262
22263 2011-04-07  Tom de Vries  <tom@codesourcery.com>
22264
22265         PR target/43920
22266         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
22267         function.
22268         (old_insns_match_p): Change return type.  Replace return false/true
22269         with return dir_none/dir_both.  Use can_replace_by.
22270         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
22271         direction from dir_p.  Register replacement direction in dir, last_dir
22272         and afterlast_dir.  Handle new return type of old_insns_match_p using
22273         merge_dir.  Return replacement direction in dir_p.
22274         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
22275         return type of old_insns_match_p.
22276         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
22277         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
22278         flow_find_cross_jump.
22279         * basic-block.h (enum replace_direction): New type.
22280         (flow_find_cross_jump): Add parameter to declaration.
22281
22282 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
22283
22284         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
22285         (AVXMODEDCVTPS2DQ): Ditto.
22286         (VEC_FLOAT_MODE): Ditto.
22287         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
22288         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
22289         (<any_logic:code><mode>3): Use VF mode iterator.
22290         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
22291         Use VF mode iterator.
22292         (copysign<mode>3): Use VF mode iterator.
22293         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
22294         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
22295         (*<any_logic:code><MODEF:mode>3): Merge with
22296         *avx_<any_logic:code><MODEF:mode>3.
22297         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
22298         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
22299         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
22300         (avx_cvtdq2ps<avxmodesuffix>): Remove.
22301         (sse2_cvtdq2ps): Use %v modifier.
22302         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
22303         (avx_cvtps2dq<avxmodesuffix>): Remove.
22304         (sse2_cvtps2dq): Use %v modifier.
22305         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
22306         (avx_cvttps2dq<avxmodesuffix>): Remove.
22307         (sse2_cvttps2dq): Use %v modifier.
22308         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
22309         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
22310         (sse2_cvtsd2siq): Fix insn template.
22311         (sse2_cvtsd2siq_2): Ditto.
22312         (sse2_cvttsd2siq): Ditto.
22313         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
22314         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
22315
22316 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
22317
22318         * gcov-io.c: Use GCC Runtime Library Exception.
22319
22320 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
22321
22322         PR debug/48466
22323         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
22324         as base_reg whatever register reg has been eliminated to, instead
22325         of hardcoding STACK_POINTER_REGNUM.
22326
22327 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
22328
22329         * doc/tm.texi.in: Document C target hooks as separate from general
22330         target hooks.
22331         * doc/tm.texi: Regenerate.
22332         * genhooks.c (struct hook_desc): Add docname field.
22333         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
22334         docname field.
22335         (hook_array): Include c-target.def.
22336         (emit_documentation): Use docname field in output.
22337         (emit_init_macros): Take docname argument.  Only emit definitions
22338         for hooks matching docname.
22339         (main): Expect additional arguments in all cases.  Pass argument
22340         to emit_init_macros.
22341         * target.def: Move initial macro definitions and comments to
22342         target-hooks-macros.h.
22343         (gcc_targetcm): Move to c-family/c-target.def.
22344         * target.h (targetcm): Move declaration to c-family/c-target.h.
22345         * targhooks.c (default_handle_c_option): Move to
22346         c-family/c-opts.c.
22347         * targhooks.h (default_handle_c_option): Move declaration to
22348         c-family/c-common.h.
22349         * target-hooks-macros.h: New file.
22350         * config.gcc (target_has_targetcm): Define and use to add to
22351         c_target_objs and cxx_target_objs.
22352         * config/default-c.c: New file.
22353         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
22354         of target.h and target-def.h.
22355         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
22356         (darwin_objc_construct_string, darwin_cfstring_ref_p,
22357         darwin_check_cfstring_format_arg): Make static.
22358         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
22359         TARGET_STRING_OBJECT_REF_TYPE_P,
22360         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
22361         * config/darwin-protos.h (darwin_objc_construct_string,
22362         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
22363         declare.
22364         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
22365         TARGET_STRING_OBJECT_REF_TYPE_P,
22366         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
22367         * config/t-darwin (darwin-c.o): Update dependencies.
22368         * system.h (TARGET_HAS_TARGETCM): Poison.
22369         * Makefile.in (TARGET_H): Update.
22370         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
22371         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
22372         (default-c.o): New target.
22373         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
22374         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
22375         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
22376         c-target.def.
22377         (build/genhooks.o): Update dependencies.
22378
22379 2011-04-06  Richard Guenther  <rguenther@suse.de>
22380
22381         * ipa-inline.c (enum inlining_mode): Remove.
22382         (cgraph_flatten): Use some other token.
22383         (cgraph_edge_early_inlinable_p): New function, split out from ...
22384         (cgraph_perform_always_inlining): New function, split out from ...
22385         (cgraph_decide_inlining_incrementally): ... here.
22386         (cgraph_mark_inline_edge): Adjust.
22387         (cgraph_early_inlining): Re-structure.
22388         (pass_early_inline): Require SSA form.
22389
22390 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
22391             Julian Brown  <julian@codesourcery.com>
22392             Mark Shinwell  <shinwell@codesourcery.com>
22393
22394         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
22395         LO_REGS only for Thumb-1.
22396         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
22397         be used in short instructions when optimising for size on Thumb-2.
22398
22399 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
22400
22401         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
22402         associated with user returns to be preserved.
22403
22404 2011-04-06  Tristan Gingold  <gingold@adacore.com>
22405
22406         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
22407         symbol_queue_size, DBXOUT_DECR_NESTING,
22408         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
22409         if XCOFF_DEBUGGING_INFO.
22410
22411 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
22412
22413         * config/i386/i386.md (attribute isa): New.
22414         (attribute enabled): New.
22415         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
22416         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
22417         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
22418         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
22419         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
22420         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22421         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
22422         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
22423
22424         * config/i386/sse.md (VF): New mode iterator.
22425         (VF1): Ditto.
22426         (VF2): Ditto.
22427         (VF_128): Ditto.
22428         (SSEMODEF4): Remove.
22429         (attribute sse): Handle V8SF and V4DF modes.
22430         (<absneg:code><mode>2): Use VF mode iterator.
22431         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
22432         mode iterator.
22433         (<plusminus_insn><mode>3): Use VF mode iterator.
22434         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22435         Use VF mode iterator.
22436         (<sse>_vm<plusminus_insn><mode>3): Merge with
22437         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
22438         (mul<mode>3): Use VF mode iterator.
22439         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
22440         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
22441         mode iterator.
22442         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
22443         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
22444         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
22445         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
22446         mode iterator.
22447         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
22448         Use VF1 mode iterator.
22449         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
22450         (sqrt<VF2:mode>2): New expander.
22451         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
22452         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
22453         and sqrtv2df2.  Use VF mode iterator.
22454         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
22455         mode iterator.
22456         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
22457         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
22458         Use VF1 mode iterator.
22459         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
22460         (<smaxmin:code><mode>3): Use VF mode iterator.
22461         (*<smaxmin:code><mode>3_finite): Merge with
22462         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
22463         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22464         (<sse>_vm<smaxmin:code><mode>2): Merge with
22465         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
22466         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
22467         mode iterator.
22468         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
22469         mode iterator.
22470         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
22471         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
22472         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
22473         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
22474         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
22475         VF mode iterator.
22476         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
22477         Use VF_128 mode iterator.
22478         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
22479         mode iterator.
22480         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
22481         VF_128 mode iterator.
22482         (vcond<mode>): Use VF mode iterator.
22483         * config/i386/predicates.md (sse_comparison_operator): Merge with
22484         avx_comparison_float_operator.  Do not declare as special_predicate.
22485         * config/i386/i386.c (struct builtin_description): Update for renamed
22486         compare patterns.
22487         (ix86_expand_args_builtin): Ditto.
22488         (ix86_expand_sse_compare_mask): Ditto.
22489
22490 2011-04-06  Richard Guenther  <rguenther@suse.de>
22491
22492         * tree-inline.c (estimate_num_insns): For calls simply account
22493         for all passed arguments and a used return value.
22494
22495 2011-04-06  Richard Guenther  <rguenther@suse.de>
22496
22497         PR tree-optimization/47663
22498         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
22499         call_stmt_time fields.
22500         (cgraph_edge_inlinable_p): Declare.
22501         (cgraph_edge_recursive_p): New inline function.
22502         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
22503         (cgraph_clone_edge): Copy it.
22504         * ipa-inline.c (cgraph_estimate_edge_time): New function.
22505         Account for call stmt time.
22506         (cgraph_estimate_time_after_inlining): Take edge argument.
22507         (cgraph_estimate_edge_growth): Account call stmt size.
22508         (cgraph_estimate_size_after_inlining): Take edge argument.
22509         (cgraph_mark_inline_edge): Adjust.
22510         (cgraph_check_inline_limits): Likewise.
22511         (cgraph_recursive_inlining_p): Remove.
22512         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
22513         (cgraph_decide_recursive_inlining): Take edge argument and
22514         adjust.
22515         (cgraph_decide_inlining_of_small_functions): Do not avoid
22516         diags for recursive inlining here.
22517         (cgraph_flatten): Adjust.
22518         (cgraph_decide_inlining_incrementally): Likewise.
22519         (estimate_function_body_sizes): Remove call cost handling.
22520         (compute_inline_parameters): Initialize caller edge call costs.
22521         (cgraph_estimate_edge_growth): New function.
22522         (cgraph_estimate_growth): Use it.
22523         (cgraph_edge_badness): Likewise.
22524         (cgraph_check_inline_limits): Take an edge argument.
22525         (cgraph_decide_inlining_of_small_functions): Adjust.
22526         (cgraph_decide_inlining): Likewise.
22527         * tree-inline.c (estimate_num_insns): Only account for call
22528         return value if it is used.
22529         (expand_call_inline): Avoid diagnostics on recursive inline
22530         functions here.
22531         * lto-cgraph.c (lto_output_edge): Output edge call costs.
22532         (input_edge): Input edge call costs.
22533
22534 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22535
22536         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
22537
22538 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
22539
22540         * doc/invoke.texi (Spec Files): Fix typo.
22541
22542 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
22543
22544         * profile.c (branch_prob): Move declaration of local variable.  Remove
22545         obsolete ??? comment.  Expand the location explicitly instead of using
22546         the LOCATION_FILE and LOCATION_LINE macros.
22547
22548 2011-04-06  Wei Guozhi  <carrot@google.com>
22549
22550         PR target/47855
22551         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
22552         (arm_cond_branch): Likewise.
22553         (arm_cond_branch_reversed): Likewise.
22554         (arm_jump): Likewise.
22555         (push_multi): Likewise.
22556         * config/arm/constraints.md (Py): New constraint.
22557
22558 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22559
22560         PR bootstrap/48471
22561         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
22562         Move these...
22563         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
22564         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
22565         #ifdef DBX_DEBUGGING_INFO.
22566
22567 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
22568
22569         PR bootstrap/48403
22570         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
22571         if old and new states differ.
22572
22573 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
22574
22575         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
22576         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
22577         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
22578         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
22579         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
22580         mcfv4e): Use Alias.
22581         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
22582         ColdFire options to -mcpu= options.
22583
22584 2011-04-05  Jeff Law  <law@redhat.com>
22585
22586         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
22587         check if BB is a successor of LOOP->header and return
22588         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
22589
22590 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
22591
22592         * cprop.c (struct reg_use): Remove.
22593         (reg_use_table): Make an array of RTX.
22594         (find_used_regs, constprop_register, local_cprop_pass,
22595         bypass_block): Simplify users of reg_use_table.
22596         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
22597         on one of the uses found by find_used_regs.
22598
22599 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22600
22601         PR bootstrap/48469
22602         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
22603         declaration.
22604
22605 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22606
22607         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
22608         as an rtx.
22609         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
22610
22611 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
22612
22613         PR middle-end/48441
22614         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
22615
22616 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22617
22618         * combine.c: Include obstack.h.
22619         (struct insn_link): Define.
22620         (uid_log_links): Adjust type.
22621         (FOR_EACH_LOG_LINK): New macro.
22622         (insn_link_obstack): Declare.
22623         (alloc_insn_link): Define.
22624         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
22625         type of link variables.
22626         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
22627         (try_combine, record_promoted_values, distribute_notes): Likewise.
22628         (distribute_links): Likewise.  Tweak prototype.
22629         (clear_log_links): Delete.
22630         (adjust_for_new_dest): Call alloc_insn_link.
22631         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
22632
22633 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22634
22635         * gcse.c (modify_mem_list): Convert to an array of VECs.
22636         (canon_modify_mem_list, compute_transp): Tweak formatting.
22637         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
22638         (load_killed_in_block_p): Likewise.
22639         (record_last_mem_set_info): Likewise.
22640         (clear_modify_mem_tables): Likewise.
22641
22642 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22643
22644         PR middle-end/48461
22645         * function.c (emit_use_return_register_into_block): Only define if
22646         HAVE_return.
22647
22648 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
22649
22650         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
22651
22652 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
22653
22654         * config/rx/rx-opts.h: New.
22655         * config/rx/rx.c (rx_cpu_type): Remove.
22656         (rx_handle_option): Don't assert that global structures are in
22657         use.  Access variables via opts pointer.  Defer most handling of
22658         OPT_mint_register_.  Use error_at.
22659         (rx_option_override): Handle deferred OPT_mint_register_ here.
22660         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
22661         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
22662         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
22663         (rx_cpu_types): New Enum and EnumValue entries.
22664         (mint-register=): Use Defer and use Var accordingly.
22665
22666 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22667
22668         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
22669         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
22670         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
22671         Move these...
22672         (debug_free_queue, debug_nesting, symbol_queue_index):
22673         ...and these...
22674         * dbxout.c: ...to here.  Make static.
22675
22676 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22677
22678         * gcse.c (modify_pair): Define.  Define a VEC of it.
22679         (canon_modify_mem_list): Convert to an array of VECs.
22680         (free_insn_expr_list_list): Delete.
22681         (clear_modify_mem_tables): Call VEC_free instead.
22682         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
22683         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
22684         (canon_list_insert, compute_transp): Likewise.
22685
22686 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22687
22688         PR target/43920
22689         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
22690         for size.
22691
22692 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22693
22694         PR target/43920
22695         * function.c (emit_use_return_register_into_block): New function.
22696         (thread_prologue_and_epilogue_insns): Use
22697         emit_use_return_register_into_block.
22698
22699 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22700
22701         PR target/43920
22702         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
22703         insn.
22704
22705 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22706
22707         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
22708
22709 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
22710
22711         * config/arm/arm.md (define_constants for unspec): Replace with
22712         define_c_enum.
22713         (define_constants for unspecv): Replace with define_c_enum.
22714         * config/arm/neon.md (define_constants for unspec): Replace with
22715         define_c_enum.
22716
22717 2011-04-04  Richard Henderson  <rth@redhat.com>
22718
22719         PR bootstrap/48400
22720         * dwarf2out.c (output_line_info): Always emit line info from
22721         at least one section.
22722         (dwarf2out_init): Create text_section_line_info here ...
22723         (set_cur_line_info_table): ... not here.
22724
22725 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
22726
22727         PR target/48380
22728         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
22729         not called.
22730
22731         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
22732
22733 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
22734
22735         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
22736         (expr_equiv_p): Remove.
22737         (insert_set_in_table): Look at <dest, src> pair instead of expr.
22738         (hash_scan_set): Update call to insert_set_in_table.
22739         (dump_hash_table): Dump <dest, src> pair.
22740         (lookup_set): Simplify.  Lookup <dest, src> pair.
22741         (compute_transp): Remove, fold heavily simplified code into...
22742         (compute_local_properties): ...here.  Expect COMP and TRANSP
22743         unconditionally.
22744         (find_avail_set): Take set directly from struct expr.
22745         (find_bypass-set): Likewise.
22746         (bypass_block): Likewise.
22747         (cprop_insn): Likewise.  Remove redundant INSN_P test.
22748
22749         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
22750         checks on form of COND from find_implicit_sets to here.
22751         (find_implicit_sets): Cleanup control flow. Split critical edges
22752         if it exposes implicit sets.  Allocate/resize implicit_sets as
22753         necessary.
22754         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
22755         changed something.  Run df_analyze after find_implicit_sets if any
22756         edges were split.  Do not allocate implicit_sets here.
22757
22758         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
22759         (gcse_obstack): Renamed to cprop_obstack.
22760         (GNEW, GNEWVEC, GNEWVAR): Remove.
22761         (gmalloc): Remove.
22762         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
22763         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
22764         (gcse_alloc): Likewise, and rename to cprop_alloc.
22765         (alloc_gcse_men, free_gcse_mem): Remove.
22766         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
22767         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
22768         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
22769
22770         * cprop.c (oprs_not_set_p): Remove.
22771         (mark_set, mark_clobber): Remove.
22772         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
22773         (reg_not_set_p): New function.
22774         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
22775         (cprop_insn): Likewise.
22776         (cprop_jump): Use FOR_EACH_EDGE.
22777
22778 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
22779
22780         PR bootstrap/48403
22781         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
22782         (rank_for_schedule): Use scheduled_insns vector instead of
22783         last_scheduled_insn.
22784         (ok_for_early_queue_removal): Likewise.
22785         (queue_to_ready): Search forward in nonscheduled_insns_begin if
22786         we have a dbg_cnt.
22787         (choose_ready): Likewise.
22788         (commit_schedule): Use VEC_iterate.
22789         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
22790         a dbg_cnt, use it and ensure the first insn is in the ready list.
22791         (haifa_sched_init): Allocate scheduled_insns.
22792         (sched_extend_ready_list): Don't allocate it; reserve space.
22793         (haifa_sched_finish): Free it.
22794
22795 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
22796
22797         * optc-gen.awk: Always remove type from Variable entry before
22798         recording in var_seen.
22799
22800 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
22801
22802         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
22803         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
22804         call to tidy_fallthru_edges.
22805
22806 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
22807
22808         * doc/options.texi (ToLower): Document.
22809         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
22810         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
22811         * opts.h (cl_option): Add cl_tolower field.
22812         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
22813         arguments with lowercase strings.
22814         * config/rx/rx.opt (mcpu=): Add ToLower.
22815         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
22816         argument.
22817
22818 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
22819
22820         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
22821
22822 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
22823
22824         * config/vax/vax.c: Include reload.h.
22825
22826 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
22827
22828         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
22829         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
22830         (sparc_preferred_reload_class): New function.
22831
22832 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
22833
22834         PR debug/48401
22835         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22836         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
22837
22838 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
22839
22840         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
22841         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
22842
22843 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
22844
22845         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
22846         (ASM_OUTPUT_ALIGNED_BSS): Define.
22847
22848 2011-04-03  Michael Matz  <matz@suse.de>
22849
22850         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
22851         and next_slot members.
22852         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
22853         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
22854         (lto_streamer_cache_append): Declare.
22855         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
22856         unsigned index, remove offset parameter, ensure that we append
22857         or update existing entries.
22858         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
22859         parameter, update next_slot for append.
22860         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
22861         parameter.
22862         (lto_streamer_cache_insert_at): Likewise.
22863         (lto_streamer_cache_append): New function.
22864         (lto_streamer_cache_lookup): Use unsigned index.
22865         (lto_streamer_cache_get): Likewise.
22866         (lto_record_common_node): Don't test tree_node_can_be_shared.
22867         (preload_common_node): Adjust call to lto_streamer_cache_insert.
22868         (lto_streamer_cache_delete): Don't free offsets member.
22869         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
22870         (lto_output_string_with_length): Use lto_output_data_stream.
22871         (lto_output_tree_header): Remove ix parameter, don't write it.
22872         (lto_output_builtin_tree): Likewise.
22873         (lto_write_tree): Adjust callers to above, don't track and write
22874         offset, write unsigned index.
22875         (output_unreferenced_globals): Don't emit all global vars.
22876         (write_global_references): Use unsigned indices.
22877         (lto_output_decl_state_refs): Likewise.
22878         (write_symbol): Likewise.
22879         * lto-streamer-in.c (lto_input_chain): Move earlier.
22880         (input_function): Use unsigned index.
22881         (input_alias_pairs): Don't read and then ignore all global vars.
22882         (lto_materialize_tree): Remove ix_p parameter, don't read index,
22883         don't pass it back, use lto_streamer_cache_append.
22884         (lto_register_var_decl_in_symtab): Use unsigned index.
22885         (lto_register_function_decl_in_symtab): Likewise.
22886         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
22887         index.
22888         (lto_get_builtin_tree): Don't read index, use
22889         lto_streamer_cache_append.
22890         (lto_read_tree): Adjust call to lto_materialize_tree.
22891
22892         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
22893         don't use function calls in arguments to MIN.
22894
22895         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
22896         twice.
22897
22898         * gimple.c (gimple_type_leader_entry): Mark deletable.
22899
22900 2011-04-03  Alan Modra  <amodra@gmail.com>
22901
22902         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
22903
22904 2011-04-03  Michael Matz  <matz@suse.de>
22905
22906         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
22907         an integer.
22908         * tree.h (tree_decl_non_common.vindex): Adjust comment.
22909
22910 2011-04-03  Michael Matz  <matz@suse.de>
22911
22912         * cgraphbuild.c (record_reference): Canonicalize constructor values.
22913         * gimple-fold.c (canonicalize_constructor_val): Accept being called
22914         without function context.
22915         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
22916         current_function_decl and cfun.
22917
22918 2011-04-03  Michael Matz  <matz@suse.de>
22919
22920         * tree.c (decl_init_priority_insert): Don't create entry for
22921         default priority.
22922         (decl_fini_priority_insert): Ditto.
22923         (fields_compatible_p, find_compatible_field): Remove.
22924         * tree.h (fields_compatible_p, find_compatible_field): Remove.
22925         * gimple.c (gimple_compare_field_offset): Adjust block comment.
22926
22927 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
22928
22929         * combine.c (try_combine): Remove useless local variable.
22930
22931 2011-04-03  Richard Guenther  <rguenther@suse.de>
22932             Ira Rosen  <ira.rosen@linaro.org>
22933
22934         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
22935         non-variable offsets and compare the remaining bases of the two
22936         accesses instead of looking for exact same data-ref.
22937
22938 2011-04-02  Kai Tietz  <ktietz@redhat.com>
22939
22940         PR target/48416
22941         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
22942
22943         * i386.c (ix86_is_msabi_thiscall): New helper function.
22944         (ix86_is_type_thiscall): New helper function.
22945         (ix86_comp_type_attributes): Handle thiscall for method-functions
22946         special.
22947         (init_cumulative_args): Likewise.
22948         (find_drap_reg): Likewise.
22949         (ix86_static_chain): Likewise.
22950         (x86_this_parameter): Likewise.
22951         (x86_output_mi_thunk): Likewise.
22952
22953 2011-04-01  Olivier Hainque  <hainque@adacore.com>
22954             Nicolas Setton  <setton@adacore.com>
22955             Eric Botcazou  <ebotcazou@adacore.com>
22956
22957         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
22958         (add_gnat_descriptive_type_attribute): New function.
22959         (gen_array_type_die): Call it.
22960         (gen_enumeration_type_die): Likewise.
22961         (gen_struct_or_union_type_die): Likewise.
22962         (modified_type_die): Likewise.
22963         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
22964         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
22965         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
22966
22967 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
22968
22969         PR bootstrap/48148
22970         * dwarf2out.c (resolve_addr): Don't call force_decl_die
22971         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
22972
22973         Revert:
22974         2011-03-17  Richard Guenther  <rguenther@suse.de>
22975
22976         PR bootstrap/48148
22977         * lto-cgraph.c (input_overwrite_node): Clear the abstract
22978         origin for decls in other ltrans units.
22979         (input_varpool_node): Likewise.
22980
22981 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
22982
22983         PR middle-end/48335
22984         * expr.c (expand_assignment): Handle all possibilities
22985         if TO_RTX is CONCAT.
22986         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
22987         (store_split_bit_field): If SUBREG_REG (op0) or
22988         op0 itself has smaller mode than word, return it
22989         for offset 0 and const0_rtx for out-of-bounds stores.
22990         If word is const0_rtx, skip it.
22991
22992 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
22993
22994         * config/h8300/h8300.c (print_operand_address): Rename to...
22995         (h8300_print_operand_address): ...this. Make static. Adjust comments.
22996         Call h8300_print_operand and h8300_print_operand_address instead of
22997         print_operand and print_operand_address. Declare.
22998         (print_operand): Renake to...
22999         (h8300_print_operand): ...this. Make static. Adjust comments.
23000         Call h8300_print_operand instead of print_operand. Declare.
23001         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
23002         (h8300_register_move_cost): Likewise.
23003         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
23004         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
23005         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
23006         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
23007         * config/h8300/h8300-protos.h (print_operand): Delete.
23008         (print_operand_address): Delete.
23009
23010 2011-04-01  Richard Henderson  <rth@redhat.com>
23011
23012         PR 48400
23013         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
23014         in strict mode before dwarf4.  Re-order tests to early out
23015         before switching sections.
23016
23017 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
23018
23019         * config/h8300/constraints.md: New file.
23020         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
23021         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
23022         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
23023         * config/h8300/predicates.md (bit_operand): Likewise.
23024         (incdec_operand): Use satisfies_constraint_M and
23025         satisfies_constraint_O.  Don't use C code block.
23026         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
23027         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
23028         (compute_mov_length): Use satisfies_constraint_G.
23029         (fix_bit_operand): Use satisfies_constraint_U.
23030         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
23031         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
23032         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
23033         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
23034         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
23035         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
23036         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23037         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
23038         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
23039         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
23040         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
23041         (EXTRA_MEMORY_CONSTRAINT): Delete.
23042
23043 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
23044             Michael Meissner  <meissner@linux.vnet.ibm.com>
23045
23046         PR target/48262
23047         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
23048         operands, as per the specifications.
23049
23050         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
23051         (vec_extract_evenv4sf): Ditto.
23052         (vec_extract_evenv8hi): Ditto.
23053         (vec_extract_evenv16qi): Ditto.
23054         (vec_extract_oddv4si): Ditto.
23055
23056 2011-03-31  Mark Wielaard  <mjw@redhat.com>
23057
23058         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
23059         high_pc attribute if the CU has no associated code. Only output
23060         DW_AT_entry_pc for CU if not generating strict dwarf and
23061         dwarf_version < 4.
23062
23063 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
23064
23065         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
23066         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
23067         out of ...
23068         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
23069         * final.c (final_start_function): Call the new function rather
23070         than using a NULL argument for dwarf2out_frame_debug.
23071
23072         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
23073         that contains the prologue.
23074
23075         * haifa-sched.c (queue_insn): New arg REASON.  All callers
23076         changed.  Print it in debugging output.
23077
23078         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
23079
23080         * sched-ebb.c (begin_schedule_ready): Remove second argument.
23081         Split most of the code into...
23082         (begin_move_insn): ... here.  New function.
23083         (ebb_sched_info): Add a pointer to it.
23084         * haifa-sched.c (scheduled_insns): New static variable.
23085         (sched_extend_ready_list): Allocate it.
23086         (schedule_block): Use it to record the order of scheduled insns.
23087         Perform RTL changes to move insns only after all scheduling
23088         decisions have been made.
23089         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
23090         begin_move_insn field.
23091         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
23092         * sched-int.h (struct haifa_sched_info): Remove second argument
23093         from begin_schedule_ready hook.  Add new member begin_move_insn.
23094         * sched-rgn.c (begin_schedule_ready): Remove second argument.
23095         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
23096
23097         * haifa-sched.c (prune_ready_list): New function, broken out of
23098         schedule_block.
23099         (schedule_block): Use it.
23100
23101 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23102
23103         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
23104
23105 2011-04-01  Kai Tietz  <ktietz@redhat.com>
23106
23107         * config.gcc (*-*-mingw*): Allow as option the
23108         posix threading model.
23109         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
23110         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
23111         definition.
23112         (CPP_SPEC): Add pthread/no-pthread handling.
23113         (LIB_SPEC): Likewise.
23114         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
23115         (LIB_SPEC): Likewise.
23116         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
23117         flag to pass -pthread option for shared libgcc build.
23118         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
23119         for shared libgcc build.
23120         * config/i386/t-mingw-pthread: New file.
23121         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
23122         New define to enable use of library pthread by default.
23123         * config/i386/mingw.opt (pthread): New driver option.
23124         (no-pthread): New driver option.
23125         * config/i386/cygming.opt: Make sure trailing empty line is retained.
23126         * config/i386/mingw-w64.opt: Likewise.
23127
23128 2011-04-01  Gary Funck  <gary@intrepid.com>
23129
23130         * c-decl.c (grokdeclarator): Fix formatting.
23131
23132 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
23133
23134         * expr.c (emit_block_move_via_movmem): Use n_generator_args
23135         instead of n_operands.
23136         (set_storage_via_setmem): Likewise.
23137         * optabs.c (maybe_gen_insn): Likewise.
23138         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
23139         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
23140         (mips_expand_builtin_direct): Likewise.
23141         * config/spu/spu.c (expand_builtin_args): Likewise.
23142
23143 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
23144
23145         * recog.h (insn_data_d): Add n_generator_args.
23146         * genoutput.c (data): Likewise.
23147         (output_insn_data): Print it.
23148         (max_opno, num_dups): Delete.
23149         (scan_operands): Just fill in "d->operand[...]".
23150         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
23151
23152 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
23153
23154         * gensupport.h (pattern_stats): New structure.
23155         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
23156         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
23157         (max_operand_1, max_operand_vec): Delete.
23158         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
23159
23160 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
23161
23162         * emit-rtl.c (emit_pattern_after_setloc): New function.
23163         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
23164         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
23165         (emit_pattern_after): New function.
23166         (emit_insn_after, emit_jump_insn_after): Call it.
23167         (emit_call_insn_after, emit_debug_insn_after): Likewise.
23168         (emit_pattern_before_setloc): New function.
23169         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
23170         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
23171         Likewise.
23172         (emit_pattern_before): New function.
23173         (emit_insn_before, emit_jump_insn_before): Call it.
23174         (emit_call_insn_before, emit_debug_insn_before): Likewise.
23175
23176 2011-03-31  Richard Henderson  <rth@redhat.com>
23177
23178         * dwarf2out.c (dw_separate_line_info_ref): Remove.
23179         (dw_separate_line_info_entry): Remove.
23180         (enum dw_line_info_opcode): New.
23181         (dw_line_info_entry): Use it.
23182         (dw_line_info_table, dw_line_info_table_p): New.
23183         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
23184         (line_info_table, line_info_label_num): Remove.
23185         (line_info_table_in_use): Remove.
23186         (separate_line_info_table): Remove.
23187         (separate_line_info_table_allocated): Remove.
23188         (separate_line_info_table_in_use): Remove.
23189         (LINE_INFO_TABLE_INCREMENT): Remove.
23190         (line_info_label_num): New.
23191         (cur_line_info_table): New.
23192         (text_section_line_info, cold_text_section_line_info): New.
23193         (separate_line_info): New.
23194         (SEPARATE_LINE_CODE_LABEL): Remove.
23195         (print_dwarf_line_table): Remove.
23196         (debug_dwarf): Don't dump it.
23197         (output_one_line_info_table): New.
23198         (output_line_info): Use it.
23199         (new_line_info_table): New.
23200         (set_cur_line_info_table): New.
23201         (dwarf2out_switch_text_section): Use it.
23202         (dwarf2out_begin_function): Likewise.
23203         (push_dw_line_info_entry): New.
23204         (dwarf2out_source_line): Rewrite for new line info tables.
23205         (dwarf2out_init): Remove dead initailizations.
23206
23207 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
23208
23209         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
23210         various flags.
23211         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
23212         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
23213         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
23214         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
23215         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
23216         * opt-functions.awk (flag_init, switch_bit_fields): New.
23217         (switch_flags): Don't handle flags moved to bit-fields.  Don't
23218         generate CL_MISSING_OK or CL_SAVE.
23219         * optc-gen.awk: Update to generate bit-field output as well as
23220         flags field.
23221         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
23222         bit-field instead of CL_REJECT_DRIVER flag.
23223         * opts-common.c (generate_canonical_option,
23224         decode_cmdline_option): Use bit-fields instead of CL_* flags.
23225         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
23226         instead of CL_REJECT_NEGATIVE flag.
23227         * toplev.c (print_switch_values): Use cl_report bit-field instead
23228         of CL_REPORT flag.
23229
23230 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
23231
23232         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
23233         a zero minimum index only if it is redundant.
23234
23235 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
23236
23237         PR rtl-optimization/48381
23238         * ira-color.c (assign_hard_reg): Use hard reg set intersection
23239         instead of ira_class_hard_reg_index for calculating conflicting
23240         hard registers.
23241
23242 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
23243
23244         * cprop.c: Clean up hash table building.
23245         (reg_avail_info): Remove.
23246         (oprs_available_p): Remove.
23247         (record_last_reg_set_info): Remove.
23248         (record_last_set_info): Remove.
23249         (reg_available_p): New function.
23250         (gcse_constant_p): Do not treat unfolded conditions as constants.
23251         (make_set_regs_unavailable): New function.
23252         (hash_scan_set): Simplify with new reg_available_p.
23253         (compute_hash_table_work): Traverse insns stream only once.
23254         Do not compute reg_avail_info. Traverse insns in reverse order.
23255         Record implicit sets after recording explicit sets from the block.
23256
23257 2011-03-31  Michael Matz  <matz@suse.de>
23258
23259         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
23260
23261 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
23262
23263         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
23264         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
23265         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23266         (h8300_mode_dependent_address_p): New function.
23267         (h8300_get_index): Make static.
23268
23269 2011-03-31  Jeff Law  <law@redhat.com>
23270
23271         * reload1.c (elimination_effects): Fix typo in recent change.
23272
23273         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
23274         typo potentially leading to null pointer dereference.
23275
23276         * caller-save.c (new_saved_hard_reg): Eliminate return value.
23277         (setup_save_areas): Corresponding changes to avoid useless
23278         assignments.
23279
23280         * jump.c (reversed_comparison_code_parts): Avoid successive return
23281         statements when REVERSE_CONDITION is defined.
23282
23283         * expr.c (expand_assignment): Avoid useless assignments.
23284         (expand_expr_real_1): Likewise.
23285         (expand_expr_real_2): Avoid useless statements.
23286
23287         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
23288
23289         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23290
23291         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
23292         statements.
23293
23294         * stmt.c (expand_expr_stmt): Avoid useless assignment.
23295
23296 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
23297
23298         PR target/47109
23299         * doc/tm.texi.in (TARGET_VERSION): Remove.
23300         * doc/tm.texi: Regenerate.
23301         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
23302         * collect2.c (main): Don't use TARGET_VERSION.
23303         * mips-tdump.c (main): Don't use TARGET_VERSION.
23304         * mips-tfile.c (main): Don't use TARGET_VERSION.
23305         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
23306         * config/rs6000/vxworksae.h: Remove.
23307         * config/alpha/alpha.h (TARGET_VERSION): Remove.
23308         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
23309         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
23310         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
23311         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
23312         * config/arm/arm.h (TARGET_VERSION): Remove.
23313         * config/arm/coff.h (TARGET_VERSION): Remove.
23314         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
23315         * config/arm/elf.h (TARGET_VERSION): Remove.
23316         * config/arm/freebsd.h (TARGET_VERSION): Remove.
23317         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
23318         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
23319         * config/arm/pe.h (TARGET_VERSION): Remove.
23320         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
23321         * config/arm/semi.h (TARGET_VERSION): Remove.
23322         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
23323         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
23324         * config/arm/vxworks.h (TARGET_VERSION): Remove.
23325         * config/avr/avr.h (TARGET_VERSION): Remove.
23326         * config/bfin/bfin.h (TARGET_VERSION): Remove.
23327         * config/fr30/fr30.h (TARGET_VERSION): Remove.
23328         * config/frv/frv.h (TARGET_VERSION): Remove.
23329         * config/h8300/h8300.h (TARGET_VERSION): Remove.
23330         * config/i386/cygwin.h (TARGET_VERSION): Remove.
23331         * config/i386/darwin.h (TARGET_VERSION): Remove.
23332         * config/i386/darwin64.h (TARGET_VERSION): Remove.
23333         * config/i386/djgpp.h (TARGET_VERSION): Remove.
23334         * config/i386/freebsd.h (TARGET_VERSION): Remove.
23335         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
23336         * config/i386/gnu.h (TARGET_VERSION): Remove.
23337         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
23338         * config/i386/i386elf.h (TARGET_VERSION): Remove.
23339         * config/i386/linux.h (TARGET_VERSION): Remove.
23340         * config/i386/linux64.h (TARGET_VERSION): Remove.
23341         * config/i386/lynx.h (TARGET_VERSION): Remove.
23342         * config/i386/mingw32.h (TARGET_VERSION): Remove.
23343         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
23344         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
23345         * config/i386/netware.h (TARGET_VERSION): Remove.
23346         * config/i386/nto.h (TARGET_VERSION): Remove.
23347         * config/i386/openbsd.h (TARGET_VERSION): Remove.
23348         * config/i386/vxworks.h (TARGET_VERSION): Remove.
23349         * config/ia64/elf.h (TARGET_VERSION): Remove.
23350         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
23351         * config/ia64/hpux.h (TARGET_VERSION): Remove.
23352         * config/ia64/linux.h (TARGET_VERSION): Remove.
23353         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
23354         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
23355         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
23356         * config/lm32/lm32.h (TARGET_VERSION): Remove.
23357         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
23358         * config/m32c/m32c.h (TARGET_VERSION): Remove.
23359         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
23360         * config/m32r/m32r.h (TARGET_VERSION): Remove.
23361         * config/m68k/linux.h (TARGET_VERSION): Remove.
23362         * config/m68k/m68k.h (TARGET_VERSION): Remove.
23363         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
23364         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
23365         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
23366         * config/mep/mep.h (TARGET_VERSION): Remove.
23367         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
23368         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
23369         * config/mips/iris6.h (MACHINE_TYPE): Remove.
23370         * config/mips/linux.h (TARGET_VERSION): Remove.
23371         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
23372         * config/mips/vxworks.h (TARGET_VERSION): Remove.
23373         * config/mmix/mmix.h (TARGET_VERSION): Remove.
23374         * config/mn10300/linux.h (TARGET_VERSION): Remove.
23375         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
23376         * config/pa/pa.h (TARGET_VERSION): Remove.
23377         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
23378         * config/picochip/picochip.h (TARGET_VERSION): Remove.
23379         * config/rs6000/aix.h (TARGET_VERSION): Remove.
23380         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
23381         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
23382         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
23383         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
23384         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
23385         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
23386         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
23387         * config/rs6000/linux.h (TARGET_VERSION): Remove.
23388         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
23389         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
23390         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
23391         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
23392         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
23393         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
23394         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
23395         * config/s390/linux.h (TARGET_VERSION): Remove.
23396         * config/s390/s390.h (TARGET_VERSION): Remove.
23397         * config/s390/tpf.h (TARGET_VERSION): Remove.
23398         * config/score/score.h (TARGET_VERSION): Remove.
23399         * config/sh/linux.h (TARGET_VERSION): Remove.
23400         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
23401         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
23402         * config/sh/sh.h (TARGET_VERSION): Remove.
23403         * config/sh/sh64.h (TARGET_VERSION): Remove.
23404         * config/sh/superh.h (TARGET_VERSION): Remove.
23405         * config/sh/vxworks.h (TARGET_VERSION): Remove.
23406         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
23407         * config/sparc/linux.h (TARGET_VERSION): Remove.
23408         * config/sparc/linux64.h (TARGET_VERSION): Remove.
23409         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
23410         TARGET_NAME32, TARGET_NAME): Remove.
23411         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
23412         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
23413         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
23414         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
23415         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
23416         * config/spu/spu.h (TARGET_VERSION): Remove.
23417         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
23418         * config/v850/v850.h (TARGET_VERSION): Remove.
23419         * config/vax/linux.h (TARGET_VERSION): Remove.
23420         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
23421         * config/xtensa/elf.h (TARGET_VERSION): Remove.
23422         * config/xtensa/linux.h (TARGET_VERSION): Remove.
23423
23424 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
23425
23426         PR target/48142
23427         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
23428         frame-related from frame-unrelated adjustments to the stack pointer.
23429
23430 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
23431
23432         * common.opt (fdebug-types-section): Move earlier.
23433         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
23434
23435 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
23436
23437         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
23438         var.
23439
23440 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
23441
23442         * tree.h (CASE_CHAIN): Define.
23443         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
23444         (gimple_redirect_edge_and_branch): Likewise.
23445
23446 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23447
23448         PR middle-end/48367
23449         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
23450         calculation.
23451
23452 2011-03-30  Jeff Law  <law@redhat.com>
23453
23454         * PR bootstrap/48371
23455         * reload1.c (reload): Fix botch in last change.
23456
23457         * reload.h (struct reload): Fix typo introduced in last change.
23458
23459 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
23460
23461         * config/arm/arm.opt (mhard-float, msoft-float): Mark
23462         Undocumented.  Remove help text.
23463         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
23464         -mhard-float.
23465
23466 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
23467
23468         * doc/options.texi (NegativeAlias): Document.
23469         (Alias): Mention NegativeAlias.
23470         * opt-functions.awk: Handle NegativeAlias.
23471         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
23472         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
23473         * opts.h (CL_NEGATIVE_ALIAS): Define.
23474         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
23475         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
23476         OPT_mspe_.
23477         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
23478         Alias entries.
23479         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
23480         mno-spe and mno-isel instead of mspe=no and -misel=no.
23481
23482 2011-03-29  Mark Wielaard  <mjw@redhat.com>
23483
23484         * common.opt (fdebug-types-section): New flag.
23485         * doc/invoke.texi: Document new -fno-debug-types-section flag.
23486         * dwarf2out.c (use_debug_types): New define.
23487         (struct die_struct): Mark die_id with GTY desc use_debug_types.
23488         (print_die): Guard output of type unit signatures using
23489         use_debug_types.
23490         (build_abbrev_table): Replace assert of dwarf_version >= 4
23491         with assert on use_debug_types.
23492         (size_of_die): Likewise.
23493         (unmark_dies): Likewise.
23494         (value_format): Decide AT_ref_external form on use_debug_types.
23495         (output_die): Replace dwarf_version version check guard with
23496         use_debug_types where appropriate.
23497         (modified_type_die): Likewise.
23498         (gen_reference_type_die): Likewise.
23499         (dwarf2out_start_source_file): Likewise.
23500         (dwarf2out_end_source_file): Likewise.
23501         (prune_unused_types_walk_attribs): Likewise.
23502         (dwarf2out_finish): Likewise.
23503
23504 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23505
23506         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
23507
23508 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
23509
23510         PR rtl-optimization/48332
23511         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
23512         mode of input operand N and modeN to its actual mode.
23513
23514 2011-03-30  Jeff Law  <law@redhat.com>
23515
23516         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
23517         define accessor macro.
23518         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
23519         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
23520         (reg_equiv_init): Likewise.
23521         (reg_equivs_size): New variable.
23522         (reg_equiv_init_size): Remove.
23523         (allocate_initial_values): Move prototype to here from....
23524         * integrate.h (allocate_initial_values): Remove prototype.
23525         * integrate.c: Include reload.h.
23526         (allocate_initial_values): Corresponding changes.
23527         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
23528         (fix_reg_equiv_init, no_equiv): Corresponding changes.
23529         (update_equiv_regs): Corresponding changes.
23530         (ira): Corresponding changes.
23531         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
23532         (push_secondary_reload): Corresponding changes.
23533         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
23534         (make_memloc, find_reloads_address): Corresponding changes.
23535         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
23536         (find_reloads_address_1): Corresponding changes.
23537         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
23538         (refers_to_regno_for_reload_p): Corresponding changes.
23539         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
23540         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
23541         * reload1.c: Include ggc.h.
23542         (grow_reg_equivs): New function.
23543         (replace_pseudos_in, reload): Corresponding changes.
23544         (calculate_needs_all_insns, alter_regs): Corresponding changes.
23545         (eliminate_regs_1, elimination_effects): Corresponding changes.
23546         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
23547         (delete_output_reload): Likewise.
23548         * caller-save.c (mark_referenced_regs): Corresponding changes.
23549         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
23550         * frv/predicates.md (frv_load_operand): Corresponding changes.
23551         * microblaze/microblaze.c (double_memory_operand): Corresponding
23552         changes.
23553         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
23554         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
23555         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
23556         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
23557         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
23558         changes.
23559         * pa/pa.c (emit_move_sequence): Corresponding changes.
23560         * vax/vax.c (nonindexed_address_p): Corresponding changes.
23561
23562 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
23563
23564         PR target/47551
23565         * config/arm/arm.c (coproc_secondary_reload_class): Handle
23566         structure modes.  Don't check neon_vector_mem_operand for
23567         vector or structure modes.
23568
23569 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
23570             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23571
23572         PR target/43590
23573         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
23574         operand 1 and reshuffle the operands to match.
23575         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
23576
23577 2011-03-30  Christian Schüler  <cschueler@gmx.de>
23578
23579         PR driver/48208
23580         * config/c.opt (F): Added 'Driver' to -F option.
23581
23582         PR driver/48260
23583         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
23584           handler function.
23585         * config/darwin.opt: Added '-arch' option.
23586
23587 2011-03-30  Nick Clifton  <nickc@redhat.com>
23588
23589         * config/rx/rx.md: Add peepholes and patterns to combine
23590         extending loads and simple arithmetic instructions.
23591         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
23592         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
23593         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
23594         modes to use pre-decrement and post-increment addressing.
23595         (rx_is_restricted_memory_address): Add range checking of REG+INT
23596         addresses.
23597         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
23598         (rx_memory_move_cost): Adjust cost of stores.
23599         (rx_adjust_insn_length): New function.
23600
23601 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
23602
23603         PR c/48305
23604         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
23605         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
23606         matching arg00/arg01 types.
23607
23608 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
23609
23610         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
23611         last_location to UNKNOWN_LOCATION.
23612
23613 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
23614
23615         PR target/48349
23616         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
23617         FLOAT_SSE_REGS.
23618
23619 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
23620             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23621
23622         PR bootstrap/48337
23623         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
23624         Init(PROCESSOR_V7).
23625         (sparc_cpu): Likewise.
23626         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
23627         PROCESSOR_V7.
23628
23629 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
23630
23631         PR target/48336
23632         PR middle-end/48342
23633         PR rtl-optimization/48345
23634         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
23635         hard regs for given mode from profitable regs when doing secondary
23636         allocation.
23637
23638 2011-03-29  Jeff Law  <law@redhat.com>
23639
23640         PR bootstrap/48327
23641         * tree-ssa-threadupdate.c (struct redirection_data): Remove
23642         do_not_duplicate field.
23643         (lookup_redirection_data): Corresponding changes.
23644         (create_duplicates): Always create a template block.
23645         (redirect_edges): Remove code which reused the original block
23646         when it was going to become unreachable code.
23647         (thread_block): Don't set do_not_duplicate field.
23648
23649 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
23650
23651         * lto-opts.c (register_user_option_p, lto_register_user_option):
23652         Make type argument unsigned.
23653         * lto-streamer.h (lto_register_user_option): Make type argument
23654         unsigned.
23655         * opth-gen.awk: Make CL_* macros unsigned.
23656         * opts-common.c (find_opt): Make lang_mask argument unsigned.
23657         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
23658         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
23659         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
23660         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
23661         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
23662         (find_opt): Make lang_mask argument unsigned.
23663
23664 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
23665
23666         PR rtl-optimization/48331
23667         PR rtl-optimization/48334
23668         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
23669         for any used algorithm.
23670
23671 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
23672
23673         * ira-conflicts.c (build_object_conflicts): Add unused attribute
23674         to parent_max.
23675
23676 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
23677
23678         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
23679         (alpha_option_override): Don't set alpha_sr_alias_set.
23680         (emit_frame_store_1): Use gen_frame_mem rather than calling
23681         set_mem_alias_set.
23682         (alpha_expand_epilogue): Ditto.
23683
23684 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
23685
23686         PR tree-optimization/48290
23687         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
23688         vectorization, check that relevant phis in the basic block after
23689         the inner loop are really inner loop's exit phis.
23690
23691 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
23692
23693         PR debug/48190
23694         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
23695         (cached_dw_loc_list_def): New structure.
23696         (cached_dw_loc_list): New typedef.
23697         (cached_dw_loc_list_table): New variable.
23698         (cached_dw_loc_list_table_hash): New function.
23699         (cached_dw_loc_list_table_eq): Likewise.
23700         (add_location_or_const_value_attribute): Take a bool cache_p.
23701         Cache the list when the parameter is true.
23702         (gen_formal_parameter_die): Update caller.
23703         (gen_variable_die): Likewise.
23704         (dwarf2out_finish): Likewise.
23705         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
23706         while generating debug info for the decl.
23707         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
23708         (dwarf2out_init): Initialize cached_dw_loc_list_table.
23709         (resolve_addr): Cache the result of resolving a chain of
23710         location lists.
23711
23712 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
23713
23714         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
23715         conflict object hard regset nodes have intersecting hard reg sets.
23716
23717         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
23718         after regstat_init_n_sets_and_refs.
23719
23720         * ira.c: Add more comments at the top.
23721         (setup_stack_reg_pressure_class, setup_pressure_classes):
23722         Add comments how we compute the register pressure classes.
23723         (setup_allocno_and_important_classes): Add more comments.
23724         (setup_class_translate_array, reorder_important_classes)
23725         (setup_reg_class_relations): Add comments.
23726
23727         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
23728         start of the file.
23729
23730         * ira-color.c: Add 2011 to the Copyright line.
23731         (assign_hard_reg):  Add more comments.
23732         (improve_allocation): Ditto.
23733
23734         * ira-costs.c: Add 2011 to the Copyright line.
23735         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
23736         comments.
23737         (setup_regno_cost_classes_by_mode): Ditto.
23738
23739         Initial patches from ira-improv branch:
23740
23741         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
23742
23743         * ira-build.c (ira_create_object): Remove initialization of
23744         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
23745         (ira_create_allocno): Remove initialization of
23746         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
23747         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
23748         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
23749         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
23750         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
23751         Initialize ALLOCNO_ADD_DATA.
23752         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
23753         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
23754         ALLOCNO_REG.
23755         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
23756         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
23757
23758         * ira.c (ira_reallocate): Remove.
23759         (setup_pressure_classes): Call
23760         ira_init_register_move_cost_if_necessary.  Use
23761         ira_register_move_cost instead of ira_get_register_move_cost.
23762         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
23763         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
23764
23765         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
23766         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
23767         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
23768         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
23769         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
23770         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
23771         Fix formatting.
23772         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
23773         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
23774         (struct allocno_color_data): New.
23775         (allocno_color_data_t): New typedef.
23776         (allocno_color_data): New definition.
23777         (ALLOCNO_COLOR_DATA): New macro.
23778         (struct object_color_data): New.
23779         (object_color_data_t): New typedef.
23780         (object_color_data): New definition.
23781         (OBJECT_COLOR_DATA): New macro.
23782         (update_copy_costs, calculate_allocno_spill_cost): Call
23783         ira_init_register_move_cost_if_necessary.  Use
23784         ira_register_move_cost instead of ira_get_register_move_cost.
23785         (move_spill_restore, update_curr_costs): Ditto.
23786         (allocno_spill_priority): Make it inline.
23787         (color_pass): Allocate and free allocno_color_dat and object_color_data.
23788         (struct coalesce_data, coalesce_data_t): New.
23789         (allocno_coalesce_data): New definition.
23790         (ALLOCNO_COALESCE_DATA): New macro.
23791         (merge_allocnos, coalesced_allocno_conflict_p): Use
23792         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
23793         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
23794         (coalesce_allocnos): Ditto.
23795         (setup_coalesced_allocno_costs_and_nums): Ditto.
23796         (collect_spilled_coalesced_allocnos): Ditto.
23797         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
23798         (setup_slot_coalesced_allocno_live_ranges): Ditto.
23799         (coalesce_spill_slots): Ditto.
23800         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
23801         free allocno_coalesce_data.
23802
23803         * ira-conflicts.c: Fix formatting.
23804         (process_regs_for_copy): Call
23805         ira_init_register_move_cost_if_necessary.  Use
23806         ira_register_move_cost instead of ira_get_register_move_cost.
23807         (build_object_conflicts): Optimize.
23808
23809         * ira-costs.c (record_reg_classes): Optimize.  Call
23810         ira_init_register_move_cost_if_necessary.  Use
23811         ira_register_move_cost, ira_may_move_in_cost, and
23812         ira_may_move_out_cost instead of ira_get_register_move_cost and
23813         ira_get_may_move_cost.
23814         (record_address_regs): Ditto.
23815         (scan_one_insn): Optimize.
23816         (find_costs_and_classes): Optimize.
23817         (process_bb_node_for_hard_reg_moves): Call
23818         ira_init_register_move_cost_if_necessary.  Use
23819         ira_register_move_cost instead of ira_get_register_move_cost.
23820
23821         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
23822         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
23823         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
23824         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
23825         definitions.
23826         (ira_initiate_emit_data, ira_finish_emit_data)
23827         (create_new_allocno): New functions.
23828         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
23829         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
23830         Use ira_register_move_cost instead of ira_get_register_move_cost.
23831
23832         * ira-int.h: Fix some comments.
23833         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
23834         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
23835         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
23836         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
23837         add_data.
23838         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
23839         bitfield after mode.  Make hard_regno a short int.  Make
23840         hard_regno short.  Remove first_coalesced_allocno and
23841         next_coalesced_allocno.  Move mem_optimized_dest_p,
23842         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
23843         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
23844         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
23845         temp, colorable_p.  Add new member add_data.
23846         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
23847         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
23848         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
23849         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
23850         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
23851         (ALLOCNO_ADD_DATA): New macro.
23852         (ira_emit_data_t): New typedef.
23853         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
23854         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
23855         from struct ira_allocno.
23856         (ALLOCNO_EMIT_DATA): New macro.
23857         (ira_allocno_emit_data, allocno_emit_reg): New.
23858         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
23859         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
23860         (OBJECT_ADD_DATA): New macro.
23861         (ira_reallocate): Remove.
23862         (ira_initiate_emit_data, ira_finish_emit_data): New.
23863         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
23864         (ira_init_register_move_cost_if_necessary): New.
23865         (ira_object_conflict_iter_next): Merge into
23866         ira_object_conflict_iter_cond.
23867         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
23868
23869         * ira-live.c (process_single_reg_class_operands): Call
23870         ira_init_register_move_cost_if_necessary.  Use
23871         ira_register_move_cost instead of ira_get_register_move_cost.
23872
23873         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
23874
23875         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
23876
23877         * ira-costs.c: Fix formatting.
23878         (cost_classes, cost_classes_num): Remove.
23879         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
23880         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
23881         (cost_classes_del, cost_classes_htab): New.
23882         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
23883         (initiate_regno_cost_classes, setup_cost_classes): New.
23884         (setup_regno_cost_classes_by_aclass): New.
23885         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
23886         (record_reg_classes): Use regno_cost_classes instead of
23887         cost_classes.  Move checking opposite operand up.
23888         (record_address_regs): Use regno_cost_classes
23889         instead of cost_classes.
23890         (scan_one_insn): Ditto.  Use always general register.
23891         (print_allocno_costs): Use regno_cost_classes instead of
23892         cost_classes.
23893         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
23894         (find_costs_and_classes): Set up cost classes for each registers.
23895         Use also their mode for this.  Use regno_cost_classes instead of
23896         cost_classes.
23897         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
23898         cost_classes.
23899         (free_ira_costs, ira_init_costs): Don't use cost_classes.
23900         (ira_costs, ira_set_pseudo_classes): Call
23901         initiate_regno_cost_classes and finish_regno_cost_classes.
23902
23903         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
23904
23905         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
23906
23907         * target.def (ira_cover_classes): Remove.
23908
23909         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
23910
23911         * doc/tm.texi.in: Ditto.
23912
23913         * ira-conflicts.c: Remove mentioning cover classes from the file.
23914         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
23915         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
23916
23917         * targhooks.c (default_ira_cover_classes): Remove.
23918
23919         * targhooks.h (default_ira_cover_classes): Ditto.
23920
23921         * haifa-sched.c: Remove mentioning cover classes from the file.
23922         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
23923         ira_pressure_classes and ira_pressure_classes_num instead of
23924         ira_reg_class_cover_size and ira_reg_class_cover.  Use
23925         sched_regno_pressure_class instead of sched_regno_cover_class.
23926         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
23927         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23928
23929         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
23930         classes from the file.
23931         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
23932         (struct object_hard_regs, struct object_hard_regs_node): New.
23933         (struct ira_object): New members profitable_hard_regs,
23934         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
23935         (struct ira_allocno): Rename cover_class to aclass.  Rename
23936         cover_class_cost and updated_cover_class_cost to class_cost and
23937         updated_class_cost.  Remove splay_removed_p and
23938         left_conflict_size.  Add new members colorable_p.
23939         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
23940         (ALLOCNO_COLORABLE_P): New macro.
23941         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
23942         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
23943         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
23944         (OBJECT_...): Rename parameter C to O.
23945         (OBJECT_PROFITABLE_HARD_REGS): New macro.
23946         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
23947         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
23948         (struct target_ira_int): New members x_ira_max_memory_move_cost,
23949         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
23950         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
23951         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
23952         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
23953         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
23954         x_ira_reg_class_subunion.
23955         (ira_max_memory_move_cost, ira_max_register_move_cost)
23956         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
23957         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
23958         (ira_important_class_nums, ira_reg_class_superunion): New macros.
23959         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
23960         (ira_reg_class_union): Rename to ira_reg_class_subunion.
23961         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23962         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23963         (ira_tune_allocno_costs_and_cover_classes): Rename to
23964         ira_tune_allocno_costs.
23965         (ira_debug_hard_regs_forest): New.
23966         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
23967         (ira_object_conflict_iter_next): Fix comments.
23968         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
23969         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
23970         cover_class to aclass.
23971         (ira_allocate_and_accumulate_costs): Ditto.
23972         (ira_allocate_and_set_or_copy_costs): Ditto.
23973
23974         * opts.c (decode_options): Remove ira_cover_class check.
23975
23976         * ira-color.c: Remove mentioning cover classes from the file.  Use
23977         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
23978         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
23979         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
23980         (splay-tree.h): Remove include.
23981         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
23982         before copy_freq_compare_func.
23983         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
23984         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
23985         New definitions.
23986         (hard_regs_roots, hard_regs_node_vec): Ditto.
23987         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
23988         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
23989         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
23990         (create_new_object_hard_regs_node): Ditto.
23991         (add_new_object_hard_regs_node_to_forest): Ditto.
23992         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
23993         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
23994         Ditto.
23995         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
23996         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
23997         (remove_unused_object_hard_regs_nodes): Ditto.
23998         (enumerate_object_hard_regs_nodes): Ditto.
23999         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
24000         (object_hard_regs_subnode_t): Ditto.
24001         (struct object_hard_regs_subnode): Ditto.
24002         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
24003         (setup_object_hard_regs_subnode_index): Ditto.
24004         (get_object_hard_regs_subnodes_num): Ditto.
24005         (form_object_hard_regs_nodes_forest): Ditto.
24006         (finish_object_hard_regs_nodes_tree): Ditto.
24007         (finish_object_hard_regs_nodes_forest): Ditto.
24008         (allocnos_have_intersected_live_ranges_p): Rename to
24009         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24010         (pseudos_have_intersected_live_ranges_p): Rename to
24011         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24012         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
24013         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
24014         (update_copy_costs): Remove assert.  Skip cost update if the hard
24015         reg does not belong the class.
24016         (assign_hard_reg): Process only profitable hard regs.
24017         (uncolorable_allocnos_num): Make it scalar.
24018         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
24019         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
24020         and ira_reg_class_max_nregs.
24021         (bucket_allocno_compare_func): Check frequency first.
24022         (sort_bucket): Add compare function as a parameter.
24023         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
24024         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
24025         (push_allocno_to_stack): Rewrite for checking new allocno
24026         colorability.
24027         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
24028         (push_only_colorable): Pass new parameter to sort_bucket.
24029         (push_allocno_to_spill): Remove.
24030         (allocno_spill_priority_compare): Make it inline and rewrite.
24031         (splay_tree_allocate, splay_tree_free): Remove.
24032         (allocno_spill_sort_compare): New function.
24033         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
24034         build and use splay tree.  Choose first allocno in uncolorable
24035         allocno bucket to spill.  Remove setting spill cost.
24036         (all_conflicting_hard_regs): Remove.
24037         (setup_allocno_available_regs_num): Check only profitable hard
24038         regs.  Print info about hard regs nodes.
24039         (setup_allocno_left_conflicts_size): Remove.
24040         (put_allocno_into_bucket): Don't call
24041         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
24042         (improve_allocation): New.
24043         (color_allocnos): Call setup_profitable_hard_regs,
24044         form_object_hard_regs_nodes_forest, improve_allocation,
24045         finish_object_hard_regs_nodes_forest.  Setup spill cost.
24046         (print_loop_title): Use pressure classes.
24047         (color_allocnso): Ditto.
24048         (do_coloring): Remove allocation and freeing splay_tree_node_pool
24049         and allocnos_for_spilling.
24050         (ira_sort_regnos_for_alter_reg): Don't setup members
24051         {first,next}_coalesced_allocno.
24052         (color): Remove allocating and freeing removed_splay_allocno_vec.
24053         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
24054         prohibited_class_mode_regs.
24055
24056         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
24057         formatting.
24058         (update_allocno_pressure_excess_length): Use pressure classes.
24059         (inc_register_pressure, dec_register_pressure): Check for pressure
24060         class.
24061         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
24062         pressure class.  Use ira_reg_class_nregs instead of
24063         ira_reg_class_max_nregs.
24064         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
24065         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
24066         (single_reg_class): Use ira_reg_class_nregs instead of
24067         ira_reg_class_max_nregs.
24068         (process_bb_node_lives): Use pressure classes.
24069
24070         * ira-emit.c: Remove mentioning cover classes from the file.  Use
24071         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
24072         (change_loop): Use pressure classes.
24073         (modify_move_list): Call ira_set_allocno_class instead of
24074         ira_set_allocno_cover_class.
24075
24076         * ira-build.c: Remove mentioning cover classes from the file.  Use
24077         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
24078         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
24079         ALLOCNO_UPDATED_CLASS_COST instead of
24080         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
24081         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
24082         (ira_create_allocno): Remove initialization of
24083         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
24084         ALLOCNO_COLORABLE_P.
24085         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24086         Update conflict regs for the objects.
24087         (create_cap_allocno): Remove assert.  Don't propagate
24088         ALLOCNO_AVAILABLE_REGS_NUM.
24089         (ira_free_allocno_costs): New function.
24090         (finish_allocno): Change a part of code into call of
24091         ira_free_allocno_costs.
24092         (low_pressure_loop_node_p): Use pressure classes.
24093         (object_range_compare_func): Don't compare classes.
24094         (setup_min_max_conflict_allocno_ids): Ditto.
24095
24096         * loop-invariant.c: Remove mentioning cover classes from the file.
24097         Use ira_pressure_classes and ira_pressure_classes_num instead of
24098         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
24099         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
24100         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24101         Use reg_allocno_class instead of reg_cover_class.
24102         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
24103         STACK_REG_COVER_CLASS.
24104         (get_regno_cover_class): Rename to get_regno_pressure_class.
24105         (move_loop_invariants): Initialize and finalize regstat.
24106
24107         * ira.c: Remove mentioning cover classes from the file.  Add
24108         comments about coloring without cover classes.  Use ALLOCNO_CLASS
24109         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
24110         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
24111         setup_class_subset_and_memory_move_costs.
24112         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
24113         (setup_cover_and_important_classes): Rename to
24114         setup_allocno_and_important_classes.
24115         (setup_class_translate_array): New.
24116         (setup_class_translate): Call it for allocno and pressure classes.
24117         (cover_class_order): Rename to allocno_class_order.
24118         (comp_reg_classes_func): Use ira_allocno_class_translate instead
24119         of ira_class_translate.
24120         (reorder_important_classes): Set up ira_important_class_nums.
24121         (setup_reg_class_relations): Set up ira_reg_class_superunion.
24122         (print_class_cover): Rename to print_classes.  Add parameter.
24123         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24124         Print pressure classes too.
24125         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
24126         setup_reg_subclasses.
24127         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
24128         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
24129         (setup_prohibited_class_mode_regs): Use
24130         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
24131         (clarify_prohibited_class_mode_regs): New function.
24132         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
24133         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
24134         (ira_init_once): Initialize them.
24135         (free_register_move_costs): Process them.
24136         (ira_init): Move calls of find_reg_classes and
24137         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
24138         Call clarify_prohibited_class_mode_regs.
24139         (ira_no_alloc_reg): Remove.
24140         (too_high_register_pressure_p): Use pressure classes.
24141
24142         * sched-deps.c: Remove mentioning cover classes from the file.
24143         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
24144         ira_pressure_classes and ira_pressure_classes_num instead of
24145         ira_reg_class_cover_size and ira_reg_class_cover.
24146         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
24147         sched_regno_pressure_class instead of sched_regno_cover_class.
24148         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
24149         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24150
24151         * ira.h: Add 2010 to Copyright.
24152         (ira_no_alloc_reg): Remove external.
24153         (struct target_ira): Rename x_ira_hard_regno_cover_class,
24154         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
24155         x_ira_class_translate to x_ira_hard_regno_allocno_class,
24156         x_ira_allocno_classes_num, x_ira_allocno_classes, and
24157         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
24158         x_ira_pressure_classes, x_ira_pressure_class_translate, and
24159         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
24160         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
24161         x_ira_no_alloc_regs.
24162         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
24163         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
24164         ira_allocno_classes_num and ira_allocno_classes.
24165         (ira_class_translate): Rename to ira_allocno_class_translate.
24166         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
24167         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
24168         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
24169         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
24170         (ira_no_alloc_regs): New.
24171
24172         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
24173         classes from the file.  Use ALLOCNO_CLASS instead of
24174         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
24175         ALLOCNO_COVER_CLASS_COST.
24176         (regno_cover_class): Rename to regno_aclass.
24177         (record_reg_classes): Use ira_reg_class_subunion instead of
24178         ira_reg_class_union.
24179         (record_address_regs): Check overflow.
24180         (scan_one_insn): Ditto.
24181         (print_allocno_costs): Print total mem cost fore regional allocation.
24182         (print_pseudo_costs): Use REG_N_REFS.
24183         (find_costs_and_classes): Use classes intersected with them on the
24184         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
24185         ira_reg_class_union.  Use ira_allocno_class_translate and
24186         regno_aclass instead of ira_class_translate and regno_cover_class.
24187         Modify code for finding regno_aclass.  Setup preferred classes for
24188         the next pass.
24189         (setup_allocno_cover_class_and_costs): Rename to
24190         setup_allocno_class_and_costs.  Use regno_aclass instead of
24191         regno_cover_class.  Use ira_set_allocno_class instead of
24192         ira_set_allocno_cover_class.
24193         (init_costs, finish_costs): Use regno_aclass instead of
24194         regno_cover_class.
24195         (ira_costs): Use setup_allocno_class_and_costs instead of
24196         setup_allocno_cover_class_and_costs.
24197         (ira_tune_allocno_costs_and_cover_classes): Rename to
24198         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
24199         by processing objects.  Use ira_reg_class_max_nregs instead of
24200         ira_reg_class_nregs.
24201
24202         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
24203
24204         * sched-int.h: Remove mentioning cover classes from the file.
24205         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
24206
24207         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
24208         classes from the file.
24209         (struct reg_pref): Rename coverclass into allocnoclass.
24210         (reg_cover_class): Rename to reg_allocno_class.
24211
24212         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
24213
24214         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
24215
24216         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
24217
24218         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
24219
24220         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
24221
24222         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
24223
24224         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
24225
24226         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
24227
24228         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
24229
24230         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
24231
24232         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
24233         (i386_ira_cover_classes): Ditto.
24234
24235         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
24236
24237         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
24238
24239         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
24240
24241         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
24242
24243         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
24244
24245         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
24246
24247         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
24248         (mips_ira_cover_classes): Ditto.
24249
24250         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
24251
24252         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
24253
24254         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
24255
24256         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
24257
24258         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
24259
24260         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
24261         (IRA_COVER_CLASSES_VSX): Ditto.
24262
24263         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
24264         (rs6000_ira_cover_classes): Ditto.
24265
24266         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
24267
24268         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
24269
24270         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
24271
24272         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
24273
24274         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
24275
24276         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
24277
24278         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
24279
24280         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
24281
24282         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
24283
24284         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
24285
24286 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
24287
24288         PR debug/48253
24289         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
24290         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
24291         dw_fde_unlikely_section_end_label, cold_in_std_section,
24292         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
24293         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
24294         fields.
24295         (output_fde): Use dw_fde_second_{begin,end} if second is
24296         true, otherwise dw_fde_{begin,end}.
24297         (output_call_frame_info): Test dw_fde_second_begin != NULL
24298         instead of dw_fde_switched_sections.
24299         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
24300         fields, initialize new fields.  Initialize in_std_section
24301         unconditionally from the first partition.
24302         (dwarf2out_end_epilogue): Don't override dw_fde_end when
24303         dw_fde_second_begin is non-NULL.
24304         (dwarf2out_switch_text_section): Stop initializing removed
24305         dw_fde_struct fields, initialize new fields, initialize
24306         also dw_fde_end here.  Set dw_fde_switch_cfi even when
24307         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
24308         (struct var_loc_list_def): Add last_before_switch field.
24309         (arange_table, arange_table_allocated, arange_table_in_use,
24310         ARANGE_TABLE_INCREMENT, add_arange): Removed.
24311         (size_of_aranges): Count !in_std_section and !second_in_std_section
24312         hunks in fdes, instead of looking at arange_table_in_use.
24313         (output_aranges): Add aranges_length argument, don't call
24314         size_of_aranges here.  Instead of using aranges_table*
24315         emit ranges for fdes when !in_std_section resp.
24316         !second_in_std_section.
24317         (dw_loc_list): Break ranges crossing section switch.
24318         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
24319         use dw_fde_second_end instead of dw_fde_end as end of last range.
24320         (gen_subprogram_die): Don't call add_arange.  Use
24321         dw_fde_{begin,end} for first partition and if switched
24322         section dw_fde_second_{begin,end} for the second.
24323         (var_location_switch_text_section_1,
24324         var_location_switch_text_section): New functions.
24325         (dwarf2out_begin_function): Initialize cold_text_section even
24326         when function_section () isn't text_section.
24327         (prune_unused_types): Don't walk arange_table.
24328         (dwarf2out_finish): Don't needlessly test
24329         flag_reorder_blocks_and_partition when testing cold_text_section_used.
24330         If info_section_emitted, call size_of_aranges and if it indicates
24331         non-empty .debug_aranges, call output_aranges with the computed
24332         size.  Stop using removed dw_fde_struct fields, use
24333         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
24334         for second.
24335
24336         PR debug/48203
24337         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
24338         create ENTRY_VALUE if incoming or address of incoming's MEM
24339         is a hard REG.
24340         * dwarf2out.c (mem_loc_descriptor): Don't emit
24341         DW_OP_GNU_entry_value of DW_OP_fbreg.
24342         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
24343         on ENTRY_VALUE is able to find the canonical parameter VALUE.
24344         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
24345         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
24346         ENTRY_VALUE_EXPs.
24347         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
24348         is a REG_P or MEM_P with REG_P address, compute hash directly
24349         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
24350         (preserve_only_constants): Don't clear VALUES forwaring
24351         ENTRY_VALUE to some other VALUE.
24352
24353 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
24354
24355         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
24356         instead of GEN_INT.
24357
24358 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
24359
24360         * cfgexpand.c (expand_gimple_cond): Always set the source location and
24361         block before expanding the statement.
24362         (expand_gimple_stmt_1): Likewise.  Set them here...
24363         (expand_gimple_stmt): ...and not here.  Tidy.
24364         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
24365         unknown.
24366
24367 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
24368
24369         * Makefile.in: New rule for cprop.o.
24370         * gcse.c: Move constant/copy propagation to cprop.c.
24371         (compute_local_properties): Only handle expression tables.
24372         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
24373         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
24374         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
24375         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
24376         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
24377         compute_cprop_data, find_used_regs, try_replace_reg,
24378         find_avail_set, cprop_jump, constprop_register, cprop_insn,
24379         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
24380         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
24381         find_bypass_set, reg_killed_on_edge, bypass_block,
24382         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
24383         execute_rtl_cprop, pass_rtl_cprop): Move to...
24384         * cprop.c: ...here.  New file, constant/copy propagation for RTL
24385         moved from gcse.c to here with minor cleanups in duplicated code.
24386
24387 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
24388
24389         * config/i386/i386.c (flag_opts): Fix a typo in
24390         -mavx256-split-unaligned-store.
24391
24392 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
24393
24394         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
24395         LIBCALL_VALUE): Remove macros.
24396         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24397         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24398         (h8300_function_value, h8300_libcall_value,
24399         h8300_function_value_regno_p): New functions.
24400
24401 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
24402
24403         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
24404
24405 2011-03-28  Jeff Law  <law@redhat.com>
24406
24407         * tree-ssa-threadupdate.c (redirect_edges): Call
24408         create_edge_and_update_destination_phis as needed.
24409         (create_edge_and_update_destination_phis): Accept new BB argument.
24410         All callers updated.
24411         (thread_block): Do not update the profile when threading around
24412         intermediate blocks.
24413         (thread_single_edge): Likewise.
24414         (determine_bb_domination_status): If BB is not a successor of the
24415         loop header, return NONDOMINATING.
24416         (register_jump_thread): Note when we register a jump thread around
24417         an intermediate block.
24418         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
24419         (thread_across_edge): Use it.
24420
24421 2011-03-28  Tristan Gingold  <gingold@adacore.com>
24422
24423         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
24424         when for_return is 2.
24425
24426 2011-03-28  Jeff Law  <law@redhat.com>
24427
24428         * var-tracking.c (canonicalize_values_mark): Delete unused
24429         lhs assignment.
24430         (canonicalize_values_star, set_variable_part): Likewise.
24431         (clobber_variable_part, delete_variable_part): Likewise.
24432
24433 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
24434
24435         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
24436
24437 2011-03-28  Martin Jambor  <mjambor@suse.cz>
24438
24439         * tree-inline.c (expand_call_inline): Do not check that destination
24440         node is analyzed.
24441         (optimize_inline_calls): Assert that destination node is analyzed.
24442         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
24443         not call tree_lowering_passes.
24444         * cgraph.h (cgraph_analyze_function): Declare.
24445         * cgraphunit.c (cgraph_analyze_function): Make public.
24446
24447 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
24448
24449         * config/sparc/sparc-opts.h: New.
24450         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
24451         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
24452         (sparc_option_override): Store processor_type enumeration rather
24453         than string in cpu_default.  Remove name and enumeration from
24454         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
24455         without using sparc_select.  Use target_flags_explicit instead of
24456         fpu_option_set.
24457         * config/sparc/sparc.h (enum processor_type): Move to
24458         sparc-opts.h.
24459         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
24460         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
24461         HeaderInclude entry.
24462         (mcpu=, mtune=): Use Var and Enum.
24463         (sparc_processor_type): New Enum and EnumValue entries.
24464
24465 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24466             Iain Sandoe  <iains@gcc.gnu.org>
24467
24468         PR target/48245
24469         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
24470
24471 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
24472
24473         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
24474         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
24475         Insert new statements at it in lieu of STMT.
24476         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
24477         * tree-vect-stmts.c (vectorizable_store): Likewise.
24478         (vectorizable_load): Likewise.
24479
24480 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
24481
24482         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
24483         (divtf3): Ditto.
24484         (multf3): Ditto.
24485         (subtf3): Ditto.
24486
24487 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24488
24489         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
24490         unaligned 256bit load/store.
24491         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
24492         (*avx_movdqu<avxmodesuffix>): Likewise.
24493
24494 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24495
24496         PR target/48288
24497         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
24498         * config/pa/pa.md (iordi3): Use new predicate in expander.
24499         (iorsi3): Likewise.
24500
24501 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
24502
24503         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
24504         FUNCTION_VALUE_REGNO_P): Remove macros.
24505         * config/mips/mips-protos.h (mips_function_value): Remove.
24506         * config/mips/mips.c (mips_function_value): Rename to...
24507         (mips_function_value_1): ... this. Make static.  Handle receiving
24508         the function type in 'fn_decl_or_type' argument.
24509         (mips_function_value, mips_libcall_value,
24510         mips_function_value_regno_p): New function.
24511         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24512         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24513
24514 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24515
24516         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
24517         and -mavx256-split-unaligned-store.
24518         (ix86_option_override_internal): Split 32-byte AVX unaligned
24519         load/store by default.
24520         (ix86_avx256_split_vector_move_misalign): New.
24521         (ix86_expand_vector_move_misalign): Use it.
24522
24523         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
24524         -mavx256-split-unaligned-store.
24525
24526         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
24527         256bit load/store.  Generate unaligned store on misaligned memory
24528         operand.
24529         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
24530         256bit load/store.
24531         (*avx_movdqu<avxmodesuffix>): Likewise.
24532
24533         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
24534         -mavx256-split-unaligned-store.
24535
24536 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
24537
24538         PR target/38598
24539         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
24540         Update commentary.
24541
24542 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
24543
24544         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
24545         opno arguments with an expand_operand.  Use create_input_operand.
24546         (mips_prepare_builtin_target): Delete.
24547         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
24548         functions.
24549         (mips_expand_builtin_direct): Use create_output_operand and
24550         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
24551         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
24552         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
24553
24554 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
24555
24556         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
24557         function.
24558         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
24559
24560 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
24561
24562         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
24563         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
24564         basic blocks and call commit_edge_insertions directly.
24565         (fixup_abnormal_edges): Move from here to...
24566         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
24567         on the edges and return whether some have actually been inserted.
24568         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
24569         compensation code.
24570
24571 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
24572
24573         PR rtl-optimization/48144
24574         * sel-sched-ir.c (merge_history_vect): Factor out from ...
24575         (merge_expr_data): ... here.
24576         (av_set_intersect): Rename to av_set_code_motion_filter.
24577         Update all callers.  Call merge_history_vect when an expression
24578         is found in both sets.
24579         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
24580
24581 2011-03-26  Alan Modra  <amodra@gmail.com>
24582
24583         * config/rs6000/predicates.md (word_offset_memref_op): Handle
24584         cmodel medium addresses.
24585         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
24586         64-bit gpr loads and stores.
24587         (rs6000_secondary_reload_ppc64): New function.
24588         * config/rs6000/rs6000-protos.h: Declare it.
24589         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
24590
24591 2011-03-26  Alan Modra  <amodra@gmail.com>
24592
24593         PR target/47487
24594         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
24595         GNU Go in traceback table.
24596
24597 2011-03-25  Richard Henderson  <rth@redhat.com>
24598
24599         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
24600         if there are exactly 6 operands.
24601         (set_storage_via_setmem): Similarly.
24602
24603 2011-03-25  Kai Tietz  <ktietz@redhat.com>
24604
24605         * collect2.c (write_c_file_stat): Handle backslash
24606         as right-hand directory separator.
24607         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
24608         checking just for slash.
24609         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
24610         instead of checking for trailing slash.
24611         * gcc.c (record_temp_file): Use filename_cmp instead
24612         of strcmp.
24613         (do_spec_1): Likewise.
24614         (replace_outfile_spec_function): Likewise.
24615         (is_directory): Use filename_ncmp instead of strncmp.
24616         (print_multilib_info): Likewise.
24617         * gcov.c (find_source): Use filename_cmp instead
24618         instead of strcmp.
24619         (make_gcov_file_name): Fix order of slash/backslash
24620         checks.
24621         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
24622         (add_standard_paths): Likewise.
24623         * mips-tfile.c (saber_stop): Handle backslash.
24624         * prefix.c (update_path): Use filename_ncmp instead of
24625         strncmp.
24626         * profile.c (output_location): Use filename_cmp instead
24627         of strcmp.
24628         * read-md.c (handle_toplevel_file): Handle backslash.
24629         * tlink.c (frob_extension):  Likewise.
24630         * tree-cfg.c (same_line_p): Use filename_cmp instead of
24631         strcmp.
24632         * tree-dump.c (dequeue_and_dump): Handle backslash.
24633         * tree.c (get_file_function_name): Likewise.
24634         * gengtype.c (read_input_list): Likewise.
24635         (get_file_realbasename): Likewise.
24636         (get_output_file_with_visibility): Use filename_cmp
24637         instead of strcmp.
24638
24639 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
24640
24641         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
24642         case to VFPv1.
24643
24644 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
24645
24646         * fold-const.c (expr_location_or): New function.
24647         (fold_truth_not_expr): Call it.
24648
24649 2011-03-25  Jeff Law  <law@redhat.com>
24650
24651         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
24652         va_end.
24653         * c-family/c-common.c (def_fn_type): Likewise.
24654         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
24655         * emit-rtl.c (gen_rtvec): Likewise.
24656         * lto/lto-lang.c (def_fn_type): Likewise.
24657
24658 2011-03-25  Richard Guenther  <rguenther@suse.de>
24659
24660         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
24661         also generate copies.
24662         (fini_copy_prop): Handle constant values properly.
24663
24664 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
24665
24666         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
24667         mode size instead of bitsize with DWARF2_ADDR_SIZE.
24668         (hash_loc_operands, compare_loc_operands): Handle
24669         DW_OP_GNU_entry_value.
24670
24671 2011-03-25  Kai Tietz  <ktietz@redhat.com>
24672
24673         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
24674         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
24675         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
24676         comment and use macro TARGET_64BIT_MS_ABI instead.
24677         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
24678         and change default behavior for 32-bit MS_ABI.
24679         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
24680         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
24681         32-bit, too.
24682         (ix86_cfun_abi): Likewise.
24683         (ix86_maybe_switch_abi): Adjust comment.
24684         (init_cumulative_args): Check for bit-ness in MS_ABI case.
24685         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
24686         instead of checking for SYSV_ABI.
24687         (ix86_nsaved_sseregs): Likewise.
24688         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
24689         to 16 bytes.
24690         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
24691         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
24692         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
24693         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
24694         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
24695
24696 2011-03-25  Richard Guenther  <rguenther@suse.de>
24697
24698         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
24699         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
24700         (verify_gimple): Remove.
24701         * tree-cfg.c (verify_gimple_call): Merge verification
24702         from verify_stmts.
24703         (verify_gimple_phi): Merge verification from verify_stmts.
24704         (verify_gimple_label): New function.
24705         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
24706         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
24707         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
24708         (verify_stmts): Rename to verify_gimple_in_cfg.
24709         (verify_gimple_in_cfg): New function.
24710         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
24711         * tree-ssa.c (verify_ssa): Likewise.
24712         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
24713
24714 2011-03-25  Richard Guenther  <rguenther@suse.de>
24715
24716         * passes.c (init_optimization_passes): Add FRE pass after
24717         early SRA.
24718
24719 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
24720             Andrew Stubbs  <ams@codesourcery.com>
24721
24722         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
24723         for Cortex-A8.
24724         (arm_movdi_vfp_cortexa8): New pattern.
24725         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
24726         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
24727         instructions when tuning for Cortex-A8.  Set attribute "arch".
24728         * config/arm/arm.md: Move include arm-tune.md up a bit.
24729         (define_attr "arch"): Add "onlya8" and "nota8" values.
24730         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
24731
24732 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
24733
24734         PR bootstrap/48282
24735         Revert:
24736         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24737
24738         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
24739         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
24740         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
24741         * passes.c (init_optimization_passes): Move
24742         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
24743
24744 2011-03-25  Kai Tietz  <ktietz@redhat.com>
24745
24746         * c-typeck.c (comptypes_internal): Replace target
24747         hook call of comp_type_attributes by version in tree.c file.
24748         * gimple.c (gimple_types_compatible_p_1): Likewise.
24749         * tree-ssa.c (useless_type_conversion_p): Likewise.
24750         * tree.c (build_type_attribute_qual_variant): Likewise.
24751         (attribute_value_equal): New static helper function.
24752         (comp_type_attributes): New function.
24753         (merge_attributes): Use attribute_value_equal for comparison.
24754         (attribute_list_contained): Likewise.
24755         * tree.h (comp_type_attributes): New prototype.
24756
24757 2011-03-25  Richard Guenther  <rguenther@suse.de>
24758
24759         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
24760         of complex types at -O0.
24761         (verify_gimple_assign_binary): Likewise.
24762         (verify_gimple_assign_ternary): Likewise.
24763
24764 2011-03-24  Mark Wielaard  <mjw@redhat.com>
24765
24766         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
24767         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
24768
24769 2011-03-24  Mark Wielaard  <mjw@redhat.com>
24770
24771         PR debug/48041
24772         * dwarf2out.c (output_abbrev_section): Only write table when
24773         abbrev_die_table_in_use > 1.
24774
24775 2011-02-24  Richard Henderson  <rth@redhat.com>
24776
24777         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
24778         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
24779         (alpha_expand_unaligned_load_words): Use extql.
24780         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
24781         (emit_insxl): Handle all modes for consistency.
24782
24783 2011-02-24  Richard Henderson  <rth@redhat.com>
24784
24785         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
24786         (alpha_expand_unaligned_load): Likewise.
24787         (alpha_expand_unaligned_store): Likewise.
24788         (alpha_expand_unaligned_load_words): Likewise.
24789         (alpha_expand_unaligned_store_words): Likewise.
24790         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
24791         (alpha_split_lock_test_and_set_12): Likewise.
24792         (print_operand, alpha_fold_builtin_extxx): Likewise.
24793         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
24794         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
24795         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
24796         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
24797         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
24798         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
24799         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
24800         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
24801         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
24802         (extwl, extll, extql): Similarly.
24803         (inswh, inslh, insqh): Similarly.
24804         (mskbl, mskwl, mskll, mskql): Similarly.
24805         (mskwh, msklh, mskqh): Similarly.
24806
24807 2011-02-24  Richard Henderson  <rth@redhat.com>
24808
24809         * config/alpha/alpha.md (attribute isa): Add er, ner.
24810         (attribute enabled): Handle them.
24811         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
24812
24813 2011-02-24  Richard Henderson  <rth@redhat.com>
24814
24815         * config/alpha/alpha.md (attribute isa): Add vms.
24816         (attribute enabled): Handle it.
24817         (*movsf): Merge *movsf_{nofix,fix,nofp}.
24818         (*movdf): Merge *movdf_{nofix,fix,nofp}.
24819         (*movtf): Rename from *movtf_internal for consistency.
24820         (*movsi): Merge with *movsi_nt_vms.
24821         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
24822         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
24823         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
24824         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
24825
24826 2011-02-24  Richard Henderson  <rth@redhat.com>
24827
24828         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
24829         (extendqisi2, extendhisi2): Likewise.
24830         (extendqidi2): Simplify BWX/non-BWX expansions.
24831         (extendhidi2): Similarly.
24832
24833 2011-02-24  Richard Henderson  <rth@redhat.com>
24834
24835         * config/alpha/alpha.md (attribute isa): New.
24836         (attribute enabled): New.
24837         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
24838         (zero_extendqisi2, zero_extendqidi2): Similarly.
24839         (zero_extendhisi2, zero_extendhidi2): Similarly.
24840         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
24841
24842 2011-02-24  Richard Henderson  <rth@redhat.com>
24843
24844         * config/alpha/predicates.md (input_operand): Revert last change;
24845         update comment to mention 32-bit VMS rather than Windows.
24846
24847 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24848
24849         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
24850         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
24851         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
24852         * passes.c (init_optimization_passes): Move
24853         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
24854
24855 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24856
24857         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
24858
24859 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
24860
24861         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
24862         correctly.
24863
24864 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
24865
24866         PR debug/48204
24867         * simplify-rtx.c (simplify_const_unary_operation): Call
24868         real_convert when changing mode class with FLOAT_EXTEND.
24869
24870 2011-03-24  Nick Clifton  <nickc@redhat.com>
24871
24872         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
24873         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
24874         * config/rx/rx.c (rx_option_override): Set align_jumps,
24875         align_loops and align_labels if not set by the user.
24876         (rx_align_for_label): New function.
24877         (rx_max_skip_for_label): New function.
24878         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
24879         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
24880         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
24881         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
24882         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
24883
24884 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
24885
24886         PR rtl-optimization/48263
24887         * optabs.c (expand_binop_directly): Reinstate convert_modes code
24888         and original commutative_p handling.  Use maybe_gen_insn.
24889
24890 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24891
24892         * reload.c (find_reloads_subreg_address): Add address_reloaded
24893         parameter and return true there if the full address has been
24894         reloaded.
24895         (find_reloads_toplev): Pass address_reloaded flag.
24896         (find_reloads_address_1): Don't use address_reloaded parameter.
24897
24898 2011-03-24  Jeff Law  <law@redhat.com>
24899
24900         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
24901         unused variable "ann".
24902         (remove_unused_locals): Likewise.
24903
24904         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
24905         statement.
24906
24907         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
24908         after it is freed.
24909
24910 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24911
24912         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
24913         for invalid symbolic addresses.
24914         (s390_secondary_reload): Don't use s390_check_symref_alignment for
24915         larl operands.
24916
24917 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24918
24919         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
24920         the argument in calls to fold_truth_not_expr.
24921
24922 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24923
24924         * tree.c (record_node_allocation_statistics): New function.
24925         (make_node_stat, copy_node_stat, build_string): Call it.
24926         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
24927         (build1_stat, build_omp_clause): Likewise.
24928
24929 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
24930
24931         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
24932         last commit.
24933
24934 2011-03-24  Richard Guenther  <rguenther@suse.de>
24935
24936         PR tree-optimization/48271
24937         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
24938         blocks that still exist.
24939
24940 2011-03-24  Richard Guenther  <rguenther@suse.de>
24941
24942         PR tree-optimization/48270
24943         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
24944         not free datarefs before ddrs.
24945
24946 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24947
24948         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
24949         from the address built for a reference with variable offset.
24950
24951 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
24952
24953         PR target/48237
24954         * config/i386/i386.md (*movdf_internal_rex64): Do not split
24955         alternatives that can be handled with movq or movabsq insn.
24956         (*movdf_internal): Disable for !TARGET_64BIT.
24957         (*movdf_internal_nointeger): Ditto.
24958         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
24959
24960 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24961
24962         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24963         (FUNCTION_ARG_ADVANCE): Likewise.
24964         * tm.texi.in: Change references to them to hook references.
24965         * tm.texi: Regenerate.
24966         * targhooks.c (default_function_arg): Eliminate check for target macro.
24967         (default_function_incoming_arg): Likewise.
24968         (default_function_arg_advance): Likewise.
24969         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24970         (function_arg_advance): Likewise.
24971         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24972
24973 2011-03-24  Richard Guenther  <rguenther@suse.de>
24974
24975         PR middle-end/48269
24976         * tree-object-size.c (addr_object_size): Do not double-account
24977         for MEM_REF offsets.
24978
24979 2011-03-24  Diego Novillo  <dnovillo@google.com>
24980
24981         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
24982         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
24983         (lto_input_data_block): Move from lto-opts.c.  Make extern.
24984         Update all users.
24985         (lto_input_string): Rename from input_string.  Make extern.
24986         Update all users.
24987         * lto-streamer-out.c (lto_output_string_with_length): Rename from
24988         output_string_with_length.
24989         Output 0 to indicate a non-NULL string.  Update all callers to
24990         not emit 0.
24991         (lto_output_string): Rename from output_string.  Make extern.
24992         Update all users.
24993         (lto_output_decl_state_streams): Make extern.
24994         (lto_output_decl_state_refs): Make extern.
24995         * lto-streamer.h (lto_input_string): Declare.
24996         (lto_input_data_block): Declare.
24997         (lto_output_string): Declare.
24998         (lto_output_string_with_length): Declare.
24999         (lto_output_decl_state_streams): Declare.
25000         (lto_output_decl_state_refs): Declare.
25001
25002 2011-03-24  Richard Guenther  <rguenther@suse.de>
25003
25004         PR tree-optimization/46562
25005         * tree.c (build_invariant_address): New function.
25006         * tree.h (build_invariant_address): Declare.
25007         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
25008         a renamed function moved ...
25009         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
25010         Take valueization callback parameter.
25011         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
25012         * gimple-fold.h: New file.
25013         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
25014         (ccp_fold, fold_const_aggregate_ref,
25015         fold_ctor_reference, fold_nonarray_ctor_reference,
25016         fold_array_ctor_reference, fold_string_cst_ctor_reference,
25017         get_base_constructor): Move ...
25018         * gimple-fold.c: ... here.
25019         (gimple_fold_stmt_to_constant_1): New function
25020         split out from ccp_fold.  Take a valueization callback parameter.
25021         Valueize all operands.
25022         (gimple_fold_stmt_to_constant): New wrapper function.
25023         (fold_const_aggregate_ref_1): New function split out from
25024         fold_const_aggregate_ref.  Take a valueization callback parameter.
25025         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
25026         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
25027         invariant POINTER_PLUS_EXPRs to invariant form.
25028         (vn_valueize): New function.
25029         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
25030         * tree-vrp.c (vrp_valueize): New function.
25031         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
25032         to fold statements to constants.
25033         * tree-ssa-pre.c (eliminate): Properly guard propagation of
25034         function declarations.
25035         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
25036         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
25037
25038 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25039
25040         * config/h8300/predicates.md (jump_address_operand): Fix register
25041         mode check.
25042
25043 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
25044
25045         * doc/invoke.texi (max-stores-to-sink): Document.
25046         * params.h (MAX_STORES_TO_SINK): Define.
25047         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
25048         if either vectorization or if-conversion is disabled.
25049         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
25050         tree-vect-data-refs.c vect_equal_offsets.
25051         (dr_equal_offsets_p): New function.
25052         (find_data_references_in_bb): Remove static.
25053         * tree-data-ref.h (find_data_references_in_bb): Declare.
25054         (dr_equal_offsets_p): Likewise.
25055         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
25056         (vect_drs_dependent_in_basic_block): Update calls to
25057         vect_equal_offsets.
25058         (vect_check_interleaving): Likewise.
25059         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
25060         (cond_if_else_store_replacement): Rename to...
25061         (cond_if_else_store_replacement_1): ... this.  Change arguments and
25062         documentation.
25063         (cond_if_else_store_replacement): New function.
25064         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
25065         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
25066
25067 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
25068
25069         PR target/46934
25070         * config/arm/arm.md (casesi): Use the gen_int_mode() function
25071         to subtract lower bound instead of GEN_INT().
25072
25073 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
25074
25075         PR other/48179
25076         PR other/48221
25077         PR other/48234
25078         * doc/extend.texi (Alignment): Move section to match order in TOC.
25079         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
25080         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
25081
25082 2011-03-23  Jeff Law  <law@redhat.com>
25083
25084         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
25085         before removing the edge.
25086
25087         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
25088         it may have been freed by redirect_branch_edge or
25089         redirect_edge_succ_nodup.
25090
25091 2011-03-23  Richard Guenther  <rguenther@suse.de>
25092
25093         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
25094         (check_va_list_escapes): Likewise.
25095         (check_all_va_list_escapes): Likewise.
25096
25097 2011-03-23  Richard Guenther  <rguenther@suse.de>
25098
25099         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
25100         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
25101         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
25102         (alias.o): Likewise.
25103         (ipa-type-escape.o): Remove.
25104         (ipa-struct-reorg.o): Likewise.
25105         (GTFILES): Remove ipa-struct-reorg.c.
25106         * alias.c: Do not include ipa-type-escape.h.
25107         * tree-ssa-alias.c: Likewise.
25108         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
25109         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
25110         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
25111         and ipa-type-escape passes.
25112         * tree-pass.h (pass_ipa_type_escape): Remove.
25113         (pass_ipa_struct_reorg): Likewise.
25114         * ipa-struct-reorg.h: Remove.
25115         * ipa-struct-reorg.c: Likewise.
25116         * ipa-type-escape.h: Likewise.
25117         * ipa-type-escape.c: Likewise.
25118         * doc/invoke.texi (-fipa-struct-reorg): Remove.
25119         (--param struct-reorg-cold-struct-ratio): Likewise.
25120         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25121         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25122         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
25123
25124 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25125
25126         * config/s390/2084.md: Enable all insn reservations also for z9_ec
25127         cpu attribute value.
25128         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
25129         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
25130         * config/s390/s390.c (processor_flags_table): New constant array.
25131         (s390_handle_arch_option): Remove.
25132         (s390_handle_option): Remove s390_handle_arch_option invocations
25133         and OPT_mwarn_framesize_ handling.
25134         (s390_option_override): Remove s390_handle_arch_option invocation.
25135         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
25136         warnings.
25137         * config/s390/s390.md (cpu attribute): Add z9_ec value.
25138         * config/s390/s390.opt (s390_tune, s390_arch)
25139         (march=): Replace s390_arch_option enum and values with
25140         processor_type.  Set variable name to s390_arch.  Set
25141         initialization value.
25142         (mtune=): Replace s390_arch_option with processor_type.  Set
25143         variable name to s390_tune.  Set initialization value.
25144
25145 2011-03-23  Julian Brown  <julian@codesourcery.com>
25146
25147         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
25148         accesses which are not naturally aligned.
25149
25150 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
25151
25152         PR target/47553
25153         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
25154
25155 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
25156
25157         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
25158         parameter from "int" to "enum insn_code".
25159         (expand_operand_type): New enum.
25160         (expand_operand): New structure.
25161         (create_expand_operand): New function.
25162         (create_fixed_operand, create_output_operand): Likewise
25163         (create_input_operand, create_convert_operand_to): Likewise.
25164         (create_convert_operand_from, create_address_operand): Likewise.
25165         (create_integer_operand): Likewise.
25166         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
25167         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
25168         (expand_insn, expand_jump_insn): Likewise.
25169         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
25170         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
25171         (expand_movstr, expand_builtin___clear_cache): Likewise.
25172         (expand_builtin_lock_release): Likewise.
25173         * explow.c (allocate_dynamic_stack_space): Likewise.
25174         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
25175         and use the default handling in that case.
25176         * expmed.c (check_predicate_volatile_ok): Delete.
25177         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
25178         (emit_cstore): Likewise.
25179         * expr.c (emit_block_move_via_movmem): Likewise.
25180         (set_storage_via_setmem, expand_assignment): Likewise.
25181         (emit_storent_insn, try_casesi): Likewise.
25182         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
25183         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
25184         (expand_vec_shift_expr, expand_binop_directly): Likewise.
25185         (expand_twoval_unop, expand_twoval_binop): Likewise.
25186         (expand_unop_direct, emit_indirect_jump): Likewise.
25187         (emit_conditional_move, vector_compare_rtx): Likewise.
25188         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
25189         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
25190         (expand_sync_lock_test_and_set): Likewise.
25191         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
25192         (emit_unop_insn): Likewise.
25193         (expand_copysign_absneg): Change icode to an insn_code.
25194         (create_convert_operand_from_type): New function.
25195         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
25196         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
25197         (expand_insn, expand_jump_insn): Likewise.
25198         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
25199         than const_int_operand for operand 2.
25200
25201 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25202
25203         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
25204         if possible.
25205
25206 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25207
25208         * emit-rtl.c (emit_pattern_before_noloc): New function.
25209         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
25210         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
25211         (emit_pattern_after_noloc): New function.
25212         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
25213         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
25214
25215 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25216
25217         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
25218         (__ffsDI2): Likewise.
25219
25220 2011-03-22  Richard Henderson  <rth@redhat.com>
25221
25222         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
25223         of !TARGET_ABI_OPEN_VMS.
25224         (alpha_trampoline_init, alpha_start_function): Likewise.
25225         (alpha_expand_epilogue, alpha_file_start): Likewise.
25226         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
25227         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
25228         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
25229         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
25230         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
25231
25232 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25233
25234         * config/s390/s390-opts.h: New.
25235         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
25236         s390_arch_flags, s390_warn_framesize, s390_stack_size,
25237         s390_stack_guard): Remove.
25238         (s390_handle_arch_option): Return void.  Take enum
25239         s390_arch_option value instead of string and searching array.
25240         (s390_handle_option): Don't assert that global structures are in
25241         use.  Access variables via opts pointer.  Use error_at.  Don't use
25242         sscanf for -mstack-guard= or -mstack-size=.  Update call to
25243         s390_handle_arch_option.
25244         (s390_option_override): Update call to s390_handle_arch_option.
25245         (s390_emit_prologue): Use %d format for s390_stack_size in
25246         diagnostic.  Use %wd for HOST_WIDE_INT.
25247         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
25248         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
25249         * config/s390/s390.opt (config/s390/s390-opts.h): New
25250         HeaderInclude entry.
25251         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
25252         s390_arch_flags, s390_warn_framesize): New Variable entries.
25253         (s390_arch_option): New Enum and EnumValue entries.
25254         (march=): Use Enum instead of Var.
25255         (mstack-guard=, mstack-size=): Use UInteger and Var.
25256         (mtune=): Use Enum.
25257
25258 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25259
25260         * config/score/score.c (score_handle_option): Don't assert that
25261         global structures are in use.  Access target_flags via opts
25262         pointer.  Use value of -march= option to determine target_flags
25263         settings.
25264         * config/score/score.opt (march=): Use Enum.
25265         (score_arch): New Enum and EnumValue entries.
25266
25267 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25268
25269         * config/mep/mep.c (option_mtiny_specified): Remove.
25270         (mep_option_override): Move register handling for -mivc2 from
25271         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
25272         instead of option_mtiny_specified.
25273         (mep_handle_option): Access target_flags via opts pointer.  Don't
25274         assert that global structures are in use.  Defer part of -mivc2
25275         handling and move it to mep_option_override.
25276         * config/mep/mep.opt (IVC2): New Mask entry.
25277         (mivc2): Use Var and Defer instead of Mask.
25278
25279 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25280
25281         * config/v850/v850-opts.h: New.
25282         * config/v850/v850.c (small_memory): Replace with
25283         small_memory_physical_max array.  Make that array static const.
25284         (v850_handle_memory_option): Take integer value of argument.  Take
25285         gcc_options pointer, option text and location.  Return void.
25286         Update for changes to small memory structures.
25287         (v850_handle_option): Access target_flags via opts pointer.  Don't
25288         assert that global structures are in use.  Update calls to
25289         v850_handle_memory_option.
25290         (v850_encode_data_area): Update references to small memory settings.
25291         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
25292         (enum small_memory_type): Move to v850-opts.h.
25293         * config/v850/v850.opt (config/v850/v850-opts.h): New
25294         HeaderInclude entry.
25295         (small_memory_max): New Variable entry.
25296         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
25297         (mtda, mzda): Likewise.
25298
25299 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25300
25301         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
25302         pointer.  Don't assert that global structures are in use.
25303
25304 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25305
25306         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
25307         via opts pointer.  Don't assert that global structures are in use.
25308
25309 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25310
25311         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
25312         (munix=93): Use Var.
25313         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
25314         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
25315         * config/pa/pa-opts.h: New.
25316         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
25317         (pa_handle_option): Don't assert that global structures are in
25318         use.  Access target_flags via opts pointer.  Don't handle
25319         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
25320         OPT_munix_98 here.
25321         (pa_option_override): Handle deferred OPT_mfixed_range_.
25322
25323 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25324
25325         * config/mn10300/mn10300-opts.h: New.
25326         * config/mn10300/mn10300.c (mn10300_processor,
25327         mn10300_tune_string): Remove.
25328         (mn10300_handle_option): Don't assert that global structures are
25329         in use.  Access mn10300_processor via opts pointer.  Don't handle
25330         OPT_mtune_ here.
25331         * config/mn10300/mn10300.h (enum processor_type): Move to
25332         mn10300-opts.h.
25333         (mn10300_processor): Remove.
25334         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
25335         HeaderInclude entry.
25336         (mn10300_processor): New Variable entry.
25337         (mtune=): Use Var.
25338
25339 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25340
25341         * config/microblaze/microblaze.c: Don't include opts.h.
25342         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
25343         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
25344         (mno-clearbss): Use Var and Warn.
25345
25346 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25347
25348         * config/m32r/m32r-opts.h: New.
25349         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
25350         (m32r_handle_option): Don't assert that global structures are in
25351         use.  Access target_flags and m32r_cache_flush_func via opts
25352         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
25353         OPT_mno_flush_trap here.
25354         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
25355         include of m32r-opts.h.
25356         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
25357         HeaderInclude entry.
25358         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
25359         (mmodel=): Use Enum and Var.
25360         (m32r_model): New Enum and EnumValue entries.
25361         (mno-flush-trap): Use Var.
25362         (msdata=): Use Enum and Var.
25363         (m32r_sdata): New Enum and EnumValue entries.
25364
25365 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25366
25367         * config/m32c/m32c.c: Don't include opts.h.
25368         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
25369         m32c_handle_option): Remove.
25370         (m32c_option_override): Check global_options_set.x_target_memregs
25371         instead of target_memregs_set.
25372         * config/m32c/m32c.h (target_memregs): Remove.
25373         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
25374         variable.
25375
25376 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25377
25378         * config/iq2000/iq2000-opts.h: New.
25379         * config/iq2000/iq2000.c: Don't include opts.h.
25380         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
25381         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
25382         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
25383         HeaderInclude entry.
25384         (iq2000_tune): New Variable entry.
25385         (march=): Add comment.  Use Enum.
25386         (iq2000_arch): New Enum and EnumValue entries.
25387         (mcpu=): Use Enum and Var.
25388         (iq2000_tune): New Enum and EnumValue entries.
25389
25390 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25391
25392         * config/ia64/ia64-opts.h: New.
25393         * config/ia64/ia64.c (ia64_tune): Remove.
25394         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
25395         here.  Use error_at.
25396         (ia64_option_override): Handle deferred OPT_mfixed_range_.
25397         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
25398         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
25399         HeaderInclude entry.
25400         (ia64_tune): New Variable entry.
25401         (mfixed-range=): Use Defer and Var.
25402         (mtune=): Use Enum and Var.
25403         (ia64_tune): New Enum and EnumValue entries.
25404
25405 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25406
25407         * config/frv/frv-opts.h: New.
25408         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
25409         frv-opts.h.
25410         (frv_cpu_type): Remove.
25411         * config/frv/frv.c: Don't include opts.h.
25412         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
25413         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
25414         (frv_cpu_type): New Variable entry.
25415         (frv_cpu): New Enum and EnumValue entries.
25416
25417 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25418
25419         * config/cris/cris.c (cris_handle_option): Access target_flags via
25420         opts pointer.  Don't assert that global structures are in use.
25421         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
25422         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
25423
25424 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25425
25426         * config/bfin/bfin-opts.h: New.
25427         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
25428         bfin_si_revision, bfin_workarounds): Remove.
25429         (bfin_cpus): Make static const.
25430         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
25431         not bfin_lib_id_given.
25432         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
25433         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
25434         pointer. Use error_at.  Don't assert that global structures are in use.
25435         * config/bfin/bfin.h: Include bfin-opts.h.
25436         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
25437         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
25438         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
25439         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
25440         entries.
25441
25442 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25443
25444         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
25445         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
25446         or -msoft-float here.
25447         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
25448         -msoft-float and -mhard-float.
25449         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
25450         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
25451         msoft-float.
25452         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
25453         -msoft-float.
25454         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
25455         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
25456         not mhard-float.
25457         (LIBGCC_SPEC): Don't handle -msoft-float.
25458         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
25459         -mhard-float.
25460         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
25461         msoft-float.
25462         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
25463         -mfloat-abi=*, not -msoft-float and -mhard-float.
25464         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
25465         -msoft-float.
25466         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
25467         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
25468         mhard-float and msoft-float.
25469         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
25470         mfloat-abi=soft in comments, not mhard-float and msoft-float.
25471         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
25472         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
25473         mhard-float.
25474         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
25475         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
25476         msoft-float.
25477         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
25478         not mhard-float.
25479         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
25480         not msoft-float.
25481
25482 2011-03-22  Richard Henderson  <rth@redhat.com>
25483
25484         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
25485         TARGET_ABI_WINDOWS_NT.
25486         (alpha_output_function_end_prologue): Likewise.
25487         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
25488         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
25489         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
25490         (trap, *movsi_nt_vms): Likewise.
25491         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
25492         (*tablejump_osf_nt_internal): Remove.
25493         * config/alpha/predicates.md (input_operand): Only test Pmode.
25494
25495 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25496
25497         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
25498         via opts pointer.  Use error_at.  Don't assert that global
25499         structures are in use.
25500
25501 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25502
25503         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
25504         (ix86_handle_option): Access ix86_isa_flags and
25505         ix86_isa_flags_explicit via opts pointer.  Don't assert that
25506         global structures are in use.
25507         (ix86_function_specific_save, ix86_function_specific_restore):
25508         Update ix86_isa_flags_explicit field name.
25509         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
25510         (ix86_isa_flags_explicit): Rename TargetSave entry to
25511         x_ix86_isa_flags_explicit.
25512
25513 2011-03-22  Richard Henderson  <rth@redhat.com>
25514
25515         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
25516         (alpha_option_override, direct_return): Likewise.
25517         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
25518         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
25519         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
25520         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
25521         (alpha_expand_epilogue, alpha_end_function): Likewise.
25522         (alpha_init_libfuncs): Likewise.
25523         (struct machine_function): Remove unicosmk members.
25524         (print_operand) ['t']: Remove.
25525         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
25526         unicosmk_output_module_name, unicosmk_output_common,
25527         current_section_align, unicosmk_output_text_section_asm_op,
25528         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
25529         unicosmk_section_type_flags, unicosmk_unique_section,
25530         unicosmk_asm_named_section, unicosmk_insert_attributes,
25531         unicosmk_output_align, unicosmk_defer_case_vector,
25532         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
25533         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
25534         unicosmk_output_ssib, unicosmk_add_call_info_word,
25535         unicosmk_extern_head, unicosmk_output_default_externs,
25536         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
25537         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
25538         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
25539         * config/alpha/alpha-protos.h: Update.
25540         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
25541         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
25542         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
25543         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
25544         (*mulsi_se, mulvsi3): Likewise.
25545         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
25546         (*divmodsi_internal, call, call_value, realign): Likewise.
25547         (moddi3, umoddi3): Likewise; remove duplicate expander.
25548         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
25549         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
25550         (*movdi_nofix): Remove r/U alternative.
25551         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
25552         * config/alpha/constraints.md ("U"): Remove.
25553         * config/alpha/predicates.md (call_operand"): Don't test
25554         TARGET_ABI_UNICOSMK.
25555
25556 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25557
25558         * target.def (handle_option): Take gcc_options and
25559         cl_decoded_option pointers and location_t.
25560         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
25561         * doc/tm.texi: Regenerate.
25562         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
25563         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
25564         * lto-opts.c (lto_reissue_options): Generate option structure for
25565         targetm.handle_option call.
25566         * opts.c (target_handle_option): Update call to
25567         targetm.handle_option.  Remove assertions about values now passed
25568         down to hook.
25569         * targhooks.c (default_target_handle_option): New.
25570         * targhooks.h (default_target_handle_option): Declare.
25571         * config/alpha/alpha.c: Include opts.h.
25572         (alpha_handle_option): Update to new hook interface.
25573         * config/arm/arm.c: Include opts.h.
25574         (arm_handle_option): Update to new hook interface.
25575         * config/arm/t-arm (arm.o): Update dependencies.
25576         * config/bfin/bfin.c: Include opts.h.
25577         (bfin_handle_option): Update to new hook interface.
25578         * config/cris/cris.c: Include opts.h.
25579         (cris_handle_option): Update to new hook interface.
25580         * config/frv/frv.c: Include opts.h.
25581         (frv_handle_option): Update to new hook interface.
25582         * config/i386/i386.c: Include opts.h.
25583         (ix86_handle_option): Update to new hook interface.
25584         (ix86_valid_target_attribute_inner_p): Generate option structure
25585         for call to ix86_handle_option.
25586         * config/i386/t-i386 (i386.o): Update dependencies.
25587         * config/ia64/ia64.c: Include opts.h.
25588         (ia64_handle_option): Update to new hook interface.
25589         * config/ia64/t-ia64 (ia64.o): Update dependencies.
25590         * config/iq2000/iq2000.c: Include opts.h.
25591         (iq2000_handle_option): Update to new hook interface.
25592         * config/m32c/m32c.c: Include opts.h.
25593         (m32c_handle_option): Update to new hook interface.
25594         * config/m32r/m32r.c: Include opts.h.
25595         (m32r_handle_option): Update to new hook interface.
25596         * config/m68k/m68k.c: Include opts.h.
25597         (m68k_handle_option): Update to new hook interface.
25598         * config/mep/mep.c: Include opts.h.
25599         (mep_handle_option): Update to new hook interface.
25600         * config/microblaze/microblaze.c: Include opts.h.
25601         (microblaze_handle_option): Update to new hook interface.
25602         * config/mips/mips.c: Include opts.h.
25603         (mips_handle_option): Update to new hook interface.
25604         * config/mn10300/mn10300.c: Include opts.h.
25605         (mn10300_handle_option): Update to new hook interface.
25606         * config/pa/pa.c: Include opts.h.
25607         (pa_handle_option): Update to new hook interface.
25608         * config/pdp11/pdp11.c: Include opts.h.
25609         (pdp11_handle_option): Update to new hook interface.
25610         * config/rs6000/rs6000.c: Include opts.h.
25611         (rs6000_handle_option): Update to new hook interface.
25612         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
25613         * config/rx/rx.c: Include opts.h.
25614         (rx_handle_option): Update to new hook interface.
25615         * config/s390/s390.c: Include opts.h.
25616         (s390_handle_option): Update to new hook interface.
25617         * config/score/score.c: Include opts.h.
25618         (score_handle_option): Update to new hook interface.
25619         * config/sh/sh.c: Include opts.h.
25620         (sh_handle_option): Update to new hook interface.
25621         * config/sparc/sparc.c: Include opts.h.
25622         (sparc_handle_option): Update to new hook interface.
25623         * config/v850/v850.c: Include opts.h.
25624         (v850_handle_option): Update to new hook interface.
25625
25626 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25627
25628         * gcc.c (driver_unknown_option_callback): Only permit and save
25629         unknown -Wno- options.
25630         (driver_wrong_lang_callback): Save options directly instead of via
25631         driver_unknown_option_callback.
25632
25633 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
25634
25635         * combine.c (simplify_set): Try harder to find the best CC mode when
25636         simplifying a nested COMPARE on the RHS.
25637
25638 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25639
25640         * config/alpha/gnu.h: Remove.
25641         * config/arc: Remove directory.
25642         * config/arm/netbsd.h: Remove.
25643         * config/arm/t-pe: Remove.
25644         * config/crx: Remove directory.
25645         * config/i386/netbsd.h: Remove.
25646         * config/m68hc11: Remove directory.
25647         * config/m68k/uclinux-oldabi.h: Remove.
25648         * config/mcore/mcore-pe.h: Remove.
25649         * config/mcore/t-mcore-pe: Remove.
25650         * config/netbsd-aout.h: Remove.
25651         * config/rs6000/gnu.h: Remove.
25652         * config/sh/sh-symbian.h: Remove.
25653         * config/sh/symbian-base.c: Remove.
25654         * config/sh/symbian-c.c: Remove.
25655         * config/sh/symbian-cxx.c: Remove.
25656         * config/sh/symbian-post.h: Remove.
25657         * config/sh/symbian-pre.h: Remove.
25658         * config/sh/t-symbian: Remove.
25659         * config/svr3.h: Remove.
25660         * config/vax/netbsd.h: Remove.
25661         * config.build: Don't handle i[34567]86-*-pe.
25662         * config.gcc: Remove handling of deprecations for most deprecated
25663         targets.
25664         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
25665         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
25666         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
25667         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
25668         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
25669         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
25670         Remove cases.
25671         * config.host: Don't handle i[34567]86-*-pe.
25672         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
25673         (ASM_SPEC32): Don't handle -mcall-gnu.
25674         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
25675         -mcall-gnu.
25676         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
25677         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
25678         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
25679         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
25680         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
25681         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
25682         conditional on SYMBIAN.
25683         * configure.ac: Don't handle powerpc*-*-gnu*.
25684         * configure: Regenerate.
25685         * doc/extend.texi (interrupt attribute): Don't mention CRX.
25686         * doc/install-old.texi (m6811, m6812): Don't mention.
25687         * doc/install.texi (arc-*-elf*): Don't document multilib option.
25688         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
25689         (m68k-uclinuxoldabi): Don't mention.
25690         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
25691         Remove.
25692         (-mcall-gnu): Remove.
25693         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
25694         families): Remove constraint documentation.
25695
25696 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
25697
25698         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
25699         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
25700         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
25701
25702 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25703
25704         PR target/48226
25705         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
25706         vector when peeking at the next token for vector, don't expand the
25707         keywords.
25708
25709 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
25710
25711         * config/avr/avr-protos.h (expand_epilogue): Change prototype
25712         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
25713         * config/avr/avr.c (init_cumulative_args)
25714         (avr_function_arg_advance): Use it.
25715         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
25716         sibcall epilogues.
25717         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
25718         (avr_function_ok_for_sibcall): ...this new function.
25719         (avr_lookup_function_attribute1): New static Function.
25720         (avr_naked_function_p, interrupt_function_p)
25721         (signal_function_p, avr_OS_task_function_p)
25722         (avr_OS_main_function_p): Use it.
25723         * config/avr/avr.md ("sibcall", "sibcall_value")
25724         ("sibcall_epilogue"): New expander.
25725         ("*call_insn", "*call_value_insn"): New insn.
25726         ("call_insn", "call_value_insn"): Remove
25727         ("call", "call_value", "epilogue"): Change expander to handle
25728         sibling calls.
25729
25730 2011-03-21  Nick Clifton  <nickc@redhat.com>
25731
25732         * doc/invoke.texi (Overall Options): Move closing brace to end of
25733         options list.
25734         (Optimization Options): Add missing @gol.
25735         (Directory Options): Likewise.
25736         (i386 and x86-64 Options): Likewise.
25737         (RS6000 and PowerPC Options): Likewise.
25738         (i386 and x86-64 Windows Options): Likewise.
25739         (V850 Options): Add text missing from descriptions.
25740
25741 2011-03-22  Richard Henderson  <rth@redhat.com>
25742
25743         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
25744         (avr_incoming_return_addr_rtx): New.
25745         (emit_push_byte): New.
25746         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
25747         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
25748         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
25749         (emit_pop_byte): New.
25750         (expand_epilogue): Use it.  Pop frame pointer by bytes.
25751         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
25752         (INCOMING_RETURN_ADDR_RTX): New.
25753         (INCOMING_FRAME_SP_OFFSET): New.
25754         (ARG_POINTER_CFA_OFFSET): New.
25755         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
25756         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
25757         (pophi): Remove.
25758
25759         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
25760
25761 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25762
25763         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25764         (FUNCTION_ARG_ADVANCE): Likewise.
25765         * tm.texi.in: Change references to them to hook references.
25766         * tm.texi: Regenerate.
25767         * targhooks.c (default_function_arg): Eliminate check for target
25768         macro.
25769         (default_function_incoming_arg): Likewise.
25770         (default_function_arg_advance): Likewise.
25771         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25772         (function_arg_advance): Likewise.
25773         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25774
25775 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25776
25777         * tree.c (build_call_1): New function.
25778         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
25779
25780 2011-03-22  Richard Guenther  <rguenther@suse.de>
25781
25782         PR tree-optimization/48228
25783         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
25784         for single-arg PHIs.
25785
25786 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
25787
25788         PR rtl-optimization/48143
25789         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
25790         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
25791         sse2_cvtps2pd): Likewise.
25792
25793 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25794
25795         * recog.c (canonicalize_change_group): Use validate_unshare_change.
25796
25797 2011-03-22  Richard Guenther  <rguenther@suse.de>
25798
25799         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
25800         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
25801         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
25802         and REALIGN_LOAD_EXPR.
25803         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
25804         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
25805         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
25806         DOT_PROD_EXPR case ...
25807         (expand_expr_real_2): ... here.
25808         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
25809         and REALIGN_LOAD_EXPR.
25810         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
25811         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
25812         (vect_create_epilog_for_reduction): Likewise.
25813         (vectorizable_reduction): Likewise.
25814         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
25815         * tree-vect-stmts.c (vectorizable_load): Likewise.
25816
25817 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
25818
25819         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
25820
25821 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25822
25823         * config/s390/s390.c (s390_delegitimize_address): Fix offset
25824         handling for PLTOFF/GOTOFF.
25825
25826 2011-03-22  Nick Clifton  <nickc@redhat.com>
25827
25828         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
25829         trailing backslash from the end of the macro definition.
25830
25831 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25832
25833         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
25834         and PLT unspecs.
25835
25836 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
25837
25838         * expr.h (prepare_operand): Move to...
25839         * optabs.h (prepare_operand): ...here and change the insn code
25840         parameter from "int" to "enum insn_code".
25841         (insn_operand_matches): Declare.
25842         * expr.c (init_expr_target): Use insn_operand_matches.
25843         (compress_float_constant): Likewise.
25844         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
25845         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
25846         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
25847         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
25848         Likewise.
25849         (gen_cond_trap): Likewise.
25850         (prepare_operand): Likewise.  Change icode to an insn_code.
25851         (insn_operand_matches): New function.
25852         * reload.c (find_reloads_address_1): Use insn_operand_matches.
25853         * reload1.c (gen_reload): Likewise.
25854         * targhooks.c (default_secondary_reload): Likewise.
25855
25856 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
25857
25858         * config/alpha/alpha.md (unspec): New define_c_enum.
25859         (unspecv): Ditto.
25860
25861 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
25862
25863         PR debug/48214
25864         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
25865         between a call and its CALL_ARG_LOCATION note.
25866
25867 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
25868
25869         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
25870
25871 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
25872
25873         PR c/42544
25874         PR c/48197
25875         * c-common.c (shorten_compare): If primopN is first sign-extended
25876         to opN and then zero-extended to result type, set primopN to opN.
25877
25878 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
25879
25880         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
25881         for barrier handlers.
25882
25883 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25884
25885         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
25886         UNSPEC constants to be in the unspec enumeration, and redefine
25887         all UNSPECV constants to be in the unspecv enumeration, so that
25888         dumps print which unspec/unspec_volatile this is.
25889         * config/rs6000/vector.md (UNSPEC_*): Ditto.
25890         * config/rs6000/paired.md (UNSPEC_*): Ditto.
25891         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
25892         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
25893         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
25894
25895         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
25896         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
25897         UNSPECV_LWSYNC, since these are used as unspec_volatile.
25898         * config/rs6000/sync.md (isync, lwsync): Ditto.
25899
25900 2011-03-21  Richard Guenther  <rguenther@suse.de>
25901
25902         * params.def (lto-min-partition): Fix typo.
25903
25904 2011-03-21  Richard Guenther  <rguenther@suse.de>
25905
25906         PR c/47939
25907         * c-decl.c (grokdeclarator): Drop to the main variant only
25908         for array types.  Drop flag_gen_aux_info check.
25909
25910 2011-03-21  Richard Guenther  <rguenther@suse.de>
25911
25912         PR translation/47911
25913         * params.def (lto-partitions): Fix typo.
25914         (lto-min-partition): Fix wording.
25915
25916 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
25917
25918         * config/rs6000/t-freebsd: Remove duplication from file.
25919
25920 2011-03-21  Richard Guenther  <rguenther@suse.de>
25921
25922         PR middle-end/47661
25923         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
25924
25925 2011-03-21  Richard Guenther  <rguenther@suse.de>
25926
25927         PR lto/48210
25928         * params.def (lto-partitions): Require at least 1 partition.
25929
25930 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25931
25932         * gthr-solaris.h: Remove.
25933         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
25934         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
25935         (LIB_SPEC): Likewise.
25936         * config/sol2.opt (threads): Remove.
25937         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
25938         (sparc*-*-solaris2*): Likewise.
25939         * configure.ac (enable_threads): Enable solaris support.
25940         * configure: Regenerate.
25941         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
25942         * doc/install.texi (Configuration, --enable-threads=lib): Remove
25943         solaris.
25944
25945 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25946
25947         * config.gcc: Obsolete *-*-solaris2.8*.
25948         * doc/install.texi (Specific, *-*-solaris2*): Document it.
25949
25950 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25951
25952         PR bootstrap/48135
25953         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
25954         reference.  Solaris 8 perl works.
25955
25956 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25957
25958         PR bootstrap/48135
25959         * doc/install.texi (Prerequisites): Move jar etc. up.
25960         Explain support library version requirements.
25961
25962 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25963
25964         PR bootstrap/48135
25965         * doc/install.texi (Prerequisites): Move Perl to build
25966         requirements.  Always necessary on Solaris 2 with Sun ld.
25967
25968 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25969
25970         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
25971         binutils 2.21.
25972         (Specific, i?86-*-solaris2.[89]): Likewise.
25973         (Specific, i?86-*-solaris2.10): Likewise.
25974         (Specific, mips-sgi-irix6): Likewise.
25975         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
25976         Update for binutils 2.21.
25977
25978 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25979
25980         * configure.ac (gcc_cv_lto_plugin): Fix typo.
25981         Allow -fuse-linker-plugin for non-default plugin linker.
25982         * configure: Regenerate.
25983
25984 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
25985
25986         PR bootstrap/48167
25987         * gengtype.c (files_rules): Added rule for cp/parser.h.
25988
25989 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
25990
25991         PR target/48213
25992         * config/s390/s390.c (s390_delegitimize_address): Don't call
25993         lowpart_subreg if orig_x has BLKmode.
25994
25995 2011-03-21  Kai Tietz  <ktietz@redhat.com>
25996
25997         PR target/12171
25998         * doc/plugins.texi: Adjust documentation for plugin register_callback.
25999         * tree.h (attribute_spec): Add new member affects_type_identity.
26000         * attribs.c (empty_attribute_table): Adjust attribute_spec
26001         initializers.
26002         * config/alpha/alpha.c: Likewise.
26003         * config/arc/arc.c: Likewise.
26004         * config/arm/arm.c: Likewise.
26005         * config/avr/avr.c: Likewise.
26006         * config/bfin/bfin.c: Likewise.
26007         * config/crx/crx.c: Likewise.
26008         * config/darwin.h: Likewise.
26009         * config/h8300/h8300.c: Likewise.
26010         * config/i386/cygming.h: Likewise.
26011         * config/i386/i386.c: Likewise.
26012         * config/ia64/ia64.c: Likewise.
26013         * config/m32c/m32c.c: Likewise.
26014         * config/m32r/m32r.c: Likewise.
26015         * config/m68hc11/m68hc11.c: Likewise.
26016         * config/m68k/m68k.c: Likewise.
26017         * config/mcore/mcore.c: Likewise.
26018         * config/mep/mep.c: Likewise.
26019         * config/microblaze/microblaze.c: Likewise.
26020         * config/mips/mips.c: Likewise.
26021         * config/rs6000/rs6000.c: Likewise.
26022         * config/rx/rx.c: Likewise.
26023         * config/sh/sh.c: Likewise.
26024         * config/sol2.h: Likewise.
26025         * config/sparc/sparc.c: Likewise.
26026         * config/spu/spu.c: Likewise.
26027         * config/stormy16/stormy16.c: Likewise.
26028         * config/v850/v850.c: Likewise.
26029
26030 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26031
26032         * simplify-rtx.c (simplify_binary_operation_1): Handle
26033         (xor (and A B) C) case when B and C are both constants.
26034
26035 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
26036
26037         * tree-dfa.c (add_referenced_var): Fix typo in comment.
26038
26039 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26040
26041         PR bootstrap/48168
26042         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
26043
26044 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
26045
26046         PR rtl-optimization/48156
26047         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
26048         assume df and df_lr are not NULL.
26049
26050 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
26051
26052         PR debug/48023
26053         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
26054         between a call and its CALL_ARG_LOCATION note.
26055
26056 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26057
26058         PR debug/48178
26059         * config/sh/sh.c (find_barrier): Don't emit a constant pool
26060         between a call and its corresponding CALL_ARG_LOCATION note.
26061
26062 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
26063
26064         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
26065         instead of loop. Use HARD_REGISTER_NUM_P predicate.
26066         * haifa-sched.c (setup_ref_regs): Ditto.
26067         * caller-save.c (add_used_regs_1): Ditto.
26068         * dse.c (look_for_hardregs): Ditto.
26069         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
26070         * sched-rgn.c (check_live_1): Ditto.
26071
26072 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26073
26074         * c-decl.c (diagnose_mismatched_decls): Give an error for
26075         redefining a typedef with variably modified type.
26076
26077 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26078
26079         * c-decl.c (grokfield): Don't allow typedefs for structures or
26080         unions with no tag by default.
26081         * doc/extend.texi (Unnamed Fields): Update.
26082
26083 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
26084
26085         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26086         Rewrite using indirect functions.
26087         (lwp_slwpcb): Ditto.
26088         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
26089         (avx_vinsertf128<mode>): Ditto.
26090
26091 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26092
26093         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
26094         unspecs.
26095
26096 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26097
26098         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
26099         splitting between a call and its corresponding CALL_ARG_LOCATION note.
26100
26101 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
26102
26103         PR rtl-optimization/48170
26104         * gcse.c (hoist_code): Remove bogus asserts.
26105
26106 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
26107
26108         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
26109         computation for prologue/epilogue.
26110
26111 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26112
26113         * Makefile.in (check-consistency): Remove.
26114
26115 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
26116
26117         PR debug/48176
26118         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
26119         arange_table_in_use is 0, but either text_section_used or
26120         cold_text_section_used is true.  Don't call it if
26121         !info_section_emitted.
26122
26123 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
26124
26125         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
26126         FUNCTION_VALUE_REGNO_P): Remove.
26127         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
26128         Remove.
26129         * config/avr/avr.c (avr_ret_register): Make static inline.
26130         (avr_function_value_regno_p): New function.
26131         (avr_libcall_value): Make static. Add 'func' argument.
26132         (avr_function_value): Make static. Rename 'func' argument to
26133         'fn_decl_or_type', forward it to avr_libcall_value. Call
26134         avr_ret_register function instead of RET_REGISTER macro.
26135         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26136
26137 2011-03-18  Jason Merrill  <jason@redhat.com>
26138
26139         PR c++/23372
26140         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
26141
26142 2011-03-18  Richard Guenther  <rguenther@suse.de>
26143
26144         * doc/install.texi (--enable-gold): Remove.
26145         (--with-plugin-ld): Document.
26146         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
26147
26148 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
26149
26150         PR middle-end/47790
26151         * expr.c (optimize_bitfield_assignment_op): Revamp to work
26152         again after expansion changes.
26153
26154 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
26155
26156         * combine.c (try_combine): Do simplification only call of
26157         subst() on i2 even when i1 is present. Update comments.
26158
26159 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
26160
26161         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
26162         and UNSPEC_PCREL_SYMOFF.
26163
26164 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26165
26166         * config/s390/s390.md: Use define_c_enum for the unspec constant
26167         definitions.
26168
26169 2011-03-18  Richard Henderson  <rth@redhat.com>
26170             Jakub Jelinek  <jakub@redhat.com>
26171
26172         PR bootstrap/48161
26173         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
26174         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
26175
26176 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
26177
26178         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
26179         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
26180         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
26181         Change return type to bool.
26182         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
26183
26184 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
26185
26186         PR debug/48163
26187         * var-tracking.c (prepare_call_arguments): If CALL target
26188         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
26189         pc instead of looking it up using cselib_lookup and use
26190         Pmode for it if x has VOIDmode.
26191         * dwarf2out.c (gen_subprogram_die): If also both first and
26192         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
26193
26194         PR debug/48163
26195         * function.c (assign_parms): For data.passed_pointer parms
26196         use MEM of data.entry_parm instead of data.entry_parm itself
26197         as DECL_INCOMING_RTL.
26198         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
26199         also when passed and declared mode is the same, DECL_RTL
26200         is a MEM with pseudo as address and DECL_INCOMING_RTL is
26201         a MEM too.
26202
26203 2011-03-16  Jeff Law  <law@redhat.com>
26204
26205         PR rtl-optimization/37273
26206         * ira-costs.c (scan_one_insn): Detect constants living in memory and
26207         handle them like argument loads from stack slots.  Do not double
26208         count memory for memory constants and argument loads from stack slots.
26209
26210 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
26211
26212         PR debug/48160
26213         * var-tracking.c (prepare_call_arguments): Check SUBREG.
26214
26215 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
26216
26217         PR target/48171
26218         * config/i386/i386.opt: Add Save to -mavx and -mfma.
26219
26220 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
26221
26222         PR bootstrap/48153
26223         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
26224         if dwarf_strict.
26225         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
26226         Clear call_arg_locations and call_arg_loc_last always.
26227
26228         PR middle-end/48152
26229         * var-tracking.c (prepare_call_arguments): If argument needs to be
26230         passed by reference, adjust argtype and mode.
26231
26232 2011-03-17  Richard Guenther  <rguenther@suse.de>
26233
26234         PR middle-end/48134
26235         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
26236         a value make sure to fold the statement.
26237
26238 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
26239
26240         PR target/43872
26241         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
26242         return condition with !cfun->calls_alloca.
26243
26244 2011-03-17  Richard Guenther  <rguenther@suse.de>
26245
26246         PR bootstrap/48148
26247         * lto-cgraph.c (input_overwrite_node): Clear the abstract
26248         origin for decls in other ltrans units.
26249         (input_varpool_node): Likewise.
26250
26251 2011-03-17  Richard Guenther  <rguenther@suse.de>
26252
26253         PR middle-end/48165
26254         * tree-object-size.c (compute_object_offset): Properly return
26255         the offset operand of MEM_REFs as sizetype.
26256
26257 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
26258
26259         PR rtl-optimization/48141
26260         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
26261         * dse.c: Include params.h.
26262         (active_local_stores_len): New variable.
26263         (add_wild_read, dse_step1): Clear it when setting active_local_stores
26264         to NULL.
26265         (record_store, check_mem_read_rtx): Decrease it when removing
26266         from the chain.
26267         (scan_insn): Likewise.  Increase it when adding to chain, if it
26268         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
26269         set active_local_stores to NULL before the addition.
26270         * Makefile.in (dse.o): Depend on $(PARAMS_H).
26271
26272         PR rtl-optimization/48141
26273         * dse.c (record_store): If no positions are needed in an insn
26274         that cannot be deleted, at least unchain it from active_local_stores.
26275
26276 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
26277
26278         PR debug/47510
26279         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
26280         (lookup_type_die_strip_naming_typedef): ... here.
26281         (get_context_die): Use it.
26282         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
26283         the anonymous struct named by the naming typedef.
26284
26285 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
26286
26287         PR target/48154
26288         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
26289         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
26290
26291 2011-03-16  Jeff Law  <law@redhat.com>
26292
26293         * tree-vrp.c (identify_jump_threads): Slightly simplify type
26294         check for operands of conditional.  Allow type to be a pointer.
26295
26296 2011-03-16  Richard Guenther  <rguenther@suse.de>
26297
26298         PR tree-optimization/48149
26299         * fold-const.c (fold_binary_loc): Fold
26300         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
26301
26302 2011-03-16  Richard Guenther  <rguenther@suse.de>
26303
26304         PR tree-optimization/26134
26305         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
26306         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
26307         (non_rewritable_mem_ref_base): Handle complex type component
26308         accesses, constrain offsets for vector and complex extracts
26309         more properly.
26310
26311 2011-03-16  Richard Guenther  <rguenther@suse.de>
26312
26313         PR tree-optimization/48146
26314         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
26315         operands avoiding the need for renaming.
26316
26317 2011-03-16  Richard Guenther  <rguenther@suse.de>
26318
26319         * gimple-fold.c (maybe_fold_reference): Open-code relevant
26320         constant folding.  Move MEM_REF canonicalization first.
26321         Rely on fold_const_aggregate_ref for initializer folding.
26322         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
26323
26324 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
26325
26326         PR middle-end/48136
26327         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
26328         arg0/arg1 or their arguments are always fold converted to matching
26329         types.
26330
26331         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
26332         to nargs.
26333
26334 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26335
26336         PR lto/46944
26337         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
26338         Handle in-tree gold.
26339         (ld_vers): Extract binutils version for gold.
26340         (gcc_cv_ld_hidden): Handle gold here.
26341         (gcc_cv_lto_plugin): Determine level of linker plugin support.
26342         * configure: Regenerate.
26343         * config.in: Regenerate.
26344         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
26345         -fuse-linker-plugin otherwise.
26346         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
26347         (LINK_COMMAND_SPEC): Use it.
26348         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
26349
26350 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
26351
26352         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
26353         * calls.c: Remove debug.h include.
26354         (emit_call_1): Don't call virtual_call_token debug hook.
26355         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
26356         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
26357         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
26358         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
26359         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
26360         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
26361         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
26362         dwarf2out_virtual_call): Remove.
26363         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
26364         copy_call_info and virtual_call hooks.
26365         (dwarf2out_init): Don't initialize vcall_insn_table,
26366         debug_dcall_section and debug_vcall_section.
26367         (prune_unused_types): Don't mark nodes from dcall_table.
26368         (dwarf2out_finish): Don't output dcall or vcall tables.
26369         * final.c (final_scan_insn): Don't call direct_call or
26370         virtual_call debug hooks.
26371         * debug.h (struct gcc_debug_hooks): Remove direct_call,
26372         virtual_call_token, copy_call_info and virtual_call hooks.
26373         (debug_nothing_uid): Remove prototype.
26374         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
26375         copy_call_info and virtual_call hooks.
26376         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26377         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
26378         * debug.c (do_nothing_debug_hooks): Likewise.
26379         (debug_nothing_uid): Remove.
26380         * doc/invoke.texi (-fenable-icf-debug): Remove.
26381         * common.opt (-fenable-icf-debug): Likewise.
26382
26383         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
26384         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
26385         call's MEM.  Handle functions returning aggregate through a hidden
26386         first pointer.  For virtual calls add clobbered pc to call arguments
26387         chain.
26388         * dwarf2out.c (gen_subprogram_die): Emit
26389         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
26390         can't be emitted.
26391
26392         PR debug/45882
26393         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
26394         * rtl.h (ENTRY_VALUE_EXP): Define.
26395         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
26396         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
26397         * print-rtl.c (print_rtx): Likewise.
26398         * gengtype.c (adjust_field_rtx_def): Likewise.
26399         * var-tracking.c (vt_add_function_parameter): Adjust
26400         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
26401         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
26402         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
26403         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
26404         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
26405
26406         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
26407         Call var_location debug hook even on CALL_INSNs.
26408         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
26409         * rtl.def (ENTRY_VALUE): New.
26410         * dwarf2out.c: Include cfglayout.h.
26411         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
26412         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
26413         (struct call_arg_loc_node): New type.
26414         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
26415         tail_call_site_count): New variables.
26416         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
26417         DW_TAG_GNU_call_site_parameter.
26418         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
26419         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
26420         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
26421         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
26422         and DW_AT_GNU_all_source_call_sites.
26423         (mem_loc_descriptor): Handle ENTRY_VALUE.
26424         (add_src_coords_attributes): Don't add enything if
26425         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
26426         (dwarf2out_abstract_function): Save and clear call_arg_location,
26427         call_site_count and tail_call_site_count around dwarf2out_decl call.
26428         (gen_call_site_die): New function.
26429         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
26430         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
26431         (dwarf2out_function_decl): Clear call_arg_locations,
26432         call_arg_loc_last, set call_site_count and tail_call_site_count
26433         to -1 and free block_map.
26434         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
26435         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
26436         followed by any real instructions.
26437         (dwarf2out_begin_function): Set call_site_count and
26438         tail_call_site_count to 0.
26439         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
26440         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
26441         attempt to force a DIE for it and worst case remove the attribute.
26442         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
26443         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
26444         the decl itself.
26445         * var-tracking.c: Include tm_p.h.
26446         (vt_stack_adjustments): For calls call note_register_arguments.
26447         (argument_reg_set): New variable.
26448         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
26449         ensure the VALUE is resolved.
26450         (call_arguments): New variable.
26451         (prepare_call_arguments): New function.
26452         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
26453         (struct expand_loc_callback_data): Add ignore_cur_loc field.
26454         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
26455         always use the best expression.
26456         (vt_expand_loc): Add ignore_cur_loc argument.
26457         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
26458         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
26459         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
26460         note for all calls.
26461         (vt_add_function_parameter): Use cselib_lookup_from_insn.
26462         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
26463         argument.  Don't call cselib_preserve_only_values and
26464         cselib_reset_table.
26465         (note_register_arguments): New function.
26466         (vt_initialize): Compute argument_reg_set.  Call
26467         vt_add_function_parameters before processing basic blocks instead of
26468         afterwards.  For calls call prepare_call_arguments before calling
26469         cselib_process_insn.
26470         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
26471         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
26472         (var-tracking.o): Depend on $(TM_P_H).
26473         * cfglayout.h (insn_scope): New prototype.
26474         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
26475         * cfglayout.c (insn_scope): No longer static.
26476         * insn-notes.def (CALL_ARG_LOCATION): New.
26477         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
26478         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
26479         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
26480         nothing for DECL_EXTERNAL BLOCK_VARS.
26481
26482 2011-03-16  Alan Modra  <amodra@gmail.com>
26483
26484         PR target/45844
26485         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
26486         create invalid offset address for vsx splat insn.
26487         * config/rs6000/predicates.md (splat_input_operand): New.
26488         * config/rs6000/vsx.md (vsx_splat_*): Use it.
26489
26490 2011-03-15  Xinliang David Li  <davidxl@google.com>
26491
26492         PR c/47837
26493         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
26494         (normalize_preds): New function.
26495         (is_use_properly_guarded): Normalize def predicates.
26496
26497 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
26498
26499         PR target/46788
26500         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
26501         in the output template.
26502
26503 2011-03-15  Richard Guenther  <rguenther@suse.de>
26504
26505         PR middle-end/47650
26506         * tree-pretty-print.c (dump_function_declaration): Properly
26507         dump unprototyped and varargs function types.
26508
26509 2011-03-15  Richard Guenther  <rguenther@suse.de>
26510
26511         PR tree-optimization/13954
26512         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
26513         and friends.
26514
26515 2011-03-15  Richard Guenther  <rguenther@suse.de>
26516
26517         PR tree-optimization/48037
26518         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
26519         selects into BIT_FIELD_REFs.
26520         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
26521         vector select.
26522
26523 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
26524
26525         PR tree-optimization/48129
26526         * builtins.c (fold_builtin_snprintf): Convert to type of
26527         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
26528         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
26529
26530 2011-03-15  Richard Guenther  <rguenther@suse.de>
26531
26532         PR tree-optimization/41490
26533         * tree-ssa-dce.c (propagate_necessity): Handle returns without
26534         value but with VUSE.
26535         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
26536         return statements.
26537         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
26538         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
26539         * tree-tailcall.c (find_tail_calls): Ignore returns.
26540
26541 2011-03-15  Richard Guenther  <rguenther@suse.de>
26542
26543         PR middle-end/48031
26544         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
26545         or variable-indexed array accesses when in gimple form.
26546
26547 2011-03-15  Richard Guenther  <rguenther@suse.de>
26548
26549         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
26550
26551 2011-03-15  Alan Modra  <amodra@gmail.com>
26552
26553         PR target/48032
26554         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
26555         presume symbol_refs without a symbol_ref_decl are suitably
26556         aligned, nor other trees we may see here.  Handle anchor symbols.
26557         (legitimate_constant_pool_address_p): Comment.  Add mode param.
26558         Check cmodel=medium addresses.  Adjust all calls.
26559         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
26560         creating cmodel=medium optimized access to locals.
26561         * config/rs6000/constraints.md (R): Pass QImode to
26562         legitimate_constant_pool_address_p.
26563         * config/rs6000/predicates.md (input_operand): Pass mode to
26564         legitimate_constant_pool_address_p.
26565         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
26566         Update prototype.
26567
26568 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
26569
26570         PR target/48053
26571         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
26572         64-bit constants being loaded into registers other than GPRs such
26573         as loading 0 into a VSX register.
26574
26575 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26576
26577         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
26578
26579 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
26580
26581         PR middle-end/47917
26582         * builtins.c (fold_builtin_snprintf): New function.
26583         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
26584         (fold_builtin_4): Likewise.
26585
26586         PR middle-end/38878
26587         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
26588         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
26589         and C - X == X also strip nops from +/-/p+ operand.
26590         When optimizing -X == C, fold C to arg0's type.
26591
26592         PR debug/47946
26593         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
26594         emit it as add_AT_int instead of add_AT_unsigned.
26595
26596 2011-03-14  Tom Tromey  <tromey@redhat.com>
26597
26598         * unwind-dw2.c: Include sys/sdt.h if it exists.
26599         (_Unwind_DebugHook): Use STAP_PROBE2.
26600         * config.in, configure: Rebuild.
26601         * configure.ac: Check for sys/sdt.h.
26602
26603 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
26604
26605         * config/i386/i386.md (ROUND_FLOOR): New constant.
26606         (ROUND_CEIL): Ditto.
26607         (ROUND_TRUNC): Ditto.
26608         (ROUND_MXCSR): Ditto.
26609         (ROUND_NO_EXC): Ditto.
26610         (rint<mode>2): Use new defines instead of numerical constants.
26611         (floor<mode>2): Ditto.
26612         (ceil<mode>2): Ditto.
26613         (btrunc<mode>2): Ditto.
26614         * config/i386/i386-builtin-types.def: Define ROUND function type
26615         aliases.
26616         * config/i386/i386.c (enum ix86_builtins): Add
26617         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
26618         (struct builtin_description): Add
26619         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
26620         (ix86_expand_sse_round): New static function.
26621         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
26622         function types.
26623         (ix86_builtin_vectorized_function): Handle
26624         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
26625
26626 2011-03-14  Tom Tromey  <tromey@redhat.com>
26627
26628         * c-parser.c (c_parser_asm_string_literal): Clear
26629         warn_overlength_strings.
26630
26631 2011-03-14  Tom Tromey  <tromey@redhat.com>
26632
26633         * c-parser.c (disable_extension_diagnostics): Save
26634         warn_overlength_strings.
26635         (restore_extension_diagnostics): Restore warn_overlength_strings.
26636
26637 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
26638
26639         * BASE-VER: Change to 4.7.0.
26640
26641 2011-03-14  Richard Guenther  <rguenther@suse.de>
26642
26643         PR middle-end/48098
26644         * tree.c (build_vector_from_val): Adjust assert to requirements
26645         and reality.
26646
26647 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
26648
26649         PR bootstrap/48102
26650         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
26651
26652 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
26653
26654         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
26655         terms of target_flags_explicit. Adjust copyright year.
26656
26657         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
26658         * config/rs6000/t-freebsd: New file. Add override for
26659         LIB2FUNCS_EXTRA.
26660
26661 2011-03-13  Chris Demetriou  <cgd@google.com>
26662
26663         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
26664         (-fno-diagnostics-show-option): this, to reflect current default.
26665         (-Werror=): Update text about -fno-diagnostics-show-option.
26666
26667 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
26668
26669         PR target/48053
26670         * config/rs6000/predicates.md (easy_vector_constant_add_self,
26671         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
26672         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
26673         mode is not V2DImode or V2DFmode.
26674         (vspltis_constant): Do not handle V2DImode and V2DFmode.
26675         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
26676         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
26677         registers to 0.
26678         (movdi_internal64): Likewise.
26679
26680 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
26681
26682         PR tree-optimization/47127
26683         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
26684         parameter.
26685         (set_cloog_options): Same.
26686         (scop_to_clast): Same.
26687         (print_clast_stmt): Do not call cloog_state_malloc and
26688         cloog_state_free.
26689         (print_generated_program): Same.
26690         (gloog): Same.
26691         * graphite-clast-to-gimple.h (cloog_state): Declared.
26692         (scop_to_clast): Adjust declaration.
26693         * graphite.c (cloog_state): Defined here.
26694         (graphite_initialize): Call cloog_state_malloc.
26695         (graphite_finalize): Call cloog_state_free.
26696
26697 2011-03-11  Jason Merrill  <jason@redhat.com>
26698
26699         * attribs.c (lookup_attribute_spec): Take const_tree.
26700         * tree.h: Adjust.
26701
26702 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
26703
26704         * config/sparc/sparc.c (sparc_option_override): Use
26705         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
26706
26707 2011-03-11  Richard Guenther  <rguenther@suse.de>
26708
26709         PR tree-optimization/48067
26710         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
26711         multiplication result will be only used once on the target
26712         stmt.
26713
26714 2011-03-11  Richard Guenther  <rguenther@suse.de>
26715
26716         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
26717
26718 2011-03-11  Richard Guenther  <rguenther@suse.de>
26719
26720         PR lto/48073
26721         * tree.c (find_decls_types_r): Do not walk types only reachable
26722         from IDENTIFIER_NODEs.
26723
26724 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
26725
26726         PR middle-end/48044
26727         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
26728         all vnode->force_output nodes as needed.
26729
26730 2011-03-11  Jason Merrill  <jason@redhat.com>
26731
26732         PR c++/48069
26733         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
26734         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
26735
26736 2011-03-11  Martin Jambor  <mjambor@suse.cz>
26737
26738         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
26739         cgraph_node.
26740
26741 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
26742
26743         PR tree-optimization/48063
26744         * ipa-inline.c (cgraph_decide_inlining): Don't try to
26745         inline functions called once if !tree_can_inline_p (node->callers).
26746
26747 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
26748
26749         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
26750         extra_objs.
26751         * config/score/score3.c: Delete.
26752         * config/score/score3.h: Delete.
26753         * config/score/mul-div.S: Delete.
26754         * config/score/sfp-machine.h: Add new file.
26755         * config/score/constraints.md: Add new file.
26756         * config/score/t-score-softfp: Add new file.
26757         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
26758         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
26759         (score7_extra_constraint): Delete.
26760         (score7_option_override): Remove unused code.
26761         * config/score/score.c: Remove score3 and score5 define and code.
26762         * config/score/score.h: Remove score3 and score5 define and code.
26763         * config/score/score.md: Remove score3 template and unusual insn.
26764         * config/score/score.opt: Remove score3 and score5 options.
26765
26766 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26767
26768         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
26769         when _HPUX_SOURCE is defined.
26770         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
26771
26772 2011-03-10  Jason Merrill  <jason@redhat.com>
26773
26774         PR c++/48029
26775         * stor-layout.c (layout_type): Don't set structural equality
26776         on arrays of incomplete type.
26777         * tree.c (type_hash_eq): Handle comparing them properly.
26778
26779 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
26780
26781         PR debug/48043
26782         * config/s390/s390.c (s390_delegitimize_address): Make sure the
26783         result mode matches original rtl mode.
26784
26785 2011-03-10  Nick Clifton  <nickc@redhat.com>
26786
26787         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
26788         (andsi3, andsi3_flags): Fix timings for three operand alternative.
26789
26790 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
26791
26792         PR rtl-optimization/47866
26793         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
26794         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
26795         if target wasn't scalar.
26796         * function.c (assign_stack_temp_for_type): Assert that neither
26797         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
26798         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
26799         macro.
26800         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
26801
26802 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26803
26804         * config/s390/s390-protos.h (s390_label_align): New prototype.
26805         * config/s390/s390.c (s390_label_align): New function.
26806         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
26807
26808 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
26809
26810         PR target/47755
26811         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
26812         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
26813         (output_vec_const_move): Ditto.
26814
26815 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
26816
26817         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
26818         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
26819         * config/mips/mips.c (mips_preferred_reload_class): Make static.
26820         Change 'rclass' argument and result type to reg_class_t.
26821         (TARGET_PREFERRED_RELOAD_CLASS): Define.
26822
26823 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
26824
26825         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26826         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
26827         (TARGET_MEMORY_MOVE_COST): Define.
26828         (avr_register_move_cost, avr_memory_move_cost): New Functions.
26829
26830 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
26831
26832         PR debug/47881
26833         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
26834         removed anything.
26835
26836         PR tree-optimization/48022
26837         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
26838         for EQ/NE_EXPR.
26839
26840 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
26841
26842         PR debug/47991
26843         * var-tracking.c (find_use_val): Return NULL for
26844         cui->sets && cui->store_p BLKmode MEMs.
26845
26846 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
26847
26848         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
26849         Remove.
26850         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
26851         xstormy16_print_operand_address): Remove.
26852         * config/stormy16/stormy16.c (xstormy16_print_operand,
26853         xstormy16_print_operand_address): Make static.
26854         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26855
26856 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
26857
26858         PR target/47862
26859         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
26860         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
26861         before definition.
26862
26863 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
26864
26865         PR bootstrap/48000
26866         * cfgloopmanip.c (fix_bb_placements): Return immediately
26867         if FROM is BASE_LOOP's header.
26868
26869 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
26870
26871         * gimplify.c (gimplify_function_tree): Fix building calls
26872         to __builtin_return_address.
26873
26874 2011-03-07  Alan Modra  <amodra@gmail.com>
26875
26876         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
26877         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
26878         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
26879         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
26880         return_mode args.
26881         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
26882         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
26883         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
26884         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
26885         * config/rs6000/rs6000.c
26886         (rs6000_elf_end_indicate_exec_stack): Rename to..
26887         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
26888         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
26889         (rs6000_file_start): ..here.
26890         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
26891         file scope variables.
26892         (call_ABI_of_interest): New function.
26893         (init_cumulative_args): Set above vars when function return value
26894         is a float, vector, or small struct.
26895         (rs6000_function_arg_advance_1): Likewise for function args.
26896         (rs6000_va_start): Set rs6000_passes_float if variable arg function
26897         references float args.
26898
26899 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
26900
26901         * doc/cfg.texi: Remove "See" before @ref.
26902         * doc/invoke.texi: Likewise.
26903
26904 2011-03-05  Jason Merrill  <jason@redhat.com>
26905
26906         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
26907
26908 2011-03-05  Anthony Green  <green@moxielogic.com>
26909
26910         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
26911
26912 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
26913
26914         PR rtl-optimization/47899
26915         * cfgloopmanip.c (fix_bb_placements): Fix first argument
26916         to flow_loop_nested_p when moving the loop upward.
26917
26918 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
26919
26920         PR target/47719
26921         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
26922
26923 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
26924
26925         PR tree-optimization/47967
26926         * ipa-cp.c (build_const_val): Return NULL instead of creating
26927         VIEW_CONVERT_EXPR for mismatching sizes.
26928         (ipcp_create_replace_map): Return NULL if build_const_val failed.
26929         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
26930         give up on versioning.
26931
26932 2011-03-05  Alan Modra  <amodra@gmail.com>
26933
26934         PR target/47986
26935         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26936         full cmodel medium/large lo_sum + high addresses.
26937
26938 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26939
26940         * config/s390/s390.c (s390_decompose_address): Reject non-literal
26941         pool references in UNSPEC_LTREL_OFFSET.
26942
26943 2011-03-04  Jan Hubicka  <jh@suse.cz>
26944
26945         PR lto/47497
26946         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
26947         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
26948         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
26949         Add node pointers.
26950         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
26951         cgraph_add_thunk): Add node pointers.
26952         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
26953         associated to right node.
26954         (input_node): Update use of cgraph_same_body_alias
26955         and cgraph_add_thunk.
26956
26957 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
26958
26959         * config/i386/i386.opt (mprefer-avx128): New flag.
26960         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
26961         modes when the flag -mprefer-avx128 is on.
26962
26963 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
26964
26965         * dwarf2out.c (compare_loc_operands): Fix address handling.
26966
26967 2011-03-04  Alan Modra  <amodra@gmail.com>
26968
26969         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
26970
26971 2011-03-04  Richard Guenther  <rguenther@suse.de>
26972
26973         PR middle-end/47968
26974         * expmed.c (extract_bit_field_1): Prefer vector modes that
26975         vec_extract patterns can handle.
26976
26977 2011-03-04  Richard Guenther  <rguenther@suse.de>
26978
26979         PR middle-end/47975
26980         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
26981
26982 2011-03-04  Richard Henderson  <rth@redhat.com>
26983
26984         * explow.c (emit_stack_save): Remove 'after' parameter.
26985         (emit_stack_restore): Likewise.
26986         * expr.h: Update to match.
26987         * builtins.c, calls.c, stmt.c: Likewise.
26988         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
26989         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
26990         * function.c (expand_function_end): Insert the emit_stack_save
26991         sequence before parm_birth_insn instead of after.
26992
26993 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
26994
26995         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
26996         (ssse3_pmaddubsw128): Ditto.
26997         (ssse3_pmaddubsw): Ditto.
26998
26999 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
27000
27001         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
27002
27003 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
27004
27005         PR c/47963
27006         * gimplify.c (omp_add_variable): Only call omp_notice_variable
27007         on TYPE_SIZE_UNIT if it is a DECL.
27008
27009         PR debug/47283
27010         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
27011         first operand is not is_gimple_mem_ref_addr, try to fold it.
27012         If the operand still isn't is_gimple_mem_ref_addr, clear
27013         MEM_EXPR on op0.
27014
27015 2011-03-03  Richard Guenther  <rguenther@suse.de>
27016
27017         PR middle-end/47283
27018         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
27019         match comment.
27020         (refs_may_alias_p_1): For release branches return true if
27021         we are confused by our input.
27022
27023 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27024
27025         * config/s390/s390.c (s390_function_value): Rename to ...
27026         (s390_function_and_libcall_value): ... this.
27027         (s390_function_value): New function.
27028         (s390_libcall_value): New function.
27029         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
27030         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
27031         target macro definitions.
27032         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
27033
27034 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
27035
27036         * config/i386/freebsd64.h (CC1_SPEC): Define.
27037         * config/i386/linux64.h (CC1_SPEC): Define.
27038         * config/i386/x86-64.h (CC1_SPEC): Don't define.
27039
27040 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
27041
27042         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27043         Remove.
27044         * config/stormy16/stormy16.c: Include reload.h.
27045         (xstormy16_memory_move_cost): New function.
27046         (TARGET_MEMORY_MOVE_COST): Define.
27047
27048 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
27049
27050         PR rtl-optimization/47925
27051         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
27052         with side effects.  Remove the more-specific check for volatile asms.
27053
27054 2011-03-02  Alan Modra  <amodra@gmail.com>
27055
27056         PR target/47935
27057         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
27058         toc relative addresses for valid offsets.
27059
27060 2011-03-01  Richard Guenther  <rguenther@suse.de>
27061
27062         PR tree-optimization/47890
27063         * tree-vect-loop.c (get_initial_def_for_induction): Set
27064         related stmt properly.
27065
27066 2011-03-01  Richard Guenther  <rguenther@suse.de>
27067
27068         PR lto/47924
27069         * lto-streamer.c (lto_record_common_node): Also register
27070         the canonical type.
27071
27072 2011-03-01  Richard Guenther  <rguenther@suse.de>
27073
27074         PR lto/46911
27075         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27076         Do not stream DECL_ABSTRACT_ORIGIN.
27077         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27078         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27079         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27080         Do not stream DECL_ABSTRACT_ORIGIN.
27081         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27082         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27083
27084 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
27085
27086         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
27087         FUNCTION_VALUE_REGNO_P): Remove.
27088         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
27089         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
27090         Add 'outgoing' argument.
27091         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
27092         function.
27093         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27094         TARGET_FUNCTION_VALUE_REGNO_P): Define.
27095
27096 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
27097
27098         PR debug/28047
27099         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
27100         (lookup_filename): Likewise.
27101         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
27102
27103 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
27104             Jakub Jelinek  <jakub@redhat.com>
27105
27106         PR middle-end/47893
27107         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
27108         (assign_stack_local_1): Change last argument type to int.
27109         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
27110         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
27111         don't record padding space into frame_space_list nor use those areas.
27112         (assign_stack_local): Adjust caller.
27113         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
27114         of assign_stack_local, pass 0 as last argument.
27115         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
27116         callers.
27117
27118 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
27119
27120         PR debug/47283
27121         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
27122         Use target address_mode and pointer_mode hooks instead of hardcoded
27123         Pmode and ptr_mode.  Handle some simple cases of extending if
27124         POINTERS_EXTEND_UNSIGNED < 0.
27125         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
27126         Call convert_debug_memory_address.
27127         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
27128         convert_debug_memory_address.
27129
27130         PR middle-end/46790
27131         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
27132         * configure: Regenerated.
27133         * config.in: Regenerated.
27134         * varasm.c (default_function_section): Return NULL
27135         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
27136
27137 2011-02-28  Martin Jambor  <mjambor@suse.cz>
27138
27139         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
27140         the description to match the printed values.
27141
27142 2011-02-28  Richard Guenther  <rguenther@suse.de>
27143
27144         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
27145         of the copied scope tree.
27146
27147 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27148
27149         * doc/extend.texi (Function Attributes): Avoid deeply (and
27150         wrongly) nested tables.
27151
27152 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
27153
27154         PR middle-end/47903
27155         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
27156         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
27157         r isn't op0 nor op1.
27158
27159 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
27160
27161         * config/avr/avr.md: Remove magic comment for emacs.
27162
27163 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
27164
27165         PR target/45261
27166         * config/avr/avr.c (avr_option_override): Use error on bad options.
27167         (avr_help): New function.
27168         (TARGET_HELP): Define.
27169
27170 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
27171
27172         PR target/42240
27173         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
27174         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
27175
27176 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
27177
27178         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
27179         (ARM Options): Ditto.
27180         (i386 and x86-64 Options): Ditto.
27181         (RX Options): Ditto.
27182         (SPARC Options): Ditto.
27183
27184 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
27185
27186         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
27187         FreeBSD 6 and later.  Generally use cpu generic.
27188
27189 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
27190
27191         * doc/cpp.texi: Update copyright years.
27192
27193 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
27194
27195         PR target/46898
27196         * config/lm32/lm32.md (ashrsi3): Added needed variable.
27197
27198 2011-02-25  Jon Beniston  <jon@beniston.com>
27199
27200         PR target/46898
27201         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
27202         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
27203         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
27204         (lm32_block_move_inline): Add type cast to remove warning.
27205         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
27206         (gen_int_relational): Move declarations to start of function.
27207
27208 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
27209
27210         PR tree-optimization/45470
27211         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
27212         can throw internally only.
27213         * tree-vect-stmts.c (vectorizable_call): Likewise.
27214
27215 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
27216
27217         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
27218         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27219         * config/stormy16/stormy16-protos.h
27220         (xstormy16_preferred_reload_class): Remove.
27221         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
27222         static. Change 'rclass' argument and return type to reg_class_t.
27223         (TARGET_PREFERRED_RELOAD_CLASS,
27224         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27225
27226 2011-02-24  Richard Guenther  <rguenther@suse.de>
27227
27228         * lto-streamer-in.c (input_bb): Do not find referenced vars
27229         in debug statements.
27230
27231 2011-02-23  Jason Merrill  <jason@redhat.com>
27232
27233         * common.opt (fabi-version): Document v5 and v6.
27234
27235 2011-02-23  Richard Guenther  <rguenther@suse.de>
27236
27237         PR tree-optimization/47849
27238         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
27239
27240 2011-02-23  Jie Zhang  <jie@codesourcery.com>
27241
27242         * opts-common.c (decode_cmdline_option): Print empty string
27243         argument as "" in decoded->orig_option_with_args_text.
27244         * gcc.c (execute): Print empty string argument as ""
27245         in the verbose output.
27246         (do_spec_1): Keep empty string argument.
27247
27248 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
27249
27250         * config.gcc: Declare score-* and crx-* obsolete.
27251
27252 2011-02-23  Jie Zhang  <jie@codesourcery.com>
27253
27254         PR rtl-optimization/47763
27255         * web.c (web_main): Ignore naked clobber when replacing register.
27256
27257 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
27258
27259         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
27260         Remove.
27261
27262 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27263
27264         PR doc/47848
27265         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
27266
27267 2011-02-22  Mike Stump  <mikestump@comcast.net>
27268
27269         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
27270         assembler.
27271         * configure: Regenerate.
27272
27273 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
27274
27275         PR rtl-optimization/46002
27276         * ira-color.c (update_copy_costs): Change class intersection
27277         test to reg_class_contents[] test of 'hard_regno'.
27278
27279 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
27280
27281         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
27282         than Driver option.
27283         * config/hpux11.opt (mt): Likewise.
27284         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
27285         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
27286         * config/vax/elf.opt (mno-asm-pic): Likewise.
27287         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
27288
27289 2011-02-21  Mike Stump  <mikestump@comcast.net>
27290
27291         PR target/47822
27292         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
27293         tree so we can get save the type.
27294         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
27295         for CFString instead of trying to use past the end of the builtins.
27296         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
27297         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
27298         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
27299         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
27300         Rename to darwin_builtin_cfstring.
27301         (darwin_init_cfstring_builtins): Return the built type.
27302
27303 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
27304
27305         PR target/47840
27306         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
27307         (_mm256_insert_epi64): Use _mm_insert_epi64.
27308
27309 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
27310
27311         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27312         * config/stormy16/stormy16-protos.h
27313         (xstormy16_mode_dependent_address_p): Remove.
27314         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
27315         Make static. Change return type to bool. Change argument type to
27316         const_rtx. Remove dead code.
27317         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27318
27319 2011-02-21  Richard Guenther  <rguenther@suse.de>
27320
27321         PR lto/47820
27322         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27323         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
27324         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
27325         TUs context.
27326         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27327         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
27328
27329 2011-02-20  Richard Guenther  <rguenther@suse.de>
27330
27331         PR lto/47822
27332         * tree.c (free_lang_data_in_decl): Clean builtins from
27333         the TU decl BLOCK_VARS.
27334
27335 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
27336
27337         PR debug/47620
27338         PR debug/47630
27339         * haifa-sched.c (fix_tick_ready): Skip tick computation
27340         for debug insns.
27341
27342 2011-02-19  Richard Guenther  <rguenther@suse.de>
27343
27344         PR lto/47647
27345         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
27346         Remove lazy BLOCK_VARS streaming.
27347         (lto_input_ts_block_tree_pointers): Likewise.
27348         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
27349
27350 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
27351
27352         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
27353
27354 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
27355
27356         * config/i386/biarch32.h, config/i386/mach.h,
27357         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
27358
27359 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
27360
27361         PR target/47800
27362         * config/i386/i386.md (peephole2 for shift and plus): Use
27363         operands[1] original mode in the first insn.
27364
27365 2011-02-18  Mike Stump  <mikestump@comcast.net>
27366
27367         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
27368
27369 2011-02-18  Jan Hubicka  <jh@suse.cz>
27370
27371         PR middle-end/47788
27372         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
27373         to zero when the function is not inlinable at all.
27374
27375 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27376
27377         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
27378         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
27379         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
27380         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
27381         * config/pa/t-pa64: Likewise.
27382         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
27383
27384 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
27385
27386         PR driver/47787
27387         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
27388
27389 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27390
27391         PR target/47792
27392         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
27393
27394 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
27395
27396         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
27397         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
27398         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
27399         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
27400         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
27401         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
27402         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
27403         m32r_load_postinc_p, m32r_store_preinc_predec_p,
27404         m32r_legitimate_address_p): New functions.
27405         * config/m32r/constraints.md (constraint "S"): Don't use
27406         STORE_PREINC_PREDEC_P.
27407         (constraint "U"): Don't use LOAD_POSTINC_P.
27408
27409 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
27410
27411         PR rtl-optimization/46178
27412         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
27413         compute ira_hard_regno_cover_class[].
27414
27415 2011-02-18  Richard Guenther  <rguenther@suse.de>
27416
27417         PR lto/47798
27418         * lto-streamer.h (lto_global_var_decls): Declare.
27419         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
27420         statics for global var processing.
27421
27422 2011-02-18  Richard Guenther  <rguenther@suse.de>
27423
27424         PR tree-optimization/47737
27425         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
27426         edge dominance check.
27427
27428 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
27429
27430         PR debug/47780
27431         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
27432         avoid invalid rtx sharing.
27433
27434 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
27435
27436         * doc/cpp.texi (Obsolete Features): Add background on the
27437         origin of assertions.
27438
27439 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
27440
27441         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
27442         objc_abi == 2.
27443         * config/darwin.c (output_objc_section_asm_op): Added support for
27444         ABI v1 and v2.
27445         (is_objc_metadata): New.
27446         (darwin_objc2_section): New.
27447         (darwin_objc1_section): New.
27448         (machopic_select_section): Added support for ABI v1 and v2.
27449         (darwin_emit_objc_zeroed): New.
27450         (darwin_output_aligned_bss): Detect objc metadata and treat it
27451         appropriately.
27452         (darwin_asm_output_aligned_decl_common): Same.
27453         (darwin_asm_output_aligned_decl_local): Same.
27454         * config/darwin-sections.def: Updated for ABI v1 and v2.
27455         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
27456         compiling Objective-C code for the NeXT runtime, default to using
27457         ABI version 0 for 32-bit, and version 2 for 64-bit.
27458
27459 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27460
27461         * common.opt (optimize_fast): New Variable.
27462         * opts.c (default_options_optimization): Use opts->x_optimize_fast
27463         instead of local variable ofast.
27464
27465 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
27466
27467         * doc/invoke.texi (fobjc-abi-version): Documented.
27468         (fobjc-nilcheck): Documented.
27469         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
27470         version.
27471
27472 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27473
27474         PR driver/47390
27475         * common.opt (export-dynamic): New Driver option.
27476         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
27477
27478 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27479
27480         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
27481
27482 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
27483             Jan Hubicka  <jh@suse.cz>
27484
27485         PR debug/47106
27486         PR debug/47402
27487         * cfgexpand.c (account_used_vars_for_block): Remove.
27488         (estimated_stack_frame_size): Use referenced vars.
27489         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
27490         that were referenced in the original function.  Test src_fn
27491         rather than cfun.  Drop redundant get_var_ann.
27492         (setup_one_parameter): Drop redundant get_var_ann.
27493         (declare_return_variable): Likewise.
27494         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
27495         (copy_arguments_for_versioning): Drop redundant get_var_ann.
27496         * ipa-inline.c (compute_inline_parameters): Do not compute
27497         disregard_inline_limits here.
27498         (compute_inlinable_for_current, pass_inlinable): New.
27499         (pass_inline_parameters): Require PROP_referenced_vars.
27500         * cgraphunit.c (cgraph_process_new_functions): Don't run
27501         compute_inline_parameters explicitly unless function is in SSA form.
27502         (cgraph_analyze_function): Set .disregard_inline_limits.
27503         * tree-sra.c (convert_callers): Compute inliner parameters
27504         only for functions already in SSA form.
27505
27506 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27507
27508         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
27509         -mlittle-endian-data.
27510
27511 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
27512
27513         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
27514         -mno-fpu, not -fpu and -no-fpu.
27515         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
27516         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
27517
27518 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
27519
27520         PR target/43653
27521         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
27522         input reload with PLUS RTX.
27523
27524 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27525
27526         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
27527         of InverseVar(MDMX).
27528
27529 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27530
27531         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
27532         --m4-340.
27533
27534 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27535
27536         * config/mn10300/mn10300.opt (mno-crt0): New.
27537
27538 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27539
27540         * config/m68k/uclinux.opt (static-libc): New Driver option.
27541
27542 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27543
27544         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
27545
27546 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
27547
27548         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
27549         %{muser-extend-enabled}.
27550
27551 2011-02-16  Richard Guenther  <rguenther@suse.de>
27552
27553         PR tree-optimization/47738
27554         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
27555         the TODO from tree_predictive_commoning.
27556
27557 2011-02-15  Jeff Law  <law@redhat.com>
27558
27559         Revert
27560         2011-01-25  Jeff Law  <law@redhat.com>
27561
27562         PR rtl-optimization/37273
27563         * ira-costs.c (scan_one_insn): Detect constants living in memory and
27564         handle them like argument loads from stack slots.  Do not double
27565         count memory for memory constants and argument loads from stack slots.
27566
27567 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
27568
27569         PR target/47755
27570         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
27571         mode for vector constants.  Remove code that checks for TImode.
27572
27573 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
27574
27575         PR debug/47106
27576         PR debug/47402
27577         * cgraph.h (compute_inline_parameters): Return void.
27578         * ipa-inline.c (compute_inline_parameters): Adjust.
27579
27580 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
27581
27582         PR debug/47106
27583         PR debug/47402
27584         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
27585         rather than decl.
27586         * cfgexpand.c (estimated_stack_frame_size): Likewise.
27587         * ipa-inline.c (compute_inline_parameters): Adjust.
27588
27589 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
27590
27591         PR debug/47106
27592         PR debug/47402
27593         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
27594         Adjust all users.  Pass FN to...
27595         * tree-flow-inline.h (first_referenced_var): ... this.  Add
27596         fn argument.
27597         * ipa-struct-reorg.c: Adjust.
27598         * tree-dfa.c: Adjust.
27599         * tree-into-ssa.c: Adjust.
27600         * tree-sra.c: Adjust.
27601         * tree-ssa-alias.c: Adjust.
27602         * tree-ssa-live.c: Adjust.
27603         * tree-ssa.c: Adjust.
27604         * tree-ssanames.c: Adjust.
27605         * tree-tailcall.c: Adjust.
27606
27607 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
27608
27609         PR debug/47106
27610         PR debug/47402
27611         * tree-flow.h (referenced_var_lookup): Add fn parameter.
27612         Adjust all callers.
27613         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
27614         * tree-flow-inline.h: Adjust.
27615         * gimple-pretty-print.c: Adjust.
27616         * tree-into-ssa.c: Adjust.
27617         * tree-ssa.c: Adjust.
27618         * cfgexpand.c: Adjust.
27619
27620 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
27621
27622         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
27623         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27624         (EXTRA_CONSTRAINT): Delete.
27625         * config/iq2000/constraints.md: New file.
27626         * config/iq2000/iq2000.md: Include it.
27627         (define_insn ""): Delete.
27628         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
27629         unsupported constraint letters from patterns.
27630         (call_value, call_value_internal1): Likewise.
27631         (call_value_multiple_internal1): Likewise.
27632
27633 2011-02-15  Nick Clifton  <nickc@redhat.com>
27634
27635         * config/mn10300/mn10300.c: Include tm-constrs.h.
27636         (struct liw_data): New data structure describing an LIW candidate
27637         instruction.
27638         (extract_bundle): Use struct liw_data.  Allow small integer
27639         operands for some instructions.
27640         (check_liw_constraints): Use struct liw_data.  Remove swapped
27641         parameter.  Add comments describing the checks.  Fix bug when
27642         assigning the source of liw1 to the source of liw2.
27643         (liw_candidate): Delete.  Code moved into extract_bundle.
27644         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
27645         before swapping.
27646         * config/mn10300/predicates.md (liw_operand): New predicate.
27647         Allows registers and small integer constants.
27648         * config/mn10300/constraints.md (O): New constraint.  Accetps
27649         integers in the range -8 to +7 inclusive.
27650         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
27651         for moving a small integer into a register.  Give this alternative
27652         LIW attributes.
27653         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
27654         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
27655         using the J,K,L and M constraints,
27656         (liw): Remove SI mode on second operands to allow for HI and QI
27657         mode values.
27658         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
27659         instruction.
27660
27661 2011-02-15  Richard Guenther  <rguenther@suse.de>
27662
27663         PR tree-optimization/47743
27664         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
27665         for a non-type-compatible VN lookup bail out.
27666
27667 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
27668
27669         * config/fr30/constraints.md: New file.
27670         * config/fr30/fr30.md: Include it.
27671         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
27672         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27673         (EXTRA_CONSTRAINT): Delete.
27674
27675 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
27676
27677         * config/frv/constraints.md: New file.
27678         * config/frv/predicates.md: Include it.
27679         * config/frv/frv.c (reg_class_from_letter): Delete.
27680         (frv_option_override): Don't initialize it.
27681         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
27682         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
27683         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
27684         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
27685         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
27686         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27687         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
27688         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
27689         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
27690         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
27691         (REG_CLASS_FROM_CONSTRAINT): Delete.
27692
27693 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
27694
27695         PR middle-end/47581
27696         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
27697         if frame size is 0 in a leaf function.
27698
27699 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27700
27701         PR pch/14940
27702         * config/alpha/host-osf.c: New file.
27703         * config/alpha/x-osf: New file.
27704         * config.host (alpha*-dec-osf*): Use it.
27705
27706 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
27707
27708         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27709         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
27710         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
27711         (rx_mode_dependent_address_p): ...this. Make static. Change argument
27712         type to const_rtx.
27713         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27714
27715 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27716
27717         * config/stormy16/constraints.md: New file.
27718         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
27719         Use satisfies_constraint_Q and satisfies_constraint_R.
27720         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
27721         Delete.
27722         (xstormy16_legitiamte_address_p): Declare.
27723         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
27724         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27725         (EXTRA_CONSTRAINT): Delete.
27726         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
27727         Un-staticize.
27728         (xstormy16_extra_constraint_p): Delete.
27729
27730 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
27731
27732         PR tree-optimization/46494
27733         * loop-unroll.c (split_edge_and_insert): Adjust comment.
27734         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
27735         (pass_rtl_loop_done): Add TODO_verify_flow.
27736         * fwprop.c (pass_rtl_fwprop): Likewise.
27737         * modulo-sched.c (pass_sms): Likewise.
27738         * tree-ssa-dom.c (pass_dominator): Likewise.
27739         * tree-ssa-loop-ch.c (pass_ch): Likewise.
27740         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
27741         (pass_tree_loop_done): Likewise.
27742         * tree-ssa-pre.c (execute_pre): Likewise.
27743         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
27744         * tree-ssa-sink.c (pass_sink_code): Likewise.
27745         * tree-vrp.c (pass_vrp): Likewise.
27746
27747 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27748
27749         * config/v850/constraints.md: New file.
27750         * config/v850/v850.md: Include it.
27751         * config/v850/predicates.md (reg_or_0_operand): Use
27752         satisfies_constraint_G.
27753         (special_symbolref_operand): Use satisfies_constraint_K.
27754         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
27755         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
27756         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
27757         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
27758         (EXTRA_CONSTRAINT): Delete.
27759         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
27760         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
27761         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
27762
27763 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
27764
27765         PR target/47696
27766         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
27767         description.
27768
27769 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27770
27771         * config/mcore/constraints.md: New file.
27772         * config/mcore/mcore.md: Include it.
27773         * config/mcore/mcore.c (reg_class_from_letter): Delete.
27774         * config/mcore/mcore.h (reg_class_from_letter): Delete.
27775         (REG_CLASS_FROM_LETTER): Delete.
27776         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
27777         insn_const_int_ok_for_constraint.
27778         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
27779         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
27780         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27781         (EXTRA_CONSTRAINT): Delete.
27782
27783 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27784
27785         PR ada/41929
27786         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
27787         (IS_SIGHANDLER): Define.
27788         (sparc64_is_sighandler): New function, split off from
27789         sparc64_fallback_frame_state.
27790         (sparc_is_sighandler): New function, split off from
27791         sparc_fallback_frame_state.
27792         (sparc64_fallback_frame_state): Merge with ...
27793         (sparc_fallback_frame_state): ... this into ...
27794         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
27795         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
27796         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
27797         stack instead of hardcoded offsets.
27798
27799 2011-02-14  Andriy Gapon  <avg@freebsd.org>
27800
27801         PR target/45808
27802         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
27803
27804 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27805
27806         * configure: Regenerate.
27807
27808 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
27809
27810         PR driver/45731
27811         * gcc.c (asm_options): Correct spec matching --target-help.
27812
27813 2011-02-12  Martin Jambor  <mjambor@suse.cz>
27814
27815         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
27816         to gimple call error.
27817
27818 2011-02-12  Mike Stump  <mikestump@comcast.net>
27819
27820         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
27821         comments in backslash regions.
27822
27823 2011-02-12  Mike Stump  <mikestump@comcast.net>
27824             Jakub Jelinek  <jakub@redhat.com>
27825             Iain Sandoe  <iains@gcc.gnu.org>
27826
27827         PR target/47324
27828         * dwarf2out.c (output_cfa_loc): When required, apply the
27829         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
27830         (output_loc_sequence): Likewise.
27831         (output_loc_operands_raw): Likewise.
27832         (output_loc_sequence_raw): Likewise.
27833         (output_cfa_loc): Likewise.
27834         (output_loc_list): Suppress register number adjustment when
27835         calling output_loc_sequence()
27836         (output_die): Likewise.
27837
27838 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
27839
27840         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27841         Remove macros.
27842         * config/xtensa/xtensa.c (xtensa_register_move_cost,
27843         xtensa_memory_move_cost): New functions.
27844         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
27845
27846 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
27847
27848         PR lto/47225
27849         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
27850         in the current directory.
27851         * configure: Rebuilt.
27852
27853 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
27854
27855         * config/darwin.c (darwin_override_options): Add a hunk missed
27856         from the commit of r168571.  Trim comment line lengths and
27857         correct indents of the preceding block.
27858
27859 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
27860
27861         * gcc.c (driver_handle_option): Concatenate the argument to -F with
27862         the switch.
27863
27864 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
27865
27866         * common.opt (nostartfiles): New Driver option.
27867
27868 2011-02-11  Xinliang David Li  <davidxl@google.com>
27869
27870         PR tree-optimization/47707
27871         * tree-chrec.c (convert_affine_scev): Keep type precision.
27872
27873 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
27874
27875         PR tree-optimization/47420
27876         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
27877
27878 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
27879
27880         PR rtl-optimization/47614
27881         * rtl.h (check_for_inc_dec): Declare.
27882         * dse.c (check_for_inc_dec): Externalize...
27883         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
27884         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
27885
27886 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
27887
27888         PR driver/47678
27889         * gcc.c (main): Do not compile inputs if there were errors in
27890         option handling.
27891         * opts-common.c (read_cmdline_option): Check for wrong language
27892         after other error checks.
27893
27894 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
27895
27896         * cgraph.c: Fix comment typos.
27897         * cgraph.h: Likewise.
27898         * cgraphunit.c: Likewise.
27899         * ipa-cp.c: Likewise.
27900         * ipa-inline.c: Likewise.
27901         * ipa-prop.c: Likewise.
27902         * ipa-pure-const.c: Likewise.
27903         * ipa-ref.c: Likewise.
27904         * ipa-reference.c: Likewise.
27905
27906 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
27907
27908         PR debug/47684
27909         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
27910
27911 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27912
27913         PR testsuite/47400
27914         * doc/sourcebuild.texi (Require Support): Document
27915         dg-require-ascii-locale.
27916
27917 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
27918
27919         * doc/lto.texi (Write summary): Fix missing parentheses.
27920
27921 2011-02-10  DJ Delorie  <dj@redhat.com>
27922
27923         * config/m32c/m32c.c (m32c_option_override): Disable
27924         -fcombine-stack-adjustments until flag value tracking and compare
27925         optimization can be rewritten.
27926
27927 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
27928
27929         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
27930         PROCESSOR_POWER7.
27931         (PROCESSOR_DEFAULT64): Likewise.
27932
27933 2011-02-10  Richard Henderson  <rth@redhat.com>
27934
27935         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
27936         change from 2011-02-03.
27937         * config/rx/rx.c (flags_from_code): Likewise.
27938         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
27939         is valid, n/pz otherwise.
27940         (rx_select_cc_mode): Return CCmode if Y is not zero.
27941
27942 2011-02-10  Richard Guenther  <rguenther@suse.de>
27943
27944         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
27945
27946 2011-02-10  Richard Guenther  <rguenther@suse.de>
27947
27948         PR tree-optimization/47677
27949         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
27950
27951 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
27952
27953         PR target/47665
27954         * combine.c (make_compound_operation): Only change shifts into
27955         multiplication for SCALAR_INT_MODE_P.
27956
27957 2011-02-10  Jie Zhang  <jie@codesourcery.com>
27958
27959         PR testsuite/47622
27960         Revert
27961         2011-02-05  Jie Zhang  <jie@codesourcery.com>
27962         PR debug/42631
27963         * web.c (entry_register): Don't clobber the number of the
27964         first uninitialized reference in used[].
27965
27966 2011-02-09  Richard Guenther  <rguenther@suse.de>
27967
27968         PR tree-optimization/47664
27969         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
27970         all edges again.
27971
27972 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
27973
27974         PR target/46481
27975         PR target/47032
27976         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
27977         PROCESSOR_POWER7.
27978         (PROCESSOR_DEFAULT64): Same.
27979         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
27980
27981 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27982
27983         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
27984
27985 2011-02-09  Martin Jambor  <mjambor@suse.cz>
27986
27987         PR middle-end/45505
27988         * tree-sra.c (struct access): New flags grp_scalar_read and
27989         grp_scalar_write.  Changed description of assignment read and write
27990         flags.
27991         (dump_access): Dump new flags, reorder all of them.
27992         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
27993         to detect multiple scalar reads.
27994         (analyze_access_subtree): Use the new scalar read write flags instead
27995         of the old flags.  Adjusted comments.
27996
27997 2011-02-08  DJ Delorie  <dj@redhat.com>
27998
27999         PR target/47548
28000         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
28001         patterns.
28002
28003 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28004
28005         * config/m68k/uclinux.opt: New.
28006         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
28007
28008 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28009
28010         * config/cris/elf.opt (sim): New Driver option.
28011
28012 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28013
28014         * config/xtensa/elf.opt: New.
28015         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
28016
28017 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28018
28019         * config/vax/elf.opt: New.
28020         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
28021
28022 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28023
28024         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
28025
28026 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28027
28028         * config/gnu-user.opt: New.
28029         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
28030         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
28031         *-*-uclinux*): Use gnu-user.opt.
28032
28033 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
28034
28035         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
28036         * config/i386/gnu.h (CPP_SPEC): Likewise.
28037
28038 2011-02-08  Ian Lance Taylor  <iant@google.com>
28039
28040         * common.opt (fcx-limited-range): Add SetByCombined flag.
28041         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
28042         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
28043         (fassociative-math, freciprocal-math): Likewise.
28044         (funsafe-math-optimizations): Likewise.
28045         * opth-gen.awk: Handle SetByCombined.
28046         * optc-gen.awk: Likewise.
28047         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
28048         (set_unsafe_math_optimizations_flags): Likewise.
28049         * doc/options.texi (Option properties): Document SetByCombined.
28050
28051 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28052
28053         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
28054         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
28055         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
28056         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
28057         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
28058
28059 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
28060
28061         PR tree-optimization/46834
28062         PR tree-optimization/46994
28063         PR tree-optimization/46995
28064         * graphite-sese-to-poly.c (used_outside_reduction): New.
28065         (detect_commutative_reduction): Call used_outside_reduction.
28066         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
28067         translate_scalar_reduction_to_array only when at least one
28068         loop-phi/close-phi tuple has been detected.
28069
28070 2011-02-08  Richard Guenther  <rguenther@suse.de>
28071
28072         PR middle-end/47639
28073         * tree-vect-generic.c (expand_vector_operations_1): Update
28074         stmts here ...
28075         (expand_vector_operations): ... not here.  Cleanup EH info
28076         and the CFG if required.
28077
28078 2011-02-08  Richard Guenther  <rguenther@suse.de>
28079
28080         PR tree-optimization/47641
28081         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
28082         require type compatibility.
28083
28084 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28085
28086         * gimple-low.c (lower_function_body): Don't remove the location of
28087         the return statement here.
28088         (lower_gimple_return): Do it here instead but only if the return
28089         statement is actually used twice.
28090
28091 2011-02-08  Richard Guenther  <rguenther@suse.de>
28092
28093         PR tree-optimization/47632
28094         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
28095         unused up_to_stmt parameter, return whether cfg-cleanup is
28096         necessary, remove EH info properly.
28097         (forward_propagate_into_gimple_cond): Adjust caller.
28098         (forward_propagate_into_cond): Likewise.
28099         (forward_propagate_comparison): Likewise.
28100         (tree_ssa_forward_propagate_single_use_vars): Make
28101         forward_propagate_comparison case similar to the two others.
28102
28103 2011-02-08  Nick Clifton  <nickc@redhat.com>
28104
28105         * config/mn10300/mn10300.opt (mliw): New command line option.
28106         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
28107         (liw_bundling): New automaton.
28108         (liw): New attribute.
28109         (liw_op): New attribute.
28110         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
28111         (movsi_internal): Add LIW attributes.
28112         (andsi3): Likewise.
28113         (iorsi3): Likewise.
28114         (xorsi3): Likewise.
28115         (addsi3): Separate register and immediate alternatives.
28116         Add LIW attributes.
28117         (subsi3): Likewise.
28118         (cmpsi): Likewise.
28119         (aslsi3): Likewise.
28120         (lshrsi3): Likewise.
28121         (ashrsi3): Likewise.
28122         (liw): New pattern.
28123         * config/mn10300/mn10300.c (liw_op_names): New
28124         (mn10300_print_operand): Handle 'W' operand descriptor.
28125         (extract_bundle): New function.
28126         (check_liw_constraints): New function.
28127         (liw_candidate): New function.
28128         (mn10300_bundle_liw): New function.
28129         (mn10300_reorg): New function.
28130         (TARGET_MACHINE_DEPENDENT_REORG): Define.
28131         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
28132         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
28133         __LIW__ or __NO_LIW__.
28134         * doc/invoke.texi: Describe the -mliw command line option.
28135
28136 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28137
28138         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
28139         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28140         pthread_mutex_unlock): Remove.
28141         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
28142         * config/pa/t-pa64: Likewise.
28143         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
28144         shared libc if not linking against libpthread.
28145         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28146
28147 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
28148
28149         PR target/47558
28150         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
28151         on 10.6 and later to ensure that we always use the unwinder from
28152         the system.  Only add -no_compact_unwind when tarteting darwin
28153         10.6 or later.
28154
28155 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
28156
28157         PR target/46997
28158         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
28159         (vec_interleave_lowv2sf): Ditto.
28160         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
28161         (vec_extract_oddv2sf): Ditto.
28162
28163 2011-02-07  Mike Stump  <mikestump@comcast.net>
28164
28165         PR target/42333
28166         Add __ieee_divdc3 entry point.
28167         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
28168         entry point.
28169         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
28170         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
28171         * config/darwin.c (darwin_rename_builtins): Add.
28172         * config/darwin-protos.h (darwin_rename_builtins): Add.
28173
28174 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
28175
28176         PR target/47636
28177         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
28178         for the condition.
28179
28180 2011-02-07  Mike Stump  <mikestump@comcast.net>
28181
28182         * config/darwin.opt (mmacosx-version-min): Update default OS version.
28183
28184 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
28185
28186         PR target/47534
28187         * config/avr/libgcc.S (exit): Move .endfunc
28188
28189 2011-02-07  Richard Guenther  <rguenther@suse.de>
28190
28191         PR tree-optimization/47615
28192         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
28193         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
28194         (run_scc_vn): Initialize it.
28195         (visit_reference_op_load): Use it.
28196         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
28197
28198 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28199
28200         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
28201         DImode trapping arithmetic libfuncs.
28202
28203 2011-02-07  Richard Guenther  <rguenther@suse.de>
28204
28205         PR tree-optimization/47621
28206         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
28207         two duplicates ...
28208         (execute_update_addresses_taken): ... here.  Make it more
28209         conservative in what we accept.
28210
28211 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
28212
28213         * config/sparc/freebsd.h (ASM_SPEC): Define.
28214         * config/sparc/vxworks.h (ASM_SPEC): Define.
28215
28216 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
28217
28218         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
28219
28220 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
28221
28222         * doc/invoke.texi: Remove reference to compiler internals from
28223         user documentation.
28224
28225         * reg-notes.def: Remove REG_VALUE_PROFILE.
28226         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
28227
28228 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
28229
28230         PR middle-end/47610
28231         * varasm.c (default_section_type_flags): If decl is NULL,
28232         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
28233
28234 2011-02-05  Jie Zhang  <jie@codesourcery.com>
28235
28236         PR debug/42631
28237         * web.c (entry_register): Don't clobber the number of the
28238         first uninitialized reference in used[].
28239
28240 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
28241
28242         PR tree-optimization/46194
28243         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
28244         (build_classic_dist_vector_1): Do not represent classic distance
28245         vectors when the access functions are variating in different loops.
28246
28247 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
28248
28249         * config/mips/iris6.opt: New.
28250         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
28251
28252 2011-02-04  Richard Henderson  <rth@redhat.com>
28253             Steve Ellcey  <sje@cup.hp.com>
28254
28255         PR target/46997
28256         * config/ia64/predicates.md (mux1_brcst_element): New.
28257         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
28258         * config/ia64/ia64.c (ia64_unpack_assemble): New.
28259         (ia64_unpack_sign): New.
28260         (ia64_expand_unpack): Rewrite using new routines.
28261         (ia64_expand_widen_sum): Ditto.
28262         (ia64_expand_dot_prod_v8qi): Ditto.
28263         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
28264         routines, add endian check.
28265         (pmpy2_even): Rename from pmpy2_r, add endian check.
28266         (pmpy2_odd): Rename from pmpy2_l, add endian check.
28267         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
28268         (vec_widen_smult_hi_v4hi): Ditto.
28269         (vec_widen_umult_lo_v4hi): Ditto.
28270         (vec_widen_umult_hi_v4hi): Ditto.
28271         (mulv2si3): Change endian checks.
28272         (sdot_prodv4hi): Rewrite with new calls.
28273         (udot_prodv4hi): New.
28274         (vec_pack_ssat_v4hi): Add endian check.
28275         (vec_pack_usat_v4hi): Ditto.
28276         (vec_pack_ssat_v2si): Ditto.
28277         (max1_even): Rename from max1_r, add endian check.
28278         (max1_odd): Rename from max1_l, add endian check.
28279         (*mux1_rev): Format change.
28280         (*mux1_mix): Ditto.
28281         (*mux1_shuf): Ditto.
28282         (*mux1_alt): Ditto.
28283         (*mux1_brcst_v8qi): Use new predicate.
28284         (vec_extract_evenv8qi): Remove endian check.
28285         (vec_extract_oddv8qi): Ditto.
28286         (vec_interleave_lowv4hi): Format change.
28287         (vec_interleave_highv4hi): Ditto.
28288         (mix2_even): Rename from mix2_r, add endian check.
28289         (mix2_odd): Rename from mux2_l, add endian check.
28290         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
28291         (vec_extract_evenodd_helper): Format change.
28292         (vec_extract_evenv4hi): Remove endian check.
28293         (vec_extract_oddv4hi): Remove endian check.
28294         (vec_interleave_lowv2si): Format change.
28295         (vec_interleave_highv2si): Format change.
28296         (vec_initv2si): Remove endian check.
28297         (vecinit_v2si): Add endian check.
28298         (reduc_splus_v2sf): Add endian check.
28299         (reduc_smax_v2sf): Ditto.
28300         (reduc_smin_v2sf): Ditto.
28301         (vec_initv2sf): Remove endian check.
28302         (fpack): Add endian check.
28303         (fswap): Add endian check.
28304         (vec_interleave_highv2sf): Add endian check.
28305         (vec_interleave_lowv2sf): Add endian check.
28306         (fmix_lr): Add endian check.
28307         (vec_setv2sf): Format change.
28308         (*vec_extractv2sf_0_be): Use shift to extract operand.
28309         (*vec_extractv2sf_1_be): New.
28310         (vec_pack_trunc_v4hi): Add endian check.
28311         (vec_pack_trunc_v2si): Format change.
28312
28313 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
28314
28315         PR inline-asm/23200
28316         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
28317         do bb, locus and block comparison and disallow loads if it is not set.
28318         (stmt_is_replaceable_p): New function.
28319         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
28320         callers.
28321         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
28322         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
28323         SSA_NAME_DEF_STMT.
28324         * tree-flow.h (stmt_is_replaceable_p): New prototype.
28325
28326 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
28327
28328         * config/rs6000/xilinx.opt: New.
28329         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
28330
28331 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
28332
28333         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
28334
28335 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
28336
28337         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
28338         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
28339         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
28340         secondary_reload_info, xtensa_secondary_reload): Remove.
28341         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
28342         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
28343         (xtensa_preferred_reload_class): Make static. Change return and
28344         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
28345         Use CONST_DOUBLE_P predicate.
28346         (xtensa_preferred_output_reload_class): New function.
28347         (xtensa_secondary_reload): Make static.
28348
28349 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
28350
28351         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
28352         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
28353         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
28354
28355 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
28356
28357         PR middle-end/31490
28358         * output.h (SECTION_RELRO): Define.
28359         (SECTION_MACH_DEP): Adjust.
28360         (get_variable_section): New prototype.
28361         * varpool.c (varpool_finalize_named_section_flags): New function.
28362         (varpool_assemble_pending_decls): Call it.
28363         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
28364         * cgraphunit.c (cgraph_output_in_order): Call
28365         varpool_finalize_named_section_flags.
28366         * varasm.c (get_section): Allow section flags conflicts between
28367         relro and read-only sections if the section hasn't been declared yet.
28368         Set SECTION_OVERRIDE after diagnosing section type conflict.
28369         (get_variable_section): No longer static.
28370         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
28371         readonly sections that need relocations.
28372         (decl_readonly_section_1): New function.
28373         (decl_readonly_section): Use it.
28374
28375         Revert:
28376         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
28377                     Steve Ellcey  <sje@cup.hp.com>
28378
28379         PR middle-end/31490
28380         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
28381         if section attribute used.
28382
28383 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
28384
28385         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
28386         * config/darwin.c (SECTION_NO_ANCHOR): Define.
28387         (darwin_init_sections): Remove assertion.
28388
28389 2011-02-03  Nick Clifton  <nickc@redhat.com>
28390
28391         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
28392         lt and ge.
28393         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
28394         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
28395         instead of "n" and "pz".
28396         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
28397         CC_FLAG_S.
28398
28399 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
28400
28401         PR target/47312
28402         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
28403         fma, expand FMA_EXPR as fma{,f,l} call.
28404
28405         PR lto/47274
28406         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
28407         copy them into a unsigned char variable and pass address of it to
28408         lto_output_data_stream.
28409
28410         PR target/47564
28411         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
28412         around backend_init_target and lang_dependent_init_target calls.
28413         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
28414         (verify_cgraph_node): Don't call set_cfun here.  Use
28415         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
28416         Set error_found for incorrectly represented calls to thunks.
28417
28418 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
28419
28420         PR debug/43092
28421         PR rtl-optimization/43494
28422         * rtl.h (for_each_inc_dec_fn): New type.
28423         (for_each_inc_dec): Declare.
28424         * rtlanal.c (struct for_each_inc_dec_ops): New type.
28425         (for_each_inc_dec_find_inc_dec): New fn.
28426         (for_each_inc_dec_find_mem): New fn.
28427         (for_each_inc_dec): New fn.
28428         * dse.c (struct insn_size): Remove.
28429         (replace_inc_dec, replace_inc_dec_mem): Remove.
28430         (emit_inc_dec_insn_before): New fn.
28431         (check_for_inc_dec): Use it, along with for_each_inc_dec.
28432         (canon_address): Pass mem modes to cselib_lookup.
28433         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
28434         (cselib_lookup_from_insn): Likewise.
28435         (cselib_subst_to_values): Likewise.
28436         * cselib.c (find_slot_memmode): New var.
28437         (cselib_find_slot): New fn.  Use it instead of
28438         htab_find_slot_with_hash everywhere.
28439         (entry_and_rtx_equal_p): Use find_slot_memmode.
28440         (autoinc_split): New fn.
28441         (rtx_equal_for_cselib_p): Rename and implement in terms of...
28442         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
28443         Deal with autoinc.  Special-case recursion into MEMs.
28444         (cselib_hash_rtx): Likewise.
28445         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
28446         address and MEM modes.
28447         (cselib_subst_to_values): Add memmode, pass it on.
28448         Deal with autoinc.
28449         (cselib_lookup): Add memmode argument, pass it on.
28450         (cselib_lookup_from_insn): Add memmode.
28451         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
28452         (struct cselib_record_autoinc_data): New.
28453         (cselib_record_autoinc_cb): New fn.
28454         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
28455         mode to cselib_lookup.  Reset autoinced REGs here instead of...
28456         (cselib_process_insn): ... here.
28457         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
28458         to cselib_lookup.
28459         (add_uses): Likewise, also to cselib_subst_to_values.
28460         (add_stores): Likewise.
28461         * sched-deps.c (add_insn_mem_dependence): Pass mode to
28462         cselib_subst_to_values.
28463         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
28464         * gcse.c (do_local_cprop): Adjusted.
28465         * postreload.c (reload_cse_simplify_set): Adjusted.
28466         (reload_cse_simplify_operands): Adjusted.
28467         * sel-sched-dump (debug_mem_addr_value): Pass mode.
28468
28469 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
28470
28471         PR tree-optimization/45122
28472         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
28473         unsafe assumptions when there's more than one loop exit.
28474
28475 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28476
28477         PR target/47272
28478         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28479         Document using vector double with the load/store builtins, and
28480         that the load/store builtins always use Altivec instructions.
28481
28482         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
28483         to use altivec memory instructions, even on VSX.
28484         (vector_altivec_store_<mode>): Ditto.
28485
28486         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
28487         function.
28488
28489         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28490         V2DF, V2DI support to load/store overloaded builtins.
28491
28492         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
28493         altivec load/store builtins for V2DF/V2DI types.
28494
28495         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28496         set avoid indexed addresses on power6 if -maltivec.
28497         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
28498         vector_altivec_load/vector_altivec_store builtins.
28499         (altivec_expand_st_builtin): Ditto.
28500         (altivec_expand_builtin): Add VSX memory builtins.
28501         (rs6000_init_builtins): Add V2DI types to internal types.
28502         (altivec_init_builtins): Add support for V2DF/V2DI altivec
28503         load/store builtins.
28504         (rs6000_address_for_altivec): Insure memory address is appropriate
28505         for Altivec.
28506
28507         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
28508         vec_vsx_ld and vec_vsx_st.
28509         (vsx_store_<mode>): Ditto.
28510
28511         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
28512         variables to hold long long types for VSX vector memory builtins.
28513         (RS6000_BTI_unsigned_long_long): Ditto.
28514         (long_long_integer_type_internal_node): Ditti.
28515         (long_long_unsigned_type_internal_node): Ditti.
28516
28517         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
28518         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
28519         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
28520
28521         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
28522         short cuts.
28523         (vec_vsx_st): Ditto.
28524
28525 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
28526
28527         * config/pa/pa-hpux10.opt: New.
28528         * config/hpux11.opt (pthread): New Driver option.
28529         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
28530         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
28531
28532 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
28533
28534         * config/ia64/vms.opt: New.
28535         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
28536
28537 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
28538
28539         PR target/47580
28540         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
28541         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
28542         generator functions.
28543         (vsx_floatuns<VSi><mode>2): Ditto.
28544         (vsx_fix_trunc<mode><VSi>2): Ditto.
28545         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
28546
28547 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
28548
28549         * config/i386/djgpp.opt (posix): New Driver option.
28550
28551 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
28552
28553         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
28554         Move to the unsupported targets list.
28555
28556 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
28557
28558         PR rtl-optimization/47525
28559         * df-scan.c: Update copyright years.
28560         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
28561         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
28562
28563 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28564
28565         * config/i386/sysv4.h (TARGET_VERSION): Remove.
28566         (SUBTARGET_RETURN_IN_MEMORY): Remove.
28567         (ASM_OUTPUT_ASCII): Remove.
28568         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
28569
28570 2011-02-02  Jeff Law  <law@redhat.com>
28571
28572         PR middle-end/47543
28573         * reload.c (find_reloads_address): Handle reg+d address where both
28574         components are invalid by reloading the entire address.
28575
28576 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
28577             Richard Guenther  <rguenther@suse.de>
28578
28579         PR tree-optimization/40979
28580         PR bootstrap/47044
28581         * passes.c (init_optimization_passes): After LIM call copy_prop
28582         and DCE to clean up.
28583         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
28584
28585 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
28586
28587         PR tree-optimization/47576
28588         PR tree-optimization/47555
28589         * doc/invoke.texi (scev-max-expr-complexity): Documented.
28590         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
28591         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
28592         * tree-scalar-evolution.c (follow_ssa_edge): Use
28593         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
28594
28595 2011-02-02  Richard Guenther  <rguenther@suse.de>
28596
28597         PR tree-optimization/47566
28598         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
28599
28600 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
28601
28602         PR debug/47106
28603         PR debug/47402
28604         * tree-inline.c (declare_return_variable): Remove unused caller
28605         variable.
28606
28607         PR debug/47106
28608         PR debug/47402
28609         * tree-flow-inline.h (clear_is_used, is_used_p): New.
28610         * cfgexpand.c (account_used_vars_for_block): Use them.
28611         * tree-nrv.c (tree_nrv): Likewise.
28612         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
28613         (dump_scope_block): Likewise.
28614         (remove_unused_locals): Likewise.
28615
28616         PR debug/47106
28617         PR debug/47402
28618         * tree-inline.c (declare_return_variable): Add result decl to
28619         local decls only once.
28620         * gimple-low.c (record_vars_into): Mark newly-created variables
28621         as referenced.
28622
28623 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
28624
28625         PR debug/47498
28626         PR debug/47501
28627         PR debug/45136
28628         PR debug/45130
28629         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28630         debug insns.
28631         (no_real_insns_p, schedule_block, set_priorities): Drop special
28632         treatment of boundary debug insns.
28633         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28634         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
28635         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28636         (BOUNDARY_DEBUG_INSN_P): Likewise.
28637         (SCHEDULE_DEBUG_INSN_P): Likewise.
28638         * sched-rgn.c (init_ready_list): Drop special treatment of
28639         boundary debug insns.
28640         * final.c (rest_of_clean_state): Clear notes' BB.
28641
28642 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28643
28644         * config/openbsd.opt (assert=): New Driver option.
28645
28646 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28647
28648         * config/i386/nto.opt: New.
28649         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
28650
28651 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28652
28653         * config/i386/netware.opt: New.
28654         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
28655
28656 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28657
28658         * config/interix.opt (posix): New Driver option.
28659
28660 2011-02-01  DJ Delorie  <dj@redhat.com>
28661
28662         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
28663
28664         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
28665         class for A0/A1.
28666
28667 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
28668
28669         PR tree-optimization/47561
28670         * toplev.c (process_options): Print the Graphite flags.  Add
28671         flag_loop_flatten to the list of options requiring Graphite.
28672
28673 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28674
28675         * config/i386/cygming.opt (posix): New Driver option.
28676
28677 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28678
28679         * config/arm/vxworks.opt: New.
28680         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
28681
28682 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28683
28684         * config/alpha/elf.opt: New.
28685         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
28686         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
28687
28688 2011-02-01  Richard Guenther  <rguenther@suse.de>
28689
28690         PR tree-optimization/47559
28691         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
28692         store-motion on references that can throw.
28693
28694 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
28695
28696         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
28697         * tree-pass.h (TDF_CSELIB): New macro.
28698         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
28699         cselib_lookup): Check for it rather than for TDF_DETAILS.
28700
28701 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
28702
28703         PR driver/47547
28704         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
28705         is HOST_BIT_BUCKET.
28706
28707         * opts.c (finish_options): Don't add x_aux_base_name if it is
28708         HOST_BIT_BUCKET.
28709
28710 2011-02-01  Richard Guenther  <rguenther@suse.de>
28711
28712         PR tree-optimization/47555
28713         Revert
28714         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
28715
28716         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
28717
28718 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
28719
28720         PR gcc/46692
28721         * config/lm32/t-lm32: Add multilib for all CPU options.
28722
28723 2011-02-01  Richard Guenther  <rguenther@suse.de>
28724
28725         PR tree-optimization/47541
28726         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
28727         sure to have a field at offset zero.
28728
28729 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28730
28731         * config/arc/arc.opt (EB, EL): New Driver options.
28732
28733 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28734
28735         * config/alpha/osf5.opt: New.
28736         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
28737
28738 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28739
28740         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
28741
28742 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
28743
28744         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
28745         -floop-interchange.
28746         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
28747         is an alias of -floop-interchange and that it requires the
28748         Graphite infrastructure.
28749         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
28750         flag_loop_interchange based on the value of flag_tree_loop_linear.
28751
28752 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
28753             Richard Guenther  <rguenther@suse.de>
28754
28755         PR tree-optimization/47538
28756         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
28757         type instead of r1type, except for comparisons.  For right
28758         shifts and comparisons punt if there are mismatches in
28759         sizetype vs. non-sizetype types.
28760
28761 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28762
28763         * doc/sourcebuild.texi (Effective-Target Keywords): Document
28764         avx_runtime.
28765
28766 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28767
28768         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
28769         version number.
28770         * configure: Regenerate.
28771
28772 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28773
28774         * configure.ac (gcc_cv_ld_static_option): Define.
28775         (gcc_cv_ld_dynamic_option): Define.
28776         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
28777         instead.
28778         (HAVE_LD_STATIC_DYNAMIC): Update message.
28779         (LD_STATIC_OPTION): Define.
28780         (LD_DYNAMIC_OPTION): Define.
28781         * configure: Regenerate.
28782         * config.in: Regenerate.
28783         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
28784         HAVE_LD_STATIC_DYNAMIC]: Use them.
28785
28786 2011-01-31  Nick Clifton  <nickc@redhat.com>
28787
28788         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
28789         registers inside interrupt handlers if the handler is not a leaf
28790         function.
28791
28792 2011-01-31  Nick Clifton  <nickc@redhat.com>
28793
28794         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
28795         reg_renumber returning an INVALID_REGNUM.
28796
28797 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
28798
28799         PR libgcj/44341
28800         * doc/install.texi: Document host options discarded when cross
28801         configuring target libraries.
28802
28803 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
28804
28805         Reverted:
28806         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
28807         PR debug/45136
28808         PR debug/45130
28809         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28810         debug insns.
28811         (no_real_insns_p, schedule_block, set_priorities): Drop special
28812         treatment of boundary debug insns.
28813         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28814         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28815         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28816         (BOUNDARY_DEBUG_INSN_P): Likewise.
28817         (SCHEDULE_DEBUG_INSN_P): Likewise.
28818         * sched-rgn.c (init_ready_list): Drop special treatment of
28819         boundary debug insns.
28820         * final.c (rest_of_clean-state): Clear notes' BB.
28821
28822 2011-01-31  Alan Modra  <amodra@gmail.com>
28823
28824         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
28825         toc relative expressions as we do in print_operand_address.
28826
28827 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
28828
28829         * doc/extend.texi: Follow spelling conventions.
28830         * doc/invoke.texi: Fix a typo.
28831
28832 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
28833
28834         * config/hpux11.opt: New.
28835         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
28836         ia64*-*-hpux*): Use hpux11.opt.
28837
28838 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
28839
28840         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
28841         to tmake_file.
28842
28843 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28844
28845         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
28846         support sites.
28847
28848 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28849
28850         * doc/install.texi (Binaries): Remove outdated reference for
28851         Motorola 68HC11/68HC12 downloads.
28852
28853 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28854
28855         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
28856         Drepper's paper.
28857
28858 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
28859
28860         PR bootstrap/47147
28861         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
28862         used by NetBSD.
28863
28864 2011-01-28  Ahmad Sharif  <asharif@google.com>
28865
28866         * value-prof.c (check_counter): Corrected error message.
28867
28868 2011-01-29  Jie Zhang  <jie@codesourcery.com>
28869
28870         * config/arm/arm.c (arm_legitimize_reload_address): New.
28871         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
28872         arm_legitimize_reload_address.
28873         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
28874
28875 2011-01-28  Ian Lance Taylor  <iant@google.com>
28876
28877         * godump.c (go_define): Ignore macros whose definitions include
28878         two adjacent operands.
28879
28880 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
28881
28882         PR target/42894
28883         * varasm.c (force_const_mem): Store copy of x in desc->constant
28884         instead of x itself.
28885         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
28886         itself into REG_EQUAL note.
28887
28888 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
28889
28890         * config/freebsd.opt (posix, rdynamic): New Driver options.
28891
28892 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28893
28894         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
28895         -Bstatic/-Bdynamic.
28896         * configure: Regenerate.
28897
28898 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
28899
28900         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
28901         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
28902
28903 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
28904
28905         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
28906         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
28907         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28908         (s390_preferred_reload_class): Make static. Change return and
28909         'rclass' argument type to reg_class_t.
28910
28911 2011-01-27  Jan Hubicka  <jh@suse.cz>
28912
28913         PR middle-end/46949
28914         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
28915         (process_function_and_variable_attributes): Check defined weakrefs.
28916
28917 2011-01-27  Martin Jambor  <mjambor@suse.cz>
28918
28919         PR tree-optimization/47228
28920         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
28921         build_ref_for_offset.
28922
28923 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28924
28925         * config/spu/spu-elf.h (ASM_SPEC): Remove.
28926
28927 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
28928
28929         PR rtl-optimization/46856
28930         * postreload.c (reload_combine_recognize_const_pattern): Do not
28931         separate cc0 setter and user on cc0 targets.
28932
28933 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
28934
28935         PR c/43082
28936         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
28937         passed a VOID_TYPE expression, immediately emit an error and
28938         return error_mark_node.
28939
28940 2011-01-26  Jeff Law  <law@redhat.com>
28941
28942         PR rtl-optimization/47464
28943         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
28944         rather than may_trap_p as needed.
28945
28946 2011-01-26  DJ Delorie  <dj@redhat.com>
28947
28948         PR rtl-optimization/46878
28949         * combine.c (insn_a_feeds_b): Check for the implicit cc0
28950         setter/user dependency as well.
28951
28952 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
28953
28954         PR rtl-optimization/44469
28955         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
28956         after removing trivially dead basic blocks.
28957
28958 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28959
28960         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
28961         * config/frv/frv.h (LINK_SPEC): Likewise.
28962         * config/i386/netware.h (LINK_SPEC): Likewise.
28963         * config/m68k/linux.h (ASM_SPEC): Likewise.
28964         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
28965         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28966         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28967         * config/sparc/linux.h (ASM_SPEC): Likewise.
28968         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28969         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28970
28971 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28972
28973         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
28974         * config/frv/frv.h (ASM_SPEC): Likewise.
28975         * config/m68k/linux.h (ASM_SPEC): Likewise.
28976         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28977         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
28978         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28979         * config/sparc/linux.h (ASM_SPEC): Likewise.
28980         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28981         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28982
28983 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28984
28985         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
28986         * config/frv/frv.h (LINK_SPEC): Likewise.
28987         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28988
28989 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28990
28991         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
28992         * config/frv/frv.h (ASM_SPEC): Likewise.
28993         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
28994         * config/m68k/linux.h (ASM_SPEC): Likewise.
28995         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28996         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28997         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28998         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
28999         * config/sparc/linux.h (ASM_SPEC): Likewise.
29000         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29001         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29002         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
29003
29004 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
29005
29006         PR target/46997
29007         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
29008         (*mux2): Ditto.
29009         (vec_extract_evenodd_help): Ditto.
29010         (vec_extract_evenv4hi): Ditto.
29011         (vec_extract_oddv4hi): Ditto.
29012         (vec_interleave_lowv2si): Ditto.
29013         (vec_interleave_highv2si): Ditto.
29014         (vec_extract_evenv2si): Ditto.
29015         (vec_extract_oddv2si: Ditto.
29016         (vec_pack_trunc_v2si): Ditto.
29017
29018 2011-01-22  Jan Hubicka  <jh@suse.cz>
29019
29020         PR target/47237
29021         * cgraph.h (cgraph_local_info): New field can_change_signature.
29022         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
29023         signature can change.
29024         (ipcp_estimate_growth): Call sequence simplify only if calle signature
29025         can change.
29026         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
29027         (cgraph_function_versioning): We can not change signature of functions
29028         that don't allow that.
29029         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
29030         (lto_input_node): Likewise.
29031         * ipa-inline.c (compute_inline_parameters): Compute
29032         local.can_change_signature.
29033         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
29034         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
29035         functions that can not change signature.
29036         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
29037         init_cumulative_args): Do not use local calling conventions
29038         for functions that can not change signature.
29039
29040 2011-01-22  Jan Hubicka  <jh@suse.cz>
29041
29042         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
29043
29044 2011-01-26  Richard Guenther  <rguenther@suse.de>
29045
29046         PR tree-optimization/47190
29047         * cgraphunit.c (process_common_attributes): New function.
29048         (process_function_and_variable_attributes): Use it.
29049
29050 2011-01-26  Richard Guenther  <rguenther@suse.de>
29051
29052         PR lto/47423
29053         * cgraphbuild.c (record_eh_tables): Record reference to personality
29054         function.
29055
29056 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
29057
29058         PR debug/45454
29059         * sel-sched.c (moveup_expr): Don't let debug insns prevent
29060         non-debug insns from moving up.
29061
29062 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29063
29064         PR target/40125
29065         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
29066         t-dlldir{,-x} fragment for build and add it to tmake_file.
29067         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
29068         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
29069         * config/i386/t-dlldir: New file.
29070         (SHLIB_DLLDIR): Define.
29071         * config/i386/t-dlldir-x: New file.
29072         (SHLIB_DLLDIR): Define.
29073         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
29074         (SHLIB_INSTALL): Use it.
29075
29076 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
29077
29078         PR target/47246
29079         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
29080         lower bound of the allowed Thumb-2 coprocessor load/store
29081         index range to -256. Add explaining comment.
29082
29083 2011-01-25  Ian Lance Taylor  <iant@google.com>
29084
29085         * godump.c (go_define): Improve lexing of macro expansion to only
29086         accept expressions which match Go spec.
29087
29088 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29089
29090         PR c++/43601
29091         * tree.c (handle_dll_attribute): Handle it.
29092         * doc/extend.texi (@item dllexport): Mention it.
29093         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
29094
29095 2011-01-25  Ian Lance Taylor  <iant@google.com>
29096
29097         PR tree-optimization/26854
29098         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
29099         (decl_jump_unsafe): Move higher in file, with no other change.
29100         (bind): Set has_jump_unsafe_decl if appropriate.
29101         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
29102         (check_earlier_gotos): Likewise.
29103         (c_check_switch_jump_warnings): Likewise.
29104
29105 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
29106
29107         * doc/invoke.texi (Warning Options): Add missing hyphen.
29108         (-fprofile-dir): Minor grammatical fixes.
29109         (-fbranch-probabilities): Likewise.
29110
29111 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
29112
29113         PR debug/45136
29114         PR debug/45130
29115         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29116         debug insns.
29117         (no_real_insns_p, schedule_block, set_priorities): Drop special
29118         treatment of boundary debug insns.
29119         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29120         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29121         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29122         (BOUNDARY_DEBUG_INSN_P): Likewise.
29123         (SCHEDULE_DEBUG_INSN_P): Likewise.
29124         * sched-rgn.c (init_ready_list): Drop special treatment of
29125         boundary debug insns.
29126         * final.c (rest_of_clean-state): Clear notes' BB.
29127
29128 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29129
29130         * Makefile.in (LAMBDA_H): Removed.
29131         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
29132         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
29133         lambda-trans.o, and tree-loop-linear.o.
29134         (lto-symtab.o): Remove dependence on LAMBDA_H.
29135         (tree-loop-linear.o): Remove rule.
29136         (lambda-mat.o): Same.
29137         (lambda-trans.o): Same.
29138         (lambda-code.o): Same.
29139         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
29140         (tree-vect-slp.o): Same.
29141         * hwint.h (gcd): Moved here.
29142         (least_common_multiple): Same.
29143         * lambda-code.c: Removed.
29144         * lambda-mat.c: Removed.
29145         * lambda-trans.c: Removed.
29146         * lambda.h: Removed.
29147         * tree-loop-linear.c: Removed.
29148         * lto-symtab.c: Do not include lambda.h.
29149         * omega.c (gcd): Removed.
29150         * passes.c (init_optimization_passes): Remove pass_linear_transform.
29151         * tree-data-ref.c (print_lambda_vector): Moved here.
29152         (lambda_vector_copy): Same.
29153         (lambda_matrix_copy): Same.
29154         (lambda_matrix_id): Same.
29155         (lambda_vector_first_nz): Same.
29156         (lambda_matrix_row_add): Same.
29157         (lambda_matrix_row_exchange): Same.
29158         (lambda_vector_mult_const): Same.
29159         (lambda_vector_negate): Same.
29160         (lambda_matrix_row_negate): Same.
29161         (lambda_vector_equal): Same.
29162         (lambda_matrix_right_hermite): Same.
29163         * tree-data-ref.h: Do not include lambda.h.
29164         (lambda_vector): Moved here.
29165         (lambda_matrix): Same.
29166         (dependence_level): Same.
29167         (lambda_transform_legal_p): Removed declaration.
29168         (lambda_collect_parameters): Same.
29169         (lambda_compute_access_matrices): Same.
29170         (lambda_vector_gcd): Same.
29171         (lambda_vector_new): Same.
29172         (lambda_vector_clear): Same.
29173         (lambda_vector_lexico_pos): Same.
29174         (lambda_vector_zerop): Same.
29175         (lambda_matrix_new): Same.
29176         * tree-flow.h (least_common_multiple): Removed declaration.
29177         * tree-parloops.c (lambda_trans_matrix): Moved here.
29178         (LTM_MATRIX): Same.
29179         (LTM_ROWSIZE): Same.
29180         (LTM_COLSIZE): Same.
29181         (LTM_DENOMINATOR): Same.
29182         (lambda_trans_matrix_new): Same.
29183         (lambda_matrix_vector_mult): Same.
29184         (lambda_transform_legal_p): Same.
29185         * tree-pass.h (pass_linear_transform): Removed declaration.
29186         * tree-ssa-loop.c (tree_linear_transform): Removed.
29187         (gate_tree_linear_transform): Removed.
29188         (pass_linear_transform): Removed.
29189         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
29190         flag_loop_interchange.
29191
29192 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
29193
29194         PR tree-optimization/47265
29195         PR tree-optimization/47443
29196         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
29197         if name still has some uses.
29198
29199 2011-01-25  Martin Jambor  <mjambor@suse.cz>
29200
29201         PR tree-optimization/47382
29202         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
29203         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
29204
29205 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
29206
29207         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
29208         sjlj_except_unwind_info.
29209
29210 2011-01-25  Richard Guenther  <rguenther@suse.de>
29211
29212         PR tree-optimization/47426
29213         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
29214         visible functions results escape.
29215
29216 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
29217
29218         PR target/45701
29219         * config/arm/arm.c (any_sibcall_uses_r3): New function.
29220         (arm_get_frame_offsets): Use it.
29221
29222 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29223             Jakub Jelinek  <jakub@redhat.com>
29224
29225         PR tree-optimization/47271
29226         * tree-if-conv.c (bb_postdominates_preds): New.
29227         (if_convertible_bb_p): Call bb_postdominates_preds.
29228         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
29229         (predicate_scalar_phi): Call bb_postdominates_preds.
29230
29231 2011-01-25  Nick Clifton  <nickc@redhat.com>
29232
29233         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
29234         * config/rx/rx.c (rx_function_value): Likewise.
29235         (rx_promote_function_mode): Likewise.
29236         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
29237         in order to make it legitimate.
29238         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
29239         make sure that the first operand is the same as the result register.
29240         (addsi3_unspec): Delete.
29241         (subdi3): Do not accept immediate operands.
29242         (subdi3_internal): Likewise.
29243
29244 2011-01-25  Jeff Law  <law@redhat.com>
29245
29246         PR rtl-optimization/37273
29247         * ira-costs.c (scan_one_insn): Detect constants living in memory and
29248         handle them like argument loads from stack slots.  Do not double
29249         count memory for memory constants and argument loads from stack slots.
29250
29251 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
29252
29253         PR tree-optimization/47427
29254         PR tree-optimization/47428
29255         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
29256         coalesce if the new root var would be TREE_READONLY.
29257
29258 2011-01-25  Richard Guenther  <rguenther@suse.de>
29259
29260         PR middle-end/47414
29261         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
29262         correct type for TBAA.
29263
29264 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29265
29266         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
29267         (close_phi_written_to_memory): Call for_each_index with
29268         dr_indices_valid_in_loop.
29269
29270 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29271
29272         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
29273         when it is initialized.
29274
29275 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29276
29277         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
29278         call to graphite_find_data_references_in_stmt.
29279         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
29280         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
29281         call to graphite_find_data_references_in_stmt.
29282         (analyze_drs_in_stmts): Same.
29283         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
29284         in which the scalar analysis of indices is performed.
29285         (create_data_ref): Same.  Update call to dr_analyze_indices.
29286         (find_data_references_in_stmt): Update call to create_data_ref.
29287         (graphite_find_data_references_in_stmt): Same.
29288         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
29289         declaration.
29290         (create_data_ref): Same.
29291         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
29292         call to create_data_ref.
29293
29294 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29295
29296         * graphite-sese-to-poly.c (build_poly_scop): Move
29297         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
29298
29299 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29300
29301         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
29302         VAR_DECL, PARM_DECL, and RESULT_DECL.
29303
29304 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29305
29306         * graphite-dependences.c (reduction_dr_1): Allow several reductions
29307         in a reduction PBB.
29308         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
29309         that have already been marked as PBB_IS_REDUCTION.
29310
29311 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29312
29313         * graphite-scop-detection.c (same_close_phi_node): New.
29314         (remove_duplicate_close_phi): New.
29315         (make_close_phi_nodes_unique): New.
29316         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
29317
29318 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29319
29320         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
29321         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
29322         of both data references to be the same.
29323
29324 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29325
29326         * graphite-dependences.c (build_lexicographical_constraint): Remove
29327         the gdim parameter.
29328         (build_lexicographical_constraint): Adjust call to
29329         ppl_powerset_is_empty.
29330         (dependence_polyhedron): Same.
29331         (graphite_legal_transform_dr): Same.
29332         (graphite_carried_dependence_level_k): Same.
29333         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
29334         parameter.
29335         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
29336
29337 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29338
29339         * graphite-sese-to-poly.c
29340         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
29341         (close_phi_written_to_memory): New.
29342         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
29343         and unshare_expr.
29344
29345 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29346
29347         * doc/install.texi: Update the expected version number of PPL to 0.11.
29348         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
29349         #if PPL_VERSION_MINOR < 11.
29350
29351 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29352
29353         * graphite-dependences.c: Include graphite-cloog-util.h.
29354         (new_poly_ddr): Inlined into dependence_polyhedron.
29355         (free_poly_ddr): Moved close by new_poly_ddr.
29356         (dependence_polyhedron_1): Renamed dependence_polyhedron.
29357         Early return NULL when ppl_powerset_is_empty returns true.
29358         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
29359         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
29360         (graphite_legal_transform_dr): Call new_poly_ddr.
29361         (graphite_carried_dependence_level_k): Same.
29362         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
29363         (dot_transformed_deps_stmt_1): Removed.
29364         (dot_deps_stmt_1): Call dot_deps_stmt_2.
29365         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
29366         (dot_deps_1): Call dot_deps_2.
29367         * Makefile.in (graphite-dependences.o): Add missing dependence on
29368         graphite-cloog-util.h.
29369
29370 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29371
29372         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
29373         (build_lexicographical_constraint): Same.
29374         (dependence_polyhedron_1): Same.
29375         (graphite_legal_transform_dr): Same.
29376         (graphite_carried_dependence_level_k): Same.
29377         * graphite-ppl.c (ppl_powerset_is_empty): New.
29378         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
29379         * tree-data-ref.c (dump_data_reference): Print the basic block index.
29380
29381 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29382
29383         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
29384         the "a followed by b" relation and document it.
29385
29386 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29387
29388         * graphite-dependences.c (build_lexicographical_constraint): Stop the
29389         iteration when the bag of constraints is empty.
29390
29391 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29392
29393         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
29394
29395 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29396
29397         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
29398         nest and two loop depths as parameters.
29399         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
29400         lst_perfect_nestify.
29401
29402 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29403
29404         * graphite-dependences.c (print_pddr): Call
29405         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
29406
29407 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29408
29409         * graphite-ppl.c (debug_gmp_value): New.
29410         * graphite-ppl.h (debug_gmp_value): Declared.
29411
29412 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
29413
29414         * doc/install.texi: Document availability of cloog-0.16.
29415
29416 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
29417
29418         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
29419         invalid postdominance info.
29420
29421 2011-01-24  Jan Hubicka  <jh@suse.cz>
29422
29423         PR c/21659
29424         * doc/extend.texi (weak pragma): Drop claim that it must
29425         appear before definition.
29426         * varasm.c (merge_weak, declare_weak): Only sanity check
29427         that DECL is not output at a time it is declared weak.
29428
29429 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
29430
29431         * machmode.def: Fixed comments.
29432
29433 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
29434
29435         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
29436
29437 2011-01-24  Paul Koning  <ni1d@arrl.net>
29438
29439         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
29440         WORDS_BIG_ENDIAN.
29441
29442 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
29443
29444         PR target/46519
29445         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
29446         (block_info): Add scanned and prev.
29447         (move_or_delete_vzeroupper_2): Return if the basic block
29448         has been scanned and the upper 128bit state is unchanged
29449         from the last scan.
29450         (move_or_delete_vzeroupper_1): Return true if the exit
29451         state is changed.
29452         (move_or_delete_vzeroupper): Visit basic blocks using the
29453         work-list based algorithm based on vt_find_locations in
29454         var-tracking.c.
29455
29456         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
29457
29458 2011-01-24  Nick Clifton  <nickc@redhat.com>
29459
29460         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
29461         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
29462         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
29463         then define __v850e1__.
29464         * doc/invoke.texi: Document -mv850es.
29465
29466 2011-01-24  Richard Henderson  <rth@redhat.com>
29467
29468         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
29469         compound unordered comparisons.
29470         * config/rx/rx.c (rx_split_fp_compare): Remove.
29471         * config/rx/rx-protos.h: Update.
29472         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
29473         (cbranchsf4): Don't call rx_split_fp_compare.
29474         (*cbranchsf4): Use rx_split_cbranch.
29475         (*cmpsf): Don't accept "i" constraint.
29476         (*conditional_branch): Only valid after reload.
29477         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
29478
29479 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
29480
29481         PR target/47385
29482         * config/rs6000/altivec.md (vector constant splitters): Add
29483         support for creating vector single precision constants if -mvsx is
29484         used and we would create the constant using Altivec primitives.
29485
29486 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
29487             Richard Sandiford  <rdsandiford@googlemail.com>
29488
29489         PR rtl-optimization/47166
29490         * reload1.c (emit_reload_insns): Disable the spill_reg_store
29491         mechanism for PRE_MODIFY and POST_MODIFY.
29492         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
29493         reloadreg.
29494
29495 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
29496
29497         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
29498
29499 2011-01-22  Jan Hubicka  <jh@suse.cz>
29500
29501         PR lto/47333
29502         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
29503
29504 2011-01-22  Jan Hubicka  <jh@suse.cz>
29505
29506         PR tree-optimization/43884
29507         PR lto/44334
29508         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
29509         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
29510
29511 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
29512
29513         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
29514         * config/s390/s390.c (s390_register_move_cost,
29515         s390_memory_move_cost): New.
29516         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
29517
29518 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29519
29520         PR middle-end/47401
29521         * except.c (sjlj_assign_call_site_values): Move setting the
29522         crtl->uses_eh_lsda flag to ...
29523         (sjlj_mark_call_sites): ... here.
29524         (sjlj_emit_function_enter): Support NULL dispatch label.
29525         (sjlj_build_landing_pads): In a function with no landing pads
29526         that still has must-not-throw regions, generate code to register
29527         a personality function with empty LSDA.
29528
29529 2011-01-21  Richard Henderson  <rth@redhat.com>
29530
29531         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
29532
29533         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
29534
29535         * compare-elim.c: New file.
29536         * Makefile.in (OBJS-common): Add it.
29537         (compare-elim.o): New.
29538         * common.opt (fcompare-elim): New.
29539         * opts.c (default_options_table): Add OPT_fcompare_elim.
29540         * tree-pass.h (pass_compare_elim_after_reload): New.
29541         * passes.c (init_optimization_passes): Add it.
29542         * recog.h: Protect against re-inclusion.
29543         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
29544         * doc/invoke.texi (-fcompare-elim): Document it.
29545         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
29546         * doc/tm.texi: Rebuild.
29547
29548 2011-01-22  Nick Clifton  <nickc@redhat.com>
29549
29550         * config/rx/rx.md (cstoresf4): Pass comparison operator to
29551         rx_split_fp_compare.
29552
29553 2011-01-22  Nick Clifton  <nickc@redhat.com>
29554
29555         * config/rx/rx.md (UNSPEC_CONST): New.
29556         (deallocate_and_return): Wrap the amount popped off the stack in
29557         an UNSPEC_CONST in order to stop it being rejected by
29558         -mmax-constant-size.
29559         (pop_and_return): Add a "(return)" rtx.
29560         (call): Drop the immediate operand.
29561         (call_internal): Likewise.
29562         (call_value): Likewise.
29563         (call_value_internal): Likewise.
29564         (sibcall_internal): Likewise.
29565         (sibcall_value_internal): Likewise.
29566         (sibcall): Likewise.  Generate an explicit call using
29567         sibcall_internal.
29568         (sibcall_value): Likewise.
29569         (mov<>): FAIL if a constant operand is not legitimate.
29570         (addsi3_unpsec): New pattern.
29571
29572         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
29573         (ok_for_max_constant): New function.
29574         (gen_safe_add): New function.
29575         (rx_expand_prologue): Use gen_safe_add.
29576         (rx_expand_epilogue): Likewise.
29577         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
29578         UNSPEC CONSTs.
29579
29580 2011-01-21  Jeff Law  <law@redhat.com>
29581
29582         PR tree-optimization/47053
29583         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
29584         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
29585         statements are deleted.
29586         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
29587         is nonempty, then purge dead edges and cleanup the CFG.
29588
29589 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
29590
29591         PR debug/47402
29592         Temporarily revert:
29593         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
29594         PR debug/47106
29595         * tree-dfa.c (create_var_ann): Mark variable as used.
29596
29597 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
29598
29599         PR middle-end/45566
29600         * except.c (convert_to_eh_region_ranges): Emit queued no-region
29601         notes from other section in hot/cold partitioning even if
29602         last_action is -3.  Increment call_site_base.
29603
29604         PR rtl-optimization/47366
29605         * fwprop.c (forward_propagate_into): Return bool.  If
29606         any changes are made, -fnon-call-exceptions is used and
29607         REG_EH_REGION note is present, call purge_dead_edges
29608         and return true if it purged anything.
29609         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
29610         any EH edges were purged.
29611
29612 2011-01-21  Jeff Law  <law@redhat.com>
29613
29614         PR rtl-optimization/41619
29615         * caller-save.c (setup_save_areas): Break out code to determine
29616         which hard regs are live across calls by examining the reload chains
29617         so that it is always used.
29618         Eliminate code which checked REG_N_CALLS_CROSSED.
29619
29620 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
29621
29622         PR tree-optimization/47355
29623         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
29624         NOP has non-debug uses beyond PHIs in new_bb.
29625
29626 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
29627
29628         PR debug/47106
29629         * cfgexpand.c (account_used_vars_for_block): Only account vars
29630         that are annotated as used.
29631         (estimated_stack_frame_size): Don't set TREE_USED.
29632         * tree-dfa.c (create_var_ann): Mark variable as used.
29633
29634 2011-01-21  Richard Guenther  <rguenther@suse.de>
29635
29636         PR middle-end/47395
29637         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
29638
29639 2011-01-21  Richard Guenther  <rguenther@suse.de>
29640
29641         PR tree-optimization/47365
29642         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
29643         (vn_reference_lookup_pieces): Adjust.
29644         (vn_reference_lookup): Likewise.
29645         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
29646         (vn_reference_lookup_3): Only look through kills if in
29647         VN_WALKREWRITE mode.
29648         (vn_reference_lookup_pieces): Adjust.
29649         (vn_reference_lookup): Likewise.
29650         (visit_reference_op_load): Likewise.
29651         (visit_reference_op_store): Likewise.
29652         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
29653         (compute_avail): Likewise.
29654         (eliminate): Likewise.
29655
29656 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
29657
29658         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
29659         DECL_IGNORED_P non-reg vars if they are used.
29660
29661         PR tree-optimization/47391
29662         * varpool.c (const_value_known_p): Return false if
29663         decl is volatile.
29664
29665 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
29666
29667         PR bootstrap/47215
29668         * config/i386/i386.c (ix86_local_alignment): Handle
29669         case for va_list_type_node is nil.
29670         (ix86_canonical_va_list_type): Likewise.
29671
29672 2011-01-21  Alan Modra  <amodra@gmail.com>
29673
29674         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
29675         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
29676
29677 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29678
29679         * config/arm/arm.md (define_attr type): Rename f_load
29680         and f_store to f_fpa_load and f_fpa_store. Update.
29681         (write_conflict): Deal with rename fallout.
29682         (*push_fp_multi): Likewise.
29683         * config/arm/fpa.md (f_load): Use f_fpa_load.
29684         (f_store): Use f_fpa_store.
29685         (*movsf_fpa): Likewise.
29686         (*movdf_fpa): Likewise.
29687         (*movxf_fpa): Likewise.
29688         (*thumb2_movsf_fpa): Likewise.
29689         (*thumb2_movdf_fpa): Likewise.
29690         (*thumb2_movxf_fpa): Likewise.
29691         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
29692         f_loadd and f_stored.
29693         (*thumb2_movdi_vfp): Likewise.
29694         (*thumb2_movsf_vfp): Fix attribute to f_loads.
29695         (*thumb2_movsi_vfp): Likewise.
29696         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
29697         Use f_loads instead of f_load.
29698         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
29699
29700 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
29701
29702         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29703         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
29704         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29705         (xtensa_mode_dependent_address_p): New function.
29706         (constantpool_address_p): Make static. Change return type to bool.
29707         Change argument type to const_rtx. Use CONST_INT_P predicate.
29708
29709 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
29710
29711         PR debug/46583
29712         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
29713
29714 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
29715
29716         PR debug/47283
29717         * cfgexpand.c (expand_debug_expr): Instead of generating
29718         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
29719         etc. handling.
29720
29721 2011-01-20  Richard Guenther  <rguenther@suse.de>
29722
29723         PR middle-end/47370
29724         * tree-inline.c (remap_gimple_op_r): Recurse manually for
29725         the pointer operand of MEM_REFs.
29726
29727 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
29728
29729         PR tree-optimization/46130
29730         * ipa-split.c (consider_split): If return_bb contains non-virtual
29731         PHIs other than for retval or if split_function would not adjust it,
29732         refuse to split.
29733
29734 2011-01-20  Richard Guenther  <rguenther@suse.de>
29735
29736         PR tree-optimization/47167
29737         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
29738         Revert previous change, only avoid enumeral type changes.
29739
29740 2011-01-19  Mike Stump  <mikestump@comcast.net>
29741
29742         * doc/tm.texi.in (BRANCH_COST): Englishify.
29743         * doc/tm.texi (BRANCH_COST): Likewise.
29744
29745 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
29746
29747         PR c++/47291
29748         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
29749         (gen_scheduled_generic_parms_dies): New functions.
29750         (gen_struct_or_union_type_die): Schedule template parameters DIEs
29751         generation for the end of CU compilation.
29752         (dwarf2out_finish): Generate template parameters DIEs here.
29753
29754 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29755
29756         PR debug/46240
29757         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
29758         debug bind stmt on merge edges.
29759
29760 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29761
29762         PR debug/47079
29763         PR debug/46724
29764         * function.c (instantiate_expr): Instantiate incoming rtl of
29765         implicit arguments, and recurse on VALUE_EXPRs.
29766         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
29767         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
29768
29769 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29770
29771         * c-parser.c (c_parser_for_statement): Initialize
29772         collection_expression.
29773
29774 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29775
29776         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
29777
29778 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29779
29780         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
29781         (LINK_SHLIB_SPEC): Don't use %(link_path).
29782         (SUBTARGET_EXTRA_SPECS): Remove link_path.
29783
29784 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29785
29786         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
29787         (NO_SHARED_LIB_SUPPORT): Remove.
29788         (LINK_SHLIB_SPEC): Remove one conditional definition.
29789
29790 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29791
29792         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
29793         %{call_shared}.
29794         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
29795         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
29796         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
29797         %{call_shared} and conditionals on these options not being passed.
29798         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
29799         %{call_shared}.
29800
29801 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
29802
29803         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
29804         simplify.
29805
29806         * ipa-split.c: Spelling fixes.
29807
29808 2011-01-19  Richard Henderson  <rth@redhat.com>
29809
29810         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
29811         (*mulsi3): Likewise.
29812
29813         * longlong.h [__mn10300__] (count_leading_zeros): New.
29814         [__mn10300__] (umul_ppmm, smul_ppmm): New.
29815         [__mn10300__] (add_ssaaaa, subddmmss): New.
29816         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
29817         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
29818
29819 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29820
29821         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
29822
29823 2011-01-19  Richard Henderson  <rth@redhat.com>
29824
29825         * config/mn10300/mn10300.md (addsi3_flags): New.
29826         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
29827         (subsi3_flags, subc_internal, subdi3): New.
29828         (subdi3_internal, *subdi3_degenerate): New.
29829         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
29830
29831         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
29832         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
29833         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
29834         * config/mn10300/mn10300-protos.h: Update.
29835         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
29836         (return_ret): Likewise.  Rename from return_internal_regs.
29837         (return_internal): Remove.
29838
29839         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
29840         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
29841         (mn10300_legitimate_constant_p): Likewise.
29842         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
29843         (mn10300_frame_size): New.
29844         (mn10300_expand_prologue): Use it.
29845         (mn10300_expand_epilogue): Likewise.
29846         (mn10300_initial_offset): Likewise.
29847         * config/mn10300/mn10300-protos.h: Update.
29848         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
29849         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
29850         (prologue, epilogue, return_internal): Tidy output code.
29851         (mn10300_store_multiple_operation, return): Likewise.
29852         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
29853         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
29854         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
29855         (load_pic, am33_load_pic): New.
29856         (mn10300_load_pic0, mn10300_load_pic1): New.
29857
29858         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
29859         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
29860         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
29861         (cc_flags_for_mode, cc_flags_for_code): New.
29862         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
29863         overflow flag is not valid.  Validate that the flags we need
29864         for the comparison are valid.
29865         (mn10300_output_cmp): Remove.
29866         (mn10300_output_add): New.
29867         (mn10300_select_cc_mode): Use cc_flags_for_code.
29868         (mn10300_split_cbranch): New.
29869         (mn10300_match_ccmode): New.
29870         (mn10300_split_and_operand_count): New.
29871         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
29872         to the function.
29873         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
29874         (addsi3): ... here.  Use mn10300_output_add.
29875         (*addsi3_flags): New.
29876         (*am33_subsi3, *mn10300_subsi3): Merge...
29877         (subsi3): ... here.  Use attribute isa.
29878         (*subsi3_flags): New.
29879         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
29880         when possible.
29881         (*am33_andsi3, *mn10300_andsi3): Merge...
29882         (andsi3): ... here.
29883         (*andsi3_flags): New.
29884         (andsi3 splitters): New.
29885         (*am33_iorsi3, *mn10300_iorsi3): Merge...
29886         (iorsi3): ... here.
29887         (*iorsi3_flags): New.
29888         (*am33_xorsi3, *mn10300_xorsi3): Merge...
29889         (xorsi3): ... here.
29890         (*xorsi3_flags): New.
29891         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
29892         (one_cmplsi2): ... here.
29893         (*one_cmplsi2_flags): New.
29894         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
29895         instead of "dax" in constraints.  Use mn10300_split_cbranch.
29896         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
29897         use matching constraints to eliminate a self-comparison.
29898         (*integer_conditional_branch): Rename from integer_conditional_branch.
29899         Use int_mode_flags to match CC_REG.
29900         (*cbranchsi4_btst, *btstsi): New.
29901         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
29902         mn10300_split_cbranch.
29903         (*am33_cmpsf): Rename from am33_cmpsf.
29904         (*float_conditional_branch): Rename from float_conditional_branch.
29905         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
29906         (zero_extendqisi2): ... here.
29907         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
29908         (zero_extendhisi2): ... here.
29909         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
29910         (extendqisi2): ... here.
29911         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
29912         (extendhisi2): ... here.
29913         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
29914         (ashlsi3): ... here.
29915         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
29916         (lshrsi3): ... here.
29917         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
29918         (ashrsi3): ... here.
29919         (consecutive add peephole): Remove.
29920         * config/mn10300/predicates.md (label_ref_operand): New.
29921         (int_mode_flags): New.
29922         (CCZN_comparison_operator): New.
29923
29924         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
29925         (throughput_42_latency_43): New reservation.
29926         (mulsidi3, umulsidi3): New expanders.
29927         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
29928         the MDR register to allocation; separately allocate the low and
29929         high parts of the DImode result.
29930         (umulsidi3_internal): Similarly.
29931         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
29932         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
29933         (udivsi3, umodsi3): Remove.
29934         (udivmodsi4, divmodsi4): New expanders.
29935         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
29936         (*divmodsi4): Simiarly.
29937         (ext_internal): New.
29938
29939         * config/mn10300/constraints.md ("z"): New constraint.
29940         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
29941         (FIXED_REGISTERS): Don't fix MDR.
29942         (CALL_USED_REGSITERS): Reformat nicely.
29943         (REG_ALLOC_ORDER): Add MDR.
29944         (enum regclass): Add MDR_REGS.
29945         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
29946         (IRA_COVER_CLASSES): Add MDR_REGS.
29947         (REGNO_REG_CLASS): Handle MDR_REG.
29948         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
29949         (mn10300_register_move_cost): Likewise.
29950         * config/mn10300/mn10300.md (MDR_REG): New.
29951         (*movsi_internal): Handle moves to/from MDR_REGS.
29952
29953         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
29954         POST_MODIFY.
29955         (mn10300_secondary_reload): Tidy combination reload classes.
29956         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
29957         addresses for AM33.  Allow symbolic offsets for reg+imm.
29958         (mn10300_regno_in_class_p): New.
29959         (mn10300_legitimize_reload_address): New.
29960         * config/mn10300/mn10300.h (enum reg_class): Remove
29961         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
29962         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
29963         SP_OR_GENERAL_REGS.
29964         (REG_CLASS_NAMES): Update to match.
29965         (REG_CLASS_CONTENTS): Likewise.
29966         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
29967         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
29968         (REGNO_IN_RANGE_P): Remove.
29969         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
29970         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
29971         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
29972         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
29973         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
29974         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
29975         (REGNO_GENERAL_P): New.
29976         (HAVE_POST_MODIFY_DISP): New.
29977         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
29978         (LEGITIMIZE_RELOAD_ADDRESS): New.
29979         * config/mn10300/mn10300-protos.h: Update.
29980
29981         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
29982         DATA_REGS for AM33 stack-pointer destination.
29983         (mn10300_preferred_output_reload_class): Likewise.
29984         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
29985         into a form appropriate for ...
29986         (TARGET_SECONDARY_RELOAD): New.
29987         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
29988         * config/mn10300/mn10300-protos.h: Update.
29989         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
29990         reload_insi; use the "A" constraint for the scratch; handle AM33
29991         moves of sp to non-address registers.
29992
29993         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
29994         (*movqi_internal): ... here.
29995         (*am33_movhi, *mn10300_movhi): Merge into...
29996         (*movhi_internal): ... here.
29997         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
29998         as the source/destination of moves from/to SP.
29999         (movsf): Only allow for AM33-2.
30000         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
30001         any integer constant constraint.  Only allow for AM33-2.  Tidy
30002         all of the alternative outputs.
30003         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
30004         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
30005         for MN103.
30006         (udivsi3, umodsi3): New patterns for MN103 only.
30007
30008 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
30009
30010         * doc/tm.texi.in: Spell out that a lack of register class unions
30011         can lead to ICEs.
30012         * doc/tm.texi: Regenerate.
30013
30014 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
30015
30016         PR rtl-optimization/47337
30017         * dce.c (check_argument_store): New function.
30018         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
30019
30020         PR tree-optimization/47290
30021         * tree-eh.c (infinite_empty_loop_p): New function.
30022         (cleanup_empty_eh): Use it.
30023
30024 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
30025
30026         PR target/46997
30027         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
30028         (a64_expand_widen_sum): Ditto.
30029         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
30030         (vec_extract_evenodd_help): Ditto.
30031         (vec_extract_evenv4hi): Ditto.
30032         (vec_extract_oddv4hi): Ditto.
30033         (vec_extract_evenv2si): Ditto.
30034         (vec_extract_oddv2si): Ditto.
30035         (vec_extract_evenv2sf): Ditto.
30036         (vec_extract_oddv2sf): Ditto.
30037         (vec_pack_trunc_v4hi: Ditto.
30038         (vec_pack_trunc_v2si): Ditto.
30039         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
30040         (vec_interleave_highv8qi): Ditto.
30041         (mix1_r): Ditto.
30042         (vec_extract_oddv8qi): Ditto.
30043         (vec_interleave_lowv4hi): Ditto.
30044         (vec_interleave_highv4hi): Ditto.
30045         (vec_interleave_lowv2si): Ditto.
30046         (vec_interleave_highv2si): Ditto.
30047
30048 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30049
30050         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
30051         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
30052         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
30053         (pa_c_mode_for_suffix): New.
30054         (TARGET_EXPAND_BUILTIN): Define.
30055         (TARGET_C_MODE_FOR_SUFFIX): Define.
30056         (pa_builtins): Define.
30057         (pa_init_builtins): Register __float128 type and init new support
30058         builtins.
30059         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
30060         * config/pa/quadlib.c (_U_Qfcopysign): New.
30061
30062 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
30063
30064         PR middle-end/46894
30065         * explow.c (allocate_dynamic_stack_space): Do not assume more than
30066         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
30067         are defined.
30068
30069 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30070
30071         PR tree-optimization/47179
30072         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
30073         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
30074
30075 2011-01-18  Richard Guenther  <rguenther@suse.de>
30076
30077         PR rtl-optimization/47216
30078         * emit-rtl.c: Include tree-flow.h.
30079         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
30080         of replicating it with different semantics.
30081         * Makefile.in (emit-rtl.o): Adjust.
30082
30083 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30084
30085         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
30086         (cortex_a9_dp): Handle neon types correctly.
30087
30088 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
30089
30090         PR rtl-optimization/47299
30091         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
30092         subtarget.  Use normal multiplication if both operands are constants.
30093         * expmed.c (expand_widening_mult): Don't try to optimize constant
30094         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
30095         before using it.
30096
30097 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30098
30099         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
30100         spacing after 'e.g.', typos, comma, hyphenation.
30101
30102 2011-01-17  Richard Henderson  <rth@redhat.com>
30103
30104         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
30105         (rx_restricted_mem_operand): New.
30106         (rx_shift_operand): Use register_operand.
30107         (rx_source_operand, rx_compare_operand): Likewise.
30108         * config/rx/rx.md (addsi3_flags): New expander.
30109         (adddi3): Rewrite as expander.
30110         (adc_internal, *adc_flags, adddi3_internal): New patterns.
30111         (subsi3_flags): New expander.
30112         (subdi3): Rewrite as expander.
30113         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
30114
30115         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
30116         (rx_init_builtins): Remove sat builtin.
30117         (rx_expand_builtin): Likewise.
30118         * config/rx/rx.md (ssaddsi3): New.
30119         (*sat): Rename from sat.  Represent the CC_REG input.
30120
30121         * config/rx/predicates.md (rshift_operator): New.
30122         * config/rx/rx.c (rx_expand_insv): Remove.
30123         * config/rx/rx-protos.h: Update.
30124         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
30125         operand to the canonical position.
30126         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
30127         (*bitclr, *bitclr_in_memory): Similarly.
30128         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
30129         (insv): Retain the zero_extract in the expansion.
30130
30131         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
30132         (bswaphi2, bitinvert, revw): Likewise.
30133
30134         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
30135         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
30136         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
30137         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
30138         (bitset, bitset_in_memory): Likewise.
30139         (bitinvert, bitinvert_in_memory): Likewise.
30140         (bitclr, bitclr_in_memory): Likewise.
30141         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
30142         (rx_strend, rx_cmpstrn): Likewise.
30143         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
30144         (bitop peep2 patterns): Remove.
30145
30146         * config/rx/rx.c (rx_match_ccmode): New.
30147         * config/rx/rx-protos.h: Update.
30148         * config/rx/rx.md (abssi2): Clobber, don't set flags.
30149         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
30150         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
30151         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
30152         (fix_truncsfsi2, floatsisf2): Likewise.
30153         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
30154         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
30155         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
30156         (*subsi3_flags, *xorsi3_flags): New.
30157
30158         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
30159
30160         * config/rx/rx.c (rx_print_operand): Remove workaround for
30161         unsplit comparison operations.
30162
30163         * config/rx/rx.md (movsicc): Split after reload.
30164         (*movsicc): Merge *movsieq and *movsine via match_operator.
30165         (*stcc): New pattern.
30166
30167         * config/rx/rx.c (rx_float_compare_mode): Remove.
30168         * config/rx/rx.h (rx_float_compare_mode): Remove.
30169         * config/rx/rx.md (cstoresi4): Split after reload.
30170         (*sccc): New pattern.
30171
30172         * config/rx/predicates.md (label_ref_operand): New.
30173         (rx_z_comparison_operator): New.
30174         (rx_zs_comparison_operator): New.
30175         (rx_fp_comparison_operator): New.
30176         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
30177         Validate that the flags are set properly for the comparison.
30178         (rx_gen_cond_branch_template): Remove.
30179         (rx_cc_modes_compatible): Remove.
30180         (mode_from_flags): New.
30181         (flags_from_code): Rename from flags_needed_for_conditional.
30182         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
30183         (rx_select_cc_mode): Likewise.
30184         (rx_split_fp_compare): New.
30185         (rx_split_cbranch): New.
30186         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
30187         (*cbranchsi4): Use match_operator and rx_split_cbranch.
30188         (*cbranchsf4): Similarly.
30189         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
30190         match_operator and rx_split_cbranch.
30191         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
30192         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
30193         (*cmpsi): Rename from cmpsi.
30194         (*tstsi): Rename from tstsi.
30195         (*cmpsf): Rename from cmpsf; use CC_Fmode.
30196         (*conditional_branch): Rename from conditional_branch.
30197         (*reveresed_conditional_branch): Remove.
30198         (b<code>): Remove expander.
30199         * config/rx/rx-protos.h: Update.
30200
30201         * config/rx/rx.c (rx_compare_redundant): Remove.
30202         * config/rx/rx.md (cmpsi): Don't use it.
30203         * config/rx/rx-protos.h: Update.
30204
30205         * config/rx/rx-modes.def (CC_F): New mode.
30206         * config/rx/rx.c (rx_select_cc_mode): New.
30207         * config/rx/rx.h (SELECT_CC_MODE): Use it.
30208         * config/rx/rx-protos.h: Update.
30209
30210 2011-01-17  Richard Henderson  <rth@redhat.com>
30211
30212         * except.c (dump_eh_tree): Fix stray ; after for statement.
30213
30214 2011-01-17  Richard Guenther  <rguenther@suse.de>
30215
30216         PR tree-optimization/47313
30217         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
30218         handling before copying the body.  Properly deal with
30219         by-reference result in SSA form.
30220
30221 2011-01-17  Ian Lance Taylor  <iant@google.com>
30222
30223         PR target/47219
30224         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
30225         (struct_value_alias_set): Don't define.
30226         (sparc_option_override): Don't set sparc_sr_alias_set and
30227         struct_value_alias_set.
30228         (save_or_restore_regs): Use gen_frame_mem rather than calling
30229         set_mem_alias_set.
30230         (sparc_struct_value_rtx): Likewise.
30231
30232 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
30233
30234         PR target/47318
30235         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
30236         (_mm_maskstore_pd): Likewise.
30237         (_mm_maskload_ps): Likewise.
30238         (_mm_maskstore_ps): Likewise.
30239         (_mm256_maskload_pd): Change mask to __m256i.
30240         (_mm256_maskstore_pd): Likewise.
30241         (_mm256_maskload_ps): Likewise.
30242         (_mm256_maskstore_ps): Likewise.
30243
30244         * config/i386/i386-builtin-types.def: Updated.
30245         (ix86_expand_special_args_builtin): Likewise.
30246
30247         * config/i386/i386.c (bdesc_special_args): Update
30248         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
30249         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
30250         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
30251         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
30252
30253         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
30254         Use <avxpermvecmode> on mask register.
30255         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
30256
30257 2011-01-17  Olivier Hainque  <hainque@adacore.com>
30258             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30259             Eric Botcazou  <ebotcazou@adacore.com>
30260
30261         PR target/46655
30262         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
30263         if <= USHRT_MAX in 32-bit mode.
30264
30265 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30266
30267         * doc/install.texi (Configuration, Specific): Wrap long
30268         lines in examples.  Allow line wrapping in long options
30269         and URLs where beneficial for PDF output.
30270
30271 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
30272
30273         * config/mips/mips.c (mips_classify_symbol): Don't return
30274         SYMBOL_PC_RELATIVE for nonlocal labels.
30275
30276 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
30277
30278         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
30279
30280 2011-01-15  Jan Hubicka  <jh@suse.cz>
30281
30282         PR tree-optimization/47276
30283         * ipa.c (function_and_variable_visibility): Do not try to mark alias
30284         declarations as needed.
30285
30286 2011-01-15  Martin Jambor  <mjambor@suse.cz>
30287
30288         * common.opt (fdevirtualize): New flag.
30289         * doc/invoke.texi (Option Summary): Document it.
30290         * opts.c (default_options_table): Add devirtualize flag.
30291         * ipa-prop.c (detect_type_change): Return immediately if
30292         devirtualize flag is not set.
30293         (detect_type_change_ssa): Likewise.
30294         (compute_known_type_jump_func): Likewise.
30295         (ipa_analyze_virtual_call_uses): Likewise.
30296
30297 2011-01-14  Martin Jambor  <mjambor@suse.cz>
30298
30299         PR tree-optimization/45934
30300         PR tree-optimization/46302
30301         * ipa-prop.c (type_change_info): New type.
30302         (stmt_may_be_vtbl_ptr_store): New function.
30303         (check_stmt_for_type_change): Likewise.
30304         (detect_type_change): Likewise.
30305         (detect_type_change_ssa): Likewise.
30306         (compute_complex_assign_jump_func): Check for dynamic type change.
30307         (compute_complex_ancestor_jump_func): Likewise.
30308         (compute_known_type_jump_func): Likewise.
30309         (compute_scalar_jump_functions): Likewise.
30310         (ipa_analyze_virtual_call_uses): Likewise.
30311         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
30312
30313 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30314
30315         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
30316         * config/i386/i386.opt (msse5): New Alias.
30317
30318 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30319
30320         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
30321         * config/sparc/linux64.h (CC1_SPEC): Likewise.
30322         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
30323         * config/sparc/sparc.h (CC1_SPEC): Likewise.
30324
30325 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30326
30327         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
30328         -mcpu options.
30329         * config/sparc/linux64.h (CC1_SPEC): Likewise.
30330         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
30331         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
30332         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
30333         Likewise.
30334         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
30335
30336 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30337
30338         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
30339
30340 2011-01-14  Mike Stump  <mikestump@comcast.net>
30341
30342         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
30343         * config/fr30/fr30.md: Likweise
30344         (movsi_push): Likewise.
30345         (movsi_pop): Likewise.
30346         (enter_func): Likewise.
30347         * config/moxie/moxie.md (movsi_push): Likewise.
30348         (movsi_pop): Likewise.
30349
30350 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30351
30352         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
30353         %{no_archive} %{exact_version}.
30354         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
30355         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
30356         %{no_archive} %{exact_version}.
30357         * config/mips/openbsd.h (LINK_SPEC): Likewise.
30358         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
30359         * config/mips/vxworks.h: Likewise.
30360
30361 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30362
30363         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
30364
30365 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30366
30367         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
30368         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
30369
30370 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30371
30372         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
30373         -nodefaultlib.
30374
30375 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30376
30377         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
30378         for mcpu not cpu.
30379         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
30380         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
30381         not cpu.
30382         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
30383         Don't handle -shlib.
30384
30385 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30386
30387         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
30388         (CC1_SPEC): Don't handle -profile.
30389
30390 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30391
30392         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
30393         * config/mips/mips.h (CC1_SPEC): Likewise.
30394
30395 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30396
30397         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
30398         * config/mips/mips.h (CC1_SPEC): Likewise.
30399
30400 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30401
30402         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
30403         * config/m32r/linux.h (LINK_SPEC): Likewise.
30404         * config/mips/linux.h (LINK_SPEC): Likewise.
30405         * config/mips/linux64.h (LINK_SPEC): Likewise.
30406         * config/sparc/linux.h (LINK_SPEC): Likewise.
30407         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
30408         LINK_SPEC): Likewise.
30409         * config/xtensa/linux.h (LINK_SPEC): Likewise.
30410
30411 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30412
30413         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
30414         %{version:-v}.
30415         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
30416
30417 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30418
30419         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
30420         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
30421
30422 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
30423
30424         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
30425
30426 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30427
30428         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
30429         supports -Bstatic/-Bdynamic.
30430         * configure: Regenerate.
30431
30432 2011-01-14  Jan Hubicka  <jh@suse.cz>
30433             Jack Howarth  <howarth@bromo.med.uc.edu>
30434
30435         PR target/46037
30436         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
30437         when checking debug_info_level. Test write_symbols instead of
30438         debug_hooks->var_location when setting flag_var_tracking_uninit.
30439
30440 2011-01-14  Richard Guenther  <rguenther@suse.de>
30441
30442         PR tree-optimization/47179
30443         * target.def (ref_may_alias_errno): New target hook.
30444         * targhooks.h (default_ref_may_alias_errno): Declare.
30445         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
30446         (default_ref_may_alias_errno): New function.
30447         * target.h (struct ao_ref_s): Declare.
30448         * tree-ssa-alias.c: Include target.h.
30449         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
30450         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
30451         (targhooks.o): Likewise.
30452         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
30453         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
30454
30455 2011-01-14  Richard Guenther  <rguenther@suse.de>
30456
30457         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
30458
30459 2011-01-14  Richard Guenther  <rguenther@suse.de>
30460
30461         PR tree-optimization/47280
30462         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
30463         return CFG changes.
30464         (tree_ssa_forward_propagate_single_use_vars): Deal with
30465         CFG changes from associate_plusminus.
30466
30467 2011-01-14  Richard Guenther  <rguenther@suse.de>
30468
30469         PR middle-end/47281
30470         Revert
30471         2011-01-11  Richard Guenther  <rguenther@suse.de>
30472
30473         PR tree-optimization/46076
30474         * tree-ssa.c (useless_type_conversion_p): Conversions from
30475         unprototyped to empty argument list function types are useless.
30476
30477 2011-01-14  Richard Guenther  <rguenther@suse.de>
30478
30479         PR tree-optimization/47286
30480         * tree-ssa-structalias.c (new_var_info): Register variables are global.
30481
30482 2011-01-14  Martin Jambor  <mjambor@suse.cz>
30483
30484         PR middle-end/46823
30485         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
30486
30487 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
30488
30489         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
30490         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
30491         * config/xtensa/xtensa.c (xtensa_libcall_value,
30492         xtensa_function_value_regno_p): New functions.
30493         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
30494
30495 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
30496
30497         PR c++/47213
30498         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
30499         PE specific hook.
30500         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
30501         New function prototype.
30502         * config/i386/winnt.c (i386_pe_assemble_visibility):
30503         Warn only if attribute was specified by user.
30504
30505 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
30506
30507         PR target/47251
30508         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
30509         floating point.
30510         (floatunsdidf2_fcfidu): Ditto.
30511
30512 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30513
30514         * config/s390/s390.c (print_operand_address): Replace 'error' with
30515         'output_operand_lossage'.
30516         (print_operand): Likewise.
30517
30518 2011-01-13  Jeff Law  <law@redhat.com>
30519
30520         PR rtl-optimization/39077
30521         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
30522         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
30523         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
30524         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
30525         * gcse.c (prune_insertions_deletions): New function.
30526         (compute_pre_data): Use it.
30527
30528 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
30529
30530         PR debug/PR46973
30531         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
30532         static function.
30533         (prune_unused_types_mark): Use it.
30534
30535 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
30536
30537         PR rtl-optimization/45352
30538         * sel-sched.c: Update copyright years.
30539         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
30540         in the advancing loop when we have issued issue_rate insns.
30541
30542 2011-01-12  Richard Henderson  <rth@redhat.com>
30543
30544         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
30545         (TARGET_MD_ASM_CLOBBERS): New.
30546
30547         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
30548         (TARGET_DELEGITIMIZE_ADDRESS): New.
30549
30550         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
30551         (clzsi2, *bsch): New patterns.
30552
30553         * config/mn10300/mn10300.md (INT): New mode iterator.
30554         (*mov<INT>_clr): New pattern, and peep2 to generate it.
30555
30556         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
30557         flag_split_wide_types.
30558
30559         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
30560         (mn10300_trampoline_init): Rewrite without a template, an immediate
30561         load and a direct branch.
30562         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
30563
30564 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
30565
30566         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30567         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
30568         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
30569         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30570
30571 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
30572
30573         PR debug/47209
30574         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
30575         of type.
30576
30577 2011-01-12  Jan Hubicka  <jh@suse.cz>
30578
30579         PR driver/47244
30580         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
30581         (PLUGIN_COND_CLOSE): New macro.
30582         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
30583
30584 2011-01-12  Richard Guenther  <rguenther@suse.de>
30585
30586         PR lto/47259
30587         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
30588         register variables in a MEM_REF.
30589
30590 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
30591
30592         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
30593         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
30594         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
30595         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
30596         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
30597         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
30598         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
30599         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
30600         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
30601         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
30602         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
30603         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
30604         * config/gnu-user.h: New.  Copied from linux.h.
30605         (LINUX_TARGET_STARTFILE_SPEC): Rename to
30606         GNU_USER_TARGET_STARTFILE_SPEC.
30607         (LINUX_TARGET_ENDFILE_SPEC): Rename to
30608         GNU_USER_TARGET_ENDFILE_SPEC.
30609         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
30610         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
30611         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
30612         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
30613         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
30614         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
30615         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
30616         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
30617         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
30618         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
30619         * config/arm/linux-eabi.h (CC1_SPEC): Use
30620         GNU_USER_TARGET_CC1_SPEC.
30621         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
30622         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
30623         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
30624         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
30625         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
30626         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
30627         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
30628         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
30629
30630 2011-01-12  Richard Guenther  <rguenther@suse.de>
30631
30632         PR other/46946
30633         * doc/invoke.texi (ffast-math): Document it is turned on
30634         with -Ofast.
30635
30636 2011-01-12  Jan Hubicka  <jh@suse.cz>
30637
30638         PR tree-optimization/47233
30639         * opts.c (common_handle_option): Disable ipa-reference with profile
30640         feedback.
30641
30642 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
30643
30644         * c-parser.c (c_parser_objc_at_property_declaration): Improved
30645         error message.
30646
30647 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
30648
30649         * c-parser.c (c_lex_one_token): Updated and reindented some
30650         comments.  No changes in code.
30651
30652 2011-01-11  Ian Lance Taylor  <iant@google.com>
30653
30654         * godump.c (go_output_var): Don't output the variable if there is
30655         already a type with the same name.
30656
30657 2011-01-11  Ian Lance Taylor  <iant@google.com>
30658
30659         * godump.c (go_format_type): Don't generate float80.
30660
30661 2011-01-11  Richard Henderson  <rth@redhat.com>
30662
30663         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
30664         declaration.  Rewrite for both speed and size.
30665         (mn10300_address_cost_1): Remove.
30666         (mn10300_register_move_cost): New.
30667         (mn10300_memory_move_cost): New.
30668         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
30669         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
30670         extensions, shifts, BSWAP, CLZ.
30671         (mn10300_wide_const_load_uses_clr): Remove.
30672         (TARGET_REGISTER_MOVE_COST): New.
30673         (TARGET_MEMORY_MOVE_COST): New.
30674         * config/mn10300/mn10300-protos.h: Update.
30675         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
30676
30677         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
30678         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
30679         * config/mn10300/mn10300-protos.h: Update.
30680         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
30681         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
30682         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
30683         (*test_int_bitfield, *test_byte_bitfield): Remove.
30684         (*bit_test, *subreg_bit_test): Remove.
30685         * config/mn10300/predicates.md (const_8bit_operand): Remove.
30686
30687         * config/mn10300/constraints.md ("c"): Rename from "A".
30688         ("A", "D"): New constraint letters.
30689         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
30690         (fmssf4, fnmasf4, fnmssf4): Likewise.
30691
30692         * config/mn10300/mn10300.md (isa): New attribute.
30693         (enabled): New attribute.
30694
30695         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
30696         (abssf2, negsf2): Define only for hardware fp.
30697         (sqrtsf2): Reformat.
30698         (addsf3, subsf3, mulsf3): Merge expander and insn.
30699
30700         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
30701         (DEBUGGER_AUTO_OFFSET): Remove.
30702         (DEBUGGER_ARG_OFFSET): Remove.
30703
30704         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
30705         Emit register stores with the same offsets as the hardware.
30706         (mn10300_store_multiple_operation): Don't check that the register
30707         save offsets are monotonic.
30708         * config/mn10300/mn10300-protos.h: Update.
30709
30710         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
30711
30712         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
30713         in terms of the value on the stack, not the MDR register.
30714
30715 2011-01-11  Jan Hubicka  <jh@suse.cz>
30716
30717         PR lto/45721
30718         PR lto/45375
30719         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
30720         (symbol_alias_set_destroy, symbol_alias_set_contains,
30721         propagate_aliases_backward): Declare.
30722         * lto-streamer-out.c (struct sets): New sturcture.
30723         (trivally_defined_alias): New function.
30724         (output_alias_pair_p): Rewrite.
30725         (output_unreferenced_globals): Fix output of alias pairs.
30726         (produce_symtab): Likewise.
30727         * ipa.c (function_and_variable_visibility): Set weak alias destination
30728         as needed in lto.
30729         * varasm.c (symbol_alias_set_t): Remove.
30730         (symbol_alias_set_destroy): Export.
30731         (propagate_aliases_forward, propagate_aliases_backward): New functions
30732         based on ...
30733         (compute_visible_aliases): ... this one; remove.
30734         (trivially_visible_alias): New
30735         (trivially_defined_alias): New.
30736         (remove_unreachable_alias_pairs): Rewrite.
30737         (finish_aliases_1): Reorganize code checking if alias is defined.
30738         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
30739         in LTO mode.
30740
30741 2011-01-11  Richard Guenther  <rguenther@suse.de>
30742
30743         PR tree-optimization/46076
30744         * tree-ssa.c (useless_type_conversion_p): Conversions from
30745         unprototyped to empty argument list function types are useless.
30746
30747 2011-01-11  Richard Guenther  <rguenther@suse.de>
30748
30749         PR middle-end/45235
30750         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
30751         volatile MEMs as MEM_READONLY_P.
30752
30753 2011-01-11  Richard Guenther  <rguenther@suse.de>
30754
30755         PR tree-optimization/47239
30756         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
30757
30758 2011-01-11  Jeff Law  <law@redhat.com>
30759
30760         PR tree-optimization/47086
30761         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
30762         IVs from statements that might throw.
30763
30764 2011-01-10  Jan Hubicka  <jh@suse.cz>
30765
30766         PR lto/45375
30767         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
30768
30769 2011-01-10  Jan Hubicka  <jh@suse.cz>
30770
30771         PR lto/45375
30772         * profile.c (read_profile_edge_counts): Ignore profile inconistency
30773         when correcting profile.
30774
30775 2011-01-10  Jan Hubicka  <jh@suse.cz>
30776
30777         PR lto/46083
30778         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
30779         DECL_FINI_PRIORITY.
30780         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
30781         Restore DECL_FINI_PRIORITY.
30782
30783 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30784
30785         * doc/gimple.texi: Fix quoting of multi-word return values in
30786         @deftypefn statements.  Ensure presence of return value.  Wrap
30787         overlong @deftypefn lines.
30788         (is_gimple_operand, is_gimple_min_invariant_address): Remove
30789         descriptions of removed functions.
30790         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
30791         of multi-word return value in @deftypefn statement.
30792
30793 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30794
30795         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
30796         (Conditional Expressions, Logical Operators)
30797         (Statement and operand traversals): Do not indent smallexample
30798         code.  Fix duplicate function argument in example.
30799
30800 2011-01-10  Jeff Law  <law@redhat.com>
30801
30802         PR tree-optimization/47141
30803         * ipa-split.c (split_function): Handle case where we are
30804         returning a value and the return block has a virtual operand phi.
30805
30806 2011-01-10  Jan Hubicka  <jh@suse.cz>
30807
30808         PR tree-optimization/47234
30809         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
30810         (pass_feedback_split_functions): Declare.
30811         * passes.c (init_optimization_passes): Add ipa-split as subpass of
30812         tree-profile.
30813         * ipa-split.c (gate_split_functions): Update comments; disable
30814         split-functions for profile_arc_flag and branch_probabilities.
30815         (gate_feedback_split_functions): New function.
30816         (execute_feedback_split_functions): New function.
30817         (pass_feedback_split_functions): New global var.
30818
30819 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
30820
30821         PR lto/46760
30822         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
30823         calling gimple_call_set_cannot_inline.
30824
30825 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
30826
30827         * config/darwin-sections.def: Remove unused section.
30828
30829 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
30830
30831         PR c++/47218
30832         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
30833
30834 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
30835
30836         PR objc/47232
30837         * c-parser.c (c_parser_declaration_or_fndef): Improved
30838         error message.
30839
30840 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
30841
30842         * config/i386/winnt.c (i386_pe_start_function): Make sure
30843         to switch back to function's section.
30844
30845 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
30846
30847         PR gcc/46902
30848         PR testsuite/46912
30849         * plugin.c: Move include of dlfcn.h from here...
30850         * system.h: ... to here.
30851
30852 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30853
30854         * doc/cpp.texi (C++ Named Operators): Fix markup for header
30855         file name.
30856         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
30857         two extra empty pages in PDF output.
30858
30859 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
30860
30861         PR objc/47078
30862         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
30863         for error recovery purposes behave as if it was not specified so
30864         that the default type is usd.
30865
30866 2011-01-07  Jan Hubicka  <jh@suse.cz>
30867
30868         PR tree-optmization/46469
30869         * ipa.c (function_and_variable_visibility): Clear needed flags on
30870         nodes with external decls; handle weakrefs merging correctly.
30871
30872 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
30873
30874         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
30875         not false.
30876
30877 2011-01-07  Jan Hubicka  <jh@suse.cz>
30878
30879         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
30880         and no longer claim that gold is required for linker plugin.
30881         * configure: Regenerate.
30882         * gcc.c (PLUGIN_COND): New macro.
30883         (LINK_COMMAND_SPEC): Use it.
30884         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
30885         * config.in (HAVE_LTO_PLUGIN): New.
30886         * configure.ac (--with-lto-plugin): New parameter; autodetect
30887         HAVE_LTO_PLUGIN.
30888
30889 2011-01-07  Jan Hubicka  <jh@suse.cz>
30890
30891         PR tree-optimization/46367
30892         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
30893         when we can update original.
30894         (cgraph_mark_inline_edge): Sanity check.
30895         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
30896
30897 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30898
30899         * config/spu/spu.h (ASM_COMMENT_START): Define.
30900
30901 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
30902
30903         PR driver/42445
30904         * gcc.c (%>S): New.
30905         (SWITCH_KEEP_FOR_GCC): Likewise.
30906         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
30907         (do_spec_1): Handle "%>".
30908
30909         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
30910
30911 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
30912
30913         PR target/47201
30914         * config/i386/i386.c (ix86_delegitimize_address): If
30915         simplify_gen_subreg fails, return orig_x.
30916
30917         PR bootstrap/47187
30918         * value-prof.c (gimple_stringop_fixed_value): Handle
30919         lhs of the call properly.
30920
30921 2011-01-07  Jan Hubicka  <jh@suse.cz>
30922
30923         PR lto/45375
30924         * lto-opt.c (lto_reissue_options): Set flag_shlib.
30925
30926 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
30927
30928         * target.def (function_switched_text_sections): New hook.
30929         * doc/tm.texi: Regenerated.
30930         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30931         * final.c (default_function_switched_text_sections): New.
30932         (final_scan_insn): Call function_switched_text_sections when a
30933         mid-function section change occurs.
30934         * output.h (default_function_switched_text_sections): Declare.
30935         * config/darwin-protos.h (darwin_function_switched_text_sections):
30936         Likewise.
30937         * config/darwin.c (darwin_function_switched_text_sections): New.
30938         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30939
30940 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
30941
30942         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
30943         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
30944         the secondary code fragment when outputting for DWARF == 2.
30945
30946 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
30947
30948         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30949         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
30950         Remove.
30951         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
30952         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30953
30954 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
30955
30956         PR debug/46704
30957         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
30958         when it is not empty.
30959
30960 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
30961
30962         Bobcat Enablement
30963         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
30964         (case ${target}): Add btver1.
30965         * config/i386/driver-i386.c (host_detect_local_cpu): Let
30966         -march=native recognize btver1 processors.
30967         * config/i386/i386-c.c (ix86_target_macros_internal): Add
30968         btver1 def_and_undef
30969         * config/i386/i386.c (struct processor_costs btver1_cost): New
30970         btver1 cost table.
30971         (m_BTVER1): New definition.
30972         (m_AMD_MULTIPLE): Includes m_BTVER1.
30973         (initial_ix86_tune_features): Add btver1 tune.
30974         (processor_target_table): Add btver1 entry.
30975         (static const char *const cpu_names): Add btver1 entry.
30976         (software_prefetching_beneficial_p): Add btver1.
30977         (ix86_option_override_internal): Add btver1 instruction sets.
30978         (ix86_issue_rate): Add btver1.
30979         (ix86_adjust_cost): Add btver1.
30980         * config/i386/i386.h (TARGET_BTVER1): New definition.
30981         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
30982         (enum processor_type): Add PROCESSOR_BTVER1.
30983         * config/i386/i386.md (define_attr "cpu"): Add btver1.
30984
30985 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30986
30987         PR target/43309
30988         * config/i386/i386.c (legitimize_tls_address)
30989         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
30990         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
30991         (tls_initial_exec_64_sun): New pattern.
30992
30993 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
30994
30995         * doc/invoke.texi (Overall Options): Improve wording and markup
30996         of the description of -wrapper.
30997
30998 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
30999
31000         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
31001         rdynamic, threads): New Driver options.
31002
31003 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31004
31005         PR target/38118
31006         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
31007         if coming from .tdata.
31008         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
31009
31010 2011-01-06  Jan Hubicka  <jh@suse.cz>
31011
31012         PR lto/47188
31013         * collect2.c (main): Do not enable LTOmode when plugin is active.
31014
31015 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31016
31017         PR other/45915
31018         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
31019         --version output if supported.
31020         * configure: Regenerate.
31021
31022 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
31023
31024         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
31025         Driver options.
31026
31027 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
31028
31029         PR c/47150
31030         * c-convert.c (convert): When converting a complex expression
31031         other than COMPLEX_EXPR to a different complex type, ensure
31032         c_save_expr is called instead of save_expr, unless in_late_binary_op.
31033         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
31034         when converting COMPLEX_TYPE.
31035
31036 2011-01-06  Ira Rosen  <irar@il.ibm.com>
31037
31038         PR tree-optimization/47139
31039         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
31040         only the last reduction value is used outside the loop.  Update
31041         documentation.
31042
31043 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
31044
31045         * config/rtems.opt: New.
31046         * config.gcc (*-*-rtems*): Use rtems.opt.
31047
31048 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
31049
31050         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
31051         processors do not support 3DNow instructions.
31052
31053 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31054
31055         * config/spu/spu.c (spu_option_override): Set parameter
31056         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
31057
31058 2011-01-05  Jan Hubicka  <jh@suse.cz>
31059
31060         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
31061         at the command line.
31062
31063 2011-01-05  Martin Jambor  <mjambor@suse.cz>
31064
31065         PR lto/47162
31066         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
31067         deltas on streamed outgoing edges.
31068         (output_node_opt_summary): Output info for outgoing edges only when
31069         the node is in new parameter set.
31070         (output_cgraph_opt_summary): New parameter set, passed to the two
31071         aforementioned functions.  Update its forward declaration and its
31072         callee too.
31073
31074 2011-01-05  Tom Tromey  <tromey@redhat.com>
31075
31076         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
31077         operator to c_finish_omp_atomic.
31078         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
31079         (build_unary_op): Update.
31080         (build_modify_expr): Update.
31081         (build_asm_expr): Update.
31082
31083 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31084
31085         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
31086         newly inserted insns.
31087         (pad_bb): Likewise.
31088         (spu_emit_branch_hint): Likewise.
31089         (insert_hbrp_for_ilb_runout): Likewise.
31090         (spu_machine_dependent_reorg): Call df_finish_pass after
31091         schedule_insns returns.
31092
31093 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31094
31095         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
31096
31097 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
31098
31099         PR tree-optimization/47005
31100         * tree-sra.c (struct access): Add 'non_addressable' bit.
31101         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
31102         (decide_one_param_reduction): Return 0 if the parameter is passed by
31103         reference and one of the accesses in the group is non_addressable.
31104
31105 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31106
31107         PR tree-optimization/47056
31108         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
31109         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
31110         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
31111
31112 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31113
31114         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
31115         initializer.  Skip view conversions from aggregate types.
31116
31117 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
31118
31119         PR bootstrap/47055
31120         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
31121
31122 2011-01-04  Philipp Thomas  <pth@suse.de>
31123
31124         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
31125         obvious typo.
31126
31127 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31128
31129         * function.c (thread_prologue_and_epilogue_insns): Do not crash
31130         on empty epilogue sequences.
31131
31132 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
31133
31134         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
31135         non-static): New Driver options.
31136
31137 2011-01-04  Jie Zhang  <jie@codesourcery.com>
31138
31139         PR driver/47137
31140         * gcc.c (default_compilers[]): Set combinable field to 0
31141         for all assembly languages.
31142
31143 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
31144
31145         * config/mips/loongson3a.md: New file.
31146         * config/mips/mips.md: Include loongson3a.md.
31147         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
31148         TUNE_LOONGSON_3A.
31149
31150 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
31151
31152         PR middle-end/47017
31153         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
31154         instead of convert_memory_address_addr_space on the base expression.
31155
31156 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31157
31158         * config/spu/spu.c (spu_option_override): Update error text
31159         for bad -march= / -mtune= values.
31160
31161 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31162
31163         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
31164         if branch-hint optimization will be performed.
31165
31166 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
31167
31168         PR tree-optimization/47148
31169         * ipa-split.c (split_function): Convert arguments to
31170         DECL_ARG_TYPE if possible.
31171
31172         PR tree-optimization/47155
31173         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
31174         when computing uns.
31175
31176         PR rtl-optimization/47157
31177         * combine.c (try_combine): If undobuf.other_insn becomes
31178         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
31179         and set *new_direct_jump_p too.
31180
31181 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
31182
31183         PR tree-optimization/47021
31184         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
31185
31186 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
31187
31188         * gcc.c (process_command): Update copyright notice dates.
31189         * gcov.c (print_version): Likewise.
31190         * gcov-dump.c (print_version): Likewise.
31191         * mips-tfile.c (main): Likewise.
31192         * mips-tdump.c (main): Likewise.
31193
31194 2011-01-03  Martin Jambor  <mjambor@suse.cz>
31195
31196         PR tree-optimization/46801
31197         * tree-sra.c (type_internals_preclude_sra_p): Check whether
31198         aggregate fields start at byte boundary instead of the bit-field flag.
31199
31200 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
31201
31202         PR driver/47137
31203         * gcc.c (main): Revert revision 168407.
31204
31205 2011-01-03  Martin Jambor  <mjambor@suse.cz>
31206
31207         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
31208
31209 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31210
31211         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
31212         vector optab to expand vector/scalar shift, update gimple to vector.
31213
31214 2011-01-03  Martin Jambor  <mjambor@suse.cz>
31215
31216         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
31217         a thunk.
31218
31219 2011-01-03  Martin Jambor  <mjambor@suse.cz>
31220
31221         PR tree-optimization/46984
31222         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
31223         HOST_WIDE_INT.
31224         (cgraph_create_indirect_edge): Fixed line length.
31225         (cgraph_indirect_call_info): Declare.
31226         (cgraph_make_edge_direct) Update declaration.
31227         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
31228         (cgraph_create_indirect_edge): Use it.
31229         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
31230         callees.
31231         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
31232         the new thunk_delta representation.
31233         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
31234         HOST_WIDE_INT.
31235         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
31236         (ipa_read_indirect_edge_info): Likewise.
31237         * lto-cgraph.c (output_edge_opt_summary): New function.
31238         (output_node_opt_summary): Call it on all outgoing edges.
31239         (input_edge_opt_summary): New function.
31240         (input_node_opt_summary): Call it on all outgoing edges.
31241
31242 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
31243
31244         PR driver/47137
31245         * gcc.c (main): Don't check have_o when settting combine_inputs.
31246
31247 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
31248
31249         * regrename.c: Add general comment describing the pass.
31250         (struct du_head): Remove 'length' field.
31251         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
31252         (regrename_optimize): Do not sort chains.  Rework comments, add others.
31253         Force renaming to the preferred class (if any) in the first pass and do
31254         not consider registers that belong to it in the second pass.
31255         (create_new_chain): Do not set 'length' field.
31256         (scan_rtx_reg): Likewise.
31257
31258 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
31259
31260         PR tree-optimization/47140
31261         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
31262         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
31263         to bit_value_binop.
31264
31265         PR rtl-optimization/47028
31266         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
31267         parm_birth_insn instead of at the beginning of first bb.
31268
31269 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
31270
31271         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
31272         Remove the word "see" before "@pxref".
31273         * doc/rtl.texi: Remove the word "see" before "@pxref".
31274
31275 2011-01-01  Jan Hubicka  <jh@suse.cz>
31276
31277         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
31278         memory.
31279
31280 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
31281
31282         PR target/38662
31283         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
31284
31285 \f
31286 Copyright (C) 2011 Free Software Foundation, Inc.
31287
31288 Copying and distribution of this file, with or without modification,
31289 are permitted in any medium without royalty provided the copyright
31290 notice and this notice are preserved.