OSDN Git Service

* reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
4         forward scan as well.
5
6 2011-06-27  Tristan Gingold  <gingold@adacore.com>
7
8         PR target/44241
9         * config/vms/vms-protos.h: New file.
10         * config/vms/vms-crtlmap.map: New file.
11         * config/vms/vms.c: New file.
12         * config/vms/make-crtlmap.awk: New file.
13         * config/vms/vms-crtl.h: File removed.
14         * config/vms/vms-crtl-64.h: File removed.
15         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
16         * config/alpha/vms64.h: Do not include vms-crtl-64.h
17         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
18         clear some builtins on VMS.  Calls vms_patch_builtins.
19         (avms_asm_output_external): Remove.
20         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
21         (struct crtl_name_spec): Remove
22         (DO_CTRL_NAMES): Remove.
23         * config/ia64/vms.h (struct crtl_name_spec): Remove
24         (DO_CTRL_NAMES): Remove.
25         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
26         clear some builtins on VMS.  Calls vms_patch_builtins.
27         (ia64_asm_output_external): Remove DO_CRTL_NAME.
28         * config/ia64/vms64.h: Do not include vms-crtl-64.h
29         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
30         tm_p_file.
31
32 2011-06-27  Tristan Gingold  <gingold@adacore.com>
33
34         * config/alpha/alpha.c (alpha_end_function): Always generate .end
35         directive on VMS.
36
37 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
38
39         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
40         the function receives nonlocal gotos.
41
42 2011-06-27  Richard Guenther  <rguenther@suse.de>
43
44         PR tree-optimization/49536
45         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
46         For non-scalar inner types use a scalar type according to
47         the scalar inner mode.
48
49 2011-06-27  Richard Guenther  <rguenther@suse.de>
50
51         PR tree-optimization/49365
52         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
53
54 2011-06-27  Richard Guenther  <rguenther@suse.de>
55
56         PR tree-optimization/49169
57         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
58         the alignment of function decls.
59
60 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
61
62         PR target/47997
63         * config/darwin.c (darwin_mergeable_string_section): Place string
64         constants in '.cstring' rather than '.const' when CF/NSStrings are
65         active.
66
67 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
68
69         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
70         (emit_save_register_window): Likewise.
71         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
72         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
73         Swap back %o7/%i7 in register naming.
74
75 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
76
77         PR driver/49371
78         * config/darwin.c (darwin_override_options): Improve warning when
79         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
80         is given with fpie/fPIE.
81         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
82         * config/darwin9.h (PIE_SPEC): New.
83
84 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
85
86         * timevar.c (timevar_print): Increase width for display of timevar
87         name.
88
89 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
90
91         PR c++/46400
92         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
93         instead of TYPE_CHAIN for chain_next for types.
94
95 2011-06-24  Richard Henderson  <rth@redhat.com>
96
97         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
98         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
99         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
100         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
101         (sparc_flat_expand_prologue): Emit individual instructions
102         instead of one of the above.
103
104 2011-06-24  Easwaran Raman  <eraman@google.com>
105
106         PR rtl-optimization/49429
107         PR target/49454
108         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
109         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
110         used to copy y into x.
111         * calls.c (initialize_argument_information): Mark
112         an argument addressable if it is passed by invisible reference.
113         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
114         if it is passed by reference.
115
116 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
117
118         PR rtl-optimization/49504
119         * rtlanal.c (nonzero_bits1): Properly handle addition or
120         subtraction of a pointer in Pmode if pointers extend unsigned.
121         (num_sign_bit_copies1): Likewise.
122
123 2011-06-24  Martin Jambor  <mjambor@suse.cz>
124
125         PR tree-optimizations/49516
126         * tree-sra.c (sra_modify_assign): Choose the safe path for
127         aggregate copies if we also did scalar replacements.
128
129 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
130
131         PR target/49335
132         * config/arm/predicates.md (add_operator): New.
133         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
134         in Thumb2.
135
136 2011-06-24  Andi Kleen  <ak@linux.intel.com>
137
138         * tree-sra.c (type_internals_preclude_sra_p): Add msg
139         parameter. Split up ifs and report reason in *msg.
140         (reject): Add.
141         (find_var_candiate): Add msg variable.
142         Split up ifs and report reason to reject.
143         (find_param_candidates): Add msg variable.
144         Pass msg to type_internals_preclude_sra_p.
145
146 2011-06-23  Jeff Law  <law@redhat.com>
147
148         PR middle-end/48770
149         * reload.h (reload): Change to return a bool.
150         * ira.c (ira): If requested by reload, run a fast DCE pass after
151         reload has completed.  Fix comment typo.
152         * reload1.c (need_dce): New file scoped static.
153         (reload): Set reload_completed here.  Return whether or not a DCE
154         pass after reload is needed.
155         (delete_dead_insn): Set need_dce as needed.
156
157         PR middle-end/49465
158         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
159         to detect threading through joiner block.  If there was already
160         an edge to the new target, then do not change the PHI nodes.
161
162 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
163
164         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
165         get_pointer_alignment to see if base isn't sufficiently aligned.
166
167 2011-06-23  Jan Hubicka  <jh@suse.cz>
168
169         PR tree-optimize/49373
170         * tree-pass.h (all_late_ipa_passes): Declare.
171         * cgraphunit.c (init_lowered_empty_function): Fix properties.
172         (cgraph_optimize): Execute late passes; remove unreachable funcions after
173         materialization.
174         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or LTOing.
175         * passes.c (all_late_ipa_passes): Declare.
176         (dump_passes, register_pass): Handle late ipa passes.
177         (init_optimization_passes): Move ipa_pta to late passes; schedule fixup_cfg
178         at beggining of all_passes.
179         (apply_ipa_transforms): New function.
180         (execute_one_pass): When doing simple ipa pass, apply all transforms.
181
182 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
183
184         * params.c: Include common/common-target.h.  Don't include tm.h.
185         (lang_independent_params): Move from toplev.c.
186         (global_init_params): New.
187         * params.h (global_init_params): Declare.
188         * target.def (default_params): Move to common-target.def.
189         * toplev.c (lang_independent_options): Remove.
190         (lang_independent_params): Move to params.c.
191         (general_init): Use global_init_params.
192         * common/common-target.def (option_default_params): Move from
193         target.def.
194         * common/config/ia64/ia64-common.c: Include params.h.
195         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
196         from ia64.c.
197         * common/config/rs6000/rs6000-common.c: Include params.h.
198         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
199         from rs6000.c.
200         * common/config/sh/sh-common.c: Include params.h.
201         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
202         from sh.c.
203         * common/config/spu/spu-common.c: Include params.h.
204         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
205         from spu.c.
206         * config/ia64/ia64.c (ia64_option_default_params,
207         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
208         * config/rs6000/rs6000.c (rs6000_option_default_params,
209         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
210         * config/sh/sh.c (sh_option_default_params,
211         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
212         * config/spu/spu.c (spu_option_default_params,
213         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
214         * Makefile.in (OBJS): Remove params.o.
215         (OBJS-libcommon-target): Add params.o.
216         (params.o, $(common_out_object_file)): Update dependencies.
217         * doc/tm.texi: Regenerate.
218
219 2011-06-23  Alan Modra  <amodra@gmail.com>
220
221         PR bootstrap/49383
222         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
223         invocation for 2011-06-09 changes.
224
225 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
226
227         PR libgomp/49490
228         * omp-low.c (expand_omp_for_static_nochunk): Only
229         use n ceil/ nthreads size for the first
230         n % nthreads threads in the team instead of
231         all threads except for the last few ones which
232         get less work or none at all.
233
234         PR debug/49496
235         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
236         uses.
237
238 2011-06-22  Richard Guenther  <rguenther@suse.de>
239
240         PR tree-optimization/49493
241         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
242         Refer to the alias target of variables.
243         (associate_varinfo_to_alias_1): Remove.
244         (ipa_pta_execute): Do not associate aliases with anything.
245         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
246         (cgraph_function_node): Likewise.
247         (cgraph_function_or_thunk_node): Likewise.
248         (varpool_variable_node): Likewise.
249
250 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
251
252         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
253         typo.
254         * config.gcc (arm*-*-linux*): Default to gnu tls.
255         (arm*-*-*): Add --with-tls option.
256         (all_defaults): Add 'tls'.
257
258 2011-06-22  Richard Henderson  <rth@redhat.com>
259
260         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
261         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
262         (dwarf2out_frame_debug_cfa_window_save): Rename from
263         dwarf2out_window_save; make static.
264         * tree.h (dwarf2out_window_save): Don't declare.
265
266         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
267         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
268         (emit_save_register_window): Rename from gen_save_register_window;
269         emit the insn and add REG_CFA_* notes.
270         (sparc_expand_prologue): Update to match.
271         * config/sparc/sparc.md (save_register_window_1): Simplify from
272         save_register_window<P:mode>.
273
274 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
275
276         PR target/49497
277         * config/i386/i386.md (*lea_general_2): Always allow SImode.
278         (*lea_general_2_zext): Likewise.
279         (imul to lea peepholes): Use const359_operand and check
280         TARGET_PARTIAL_REG_STALL.
281
282         * config/i386/predicates.md (const359_operand): New.
283
284 2011-06-22  Michael Matz  <matz@suse.de>
285
286         * cgraphunit.c (assemble_thunk): Use correct return type.
287
288 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
289         Dmitry Melnik  <dm@ispras.ru>
290
291         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
292         (neon_output_shift_immediate): Ditto.
293         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
294         prototype.
295         (neon_output_shift_immediate): Ditto.
296         * config/arm/neon.md (vashl<mode>3): Modified constraint.
297         (vashr<mode>3_imm): New insn pattern.
298         (vlshr<mode>3_imm): Ditto.
299         (vashr<mode>3): Modified constraint.
300         (vlshr<mode>3): Ditto.
301         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
302         predicate.
303         (imm_for_neon_rshift_operand): Ditto.
304         (imm_lshift_or_reg_neon): Ditto.
305         (imm_rshift_or_reg_neon): Ditto.
306
307         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
308
309 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
310
311         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
312         builtin calls even if likelyvalue is not CONSTANT.
313         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
314         Return get_value_for_expr of first operand
315         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
316         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
317         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
318         their non-checking counterparts.
319         (call_may_clobber_ref_p_1): Likewise.
320         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
321         like their non-checking counterparts.
322         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
323         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
324         like their non-checking counterparts.
325         (find_func_clobbers): Likewise.
326         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
327         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
328
329         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
330         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
331         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
332         of base type reference as argument.
333         (resolve_addr_in_expr): Likewise.  Fix keep computation.
334         (convert_descriptor_to_signed): Renamed to...
335         (convert_descriptor_to_mode): ... this.  For wider types convert
336         to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
337         untyped.
338         (typed_binop): New function.
339         (scompare_loc_descriptor, ucompare_loc_descriptor,
340         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
341         default to unsigned type instead of signed.
342
343         PR debug/47858
344         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
345         (gimple_build_debug_source_bind_stat): New prototype.
346         (gimple_build_debug_source_bind): Define.
347         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
348         gimple_debug_source_bind_get_value,
349         gimple_debug_source_bind_get_value_ptr,
350         gimple_debug_source_bind_set_var,
351         gimple_debug_source_bind_set_value): New inlines.
352         * gimple.c (gimple_build_debug_source_bind_stat): New function.
353         * gimple-pretty-print.c (dump_gimple_debug): Handle
354         GIMPLE_DEBUG_SOURCE_BIND.
355         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
356         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
357         * tree-parloops.c (eliminate_local_variables,
358         separate_decls_in_region): Likewise.
359         (separate_decls_in_region_debug): Renamed from
360         separate_decls_in_region_debug_bind.  Handle
361         gimple_debug_source_bind_p.
362         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
363         prototypes.
364         (DECL_HAS_DEBUG_ARGS_P): Define.
365         (struct tree_function_decl): Add has_debug_args_flag field.
366         * tree.c (debug_args_for_decl): New variable.
367         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
368         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
369         (rewrite_debug_stmt_uses): New function.
370         (rewrite_stmt): Use it to rewrite debug stmt uses.
371         * rtl.def (DEBUG_PARAMETER_REF): New.
372         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
373         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
374         DEBUG_PARAMETER_REF.
375         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
376         * print-rtl.c (print_rtx): Likewise.
377         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
378         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
379         debug stmts in the first bb.
380         * tree-inline.c (remap_ssa_name): If remapping default def
381         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
382         a source bind debug stmt.
383         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
384         (maybe_move_debug_stmts_to_successors): Likewise.
385         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
386         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
387         debug args vector from old_decl to new_decl.
388         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
389         or modified parameters, add debug bind stmts before call
390         setting DEBUG_EXPR_DECL which is remembered in debug args
391         vector.
392         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
393         on DECL_DEBUG_EXPRs from debug args vector.
394         (expand_debug_source_expr): New function.
395         (expand_debug_locations): Use it for source bind insns.
396         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
397         * var-tracking.c (prepare_call_arguments): Add debug args
398         to call_arguments if any.
399         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
400         output_loc_operands, output_loc_operands_raw,
401         resolve_addr_in_expr, compare_loc_operands): Handle
402         DW_OP_GNU_parameter_ref.
403         (get_ref_die_offset, parameter_ref_descriptor): New functions.
404         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
405         (gen_subprogram_die): Handle parameters identified by
406         DEBUG_PARAMETER_REF.
407
408 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
409
410         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
411         * doc/install.texi (Configuration): Document --with-tls.
412         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
413         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
414         (arm_tls_descseq_addr): New.
415         (legitimize_tls_address): Add tlsdesc support.
416         (arm_cannot_copy_insn_p): Check for tlscall.
417         (arm_emit_tls_decoration): Likewise.
418         * config/arm/arm.h (TARGET_GNU2_TLS): New.
419         (OPTION_DEFAULT_SPECS): Add with-tls support.
420         * config/arm/arm.md (R1_REGNUM): Define.
421         (tlscall): New.
422         * config/arm/arm.opt (tls_type): New enumeration type and values.
423         (mtls-dialect): New switch.
424         * config/arm/arm-opts.h (enum tls_type): New.
425
426 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
427
428         * attribs.c (register_attribute): Added assert to check that all
429         attribute specs are registered with a name that is not empty and
430         does not start with '_'.
431         (decl_attributes): Avoid the lookup of the "naked" attribute spec
432         if the function has no attributes.
433         * tree.c (is_attribute_with_length_p): Removed.
434         (is_attribute_p): Removed.
435         (private_is_attribute_p): New.  
436         (private_lookup_attribute): New.
437         (lookup_attribute): Removed.
438         (lookup_ident_attribute): New.
439         (remove_attribute): Require the first argument to be in the form
440         'text', not '__text__'.  Updated asserts.
441         (merge_attributes): Use lookup_ident_attributes instead of
442         lookup_attribute.
443         (merge_dllimport_decl_attributes): Use remove_attribute.
444         (attribute_list_contained): Likewise.
445         (attribute_list_equal): Immediately return 1 if the arguments are
446         identical pointers.
447         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
448         'int'.  Require the first argument to be in the form 'text', not
449         '__text__'.  Require the second argument to be an identifier.
450         (lookup_attribute): Made inline.  Require the first argument to be
451         in the form 'text', not '__text__'.
452         (private_is_attribute_p, private_lookup_attribute): New.
453         Updated comments.
454         
455 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
456
457         * builtins.c: Add sync_ or SYNC__ to builtin names.
458         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
459         * omp-low.c: Add sync_ or SYNC__ to builtin names.
460
461 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
462
463         PR target/33049
464         * config/avr/avr.md (extzv): New expander.
465         (*extzv): New insn.
466         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
467         * config/avr/constraints.md (C04): New constraint.
468         * doc/md.texi (Machine Constraints): Document it.
469
470 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
471
472         PR middle-end/49489
473         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
474         unsignedp argument instead of 1 for clrsb_optab.
475         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
476         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
477         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
478         * optabs.c (widen_leading): Call widen_operand and expand_unop
479         with 0 as unsignedp argument instead of 1 for clrsb_optab.
480         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
481
482 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
483
484         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
485
486 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
487
488         * gensupport.c (add_define_attr): New static function.
489         (is_predicable): Allow multi-alternative lists for the "predicable"
490         attribute.
491         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
492         (process_one_cond_exec): Call alter_attrs_for_insn.
493         * doc/md.texi (Defining Attributes): Mention some standard names.
494         (Conditional Execution): Update documentation for "predicable".
495
496         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
497         __builtin_clrsbll): Document.
498         * doc/rtl.texi (clrsb): New entry.
499         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
500         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
501         (expand_unop): Handle clrsb_optab.
502         (init_optabs): Initialize it.
503         * optabs.h (enum optab_index): New entry OTI_clrsb.
504         (clrsb_optab): Define.
505         * genopinit.c (optabs): Add an entry for it.
506         * builtins.c (expand_builtin): Handle clrsb builtin functions.
507         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
508         BUILT_IN_CLRSBLL): New.
509         * rtl.def (CLRSB): New code.
510         * dwarf2out.c (mem_loc_descriptor): Handle it.
511         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
512         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
513         and popcount.
514         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
515         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
516         (__ctzDI2): Move declaration.
517         * config/bfin/bfin.md (clrsbsi2): New expander.
518         (signbitssi2): Use the CLRSB rtx.
519         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
520         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
521
522 2011-06-21  Richard Guenther  <rguenther@suse.de>
523
524         * ipa-inline-transform.c (inline_transform): Fix previous change.
525
526 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
527
528         PR tree-optimization/49478
529         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
530         with constant operand.
531
532 2011-06-21  Richard Guenther  <rguenther@suse.de>
533
534         * ipa-inline-transform.c (inline_transform): Fix typo.
535
536 2011-06-21  Richard Guenther  <rguenther@suse.de>
537
538         PR tree-optimization/49483
539         * tree-vect-stmts.c (vectorizable_assignment): Also handle
540         VIEW_CONVERT_EXPR conversions.
541
542 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
543
544         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
545         * config/avr/avr-tables.opt: New file (generated).
546         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
547         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
548         avr-mcus.def.
549         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
550         (avr_option_override): Don't process -mmcu= argument here.  Set
551         avr_current_device using avr_mcu_index.
552         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
553         * config/avr/avr.opt (mmcu=): Use Enum.
554         * config/avr/t-avr (avr-devices.o): Update dependencies.
555         ($(srcdir)/config/avr/avr-tables.opt): New.
556         * target.def (help): Remove.
557         * doc/tm.texi.in (TARGET_HELP): Remove.
558         * doc/tm.texi: Regenerate.
559         * opts.c: Don't include target.h.
560         (common_handle_option): Don't call targetm.help.
561         * system.h (TARGET_HELP): Poison.
562         * Makefile.in (opts.o): Update dependencies.
563
564 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
565
566         * config/usegld.h: New file.
567         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
568         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
569         (LIB_SPEC): Likewise.  Search /lib.
570         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
571         (RDYNAMIC_SPEC): Handle GNU ld.
572         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
573         Define.
574         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
575         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
576         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
577         (STACK_CHECK_STATIC_BUILTIN): Define.
578         * config/sol2.opt (compat-bsd): Remove.
579         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
580         * config/sol2-bi.h: New file.
581         * config/sol2-gld.h: Remove.
582         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
583         (NO_DBX_BNSYM_ENSYM): Remove.
584         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
585         (STACK_CHECK_STATIC_BUILTIN): Remove.
586         Test USE_GLD instead of TARGET_GNU_LD.
587         * config/i386/sol2-10.h: Rename to ...
588         * config/i386/sol2-bi.h .. this.
589         (SUBTARGET_EXTRA_SPECS): Redefine.
590         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
591         (MULTILIB_DEFAULTS): Remove.
592         (DEFAULT_ARCH32_P): Define.
593         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
594         (ARCH64_SUBDIR): Define.
595         Test USE_GLD instead of TARGET_GNU_LD.
596         (I386_EMULATION): Rename to ...
597         (ARCH32_EMULATION): ... this.
598         (X86_64_EMULATION): Rename to ...
599         (ARCH64_EMULATION): ... this.
600         (TARGET_LD_EMULATION): Remove.
601         (LINK_ARCH_SPEC): Remove.
602         * config/i386/sol2-gas.h: Remove.
603         * config/i386/t-sol2-10: Rename to ...
604         * config/i386/t-sol2-64: ... this.
605         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
606         (AS_SPARC64_FLAG): Define.
607         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
608         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
609         depending on TARGET_CPU_DEFAULT.
610         (CPP_CPU_SPEC): Redefine.
611         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
612         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
613         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
614         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
615         ASM_ARCH_DEFAULT_SPEC): Redefine.
616         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
617         LINK_ARCH_DEFAULT_SPEC.
618         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
619         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
620         (ARCH64_SUBDIR): Define.
621         (LINK_ARCH64_SPEC): Redefine.
622         (CC1_SPEC): Redefine.
623         (OPTION_DEFAULT_SPECS): Redefine.
624         (MULTILIB_DEFAULTS): Define.
625         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
626         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
627         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
628         (NO_DBX_BNSYM_ENSYM): Remove.
629         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
630         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
631         (TARGET_ASM_NAMED_SECTION): Likewise.
632         (STACK_CHECK_STATIC_BUILTIN): Remove.
633         * config/sparc/sol2-bi.h: Remove.
634         * config/sparc/sol2-gas-bi.h: Remove.
635         * config/sparc/sol2-gas.h: Remove.
636         * config/sparc/sol2-gld-bi.h: Remove.
637         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
638         common parts ...
639         (*-*-solaris2*): ... here.
640
641 2011-06-21  Christian Bruel  <christian.bruel@st.com>
642
643         PR other/43564
644         * ipa-inline.c (can_inline_edge_p): Check
645         !DECL_DISREGARD_INLINE_LIMITS.
646
647 2011-06-21  Christian Bruel  <christian.bruel@st.com>
648
649         PR middle-end/49139
650         * cgraphunit.c (process_function_and_variable_attributes): warn when
651         always_inline functions that are not inline.
652         * ipa-inline-transform.c (inline_transform): Always call
653         optimize_inline.
654         * tree-inline.c (tree_inlinable_function_p): Use error instead
655         of sorry.
656         (expand_call_inline): Likewise.
657
658 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
659
660         * Makefile.in (dg_target_exps): Set.
661         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
662         instead of 7, try to divide it more evenly.
663
664 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
665
666         PR i386/49089
667         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
668         (avx256_split_unaligned_store): New definition.
669         (ix86_option_override_internal): Enable avx256 unaligned load/store
670         splitting only when avx256_split_unaligned_load/store is set.
671
672 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
673
674         * regrename.c (scan_rtx_reg): Handle the case where we write to an
675         open chain in a smaller mode without failing the entire block.
676
677 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
678
679         PR middle-end/47725
680         * combine.c (cant_combine_insn_p): Don't check zero/sign
681         extended hard registers.
682
683 2011-06-21  Alan Modra  <amodra@gmail.com>
684
685         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
686         CONST high part large-toc address.
687         (rs6000_tls_referenced_p): Make static.
688         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
689
690 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
691
692         PR middle-end/47725
693         * combine.c (cant_combine_insn_p): Check zero/sign extended
694         hard registers.
695
696 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
697
698         PR target/49385
699         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
700         one of the operands is a register.
701
702 2011-06-20  Kai Tietz  <ktietz@redhat.com>
703
704         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
705         operations in combination with binary and.
706
707 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
708
709         * regrename.c (do_replace): Don't update notes.
710
711 2011-06-20  Alan Modra  <amodra@gmail.com>
712
713         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
714         of toc-relative address in CONST.
715         (rs6000_delegitimize_address): Recognize changed address.
716         (rs6000_legitimize_reload_address): Likewise.
717         (rs6000_emit_move): Don't force these constants to memory.
718         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
719         toc-relative address in CONST.
720         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
721         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
722
723 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
724
725         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
726         (count_trailing_zeros): Likewise.
727
728 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
729
730         PR other/49325
731         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
732         .init_array can be used with .ctors on targets.
733         * configure: Regenerated.
734
735 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
736
737         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
738         if the element type is volatile.
739
740 2011-06-18  Jan Hubicka  <jh@suse.cz>
741
742         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
743         extra name aliases.
744         (lto_symtab_resolve_can_prevail_p): Likewise.
745         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
746         * cgraphbuild.c (record_reference): Remove extra body alias code.
747         (mark_load): Likewise.
748         (mark_store): Likewise.
749         * cgraph.h (varpool_node): Remove extra_name filed;
750         add alias_of and extraname_alias.
751         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
752         (varpool_alias_aliased_node): New inline function.
753         (varpool_variable_node): New function.
754         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
755         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
756         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
757         (input_varpool_node): Likewise.
758         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
759         (varpool_externally_visible_p): Remove extra body alias code.
760         (function_and_variable_visibility): Likewise.
761         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
762         (ipa_pta_execute): Use it.
763         * varpool.c (varpool_remove_node): Remove extra name alias code.
764         (varpool_mark_needed_node): Likewise.
765         (varpool_analyze_pending_decls): Analyze aliases.
766         (assemble_aliases): New functoin.
767         (varpool_assemble_decl): Use it.
768         (varpool_create_variable_alias): New function.
769         (varpool_extra_name_alias): Rewrite.
770         (varpool_for_node_and_aliases): New function.
771
772 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
773
774         PR target/49411
775         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
776         last_arg_constant and last argument doesn't match its predicate,
777         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
778         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
779         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
780         spelling of error message.
781         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
782         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
783         const_0_to_255_operand instead of const_int_operand.
784
785         Revert:
786         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
787
788         * config/i386/sse.md (blendbits): Remove mode attribute.
789         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
790         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
791         Check integer value of operand 3 in insn constraint.
792
793 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
794
795         PR rtl-optimization/48542
796         * reload.c (find_equiv_reg): Stop looking when finding a
797         setjmp-type call.
798         * reload1.c (reload_as_needed): Invalidate all reload
799         registers when crossing a setjmp-type call.
800
801 2011-06-16  Jeff Law  <law@redhat.com>
802
803         * tree-ssa-threadupdate.c (struct redirection_data): New field
804         intermediate_edge.
805         (THREAD_TARGET2): Define.
806         (redirection_data_eq): Also check that the intermediate edge is equal.
807         (lookup_redirection_data): Drop useless argument.  Extract the
808         outgoing_edge and intermediate edge from E.  Callers updated.
809         (copy_phi_args, update_destination_phis): New functions.
810         (fix_duplicate_block_edges): Likewise.
811         (create_edge_and_update_destination_phis): Duplicate all the edges
812         hung off e->aux.  Use copy_phi_args.
813         (create_duplicates): Use fix_duplicate_block_edges.
814         (fixup_template_block): Likewise.
815         (redirect_edges): If necessary, redirect the joiner block's incoming
816         edge to the duplicate of the joiner block.
817         (thread_block): Don't muck up loops when threading through a joiner
818         block.
819         (thread_through_loop_header): Handle threading through a joiner block.
820         (mark_threaded_blocks, register_jump_thread): Likewise.
821         * tree-flow.h (register_jump_thread): Add new argument.  Callers
822         updated.
823         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
824         (thread_across_edge): Handle threading through a joiner block.
825
826 2011-06-16  Martin Jambor  <mjambor@suse.cz>
827
828         PR tree-optimization/49343
829         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
830         calculate offset, provide 2nd operand for the new COMPONENT_REF.
831
832 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
833
834         * config/darwin-protos.h (machopic_select_rtx_section): Move to
835         inside RTX_CODE ifdef.
836
837 2011-06-16  Tom de Vries  <tom@codesourcery.com>
838
839         PR target/45098
840         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
841         Disallow NULL pointer for pointer arithmetic.
842
843 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
844
845         PR target/49398
846         Revert.
847         2011-06-10  Wei Guozhi  <carrot@google.com>
848
849         PR target/45335
850         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
851         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
852         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
853         related peephole2.
854         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
855         related peephole2.
856         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
857         (arm_legitimate_ldrd_p): New prototype.
858         (arm_output_ldrd): New prototype.
859         * config/arm/arm.c (arm_check_ldrd_operands): New function.
860         (arm_legitimate_ldrd_p): New function.
861         (arm_output_ldrd): New function.
862
863 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
864
865         PR middle-end/46500
866         * doc/tm.texi.in: Update Copyright date.
867         * doc/tm.texi: Regenerate.
868         * targhooks.c (default_setup_incoming_varargs): Replace
869         CUMULATIVE_ARGS* argument type with cumulative_args_t.
870         (default_pretend_outgoing_varargs_named): Likewise.
871         (hook_pass_by_reference_must_pass_in_stack): Likewise.
872         (hook_callee_copies_named): Likewise.
873         (default_function_arg_advance): Likewise.
874         (default_function_arg): Likewise.
875         (default_function_incoming_arg): Likewise.
876         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
877         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
878         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
879         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
880         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
881         * targhooks.h (default_setup_incoming_varargs): Likewise.
882         (default_pretend_outgoing_varargs_named): Likewise.
883         (hook_pass_by_reference_must_pass_in_stack): Likewise.
884         (hook_callee_copies_named): Likewise.
885         (default_function_arg_advance): Likewise.
886         (default_function_arg): Likewise.
887         (default_function_incoming_arg): Likewise.
888         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
889         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
890         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
891         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
892         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
893         * target.def (pass_by_reference): Likewise.
894         (setup_incoming_varargs, strict_argument_naming): Likewise.
895         (pretend_outgoing_varargs_named, callee_copies): Likewise.
896         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
897         (function_incoming_arg): Likewise.
898         * target.h: Don't include "tm.h" .
899         (cumulative_args_t): New typedef.
900         [GCC_TM_H] (get_cumulative_args): New static inline function.
901         [GCC_TM_H] (pack_cumulative_args): Likewise.
902         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
903         argument type with cumulative_args_t.
904         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
905         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
906         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
907         (frv_arg_partial_bytes, frv_function_arg): Likewise.
908         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
909         (frv_function_arg_1): Likewise.
910         * config/s390/s390.c (s390_pass_by_reference): Likewise.
911         (s390_function_arg_advance, s390_function_arg): Likewise.
912         * config/m32c/m32c.c (m32c_function_arg): Likewise.
913         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
914         (m32c_strict_argument_naming): Likewise.
915         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
916         (spu_function_arg_advance): Likewise.
917         (spu_setup_incoming_varargs): Likewise.  Make static.
918         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
919         Remove prototype.
920         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
921         CUMULATIVE_ARGS* argument type with cumulative_args_t.
922         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
923         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
924         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
925         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
926         (mep_pass_by_reference, mep_function_arg): Likewise.
927         (mep_function_arg_advance): Likewise.
928         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
929         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
930         (m32r_function_arg, m32r_function_arg_advance): Likewise.
931         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
932         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
933         (ix86_function_arg, ix86_pass_by_reference): Likewise.
934         (ix86_setup_incoming_varargs): Likewise.
935         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
936         (sh_strict_argument_naming): Likewise.
937         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
938         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
939         (sh_function_arg_advance, sh_function_arg): Likewise.
940         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
941         (pdp11_function_arg_advance): Likewise.
942         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
943         Likewise.
944         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
945         * config/avr/avr.c (avr_function_arg): Likewise.
946         (avr_function_arg_advance): Likewise.
947         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
948         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
949         (xtensa_function_arg_1): Likewise.
950         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
951         Likewise.
952         (xstormy16_function_arg): Likewise.
953         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
954         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
955         (fr30_function_arg_advance): Likewise.
956         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
957         (lm32_function_arg, lm32_function_arg_advance): Likewise.
958         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
959         (moxie_function_arg, moxie_function_arg_advance): Likewise.
960         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
961         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
962         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
963         (cris_function_arg, cris_function_incoming_arg): Likewise.
964         (cris_function_arg_advance, cris_function_arg_1): Likewise.
965         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
966         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
967         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
968         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
969         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
970         (mn10300_arg_partial_bytes): Likewise.
971         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
972         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
973         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
974         (ia64_function_arg_1): Likewise.
975         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
976         (m68k_function_arg): Likewise.
977         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
978         (rs6000_function_arg, setup_incoming_varargs): Likewise.
979         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
980         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
981         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
982         (picochip_arg_advance): Likewise.
983         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
984         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
985         (mcore_function_arg_advance): Likewise.
986         * config/score/score.c (score_pass_by_reference): Likewise.
987         (score_function_arg_advance): Likewise.
988         (score_arg_partial_bytes): Likewise.  Make static.
989         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
990         * config/arm/arm.c (arm_arg_partial_bytes): Replace
991         CUMULATIVE_ARGS* argument type with cumulative_args_t.
992         (arm_function_arg, arm_function_arg_advance): Likewise.
993         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
994         * config/pa/pa.c (pa_pass_by_reference): Likewise.
995         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
996         (pa_function_arg): Likewise.
997         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
998         (mips_function_arg, mips_function_arg_advance): Likewise.
999         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1000         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1001         * config/vax/vax.c (vax_function_arg): Likewise.
1002         (vax_function_arg_advance): Likewise.
1003         * config/h8300/h8300.c (h8300_function_arg): Likewise.
1004         (h8300_function_arg_advance): Likewise.
1005         * config/v850/v850.c (v850_pass_by_reference): Likewise.
1006         (v850_strict_argument_naming, v850_function_arg): Likewise.
1007         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1008         (v850_setup_incoming_varargs): Likewise.
1009         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1010         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1011         (mmix_function_arg, mmix_pass_by_reference): Likewise.
1012         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1013         with const void *.
1014         * config/bfin/bfin.c (setup_incoming_varargs): Replace
1015         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1016         (bfin_function_arg_advance, bfin_function_arg): Likewise.
1017         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1018         * calls.c (emit_call_1): Change type of args_so_far to
1019         cumulative_args_t.  Changed all callers.
1020         (initialize_argument_information): Likewise.
1021         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1022         * dse.c (get_call_args): Likewise.
1023         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1024         * function.c (pass_by_reference, reference_callee_copied): Likewise.
1025         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1026         New member args_so_far_v.  Changed all users.
1027         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1028         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1029         * config/mips/mips.c (mips_output_args_xfer): Likewise.
1030         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1031         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1032         * config/microblaze/microblaze.c (microblaze_expand_prologue):
1033         Likewise.
1034         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1035         m32r_pass_by_reference.
1036
1037 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
1038
1039         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1040         argument to be a VEC of statements.
1041         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1042         assert that pattern statements have to have their vector type set.
1043         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1044         Change the first argument to be a VEC of statements.  Update
1045         documentation.
1046         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1047         (vect_handle_widen_mult_by_const): New function.
1048         (vect_recog_widen_mult_pattern):  Change the first argument to be a
1049         VEC of statements.  Update documentation.  Check that the constant is
1050         INTEGER_CST.  Support multiplication by a constant that fits an
1051         intermediate type - call vect_handle_widen_mult_by_const.
1052         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1053         call.  Handle additional pattern statements if necessary.
1054
1055 2011-06-16  Nick Clifton  <nickc@redhat.com>
1056
1057         PR target/49427
1058         * config.gcc: Set cpu_type to v850 for any V850 architecture.
1059         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1060         md_file, extra_modes, out_file and extra_options are these are all
1061         deduced from cpu_type.
1062
1063 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1064
1065         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1066         truncation mask to 63.
1067
1068 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1069
1070         PR target/49313
1071         PR target/29524
1072         * longlong.h: Add AVR support:
1073         (count_leading_zeros): New macro.
1074         (count_trailing_zeros): New macro.
1075         (COUNT_LEADING_ZEROS_0): New macro.
1076         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1077         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1078         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1079         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1080         (LIB2FUNCS_EXCLUDE): Add _clz.
1081         * config/avr/libgcc.S (XCALL): Move up in file.
1082         (XJMP): New C Macro.
1083         (DEFUN): New asm macro.
1084         (ENDF): New asm macro.
1085         (__ffssi2): New function.
1086         (__ffshi2): New function.
1087         (__loop_ffsqi2): New function.
1088         (__ctzsi2): New function.
1089         (__ctzhi2): New function.
1090         (__clzdi2): New function.
1091         (__clzsi2): New function.
1092         (__clzhi2): New function.
1093         (__paritydi2): New function.
1094         (__paritysi2): New function.
1095         (__parityhi2): New function.
1096         (__parityqi2): New function.
1097         (__popcounthi2): New function.
1098         (__popcountsi2): New function.
1099         (__popcountdi2): New function.
1100         (__popcountqi2): New function.
1101         (__bswapsi2): New function.
1102         (__bswapdi2): New function.
1103         (__ashldi3): New function.
1104         (__ashrdi3): New function.
1105         (__lshrdi3): New function.
1106         Fix suspicous lines.
1107
1108 2011-06-16  Richard Guenther  <rguenther@suse.de>
1109
1110         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1111         the same as x != 0.
1112         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1113         to (bool) X & 1.
1114         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1115         equality compares against zero for the lower bit.
1116
1117 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
1118
1119         PR tree-optimization/49419
1120         * tree-vrp.c (execute_vrp): Call init_range_assertions
1121         before estimate_numbers_of_iterations, call
1122         free_number_of_iterations_estimates before calling
1123         remove_range_assertions.
1124
1125 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1126
1127         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1128         (struct partial_schedule): Add rows_length field.
1129         (verify_partial_schedule): Check rows_length.
1130         (ps_insert_empty_row): Handle rows_length.
1131         (create_partial_schedule): Likewise.
1132         (free_partial_schedule): Likewise.
1133         (reset_partial_schedule): Likewise.
1134         (create_ps_insn): Remove rest_count argument.
1135         (remove_node_from_ps): Update rows_length.
1136         (add_node_to_ps): Update rows_length and call create_ps_insn
1137         without passing row_rest_count.
1138         (rotate_partial_schedule): Update rows_length.
1139
1140 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1141
1142         * ddg.c (add_intra_loop_mem_dep): New function.
1143         (build_intra_loop_deps): Call it.
1144
1145 2011-06-13  Jeff Law  <law@redhat.com>
1146
1147         * df-problems.c (df_lr_local_compute): Manually CSE
1148         PIC_OFFSET_TABLE_REGNUM.
1149         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1150         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1151
1152 2011-06-13  Jan Hubicka  <jh@suse.cz>
1153
1154         * cgraphunit.c (handle_alias_pairs): New function.
1155         (cgraph_finalize_compilation_unit): Use it.
1156         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1157         as externally visible.
1158
1159 2011-06-15  Richard Guenther  <rguenther@suse.de>
1160
1161         * expr.c (expand_expr_real_2): Reduce all integral types to
1162         bitfield precision.
1163         (expand_expr_real_1): Likewise.
1164
1165 2011-06-15  Martin Jambor  <mjambor@suse.cz>
1166
1167         PR tree-optimization/48613
1168         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1169         ipa_node_params_vector is NULL.
1170
1171 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
1172
1173         PR debug/49382
1174         * dwarf2out.c (dw_loc_list_node): Add force field.
1175         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1176         location in the list, even if it is modified before first real insn.
1177         (output_loc_list): Emit empty ranges with force flag set.
1178         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1179
1180 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
1181
1182         PR target/49349
1183         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1184         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
1185         above a fence.  Update comments.
1186         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1187         placed just above it.  Do not allow NULL place_to_insert.
1188
1189 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
1190
1191         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1192         (slpeel_tree_peel_loop_to_edge): Don't call
1193         remove_dead_stmts_from_loop.
1194         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1195         remove irrelevant pattern statements.  For irrelevant statements
1196         check if it is the last statement of a detected pattern, use
1197         corresponding pattern statement instead.
1198         (destroy_loop_vec_info): No need to remove pattern statements,
1199         only free stmt_vec_info.
1200         (vect_transform_loop): For irrelevant statements check if it is
1201         the last statement of a detected pattern, use corresponding
1202         pattern statement instead.
1203         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1204         pattern statements.  Set basic block for the new statement.
1205         (vect_pattern_recog): Update documentation.
1206         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1207         operands of pattern statements.
1208         (vectorizable_call): Fix printing.  In case of a pattern statement
1209         use the lhs of the original statement when creating a dummy
1210         statement to replace the original call.
1211         (vect_analyze_stmt): For irrelevant statements check if it is
1212         the last statement of a detected pattern, use corresponding
1213         pattern statement instead.
1214         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1215         statements use gsi of the original statement.
1216
1217 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1218
1219         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1220         common/common-target-def.h.
1221         * target.def (default_target_flags, handle_option,
1222         supports_split_stack, optimization_table, init_struct,
1223         except_unwind_info, unwind_tables_default, have_named_sections):
1224         Move to common/common-target.def.
1225         * target.h (enum opt_levels, struct default_options): Move to
1226         common/common-target.h.
1227         * targhooks.c (default_except_unwind_info,
1228         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1229         default_target_handle_option, empty_optimization_table): Move to
1230         common/common-targhooks.c.
1231         * targhooks.h (default_except_unwind_info,
1232         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1233         default_target_handle_option, empty_optimization_table): Move to
1234         common/common-targhooks.h.
1235         * common/common-target-def.h: Include common/common-targhooks.h.
1236         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1237         defined.
1238         * common/common-target.def (handle_option, option_init_struct,
1239         option_optimization_table, default_target_flags,
1240         except_unwind_info, supports_split_stack, unwind_tables_default,
1241         have_named_sections): Move from target.def.
1242         (HOOK_PREFIX): Undefine at end of file.
1243         * common/common-target.h: Include input.h.
1244         (enum opt_levels, struct default_options): Move from target.h.
1245         * common/common-targhooks.c, common/common-targhooks.h: New.
1246         * config.gcc (target_has_targetm_common): Default to yes.
1247         (moxie*): Set target_has_targetm_common=no.
1248         (hppa*-*-*): Don't set target_has_targetm_common=yes.
1249         * doc/tm.texi: Regenerate.
1250         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1251         (C_TARGET_DEF_H): Add common/common-targhooks.h.
1252         (GCC_OBJS): Remove vec.o.
1253         (OBJS): Remove hooks.o and vec.o.
1254         (OBJS-libcommon-target): Add vec.o, hooks.o and
1255         common/common-targhooks.o.
1256         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1257         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1258         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1259         cfglayout.o, $(out_object_file), $(common_out_object_file)):
1260         Update dependencies.
1261         (common/common-targhooks.o): New.
1262         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
1263         * common/config/pa/pa-common.c: Include more headers.  Take
1264         copyright dates from pa.c.
1265         (pa_option_optimization_table, pa_handle_option,
1266         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1267         TARGET_HANDLE_OPTION): Move from pa.c.
1268         * common/config/alpha/alpha-common.c,
1269         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1270         common/config/bfin/bfin-common.c,
1271         common/config/cris/cris-common.c,
1272         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1273         common/config/h8300/h8300-common.c,
1274         common/config/i386/i386-common.c,
1275         common/config/ia64/ia64-common.c,
1276         common/config/iq2000/iq2000-common.c,
1277         common/config/lm32/lm32-common.c,
1278         common/config/m32c/m32c-common.c,
1279         common/config/m32r/m32r-common.c,
1280         common/config/m68k/m68k-common.c,
1281         common/config/mcore/mcore-common.c,
1282         common/config/mep/mep-common.c,
1283         common/config/microblaze/microblaze-common.c,
1284         common/config/mips/mips-common.c,
1285         common/config/mmix/mmix-common.c,
1286         common/config/mn10300/mn10300-common.c,
1287         common/config/pdp11/pdp11-common.c,
1288         common/config/picochip/picochip-common.c,
1289         common/config/rs6000/rs6000-common.c,
1290         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1291         common/config/score/score-common.c, common/config/sh/sh-common.c,
1292         common/config/sparc/sparc-common.c,
1293         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1294         common/config/vax/vax-common.c,
1295         common/config/xstormy16/xstormy16-common.c,
1296         common/config/xtensa/xtensa-common.c: New.
1297         * config/alpha/alpha.c: Include common/common-target.h.
1298         (alpha_option_optimization_table, alpha_handle_option,
1299         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1300         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1301         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1302         * config/arm/arm.c (arm_option_optimization_table,
1303         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1304         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1305         arm-common.c.
1306         * config/avr/avr.c (avr_option_optimization_table,
1307         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1308         to avr-common.c.
1309         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1310         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1311         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1312         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1313         * config/cris/cris.c (cris_option_optimization_table,
1314         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1315         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1316         cris-common.c.
1317         * config/fr30/fr30.c (fr30_option_optimization_table,
1318         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1319         to fr30-common.c.
1320         * config/frv/frv.c (frv_option_optimization_table,
1321         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1322         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1323         * config/h8300/h8300.c (h8300_option_optimization_table,
1324         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1325         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1326         * config/i386/i386-protos.h (ix86_handle_option): Declare.
1327         * config/i386/i386.c: Include common/common-target.h.
1328         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1329         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1330         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1331         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1332         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1333         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1334         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1335         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1336         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1337         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1338         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1339         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1340         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1341         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1342         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1343         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1344         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1345         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1346         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1347         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1348         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1349         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1350         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1351         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1352         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1353         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1354         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1355         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1356         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1357         ix86_option_optimization_table, ix86_option_init_struct,
1358         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1359         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1360         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1361         i386-common.c.
1362         * config/i386/t-i386 (i386.o): Update dependencies.
1363         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1364         * config/ia64/ia64.c (ia64_option_optimization_table,
1365         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1366         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1367         ia64_handle_option): Move to ia64-common.c.
1368         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1369         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1370         * config/lm32/lm32.c (lm32_option_optimization_table,
1371         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1372         to lm32-common.c.
1373         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1374         m32c-common.c.
1375         * config/m32r/m32r.c (m32r_option_optimization_table,
1376         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1377         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1378         m32r_handle_option): Move to m32r-common.c.
1379         (m32r_memory_move_cost): Remove comment referring to
1380         TARGET_HANDLE_OPTION.
1381         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1382         Move to m68k-common.c.
1383         * config/mcore/mcore.c (mcore_option_optimization_table,
1384         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1385         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1386         * config/mep/mep.c (mep_option_optimization_table,
1387         mep_handle_option, TARGET_HANDLE_OPTION,
1388         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1389         Move to mep-common.c.
1390         * config/microblaze/microblaze.c
1391         (microblaze_option_optimization_table,
1392         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1393         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1394         * config/mips/mips.c (mips_handle_option,
1395         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1396         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1397         mips-common.c.
1398         * config/mmix/mmix.c (mmix_option_optimization_table,
1399         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1400         Move to mmix-common.c.
1401         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1402         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1403         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1404         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1405         * config/pa/pa.c: Include common/common-target.h.
1406         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1407         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1408         pa_handle_option): Move to pa-common.c.
1409         (pa_option_override): Use targetm_common.except_unwind_info.
1410         (pa_asm_output_mi_thunk, pa_function_section): Use
1411         targetm_common.have_named_sections.
1412         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1413         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1414         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1415         pdp11_handle_option, pdp11_option_init_struct): Move to
1416         pdp11-common.c.
1417         * config/picochip/picochip.c (picochip_option_optimization_table,
1418         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1419         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1420         * config/rs6000/rs6000.c: Include common/common-target.h.
1421         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1422         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1423         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1424         rs6000_handle_option): Move to rs6000-common.c.
1425         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1426         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1427         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1428         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1429         * config/s390/s390.c (processor_flags_table,
1430         s390_option_optimization_table, s390_option_init_struct,
1431         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1432         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1433         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1434         * config/s390/s390.h (processor_flags_table): Declare.
1435         * config/score/score.c (score_option_optimization_table,
1436         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1437         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1438         score_handle_option): Move to score-common.c.
1439         * config/sh/sh.c (sh_option_optimization_table,
1440         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1441         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1442         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1443         * config/sparc/sparc.c: Include common/common-target.h.
1444         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1445         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1446         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1447         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1448         spu_option_init_struct): Move to spu-common.c.
1449         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1450         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1451         * config/v850/v850.c (small_memory_physical_max,
1452         v850_handle_memory_optionn v850_handle_option,
1453         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1454         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1455         v850-common.c.
1456         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1457         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1458         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1459         Move to xtensa-common.c.
1460         * cfglayout.c: Include common/common-target.h.
1461         (fixup_reorder_chain): Use targetm_common.have_named_sections.
1462         * cfgrtl.c: Include common/common-target.h.
1463         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1464         targetm_common.have_named_sections.
1465         * dbxout.c: Include common/common-target.h.
1466         (dbxout_function_end): Use targetm_common.have_named_sections.
1467         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1468         targetm_common.except_unwind_info.
1469         * dwarf2out.c: Include common/common-target.h.
1470         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1471         dwarf2out_begin_prologue, dwarf2out_frame_init,
1472         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1473         targetm_common.except_unwind_info.
1474         * except.c: Include common/common-target.h.
1475         (init_eh, finish_eh_generation,
1476         output_one_function_exception_table): Use
1477         targetm_common.except_unwind_info.
1478         (switch_to_exception_section): Use targetm_common.have_named_sections.
1479         * explow.c: Include common/common-target.h.
1480         * expr.c: Include common/common-target.h.
1481         (build_personality_function): Use targetm_common.except_unwind_info.
1482         * function.c: Include common/common-target.h.
1483         (expand_function_end): Use targetm_common.except_unwind_info.
1484         * haifa-sched.c: Include common/common-target.h.
1485         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1486         * lto-opts.c: Include common/common-target.h instead of target.h.
1487         (lto_reissue_options): Use targetm_common.handle_option.
1488         * opts.c: Include common/common-target.h.
1489         (target_handle_option): Use targetm_common.handle_option.
1490         (init_options_struct): Update comment referring to
1491         targetm.target_option.optimization.  Use
1492         targetm_common.default_target_flags,
1493         targetm_common.unwind_tables_default and
1494         targetm_common.option_init_struct.
1495         (default_options_optimization): Use
1496         targetm_common.option_optimization_table.
1497         (finish_options): Use targetm_common.except_unwind_info,
1498         targetm_common.unwind_tables_default,
1499         targetm_common.have_named_sections and
1500         targetm_common.supports_split_stack.
1501         * toplev.c: Include common/common-target.h.
1502         (process_options): Use targetm_common.have_named_sections.
1503         * tree-tailcall.c: Include common/common-target.h.
1504         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
1505         * tree.c: Include common/common-target.h.
1506         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
1507         * varasm.c: Include common/common-target.h.
1508         (resolve_unique_section, hot_function_section,
1509         default_function_section): Use targetm_common.have_named_sections.
1510
1511 2011-06-14  Easwaran Raman  <eraman@google.com>
1512
1513         PR rtl-optimization/44194
1514         * dse.c: Include tree-flow.h
1515         (insn_info): Add new field non_frame_wild_read.
1516         (group_info): Add new fields escaped_n and escaped_p.
1517         (kill_on_calls): New variable.
1518         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1519         (dse_step0): Initialize kill_on_calls.
1520         (can_escape): New function.
1521         (set_usage_bits): Add additional parameter; record information
1522         about escaped locations.
1523         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
1524         (dse_step2_nospill): Set kill_on_calls based on
1525         group->escaped_n and group->escaped_n.
1526         (add_wild_read): Refactor into...
1527         (reset_active_stores): ... New function, and
1528         (free_read_records): ... New function.
1529         (add_non_frame_wild_read): New function.
1530         (scan_insn): Call add_non_frame_wild_read on non-const calls.
1531         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
1532         (dse_step5_nospill): Call scan_reads_nospill for instructions
1533         marked as non_frame_wild_read.
1534         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
1535
1536 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1537
1538         * common/common-target-def.h, common/common-target.def,
1539         common/common-target.h, common/config/default-common.c,
1540         common/config/pa/pa-common.c: New files.
1541         * Makefile.in (common_out_file, common_out_object_file,
1542         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1543         (OBJS-libcommon-target): Include $(common_out_object_file).
1544         (prefix.o): Update dependencies.
1545         ($(common_out_object_file), common/common-target-hooks-def.h,
1546         s-common-target-hooks-def-h): New.
1547         (s-tm-texi): Also check timestamp on common-target.def.
1548         (build/genhooks.o): Update dependencies.
1549         * config.gcc (common_out_file, target_has_targetm_common): Define.
1550         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1551         TARGET_ALWAYS_STRIP_DOTDOT.
1552         * configure.ac (common_out_object_file): Define.
1553         (common_out_file, common_out_object_file): Substitute.
1554         (common): Create directory.
1555         * configure: Regenerate.
1556         * doc/tm.texi.in (targetm_common): Document.
1557         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1558         * doc/tm.texi: Regenerate.
1559         * genhooks.c (hook_array): Also include common/common-target.def.
1560         * prefix.c (tm.h): Don't include.
1561         (common/common-target.h): Include.
1562         (ALWAYS_STRIP_DOTDOT): Don't define.
1563         (update_path): Use targetm_common.always_strip_dotdot instead of
1564         ALWAYS_STRIP_DOTDOT.
1565         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1566
1567 2011-06-14  David Li  <davidxl@google.com>
1568
1569         * passes.c (execute_function_todo): Remove TODO_dump_func.
1570         (execute_one_pass): Remove TODO_dump_func.
1571         (execute_function_dump): New function.
1572         * tree-vrp.c: Remove TODO_dump_func.
1573         * regrename.c: Remove TODO_dump_func.
1574         * fwprop.c: Remove TODO_dump_func.
1575         * tree-into-ssa.c: Remove TODO_dump_func.
1576         * tree-complex.c: Remove TODO_dump_func.
1577         * tracer.c: Remove TODO_dump_func.
1578         * tree-loop-distribution.c: Remove TODO_dump_func.
1579         * postreload-gcse.c: Remove TODO_dump_func.
1580         * postreload.c: Remove TODO_dump_func.
1581         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1582         * tree-tailcall.c: Remove TODO_dump_func.
1583         * ipa-cp.c: Remove TODO_dump_func.
1584         * final.c: Remove TODO_dump_func.
1585         * tree-emutls.c: Remove TODO_dump_func.
1586         * omp-low.c: Remove TODO_dump_func.
1587         * tree-ssa-dse.c: Remove TODO_dump_func.
1588         * tree-ssa-uncprop.c: Remove TODO_dump_func.
1589         * auto-inc-dec.c: Remove TODO_dump_func.
1590         * reorg.c: Remove TODO_dump_func.
1591         * tree-ssa-copyrename.c: Remove TODO_dump_func.
1592         * tree-ssa-ccp.c: Remove TODO_dump_func.
1593         * compare-elim.c: Remove TODO_dump_func.
1594         * mode-switching.c: Remove TODO_dump_func.
1595         * modulo-sched.c: Remove TODO_dump_func.
1596         * tree-call-cdce.c: Remove TODO_dump_func.
1597         * cse.c: Remove TODO_dump_func.
1598         * web.c: Remove TODO_dump_func.
1599         * tree-stdarg.c: Remove TODO_dump_func.
1600         * lto-streamer-out.c: Remove TODO_dump_func.
1601         * tree-ssa-math-opts.c: Remove TODO_dump_func.
1602         * tree-ssa-dom.c: Remove TODO_dump_func.
1603         * tree-nrv.c: Remove TODO_dump_func.
1604         * loop-init.c: Remove TODO_dump_func.
1605         * gimple-low.c: Remove TODO_dump_func.
1606         * ipa-inline.c: Remove TODO_dump_func.
1607         * tree-ssa-sink.c: Remove TODO_dump_func.
1608         * jump.c: Remove TODO_dump_func.
1609         * ifcvt.c: Remove TODO_dump_func.
1610         * tree-ssa-loop.c: Remove TODO_dump_func.
1611         * recog.c: Remove TODO_dump_func.
1612         * dse.c: Remove TODO_dump_func.
1613         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1614         * matrix-reorg.c: Remove TODO_dump_func.
1615         * tree-eh.c: Remove TODO_dump_func.
1616         * regmove.c: Remove TODO_dump_func.
1617         * function.c: Remove TODO_dump_func.
1618         * tree-vectorizer.c: Remove TODO_dump_func.
1619         * ipa-split.c: Remove TODO_dump_func.
1620         * gcse.c: Remove TODO_dump_func.
1621         * tree-if-conv.c: Remove TODO_dump_func.
1622         * init-regs.c: Remove TODO_dump_func.
1623         * tree-ssa-phiopt.c: Remove TODO_dump_func.
1624         * implicit-zee.c: Remove TODO_dump_func.
1625         * lower-subreg.c: Remove TODO_dump_func.
1626         * bt-load.c: Remove TODO_dump_func.
1627         * tree-dfa.c: Remove TODO_dump_func.
1628         * except.c: Remove TODO_dump_func.
1629         * emit-rtl.c: Remove TODO_dump_func.
1630         * store-motion.c: Remove TODO_dump_func.
1631         * cfgexpand.c: Remove TODO_dump_func.
1632         * tree-cfgcleanup.c: Remove TODO_dump_func.
1633         * cfgcleanup.c: Remove TODO_dump_func.
1634         * tree-ssa-pre.c: Remove TODO_dump_func.
1635         * tree-sra.c: Remove TODO_dump_func.
1636         * tree-mudflap.c: Remove TODO_dump_func.
1637         * tree-ssa-copy.c: Remove TODO_dump_func.
1638         * cfglayout.c: Remove TODO_dump_func.
1639         * tree-ssa-forwprop.c: Remove TODO_dump_func.
1640         * tree-ssa-dce.c: Remove TODO_dump_func.
1641         * ira.c: Remove TODO_dump_func.
1642         * tree-ssa.c: Remove TODO_dump_func.
1643         * integrate.c: Remove TODO_dump_func.
1644         * tree-optimize.c: Remove TODO_dump_func.
1645         * tree-ssa-phiprop.c: Remove TODO_dump_func.
1646         * tree-object-size.c: Remove TODO_dump_func.
1647         * combine.c: Remove TODO_dump_func.
1648         * bb-reorder.c: Remove TODO_dump_func.
1649         * cprop.c: Remove TODO_dump_func.
1650         * var-tracking.c: Remove TODO_dump_func.
1651         * tree-profile.c: Remove TODO_dump_func.
1652         * tree-vect-generic.c: Remove TODO_dump_func.
1653         * reg-stack.c: Remove TODO_dump_func.
1654         * sched-rgn.c: Remove TODO_dump_func.
1655         * tree-ssa-structalias.c: Remove TODO_dump_func.
1656         * tree-switch-conversion.c: Remove TODO_dump_func.
1657         * tree-cfg.c: Remove TODO_dump_func.
1658         * tree-ssa-reassoc.c: Remove TODO_dump_func.
1659         * combine-stack-adj.c: Remove TODO_dump_func.
1660         * dce.c: Remove TODO_dump_func.
1661         * tree-ssanames.c: Remove TODO_dump_func.
1662         * regcprop.c: Remove TODO_dump_func.
1663
1664 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1665
1666         PR middle-end/47364
1667         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1668         and properly handle result not in Pmode.
1669
1670 2011-06-14  Robert Millan  <rmh@gnu.org>
1671
1672         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1673         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1674         `config/linux.h'.
1675
1676         * config/i386/kfreebsd-gnu64.h: New file.
1677         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1678         with `i386/kfreebsd-gnu64.h'.
1679
1680         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1681         (GNU_USER_LINK_EMULATION64): New macros.
1682         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1683         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1684         of hardcoding `elf_i386' and `elf_x86_64'.
1685
1686 2011-06-14  Nick Clifton  <nickc@redhat.com>
1687
1688         PR target/49403
1689         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1690
1691         PR target/49402
1692         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1693
1694 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
1695
1696         PR fortran/49103
1697         * tree.h (DECL_NONSHAREABLE): Define.
1698         (struct tree_decl_common): Change decl_common_unused to
1699         decl_nonshareable_flag.
1700         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1701         Ignore vars with DECL_NONSHAREABLE bit set.
1702         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1703         on stores to automatic aggregate vars.
1704
1705         PR rtl-optimization/49390
1706         Revert:
1707         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
1708
1709         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1710         MEM_ALIAS_SET.
1711
1712 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
1713             Tom de Vries  <tom@codesourcery.com>
1714
1715         PR target/45098
1716         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1717         Document changed semantics.
1718         (max_stmt_executions, max_stmt_executions_int): Declare.
1719         * tree-data-ref.c (estimated_loop_iterations)
1720         (estimated_loop_iterations_int): Move functions...
1721         * tree-ssa-loop-niter.c (estimated_loop_iterations)
1722         (estimated_loop_iterations_int): here.
1723         (record_estimate): Change nb_iterations_upper_bound and
1724         nb_iterations_estimate semantics.
1725         (max_stmt_executions, max_stmt_executions_int): New function.
1726         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1727         (max_stmt_executions_tree): this.
1728         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1729         estimated_loop_iterations_tree.
1730         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1731         max_stmt_executions_int instead of estimated_loop_iterations_int.
1732         * predict.c (predict_loops): Idem.
1733         * tree-parloops.c (parallelize_loops): Idem.
1734         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1735         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1736         (init_omega_for_ddr_1): Idem.
1737         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1738         (loop_prefetch_arrays): Idem
1739         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1740         max_stmt_executions instead of estimated_loop_iterations.
1741         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1742         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1743         instead of nb_iterations_upper_bound.
1744
1745 2011-06-13  Jan Hubicka  <jh@suse.cz>
1746
1747         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1748
1749 2011-06-14  Richard Henderson  <rth@redhat.com>
1750
1751         PR debug/48459
1752         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1753         (based_loc_descr): Assert it's true.
1754         (compute_frame_pointer_to_fb_displacement): Set it, rather than
1755         aborting immediately.
1756
1757 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
1758             Mingfeng Wu  <mingfeng@faraday-tech.com>
1759
1760         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1761
1762 2011-06-13  Jan Hubicka  <jh@suse.cz>
1763
1764         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1765
1766 2011-06-13  Jan Hubicka  <jh@suse.cz>
1767
1768         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1769         similarly to DECL_COMDAT.
1770         * cgraphunit.c (cgraph_analyze_function): Likewise.
1771         * ipa.c (function_and_variable_visibility): Likewise.
1772
1773 2011-06-13  Jan Hubicka  <jh@suse.cz>
1774
1775         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1776         BINFO_VIRTUALS when streaming for ltrans unit.
1777
1778 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
1779
1780         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1781         (movdi_internal64): Same.
1782
1783 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
1784
1785         PR target/44618
1786         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1787         a set of similar patterns, where the MATCH_OPERAND for the function
1788         argument is replaced with individual references to hardware registers.
1789         (save_fpregs_<mode>): Ditto
1790         (restore_gpregs_<mode>): Ditto
1791         (return_and_restore_gpregs_<mode>): Ditto
1792         (return_and_restore_fpregs_<mode>): Ditto
1793         (return_and_restore_fpregs_aix_<mode>): Ditto
1794
1795 2011-06-13  Jan Hubicka  <jh@suse.cz>
1796
1797         * ipa-utils.c (postorder_stack): New structure.
1798         (ipa_reverse_postorder): Handle aliases.
1799
1800 2011-06-13  Jan Hubicka  <jh@suse.cz>
1801
1802         * ipa-inline.c (reset_edge_caches): Walk aliases.
1803         (update_caller_keys): Do not test inlinability of aliases.
1804         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1805         (do_estimate_growth): Fix typo.
1806
1807 2011-06-13  Jan Hubicka  <jh@suse.cz>
1808
1809         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1810         (can_remove_node_now_p): ... here; handle same comdat groups.
1811         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1812         (inline_call): Update use of can_remove_node_now_p.
1813
1814 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1815
1816         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1817         condition to disallow non-identical memory locations.
1818         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1819         preference to bit manipulation instructions.
1820
1821 2011-06-13  Jan Hubicka  <jh@suse.cz>
1822
1823         * cgraph.c (cgraph_for_node_thunks_and_aliases,
1824         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1825         (nonremovable_p): New function.
1826         (cgraph_can_remove_if_no_direct_calls_p): New function.
1827         (used_from_object_file_p): New functoin.
1828         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1829         references from aliases.
1830         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1831         * ipa-inline.c (check_caller_edge): New function.
1832         (want_inline_function_called_once_p): Use it; accept aliases called
1833         once, too.
1834         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1835
1836 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1837
1838         PR target/48454
1839         * config/arm/neon.md (vec_pack_trunc): Set the lengths
1840         correctly for the case with Quad vectors.
1841
1842 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
1843            Ira Rosen  <ira.rosen@linaro.org>
1844
1845         PR tree-optimization/49352
1846         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1847         all, make sure loop_use_stmt after the loop is a def stmt of a used
1848         SSA_NAME that is the only one defined inside of the loop.  Don't
1849         check for COND_EXPR and GIMPLE_BINARY_RHS.
1850         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1851         check_reduction is true.
1852
1853 2011-06-11  Jan Hubicka  <jh@suse.cz>
1854
1855         PR middle-end/49373
1856         * ipa.c (cgraph_externally_visible_p): Check resolution info.
1857
1858 2011-06-11  Jan Hubicka  <jh@suse.cz>
1859
1860         PR middle-end/48836
1861         * ipa-inline-transform.c: Include tree-pass.h
1862         (inline_transform): Set TODO_update_ssa_only_virtuals.
1863         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1864
1865 2011-06-11  Jan Hubicka  <jh@suse.cz>
1866
1867         PR middle-end/49378
1868         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1869         aliases and thunks.
1870
1871 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
1872
1873         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1874         Take number of iterations to peel into account for equally frequent
1875         misalignment values.
1876
1877 2011-06-11  Jan Hubicka  <jh@suse.cz>
1878
1879         * lto-streamer-out.c (produce_symtab): Stream out the newly
1880         represented aliases.
1881
1882 2011-06-11  Jan Hubicka  <jh@suse.cz>
1883
1884         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
1885         varying args.
1886         (ipa_update_after_lto_read): Likewise.
1887         (ipa_write_node_info): Do not sream call_with_var_arguments.
1888         (ipa_read_node_info): Likewise.
1889
1890 2011-06-11  Jan Hubicka  <jh@suse.cz>
1891
1892         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1893
1894 2011-06-11  Jan Hubicka  <jh@suse.cz>
1895
1896         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1897         (lto_symtab_resolve_can_prevail_p): Likewise.
1898         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1899         * cgraph.c (same_body_aliases_done): New global var.
1900         (cgraph_same_body_alias_1): Rename to ...
1901         (cgraph_create_function_alias): ... this one; reorg to new
1902         representation.
1903         (cgraph_same_body_alias): Use cgraph_create_function_alias;
1904         record references when asked to.
1905         (cgraph_add_thunk): Fix formating.
1906         (cgraph_get_node): Kill same body alias code.
1907         (cgraph_node_for_asm): Likewise.
1908         (cgraph_remove_same_body_alias): Remove.
1909         (cgraph_remove_node): Kill same body alias code.
1910         (cgraph_mark_address_taken_node): Mark also the aliased function
1911         as having address taken.
1912         (dump_cgraph_node): Dump same body aliases.
1913         (cgraph_for_node_thunks_and_aliases): Update for new alias
1914         representation.
1915         (cgraph_for_node_and_aliases): Likewise.
1916         * cgraph.h (same_body): Kll pointer.
1917         (same_body_alias): Update comment.
1918         (same_body_aliases_done): Declare.
1919         (cgraph_remove_same_body_alias): Remove declaration.
1920         (cgraph_create_function_alias): Declare.
1921         (cgraph_process_same_body_aliases): Declare.
1922         (cgraph_function_with_gimple_body_p): Check for alias.
1923         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1924         (cgraph_alias_aliased_node): New function.
1925         (cgraph_function_node): Update for new aliases.
1926         (cgraph_function_or_thunk_node): Likewise.
1927         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1928         (inline_call): Remove dead aliases.
1929         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1930         name hack for same body aliases.
1931         (clone_of_p): Look through aliases.
1932         (verify_cgraph_node): Verify aliases.
1933         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1934         (cgraph_process_same_body_aliases): New function.
1935         (process_function_and_variable_attributes): Disable weakref warning on
1936         alias.
1937         (cgraph_analyze_functions): Handle aliases.
1938         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1939         (assemble_thunks): Rename to ...
1940         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1941         (cgraph_expand_function): Remove alias output code.
1942         (cgraph_output_in_order): Skip aliases.
1943         (cgraph_preserve_function_body_p): Aliases don't need preserving.
1944         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
1945         (ipa_record_reference): Do not assert on alias references.
1946         (ipa_ref_has_aliases_p): New function.
1947         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
1948         (ipa_ref_has_aliases_p): Declare.
1949         * lto-cgraph.c (lto_output_node): Handle aliases.
1950         (input_node): Likewise.
1951         * lto-streamer-out.c (lto_output): Skip aliases.
1952         (produce_symtab): Kill same_body_alias code.
1953         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
1954         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
1955         * ipa-inline.c (update_caller_keys): Walk aliases.
1956         (inline_small_functions): Fix thinko in previous patch.
1957         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
1958         (function_and_variable_visibility): Do not walk same body aliases.
1959         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
1960         (ipa_pta_execute): Use it.
1961
1962 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
1963
1964         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1965         (*vec_dupv2df): Rename from vec_dupv2df.
1966         (vec_dupv2df): New expander.
1967
1968 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
1969
1970         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
1971
1972 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
1973
1974         * config/i386/i386.md: Use default value in "isa" attribute.
1975         * config/i386/sse.md: Ditto.
1976         * config/i386/mmx.md: Ditto.
1977
1978 2011-06-10  Wei Guozhi  <carrot@google.com>
1979
1980         PR target/45335
1981         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1982         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1983         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1984         related peephole2.
1985         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1986         related peephole2.
1987         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1988         (arm_legitimate_ldrd_p): New prototype.
1989         (arm_output_ldrd): New prototype.
1990         * config/arm/arm.c (arm_check_ldrd_operands): New function.
1991         (arm_legitimate_ldrd_p): New function.
1992         (arm_output_ldrd): New function.
1993
1994 2011-06-10  David Li  <davidxl@google.com>
1995
1996         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1997         * passes.c (passr_eq): New function.
1998         (create_pass_tab): New function.
1999         (pass_traverse): New function.
2000         (dump_one_pass): New function.
2001         (dump_pass_list): New function.
2002         (dump_passes): New function.
2003
2004 2011-06-10  Jan Hubicka  <jh@suse.cz>
2005
2006         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2007         setting the nothrow flag.
2008         * ipa-reference.c (propagate): Skip aliases.
2009         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2010         (propagate_nothrow): Skip aliases; do not update cgraph.
2011         (local_pure_const): Do not update cgraph.
2012         * tree-profile.c (tree_profiling): Do fixup_cfg.
2013
2014 2011-06-10  Jan Hubicka  <jh@suse.cz>
2015
2016         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2017         (cgraph_local_node_p): ... here; handle aliases.
2018         (has_addr_references_p): Break out from ...;
2019         (cgraph_remove_unreachable_nodes) ... here.
2020
2021 2011-06-10  Jan Hubicka  <jh@suse.cz>
2022
2023         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2024         * common.opt (flag_inline_functions_called_once): Do not
2025         initialize to 1.
2026
2027 2011-06-10  Jan Hubicka  <jh@suse.cz>
2028
2029         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2030         (ipcp_initialize_node_lattices): Do not deal with aliases;
2031         Do not try to propagate through thunks.
2032         (ipcp_change_tops_to_bottom): Do not deal with aliases.
2033
2034 2011-06-10  Jan Hubicka  <jh@suse.cz>
2035
2036         * ipa-prop.c (ipa_write_node_info): Stream jump functions
2037         for indirect calls.
2038         (ipa_read_node_info): Likewise.
2039
2040 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2041
2042         PR lto/49302
2043         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2044         (build_and_insert_call): Likewise.
2045         (build_and_insert_ref): New.
2046         (gimple_expand_builtin_pow): Minor cleanup.
2047         (gimple_expand_builtin_cabs): New.
2048         (execute_cse_sincos): Add case for BUILT_IN_CABS.
2049
2050 2011-06-10  Jan Hubicka  <jh@suse.cz>
2051
2052         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2053         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2054         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2055         (ipcp_propagate_stage): Skip aliases when propagating.
2056         (ipcp_need_redirect_p): Skip aliases.
2057         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2058         collect_callers_of_node.
2059         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2060         for aliases.
2061         (ipa_compute_jump_functions): Look through aliases.
2062
2063 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2064
2065         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2066
2067 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2068
2069         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2070         Adjust comments.
2071         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2072
2073 2011-06-10  Jan Hubicka  <jh@suse.cz>
2074
2075         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2076         Update call of gimple_get_virt_method_for_binfo.
2077         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2078         refuse_thunks parameter.
2079         (gimple_fold_call): Update.
2080         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2081
2082 2011-06-10  Jan Hubicka  <jh@suse.cz>
2083
2084         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2085         (not_all_callers_have_enough_arguments_p): ... this one; turn into
2086         worker for cgraph_for_node_and_aliases.
2087         (convert_callers_for_node): Break out from ...
2088         (convert_callers): ... here.
2089         (modify_function): Use collect_callers_of_node.
2090         (ipa_early_sra): Use cgraph_for_node_and_aliases.
2091
2092 2011-06-10  Richard Guenther  <rguenther@suse.de>
2093
2094         PR tree-optimization/49361
2095         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2096         when not already in gimple form.
2097
2098 2011-06-10  Richard Guenther  <rguenther@suse.de>
2099
2100         PR bootstrap/49344
2101         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2102         FOR_EACH_PHI_OR_STMT_USE.
2103
2104 2011-06-10  Jan Hubicka  <jh@suse.cz>
2105
2106         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2107         (clone_inlined_nodes): ... here.
2108         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2109         to real destination prior inlining.
2110         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2111         can_early_inline_edge_p, want_early_inline_function_p,
2112         want_early_inline_function_p, want_inline_small_function_p,
2113         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2114         edge_badness, update_all_callee_keys, lookup_recursive_calls,
2115         add_new_edges_to_heap, inline_small_functions, flatten_function,
2116         inline_always_inline_functions, early_inline_small_functions): Use
2117         cgraph_function_or_thunk_node.
2118         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2119         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2120         (do_estimate_edge_growth_1): Break out from ...
2121         (do_estimate_growth) ... here; walk aliases.
2122         (inline_generate_summary): Skip aliases.
2123
2124 2011-06-10  Richard Guenther  <rguenther@suse.de>
2125
2126         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2127         forward when combining, visit inserted stmts when a stmt was changed.
2128
2129 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
2130
2131         * tree.h (error_operand_p): Add.
2132         * dbxout.c (dbxout_type_fields): Use the latter.
2133         * c-decl.c (add_stmt): Likewise.
2134         * gimplify.c (omp_add_variable, omp_notice_variable,
2135         gimplify_scan_omp_clauses): Likewise.
2136
2137 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
2138
2139         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2140         when a value is actually passed in regs.
2141
2142 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
2143             Laurent Rougé  <laurent.rouge@menta.fr>
2144
2145         * doc/invoke.texi (SPARC options): Add -mflat.
2146         * config/sparc/sparc.opt: Likewise.
2147         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2148         (sparc_flat_expand_prologue): Declare.
2149         (sparc_flat_expand_epilogue): Likewise.
2150         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2151         (CPP_ENDIAN_SPEC): Replace with...
2152         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
2153         (CPP_SPEC): Adjust to above change.
2154         (EXTRA_SPECS): Likewise.
2155         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2156         (INCOMING_REGNO): Likewise.
2157         (OUTGOING_REGNO): Likewise.
2158         (LOCAL_REGNO): Likewise.
2159         (SETUP_FRAME_ADDRESSES): Likewise.
2160         (FIXED_REGISTERS): Set 0 for %fp.
2161         (CALL_USED_REGISTERS): Likewise.
2162         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2163         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2164         (RETURN_ADDR_REGNUM): Define.
2165         (RETURN_ADDR_RTX): Use it.
2166         (INCOMING_RETURN_ADDR_REGNUM): Define.
2167         (INCOMING_RETURN_ADDR_RTX): Use it.
2168         (DWARF_FRAME_RETURN_COLUMN): Likewise.
2169         (EH_RETURN_REGNUM): Define.
2170         (EH_RETURN_STACKADJ_RTX): Use it.
2171         (EH_RETURN_HANDLER_RTX): Delete.
2172         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2173         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2174         Delete.
2175         (struct machine_function): Add frame_size, apparent_frame_size,
2176         frame_base_reg, frame_base_offset, n_global_fp_regs and
2177         save_local_in_regs_p fields.
2178         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2179         sparc_frame_base_offset, sparc_n_global_fp_regs,
2180         sparc_save_local_in_regs_p): New macros.
2181         (sparc_option_override): Error out if -fcall-saved-REG is specified
2182         for Out registers.
2183         (eligible_for_restore_insn): Fix formatting.
2184         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
2185         (eligible_for_sibcall_delay): Likewise.
2186         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2187         (sparc_legitimate_address_p): Adjust to above change.
2188         (save_global_or_fp_reg_p): New predicate.
2189         (return_addr_reg_needed_p): Likewise.
2190         (save_local_or_in_reg_p): Likewise.
2191         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
2192         (SORR_SAVE, SORR_RESTORE): Delete.
2193         (sorr_pred_t): New typedef.
2194         (sorr_act_t): New enum.
2195         (save_or_restore_regs): Rename to...
2196         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
2197         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2198         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
2199         mechanism.  Add CFI information for double-word saves in 32-bit mode.
2200         (emit_adjust_base_to_offset): New function extracted from...
2201         (emit_save_or_restore_regs): ...this.  Rename the rest to...
2202         (emit_save_or_restore_regs_global_fp_regs): ...this.
2203         (emit_save_or_restore_regs_local_in_regs): New function.
2204         (gen_create_flat_frame_[123]): New functions.
2205         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
2206         (sparc_flat_expand_prologue): New function.
2207         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2208         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
2209         (sparc_flat_expand_epilogue): New function.
2210         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2211         (output_return): Likewise.
2212         (output_sibcall): Likewise.
2213         (sparc_output_mi_thunk): Likewise.
2214         (sparc_frame_pointer_required): Likewise.
2215         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2216         function optimization.
2217         * config/sparc/sparc.md (flat): New attribute.
2218         (prologue): Add TARGET_FLAT handling.
2219         (save_register_window): Disable if TARGET_FLAT.
2220         (create_flat_frame_[123]): New patterns.
2221         (epilogue): Add TARGET_FLAT handling.
2222         (sibcall_epilogue): Likewise.
2223         (eh_return): New expander.
2224         (eh_return_internal): New insn and splitter.
2225         (return_internal): Add TARGET_FLAT handling.
2226         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2227         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2228         (nonlocal_goto): Add TARGET_FLAT handling.
2229         * config/sparc/t-elf: Add -mflat multilib.
2230         * config/sparc/t-leon: Likewise.
2231
2232 2011-06-10  Jan Hubicka  <jh@suse.cz>
2233
2234         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2235         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2236         (self_recursive_p): Use cgraph_function_node.
2237         (propagate_pure_const): Likewise.
2238         (propagate_nothrow): Likewise.
2239         * ipa-reference.c (ipa_reference_get_not_read_global): Use
2240         cgraph_function_node.
2241         (propagate_bits): Likewise.
2242         (propagate): Likewise.
2243
2244 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2245             Richard Earnshaw  <rearnsha@arm.com>
2246
2247         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2248         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2249         (*thumb2_movdi_vfp): Delete.
2250         (*arm_movdi_vfp_cortexa8): Delete.
2251         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2252         (*movdi_vfp_cortexa8): Likewise.
2253
2254 2011-06-10  Richard Guenther  <rguenther@suse.de>
2255
2256         * stor-layout.c (initialize_sizetypes): Give names to all
2257         sizetype kinds.
2258
2259 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
2260
2261         PR tree-optimization/49318
2262         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2263         irrelevant pattern statements.
2264
2265 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2266
2267         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2268
2269         PR bootstrap/49354
2270         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2271         to last assignment.
2272
2273 2011-06-09  Jan Hubicka  <jh@suse.cz>
2274
2275         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2276         do not recompute reachable flag.
2277         (cgraph_finalize_function, cgraph_analyze_functions): Set
2278         redefined_extern_inline here.
2279
2280 2011-06-09  Jan Hubicka  <jh@suse.cz>
2281
2282         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2283         (cgraph_only_called_directly_p): ... this one; bring offline.
2284         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2285         varpool_used_from_object_file_p): Drop names from the declaratoin.
2286         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2287         collect_callers_of_node): New.
2288         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2289         (cgraph_edge_recursive_p): Use cgraph_function_node.
2290         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2291         (cgraph_node_cannot_be_local_p_1): Break out from ...
2292         (cgraph_node_can_be_local_p): ... here; walk aliases.
2293         (cgraph_for_node_thunks_and_aliases): New function.
2294         (cgraph_for_node_and_aliases): New function.
2295         (cgraph_make_node_local_1): Break out from ...
2296         (cgraph_make_node_local) ... here; use
2297         cgraph_for_node_thunks_and_aliases.
2298         (cgraph_set_nothrow_flag_1): Break out from ...
2299         (cgraph_set_nothrow_flag) ... here;
2300         use cgraph_for_node_thunks_and_aliases.
2301         (cgraph_set_const_flag_1): Break out from ...
2302         (cgraph_set_const_flag) ... here;
2303         use cgraph_for_node_thunks_and_aliases.
2304         (cgraph_set_pure_flag_1): Break out from ...
2305         (cgraph_set_pure_flag) ... here;
2306         use cgraph_for_node_thunks_and_aliases.
2307         (cgraph_propagate_frequency_1): Break out from ...
2308         (cgraph_propagate_frequency) ... here; use
2309         cgraph_for_node_thunks_and_aliases.
2310         (cgraph_used_from_object_file_p): Do not care about aliases.
2311         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2312         New functions.
2313         (collect_callers_of_node_1, collect_callers_of_node): New functions.
2314
2315 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2316
2317         PR rtl-optimization/49154
2318         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2319         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2320         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2321         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2322         * config/cris/cris.h (cris_register_move_cost): Remove
2323         !TARGET_V32 code.  Tweak comments.
2324
2325 2011-06-09  Jan Hubicka  <jh@suse.cz>
2326
2327         * cgraphbuild.c (record_eh_tables): Mark personality function as having
2328         address taken.
2329
2330 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2331
2332         PR rtl-optimization/49154
2333         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2334         is a matching slot in the hashtable, assign it to classes_ptr.
2335
2336         PR rtl-optimization/49154
2337         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2338         register classes.
2339         * doc/tm.texi: Regenerate.
2340
2341 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2342
2343         PR target/49307
2344         * config/sh/sh.md (UNSPEC_CHKADD): New.
2345         (chk_guard_add): New define_insn_and_split.
2346         (symGOT_load): Use chk_guard_add instead of blockage.
2347
2348 2011-06-09  Kai Tietz  <ktietz@redhat.com>
2349
2350         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2351
2352 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2353
2354         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2355
2356 2011-06-09  Wei Guozhi  <carrot@google.com>
2357
2358         PR target/46975
2359         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2360         (peephole2 for conditional move): Generate 16 bit instructions.
2361
2362 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
2363
2364         * config/i386/i386.md (*movdi_internal_rex64): Merge
2365         alternatives 6 and 8.
2366
2367 2011-06-09  David Li  <davidxl@google.com>
2368
2369         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2370         * passes.c (passr_eq): New function.
2371         (create_pass_tab): New function.
2372         (pass_traverse): New function.
2373         (dump_one_pass): New function.
2374         (dump_pass_list): New function.
2375         (dump_passes): New function.
2376
2377 2011-06-09  David Li  <davidxl@google.com>
2378
2379         * tree-complex.c (tree_lower_complex): Gate cleanup.
2380         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2381         (execute_optimize_stdarg): Ditto.
2382         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2383         (execute_cleanup_eh_1): Ditto.
2384         (execute_cleanup_eh): Ditto.
2385         * gcse.c (gate_rtl_pre): Ditto.
2386         (execute_rtl_pre): Ditto.
2387         * except.c (finish_eh_generation): Ditto.
2388         (convert_to_eh_region_ranges): Ditto.
2389         * cprop.c (one_cprop_pass): Ditto.
2390
2391 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
2392
2393         PR target/48673
2394         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2395         in all basic blocks.
2396
2397 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2398
2399         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2400         (HAVE_ENABLE_EXECUTE_STACK): Define.
2401         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2402         (HAVE_ENABLE_EXECUTE_STACK): Define.
2403         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2404         (HAVE_ENABLE_EXECUTE_STACK): Define.
2405         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2406         (ENABLE_EXECUTE_STACK): Remove.
2407         (HAVE_ENABLE_EXECUTE_STACK): Define.
2408         [IN_LIBGCC2]: Don't include <windows.h>.
2409         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2410         (HAVE_ENABLE_EXECUTE_STACK): Define.
2411         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2412         (HAVE_ENABLE_EXECUTE_STACK): Define.
2413         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2414         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2415         (HAVE_ENABLE_EXECUTE_STACK): Define.
2416         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2417         (HAVE_ENABLE_EXECUTE_STACK): Define.
2418         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2419         (HAVE_ENABLE_EXECUTE_STACK): Define.
2420         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2421         (HAVE_ENABLE_EXECUTE_STACK): Define.
2422         * config/alpha/alpha.c (alpha_trampoline_init): Test
2423         HAVE_ENABLE_EXECUTE_STACK.
2424         * config/i386/i386.c (ix86_trampoline_init): Likewise.
2425         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2426         (sparc64_initialize_trampoline): Likewise.
2427         * libgcc2.c [L_enable_execute_stack]: Remove.
2428         * system.h (ENABLE_EXECUTE_STACK): Poison.
2429         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2430         * doc/tm.texi: Regenerate.
2431         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2432
2433 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
2434
2435         PR middle-end/49308
2436         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2437         variable.  After resetting and rescanning insn continue with previous
2438         statement.
2439
2440 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2441
2442         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2443         (gcc_cv_ld_hidden): Likewise.
2444         * configure: Regenerate.
2445         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2446         (ix86_stack_protect_fail): Mark unused.
2447         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2448         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2449         [TARGET_MACHO]: Don't define.
2450         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2451         (TARGET_STACK_PROTECT_FAIL): Likewise.
2452         (rs6000_stack_protect_fail): Mark unused.
2453         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2454         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
2455
2456 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2457
2458         * varasm.c (get_section): Print location of other conflict
2459         for section conflicts.
2460
2461 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2462
2463         * config/i386/driver-i386.c (host_detect_local_cpu):
2464         Add model 0x2d Intel CPU.
2465
2466 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2467
2468         * reginfo.c (global_regs_decl): Add.
2469         (globalize_reg): Add decl parameter. Compute location.  Pass location
2470         to warnings and add inform. Store decl in global_regs_decl.
2471         * rtl.h (globalize_reg): Update prototype.
2472         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2473
2474 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
2475
2476         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2477
2478 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2479
2480         PR target/49305
2481         * config/sh/predicates.md (general_movsrc_operand): Check
2482         mode for memory with indexed address for QI and HImode.
2483         (general_movdst_operand): Likewise.
2484
2485 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
2486
2487         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2488
2489 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
2490
2491         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2492         (num_ssa_operands): Likewise.
2493         (op_iter_init_phiuse): Forward-declare.
2494         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2495
2496 2011-06-08  Nick Clifton  <nickc@redhat.com>
2497
2498         * doc/invoke.texi (ARM Options): Update description of
2499         -mthumb-interwork.
2500
2501 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
2502
2503         * config/i386/driver-i386.c (host_detect_local_cpu): Support
2504         unknown Intel family 0x6 CPUs.
2505
2506 2011-06-08  Martin Jambor  <mjambor@suse.cz>
2507
2508         * tree-sra.c (mark_rw_status): Removed.
2509         (analyze_access_subtree): New parameter parent instead of
2510         mark_read and mark_write, propagate from that.
2511
2512 2011-06-08  Julian Brown  <julian@codesourcery.com>
2513
2514         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2515         for double-precision helper functions in hard-float mode if only
2516         single-precision arithmetic is supported in hardware.
2517
2518 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
2519
2520         PR rtl-optimization/49303
2521         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
2522         code_motion_path_driver returned 0 or 1.
2523         (sel_region_finish): Clear h_d_i_d.
2524
2525 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2526
2527         * config/sh/sh.c (prepare_move_operands): Set pic register
2528         appropriately for global and local dynamic tls models even
2529         if flag_pic is unset.
2530
2531 2011-06-07  Jason Merrill  <jason@redhat.com>
2532
2533         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2534
2535 2011-06-07  Xinliang David Li  <davidxl@google.com>
2536         * passes.c (enable_disable_pass): Handle assembler name.
2537         (is_pass_explicitly_enabled_or_disabled): Ditto.
2538
2539 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2540
2541         PR tree-optimization/48497
2542         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2543
2544 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2545
2546         PR tree-optimization/46728
2547         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2548         to use gimple_val_nonnegative_real_p.
2549         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2550         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2551
2552 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
2553
2554         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2555
2556 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
2557
2558         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2559         constant vectors.
2560
2561 2011-06-07  Richard Guenther  <rguenther@suse.de>
2562
2563         * stor-layout.c (initialize_sizetypes): Initialize all
2564         sizetypes based on target definitions.
2565         (set_sizetype): Remove.
2566         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2567         * tree.h (set_sizetype): Remove.
2568
2569 2011-06-07  Nick Clifton  <nickc@redhat.com>
2570
2571         * config.gcc: Unify V850 architecture options and add support for
2572         newer V850 architectures.
2573         * config/v850/t-v850e: Delete.
2574
2575 2011-06-07  Richard Guenther  <rguenther@suse.de>
2576
2577         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2578         Call set_sizetype from here.
2579
2580 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
2581
2582         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2583         (*maddhisi4tb, *maddhisi4tt): New define_insns.
2584
2585 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
2586             Andrew Stubbs  <ams@codesourcery.com>
2587
2588         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2589         multiplies.
2590         * doc/md.texi (Canonicalization of Instructions): Document widening
2591         multiply canonicalization.
2592
2593 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
2594
2595         PR gcov-profile/49299
2596         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2597
2598 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
2599
2600         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2601         a pointer.
2602         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2603         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2604         vect_recog_pow_pattern): Likewise.
2605         (vect_pattern_recog_1): Remove declaration.
2606         (widened_name_p): Remove declaration.  Add new argument to specify
2607         whether to check that both types are either signed or unsigned.
2608         (vect_recog_widen_mult_pattern): Update documentation.  Handle
2609         unsigned patterns and multiplication by constants.
2610         (vect_pattern_recog_1): Update vect_recog_func references.  Use
2611         statement information from the statement returned from pattern
2612         detection functions.
2613         (vect_pattern_recog): Update vect_recog_func reference.
2614         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2615         multiplication by a constant use the type of the other operand.
2616
2617 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
2618
2619         PR rtl-optimization/49145
2620         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2621
2622 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
2623
2624         PR debug/49262
2625         * dwarf2out.c (native_encode_initializer): Decrement count in each
2626         iteration.
2627
2628         PR debug/49294
2629         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2630         non-MODE_INT modes.
2631
2632         PR c++/49264
2633         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2634         if stmt folded into nothing.
2635         * tree-inline.c (fold_marked_statements): If a builtin at the end of
2636         a bb folded into nothing, just update cgraph edges and move to next bb.
2637         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2638         to be NULL.  Don't compute count and frequency if new_call is NULL.
2639
2640 2011-06-04  Diego Novillo  <dnovillo@google.com>
2641
2642         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2643         (cgraph.o): Likewise.
2644         (cgraphunit.o): Likewise.
2645         * cgraphunit.c: Include lto-streamer.h
2646         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2647         if LTO is enabled.
2648         * lto-streamer-in.c (unpack_value_fields): Call
2649         streamer_hooks.unpack_value_fields if set.
2650         (lto_materialize_tree): For unhandled nodes, first try to
2651         call lto_streamer_hooks.alloc_tree, if it exists.
2652         (lto_input_ts_decl_common_tree_pointers): Move reading of
2653         DECL_INITIAL to lto_streamer_read_tree.
2654         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2655         (lto_streamer_read_tree): New.
2656         (lto_reader_init): Rename from lto_init_reader.
2657         Move initialization code to lto/lto.c.
2658         * lto-streamer-out.c (pack_value_fields): Call
2659         streamer_hooks.pack_value_fields if set.
2660         (lto_output_tree_ref): For tree nodes that are not normally indexable,
2661         call streamer_hooks.indexable_with_decls_p before giving up.
2662         (lto_output_ts_decl_common_tree_pointers): Move handling
2663         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2664         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2665         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
2666         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2667         (lto_streamer_write_tree): New.
2668         (lto_output): Call lto_streamer_init directly.
2669         (lto_writer_init): Remove.
2670         * lto-streamer.c (streamer_hooks): New.
2671         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2672         instead of lto_preload_common_nodes.
2673         (lto_is_streamable): Move from lto-streamer.h
2674         (lto_streamer_hooks_init): New.
2675         (streamer_hooks): New.
2676         (streamer_hooks_init): New.
2677         * lto-streamer.h (struct output_block): Forward declare.
2678         (struct lto_input_block): Likewise.
2679         (struct data_in): Likewise.
2680         (struct bitpack_d): Likewise.
2681         (struct streamer_hooks): Declare.
2682         (streamer_hooks): Declare.
2683         (lto_streamer_hooks_init): Declare.
2684         (lto_streamer_write_tree): Declare.
2685         (lto_streamer_read_tree): Declare.
2686         (streamer_hooks_init): Declare.
2687         (lto_is_streamable): Move to lto-streamer.c
2688
2689 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2690
2691         * longlong.h (smul_ppmm): The resulting register pair contains the
2692         higher order word first.
2693
2694 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2695
2696         PR tree-optimization/46728
2697         * builtins.c (powi_table): Remove.
2698         (powi_lookup_cost): Remove.
2699         (powi_cost): Remove.
2700         (expand_powi_1): Remove.
2701         (expand_powi): Remove.
2702         (expand_builtin_pow_root): Remove.
2703         (expand_builtin_pow): Remove.
2704         (expand_builtin_powi): Eliminate handling of constant exponent.
2705         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2706
2707 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2708
2709         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2710
2711 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2712
2713         * dce.c (reset_unmarked_insns_debug_uses): New.
2714         (delete_unmarked_insns): Skip debug insns.
2715         (prescan_insns_for_dce): Likewise.
2716         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2717         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2718         active reg can be found.
2719         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
2720         (convert_regs_1): Use it.
2721
2722 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2723
2724         * tree-pretty-print.c (dump_function_header): Add flags.
2725         Don't dump decl_uid with nouid.
2726         * tree-pretty-print.h (dump_function_header): Adjust.
2727         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2728         * passes.c (pass_init_dump_file): Pass dump_flags on.
2729         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2730
2731 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2732
2733         PR bootstrap/49270
2734         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2735
2736 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
2737
2738         PR tree-optimization/49243
2739         * calls.c (setjmp_call_p): Also check if fndecl has the
2740         returns_twice attribute.
2741
2742 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2743
2744         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2745         -ffast-math etc.
2746
2747 2011-06-06  Richard Henderson  <rth@redhat.com>
2748             Georg-Johann Lay  <avr@gjlay.de>
2749
2750         PR target/42210
2751         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2752         New predicates.
2753         * config/avr/avr.md ("insv"): New insn expander.
2754         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2755         "*insv.not.io", "*insv.reg"): New insns.
2756
2757 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
2758
2759         PR target/49285
2760         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2761         to nonimmediate_operand from memory_operand for the operand that is to
2762         be forced to memory by the expander.  Lose the constraints.
2763
2764 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
2765
2766         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2767         EH return when delayed branches are disabled.
2768
2769 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
2770
2771         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2772         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
2773         calculation.
2774         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2775         Simplify MODE_V1DF and MODE_V2SF handling.
2776         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2777         Simplify MODE_SF handling.
2778
2779 2011-06-04  Jan Hubicka  <jh@suse.cz>
2780
2781         PR tree-optimization/48893
2782         PR tree-optimization/49091
2783         PR tree-optimization/49179
2784         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2785         Bounds check.
2786
2787 2011-06-04  Jan Hubicka  <jh@suse.cz>
2788
2789         PR lto/48954
2790         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2791         bitmaps.
2792
2793 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
2794
2795         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2796
2797 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
2798
2799         PR target/49281
2800         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2801         to be strictly smaller than 1 << shiftcount.
2802
2803 2011-06-04  Jan Hubicka  <jh@suse.cz>
2804
2805         PR tree-optimize/48929
2806         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2807         of empty predicate.
2808
2809 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
2810
2811         PR debug/48333
2812         * calls.c (emit_call_1): Prefer the __builtin declaration of
2813         builtin functions.
2814
2815 2011-06-03   Diego Novillo  <dnovillo@google.com>
2816
2817         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2818         (lto_input_tree_pointers): Likewise.
2819         * lto-streamer-out.c (pack_value_fields): Likewise.
2820         (lto_output_tree_pointers): Likewise.
2821         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2822         and OPTIMIZATION_NODE.
2823
2824 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2825
2826         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2827         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2828         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2829         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2830         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2831         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2832         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2833         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2834         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2835         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2836         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2837         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2838         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2839         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2840         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2841         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2842         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2843         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2844         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2845         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2846         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2847         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2848         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2849         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2850         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2851         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2852         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2853         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2854         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2855         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2856         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2857         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2858         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2859         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2860         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2861         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2862         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2863         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2864         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2865         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2866         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2867         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2868         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2869         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2870         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2871         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2872         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2873         * system.h (MD_UNWIND_SUPPORT): Poison.
2874         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2875         * doc/tm.texi: Regenerate.
2876         * unwind-dw2.c: Include md-unwind-support.h instead of
2877         MD_UNWIND_SUPPORT.
2878         * config/ia64/unwind-ia64.c: Likewise.
2879         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2880
2881 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
2882
2883         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2884
2885 2011-06-03  Richard Henderson  <rth@redhat.com>
2886             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2887
2888         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2889         (sigill_hdlr): Correct insn, insn size.
2890         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2891
2892 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2893
2894         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2895         t-slibgcc-dummy.
2896         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2897         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2898         * config/mips/t-iris: Remove.
2899         * config/mips/t-irix6: New file.
2900         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2901
2902 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2903
2904         * Makefile.in (LIB2ADDEHDEP): Remove.
2905         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2906         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2907         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2908         * config/t-darwin (LIB2ADDEHDEP): Remove.
2909         * config/t-freebsd (LIB2ADDEHDEP): Remove.
2910         * config/t-linux (LIB2ADDEHDEP): Remove.
2911
2912 2011-06-03  Diego Novillo  <dnovillo@google.com>
2913
2914         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2915         (lto_register_var_decl_in_symtab): Likewise.
2916         (lto_register_function_decl_in_symtab): Likewise.
2917         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
2918         logic to uniquify_nodes.
2919
2920 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2921
2922         * config/alpha/t-osf5: Remove.
2923         * config/alpha/t-osf-pthread: Remove.
2924         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2925         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2926
2927 2011-06-03  Julian Brown  <julian@codesourcery.com>
2928
2929         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2930         (strongarm1110): Use strongarm tuning.
2931         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
2932         * config/arm/arm.c (arm_strongarm_tune): New.
2933         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2934         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2935         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2936         setting, using previous defaults or 1 for Cortex-A5.
2937         (arm_option_override): Set max_insns_skipped from current tuning.
2938
2939 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
2940
2941         * doc/install.texi (Options specification): Document --with-specs.
2942
2943 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2944
2945         * config/arm/neon.md (orndi3_neon): Actually split it.
2946
2947 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
2948
2949         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
2950         * var-tracking.c (reverse_op): Limite recurse depth to 5.
2951
2952 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
2953
2954         PR debug/47590
2955         * target.def (delay_sched2, delay_vartrack): New.
2956         * doc/tm.texi.in: Update.
2957         * doc/tm.texi: Rebuild.
2958         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
2959         * var-tracking.c (gate_handle_var_tracking): Likewise.
2960         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
2961         (bfin_flag_var_tracking): Drop.
2962         (output_file_start): Don't save and override flag_var_tracking.
2963         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
2964         (bfin_reorg): Test original variables.
2965         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2966         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
2967         (ia64_flag_var_tracking): Drop.
2968         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2969         (ia64_file_start): Don't save and override flag_var_tracking.
2970         (ia64_override_options_after_change): Ditto
2971         flag_schedule_insns_after_reload.
2972         (ia64_reorg): Test original variables.
2973         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
2974         (picochip_flag_var_tracking): Drop.
2975         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2976         (picochip_option_override): Don't save and override
2977         flag_schedule_insns_after_reload.
2978         (picochip_asm_file_start): Ditto flag_var_tracking.
2979         (picochip_reorg): Test original variables.
2980         * config/spu/spu.c (spu_flag_var_tracking): Drop.
2981         (TARGET_DELAY_VARTRACK): Define.
2982         (spu_var_tracking): New.
2983         (spu_machine_dependent_reorg): Call it.
2984         (asm_file_start): Don't save and override flag_var_tracking.
2985
2986 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
2987
2988         PR target/49163
2989         * config/sh/predicates.md (general_movsrc_operand): Return 0
2990         for memory and memory subreg of which address is an invalid
2991         indexed address for QI and HImode.
2992         (general_movdst_operand): Likewise.
2993
2994 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
2995
2996         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
2997         edges only, when there is a non-local label in the function.
2998         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
2999
3000 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3001
3002         * config/i386/constraints.md (Y3): New register constraint.
3003         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3004         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3005         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3006         *sse2_interleave_lowv2df.
3007
3008 2011-06-02  Julian Brown  <julian@codesourcery.com>
3009
3010         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3011         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3012         (arm_cortex_a5_tune): New.
3013
3014 2011-06-02  Julian Brown  <julian@codesourcery.com>
3015
3016         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3017         * config/arm/arm.c (arm_default_branch_cost): New.
3018         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3019         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3020         (arm_fa726_tune): Set branch_cost field using
3021         arm_default_branch_cost.
3022         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3023         current_tune structure.
3024         * dojump.c (tm_p.h): Include file.
3025
3026 2011-06-02  Julian Brown  <julian@codesourcery.com>
3027
3028         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3029         tuning.
3030         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3031         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3032         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3033         field.
3034         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3035         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3036         (arm_fa726te_tune): Add prefer_constant_pool setting.
3037         (arm_v6t2_tune, arm_cortex_tune): New.
3038         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3039         prefer_constant_pool setting.
3040
3041 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3042
3043         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3044         switch statement.
3045         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3046         (*movdf_internal) <case 6,7,8>: Ditto.
3047
3048         * config/i386/constraints.md (Y4): New register constraint.
3049         * config/i386/sse.md (vec_set<mode>_0): Merge with
3050         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3051         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3052         *vec_extractv2di_1_sse.
3053         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3054         and *vec_concatv2di_rex64_sse.
3055
3056 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
3057
3058         PR target/48807
3059         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3060         of cgraph_local_info for null before attempting to use it.
3061
3062 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3063
3064         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3065         (current_function_dynamic_alloc_count): Delete.
3066         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3067         (expand_builtin_nonlocal_goto): Remove obsolete comment.
3068         (expand_builtin_update_setjmp_buf): Remove dead code.
3069         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3070         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3071         support.
3072         * function.c (instantiate_virtual_regs): Likewise.
3073         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3074         for a block with a single abnormal incoming edge.
3075         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3076         (SETJMP_VIA_SAVE_AREA): Delete.
3077         * config/sparc/sparc-protos.h (load_got_register): Declare.
3078         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3079         (load_got_register): Make global.
3080         (sparc_frame_pointer_required): Add 'static'.
3081         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
3082         (sparc_builtin_setjmp_frame_value): New function.
3083         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3084         (save_stack_nonlocal): New expander.
3085         (restore_stack_nonlocal): Likewise.
3086         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3087         (nonlocal_goto_internal): New insn.
3088         (goto_handler_and_restore): Delete.
3089         (builtin_setjmp_setup): Likewise.
3090         (do_builtin_setjmp_setup): Likewise.
3091         (setjmp): Likewise.
3092         (builtin_setjmp_receiver): New expander.
3093
3094 2011-06-01  David Li  <davidxl@google.com>
3095
3096         PR middle-end/49261
3097         * tree-pretty-print.c (dump_function_header): Format cleanup.
3098
3099 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
3100
3101         PR target/49238
3102         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3103         needed when original operands are used for msw_skip comparison.
3104
3105 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3106
3107         PR debug/49250
3108         * var-tracking.c (add_uses, add_stores): Don't call
3109         cselib_subst_to_values on ENTRY_VALUE.
3110
3111 2011-06-01  Diego Novillo  <dnovillo@google.com>
3112
3113         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3114         output_record_start with LTO_null instead of output_zero.
3115         (lto_output_ts_binfo_tree_pointers): Likewise.
3116         (lto_output_tree): Likewise.
3117         (output_eh_try_list): Likewise.
3118         (output_eh_region): Likewise.
3119         (output_eh_lp): Likewise.
3120         (output_eh_regions): Likewise.
3121         (output_bb): Likewise.
3122         (output_function): Likewise.
3123         (output_unreferenced_globals): Likewise.
3124         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3125         instead of NUM_TREE_CODES.
3126         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3127         (lto_output_int_in_range): Change << to >> when shifting VAL.
3128
3129 2011-06-01  Diego Novillo  <dnovillo@google.com>
3130
3131         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3132         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3133
3134 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3135
3136         PR target/45074
3137         * optabs.h (valid_multiword_target_p): Declare.
3138         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3139         doing multi-word operations.
3140         * optabs.c (expand_binop): Likewise.
3141         (expand_doubleword_bswap): Likewise.
3142         (expand_absneg_bit): Likewise.
3143         (expand_unop): Likewise.
3144         (expand_copysign_bit): Likewise.
3145         (multiword_target_p): New function.
3146
3147 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3148
3149         PR rtl-optimization/48830
3150         PR rtl-optimization/48808
3151         PR rtl-optimization/48792
3152         * reload.c (push_reload): Check contains_reg_of_mode.
3153         * reload1.c (strip_paradoxical_subreg): New function.
3154         (gen_reload_chain_without_interm_reg_p): Use it to handle
3155         paradoxical subregs.
3156         (emit_output_reload_insns, gen_reload): Likewise.
3157
3158 2011-06-01  David Li  <davidxl@google.com>
3159
3160         * predict.c : Change pass name
3161         * ipa.c: Ditto.
3162         * dce.c: Ditto.
3163         * tree-profile.c: Ditto.
3164         * except.c: Ditto.
3165
3166 2011-06-01  David Li  <davidxl@google.com>
3167
3168         * tree-pretty-print.c (dump_function_header): New function.
3169         * final.c (rest_of_clean_state): Use header dumper.
3170         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3171         * passes.c (pass_init_dump_file): Use header dumper.
3172
3173 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3174
3175         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3176         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3177         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3178         New functions.
3179         (mem_loc_descriptor): Use them.
3180
3181         * var-tracking.c (create_entry_value): New function.
3182         (vt_add_function_parameter): Use it.
3183
3184 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3185
3186         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3187         Include <signal.h>, <ucontext.h>.
3188         (sigill_caught): Define.
3189         (sigill_hdlr): New function.
3190         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3191         insns can be executed.
3192         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3193         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3194
3195 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3196
3197         * config/t-slibgcc-darwin: Move to ...
3198         * config/t-slibgcc-dummy: ... this.  Clarify comments.
3199         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3200         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3201         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3202         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
3203         Remove i386/t-crtstuff from tmake_file.
3204         (i[34567]86-*-solaris2*): Remove t-svr4,
3205         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3206         t-slibgcc-dummy.
3207         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3208         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3209         sparc/t-crtfm from tmake_file.
3210         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3211         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3212         Remove extra_parts.
3213         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3214         * config/i386/t-nwld (SHLIB_LINK): Remove.
3215         * config/i386/t-rtems-i386: Rename to ...
3216         * config/i386/t-rtems: ... this.
3217         ($(T)crti.o, $(T)crtn.o): Remove.
3218         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3219         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3220         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3221         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3222         EXTRA_MULTILIB_PARTS): Remove.
3223         * config/sparc/t-sol2-64: Likewise.
3224         * config/sparc/t-sol2: Remove.
3225         * config/sparc/t-crtin: Remove.
3226         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3227         * config/i386/gmon-sol2.c: Remove.
3228         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3229         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3230         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3231         * config/i386/sol2-gc1.asm: Remove.
3232         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3233         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3234         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3235         * config/t-slibgcc-sld: Remove.
3236
3237 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3238
3239         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3240         base_type_for_mode with op_mode instead of mode.
3241
3242 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
3243
3244         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
3245         Cortex-A15.
3246         * config/arm/arm-tune.md: Regenerate.
3247         * config/arm/arm-tables.opt: Regenerate.
3248         * config/arm/arm.c (FL_DIV): Rename...
3249         (FL_THUMB_DIV): ... to this.
3250         (FL_ARM_DIV): Define.
3251         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3252         (arm_arch_hwdiv): Remove.
3253         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3254         (arm_issue_rate): Add cortexr5.
3255         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3256         __ARM_ARCH_EXT_IDIV__.
3257         (TARGET_IDIV): Define.
3258         (arm_arch_hwdiv): Remove.
3259         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3260         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3261         (divsi3, udivsi3): New patterns.
3262         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3263         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3264
3265 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3266
3267         * ipa-utils.c (ipa_dfs_info): New field scc_no.
3268         * ipa-utils.c (searchc): Set scc_no.
3269
3270 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3271
3272         * ipa-utils.c (searchc_env): New field allow_overwritable.
3273         (searchc): do not ignore edges to overwritable nodes if indicated
3274         by env->allow_overwritable.
3275         (ipa_reduced_postorder): Set env.allow_overwritable.
3276
3277 2011-06-01  Richard Guenther  <rguenther@suse.de>
3278
3279         * tree.c (free_lang_data): Do not reset boolean_type_node nor
3280         char_type_node.
3281         * lto-streamer.c (lto_record_common_node): Take node pointer,
3282         do not register types.
3283         (lto_preload_common_nodes): Explicitly skip preloading nodes
3284         that differ between frontends.
3285
3286 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3287
3288         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3289         NON_FLOAT_REGS.
3290
3291 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3292
3293         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3294         parameter value for dump. Dump cost on outermost call only.
3295         (rs6000_memory_move_cost): Dump cost on outermost call only.
3296
3297 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3298
3299         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3300         DW_OP_GNU_convert ops.
3301
3302         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3303         cselib_preserve_constants.
3304         (cselib_lookup_1): If cselib_preserve_constants,
3305         a new VALUE is being created for REG and there is a VALUE for the
3306         same register in wider mode, add another loc with lowpart SUBREG of
3307         the wider VALUE.
3308         (cselib_subst_to_values): Handle ENTRY_VALUE.
3309         * var-tracking.c  (replace_expr_with_values): Return NULL for
3310         ENTRY_VALUE too.
3311         * dwarf2out.c (convert_descriptor_to_signed): New function.
3312         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3313         instead of two shifts.
3314         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3315         the right mode if needed.
3316         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3317         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3318         convert_descriptor_to_signed.
3319         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3320         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3321
3322         PR target/48688
3323         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3324
3325 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3326
3327         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3328         of X87MODEI12 and SWI48x instead of SSEMODEI24.
3329         (SWI248x): New mode iterator, rename from X87MODEI.
3330         (X87MODEI): Remove mode iterator.
3331         (X87MODEI12): Ditto.
3332         (SSEMODEI24): Ditto.
3333
3334 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3335
3336         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3337         * doc/invoke.texi: Document max-vartrack-expr-depth.
3338         * var-tracking.c (EXPR_DEPTH): New.
3339         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3340
3341 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3342
3343         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3344         * config/i386/sse.md: Add n to negated FMA pattern names.
3345
3346 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3347
3348         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3349
3350 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3351
3352         * gengtype-state.c (read_state_params_structs): Initialize previous.
3353
3354 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3355
3356         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3357         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3358
3359 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3360
3361         * config/i386/i386.md (*movtf_internal): Avoid allocating general
3362         registers.  Penalize F*r->o alternative to prevent partial memory
3363         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
3364         CONST_DOUBLE immediates when optimizing function for size.  Do not move
3365         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3366         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3367         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3368         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3369         alternatives.
3370         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3371
3372         (fp_register_operand splitters): Use fp_register_operand
3373         constraint.  Do not use FP_REG_P in insn condition.
3374         (any_fp_register_operand splitters): Use any_fp_register_operand
3375         constraint.  Do not use ANY_FP_REG_P in insn condition.
3376
3377 2011-05-31  Jan Hubicka  <jh@suse.cz>
3378
3379         * cgraph.h (cgraph_inline_failed_t): Give enum a name
3380         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3381         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3382         (lto_output_edge): Use output_enum and var_len_unsigned.
3383         (lto_output_varpool_node): Likewise.
3384         (input_overwrite_node): Do not take resolution parameter;
3385         extract it from a bitpack.
3386         (input_node): Do not read resolution; use input_enum and
3387         var_len_unsigned.
3388         (input_varpool_node): Likewise.
3389         (input_edge): Likewise.
3390         (input_cgraph_1): Likewise.
3391
3392 2011-05-31  Richard Guenther  <rguenther@suse.de>
3393
3394         * gimple.c (gimple_register_canonical_type): Do not register
3395         any types via gimple_register_type.
3396
3397 2011-05-31  Jan Hubicka  <jh@suse.cz>
3398
3399         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3400         of thunks.
3401
3402 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3403
3404         PR rtl-optimization/49235
3405         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3406         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3407
3408 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
3409
3410         PR tree-optimization/49093
3411         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3412         data references.
3413
3414 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
3415
3416         PR debug/49047
3417         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3418         for concrete functions containing the code of cloned functions.
3419
3420 2011-05-31  Richard Guenther  <rguenther@suse.de>
3421
3422         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3423         to ...
3424         (forward_propagate_into_comparison_1): ... this.
3425         (forward_propagate_comparison): Rename to ...
3426         (forward_propagate_into_comparison): ... this.  Split out
3427         real forward propagation code to ...
3428         (forward_propagate_comparison): ... this.
3429         (forward_propagate_into_gimple_cond): Remove looping.
3430         (forward_propagate_into_cond): Likewise.
3431         (simplify_not_neg_expr): Return whether we have done something.
3432         (simplify_gimple_switch): Likewise.
3433         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3434         (ssa_forward_propagate_and_combine): ... this.  Re-structure
3435         to do a forward forward-propagation walk on BBs and a backward
3436         stmt combining walk on BBs.  Consistently re-scan changed statements.
3437         (pass_forwprop): Adjust.
3438
3439 2011-05-30  Ian Lance Taylor  <iant@google.com>
3440
3441         * godump.c (go_format_type): Correct length of name added to
3442         obstack for anonymous field.
3443
3444 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
3445
3446         PR target/49186
3447         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3448         part of the second operand is 0.
3449
3450 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
3451
3452         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3453         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
3454         to memory for !TARGET_MEMORY_MISMATCH_STALL.
3455         (*movdf_internal_rex64): Do not penalize F->r alternative.
3456         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3457         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
3458         when optimizing function for size.  Do not move CONST_DOUBLEs
3459         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3460         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
3461         SUBREGs.  Do not check for MEM_P operands in the insn condition,
3462         check for ANY_FP_REGNO_P instead.
3463         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3464         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3465         function for speed.
3466         * config/i386/i386.c (ix86_option_override_internal): Do not
3467         set TARGET_INTEGER_DFMODE_MOVES here.
3468
3469 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3470
3471         PR target/49168
3472         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3473
3474 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
3475
3476         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3477         DW_TAG_rvalue_reference_type even for
3478         -gdwarf-4 -fno-debug-types-section.
3479
3480 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3481
3482         PR tree-optimization/46728
3483         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3484         (build_and_insert_binop): New.
3485         (gimple_expand_builtin_pow): Reorder args for
3486         build_and_insert_call; use build_and_insert_binop; add more
3487         optimizations for fractional exponents.
3488
3489 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3490
3491         PR bootstrap/49190
3492
3493         Revert:
3494         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3495
3496         * tree.h (struct tree_identifier): Inherit from tree_typed, not
3497         tree_common.
3498         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3499         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3500         TS_BASE instead of TS_COMMON.
3501         * varasm.c (assemble_name): Remove assert.
3502
3503 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
3504
3505         * config.gcc: Keep obselete list sorted.
3506
3507 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
3508             Eric Botcazou  <ebotcazou@adacore.com>
3509
3510         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3511         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3512         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3513         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3514         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3515
3516 2011-05-30  Richard Guenther  <rguenther@suse.de>
3517
3518         * gimple.c (gimple_types_compatible_p_1): Compare record
3519         and union type members properly.
3520
3521 2011-05-30  Richard Guenther  <rguenther@suse.de>
3522
3523         PR tree-optimization/49210
3524         * ipa-split.c (split_function): Care for the case where the call
3525         result is not trivially convertible to the result holding variable.
3526
3527 2011-05-30  Richard Guenther  <rguenther@suse.de>
3528
3529         PR tree-optimization/49218
3530         * tree-vrp.c (adjust_range_with_scev): Properly check whether
3531         overflow occured.
3532
3533 2011-05-30  Richard Guenther  <rguenther@suse.de>
3534
3535         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3536         New function split out from ...
3537         (forward_propagate_into_gimple_cond): ... here.  Adjust.
3538         (forward_propagate_into_cond): Likewise.
3539         (forward_propagate_comparison): Also propagate into
3540         comparisons on assignment RHS.  Change return value to
3541         behave similar to forward_propagate_into_cond.
3542         (tree_ssa_forward_propagate_single_use_vars): Handle
3543         strict-overflow warnings properly for forward_propagate_comparison.
3544
3545 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3546
3547         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3548         from plugin linker.
3549         * configure: Regenerate.
3550
3551 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
3552
3553         PR tree-optimization/49199
3554         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3555         non-reduction operands are either defined in the loop or by induction.
3556
3557 2011-05-29  Xinliang David Li  <davidxl@google.com>
3558
3559         * opts-global.c (handle_common_deferred_options): Handle new options.
3560         * passes.c (register_one_dump_file): Call register_pass_name.
3561         (execute_one_pass): Check explicit enable/disable flag.
3562         (passr_hash): New function.
3563         (passr_eq): Ditto.
3564         (register_pass_name): Ditto.
3565         (get_pass_by_name): Ditto.
3566         (pass_hash): Ditto.
3567         (pass_eq): Ditto.
3568         (enable_pass): Ditto.
3569         (disable_pass): Ditto.
3570         (is_pass_explicitly_enabled_or_disabled): Ditto.
3571
3572 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
3573
3574         * config/i386/i386.md (*movoi_internal_avx): Use
3575         standard_sse_constant_opcode for alternative 0.
3576         (*movti_internal_sse): Ditto.
3577         (*movti_internal_rex64): Use standard_sse_constant_opcode for
3578         alternative 2.
3579         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3580         sselog1 type moves.
3581         (*movsi_internal): Ditto.
3582         (*movdi_internal): Ditto.  Add ssecvt type moves.
3583
3584 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
3585
3586         PR target/48830
3587         * rtlanal.c (simplify_subreg_regno): Adjust comment.
3588
3589 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
3590
3591         PR rtl-optimization/49095
3592         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3593         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3594
3595 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
3596
3597         PR target/43995
3598         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3599         recurse_p argument.  Only follow register copies if it is set,
3600         and prevent mips_find_pic_call_symbol from recursing.
3601         (mips_find_pic_call_symbol): Add a recurse_p argument.
3602         Pass it to mips_pic_call_symbol_from_set.
3603         (mips_annotate_pic_calls): Update accordingly.
3604
3605 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
3606
3607         * emit-rtl.c (try_split): Use a loop to search for
3608         NOTE_INSN_CALL_ARG_LOCATIONs.
3609
3610 2011-05-29  Richard Guenther  <rguenther@suse.de>
3611
3612         PR tree-optimization/49217
3613         * ipa-pure-const.c (propagate_pure_const): Fix typos.
3614
3615 2011-05-28  Jan Hubicka  <jh@suse.cz>
3616
3617         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3618         length.
3619         (string_slot_free): Remove
3620         (create_output_block): Initialize obstack.
3621         (destroy_output_block): Free obstack.
3622         (lto_string_index): Add PERSISTENT parameter; do not duplicate
3623         the string unless it needs to be added into the hash.
3624         (lto_output_string_with_length): Add persistent attribute;
3625         handle NULL strings.
3626         (lto_output_string): Add PERSISTENT parameter.
3627         (output_string_cst, output_identifier): Simplify.
3628         (lto_output_location_bitpack): Update.
3629         (lto_output_builtin_tree): Update.
3630         * lto-streamer.h (struct output_block): Add obstack.
3631         (lto_output_string, lto_output_string_with_length): Remove
3632         declarations; functions are static now.
3633
3634 2011-05-28  Jan Hubicka  <jh@suse.cz>
3635
3636         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3637         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3638         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3639         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3640         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3641         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3642         unpack_ts_decl_with_vis_value_fields,
3643         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3644         lto_get_builtin_tree): Use enum and variable length i/o.
3645         * basic-block.h (profile_status_d): Add PROFILE_LAST.
3646         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3647         New functions.
3648         (bp_pack_enum, bp_unpack_enum): New macros.
3649
3650 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
3651
3652         * genrecog.c: Remove redundant forward declarations.
3653
3654 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
3655
3656         * config.gcc: Deprecate mips*-*-openbsd*.
3657
3658 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
3659
3660         PR bootstrap/49195
3661         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3662         for match_op_dup.
3663
3664 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
3665
3666         PR middle-end/48981
3667         * gengtype.c (vec_prefix_type): New function.
3668         (note_def_vec): Use vec_prefix_type and change the length
3669         attribute to be based on the prefix.
3670         * vec.c: Include coretypes.h before vec.h.
3671         (struct vec_prefix): Remove.
3672         (vec_gc_p_reserve): Change the offsetof to sizeof.
3673         (vec_gc_p_reserve_exact): Likewise.
3674         (vec_heap_p_reserve): Likewise.
3675         (vec_heap_p_reserve_exact): Likewise.
3676         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3677         (vec_stack_p_reserve): Change the offsetof to sizeof.
3678         (vec_stack_p_reserve_exact): Likewise.
3679         * vec.h (struct vec_prefix): New struct definition.
3680         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3681         (VEC_T_GTY(T,B)): Likewise.
3682         (DEF_VEC_FUNC_P(T)): Use prefix field.
3683         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3684         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3685
3686 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3687
3688         PR tree-optimization/46728
3689         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3690         (powi_as_mults): Add gimple_set_location.
3691         (build_and_insert_call): New.
3692         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3693         0.5, 0.25, 0.75, 1./3., or 1./6.
3694
3695 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
3696
3697         * doc/contrib.texi: Update copyright years.
3698         (Contributors): Add Zdenek Sojka.
3699
3700 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3701
3702         * c-decl.c (c_push_function_context): Copy the current statement
3703         list stack.
3704         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3705         (finish_struct): Call building_stmt_list_p instead of checking
3706         cur_stmt_list.
3707         * c-parser.c (c_parser_postfix_expression): Likewise.
3708         * c-typeck.c (c_end_compound_stmt): Likewise.
3709         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3710         * tree-iterator.c (stmt_list_cache): Change to a VEC.
3711         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3712         (free_stmt_list): Likewise.
3713         * tree.h (struct tree_statement_list): Include typed_tree instead
3714         of tree_common.
3715         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3716         as TS_TYPED instead of TS_COMMON.
3717
3718 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3719             Uros Bizjak  <ubizjak@gmail.com>
3720
3721         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3722         (HAVE_AS_IX86_TLSGDPTL): Define.
3723         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3724         (HAVE_AS_IX86_TLSLDMPLT): Define.
3725         * configure: Regenerate.
3726         * config.in: Regenerate.
3727         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3728         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3729         TARGET_SUN_TLS, use @tlsgdplt or @plt.
3730         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3731         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3732         @tlsldmplt or @plt.
3733         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3734
3735 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
3736
3737         * sched-int.h (struct _haifa_deps_insn_data): New members cond
3738         and reverse_cond.
3739         (INSN_COND, INSN_REVERSE_COND): New macros.
3740         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3741         once.
3742         (sched_get_condition_with_rev): Cache the results, and look them up
3743         if possible.
3744         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3745         are clobbered by the current insn.
3746         * target.def (exposed_pipline): New sched data hook.
3747         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3748         * doc/tm.texi: Regenerate.
3749
3750 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3751
3752         PR tree-optimization/49170
3753         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
3754         sincos or cexp.
3755
3756 2011-05-27  Richard Guenther  <rguenther@suse.de>
3757
3758         PR middle-end/49189
3759         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3760         of comparisons.
3761
3762 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
3763
3764         * haifa-sched.c (sched_scan_info): Remove.
3765         (schedule_block): Call sched_extend_luids rather than sched_init_luids
3766         with NULL args.
3767         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3768         Remove functions.
3769         (sched_scan): Remove.
3770         (sched_extend_luids): Renamed from luids_extend_insn and no longer
3771         static.  All callers changed.
3772         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3773         static.  All callers changed.
3774         (sched_init_luids): Remove all arguments except the first.  All
3775         callers changed.  Don't use sched_scan.
3776         (haifa_init_h_i_d): Likewise.
3777         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3778         manually rather than using sched_init_luids.  Likewise with
3779         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3780         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3781         rather than sched_init_luids with NULL args.
3782         * sel-sched-ir.c (new_insns): Remove variable.
3783         (sched_scan): New static function, previously in haifa-sched.c.  Remove
3784         all arguments but the first two; all callers changed.
3785         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3786         rather than sched_init_luids.
3787         (sel_init_bbs): Remove second argument.  All callers changed.
3788         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3789         with NULL arguments.
3790         (create_insn_rtx_from_pattern): Likewise.
3791         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3792         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3793         (sched_init_insn_luid, sched_extend_luids): Declare.
3794         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3795         declarations.
3796
3797 2011-05-27  Richard Guenther  <rguenther@suse.de>
3798
3799         PR middle-end/49177
3800         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3801         A CMP B ? (T) true : (T) false for non-integral types T again.
3802
3803 2011-05-27  Jan Hubicka  <jh@suse.cz>
3804
3805         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3806         so 0 means NULL string.
3807         (lto_output_string_with_length): ... here.
3808         (lto_output_string, output_string_cst, output_identifier): Update
3809         handling of NULL strings.
3810         (lto_output_location_bitpack): New function.
3811         (lto_output_location): Use it.
3812         (lto_output_tree_ref): Use output_record_start.
3813         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3814         len values.
3815         * lto-streamer-in.c (string_for_index): Break out from ...; offset
3816         values by 1.
3817         (input_string_internal): ... here;
3818         (input_string_cst, input_identifier, lto_input_string): Update handling
3819         of NULL strings.
3820         (lto_input_location_bitpack): New function
3821         (lto_input_location): Use it.
3822         (unpack_ts_type_common_value_fields): Pack align & alias in var len
3823         values.
3824         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3825         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3826         (bp_pack_value): Sanity check the value range.
3827         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3828         New functions.
3829         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3830         New functions.
3831
3832 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
3833
3834         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3835         call_arg_location instructions down the floor.
3836
3837 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
3838
3839         PR rtl-optimization/49154
3840         * ira.c (setup_pressure_classes): Process class without sublcasses
3841         as a candidate for pressure classes.
3842
3843 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
3844
3845         PR rtl-optimization/48575
3846         * genrecog.c (position_type): New enum.
3847         (position): New structure.
3848         (decision): Use position structure instead of a string.
3849         (root_pos, peep2_insn_pos_list): New variables.
3850         (next_position, compare_positions): New functions.
3851         (new_decision): Use position structures instead of strings.
3852         (maybe_both_true): Likewise.
3853         (change_state): Likewise.
3854         (write_tree): Likewise.
3855         (make_insn_sequence): Likewise.
3856
3857 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3858
3859         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3860         TS_BASE instead of TS_COMMON.
3861         (find_decls_types_r): Check for TS_TYPED structure before looking at
3862         TREE_TYPE.
3863         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3864         Add chain field.
3865         (BLOCK_CHAIN): Use new chain field.
3866
3867 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
3868
3869         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3870         moves expensive on Power7 also.
3871
3872 2011-05-26  Richard Guenther  <rguenther@suse.de>
3873
3874         * fold-const.c (fold_unary_loc): Remove bogus code.
3875
3876 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3877
3878         * tree.h (struct tree_identifier): Inherit from tree_typed, not
3879         tree_common.
3880         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3881         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3882         TS_BASE instead of TS_COMMON.
3883         * varasm.c (assemble_name): Remove assert.
3884
3885 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
3886
3887         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3888         substituted first.
3889         * libgcc-std.ver: Delete file.
3890
3891 2011-05-26  Richard Guenther  <rguenther@suse.de>
3892
3893         PR tree-optimization/48702
3894         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3895         only when we know the base address is within bounds.
3896         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3897         assume the base address of TARGET_MEM_REFs is in bounds.
3898
3899 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3900
3901         PR target/49099
3902         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3903         declaration in TARGET_SOLARIS.
3904
3905 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
3906
3907         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
3908         The instruction is then expanded explicitly.
3909         (supported_compare): Callable instruction.
3910         (compare): Likewise.
3911
3912 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
3913
3914         PR c++/49165
3915         * gimplify.c (shortcut_cond_r): Don't special case
3916         COND_EXPRs if they have void type on one of their arms.
3917
3918 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
3919
3920         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3921         to reduce duplication, and to achieve a slightly more logical order
3922         of operations.
3923
3924 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
3925
3926         PR tree-optimization/49161
3927         * tree-vrp.c (struct case_info): New type.
3928         (compare_case_labels): Sort case_info structs instead of
3929         trees, and not primarily by CASE_LABEL uids but by
3930         label_for_block indexes.
3931         (find_switch_asserts): Put case labels into struct case_info
3932         array instead of TREE_VEC, adjust sorting, compare label_for_block
3933         values instead of CASE_LABELs.
3934
3935 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3936
3937         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3938         ("orndi3_neon"): Likewise.
3939         ("bic<mode>3_neon"): Likewise.
3940
3941 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
3942
3943         PR tree-optimization/49038
3944         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
3945         Ensure at least one epilogue iteration if required by data
3946         accesses with gaps.
3947         * tree-vectorizer.h (struct _loop_vec_info): Add new field
3948         to mark loops that require peeling for gaps.
3949         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
3950         (vect_get_known_peeling_cost): Take peeling for gaps into
3951         account.
3952         (vect_transform_loop): Generate epilogue if required by data
3953         access with gaps.
3954         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
3955         loop as requiring an epilogue if there are gaps in the end of
3956         the strided group.
3957
3958 2011-05-25  Ian Lance Taylor  <iant@google.com>
3959
3960         * godump.c (go_format_type): Output the first field with a usable
3961         Go type, if any.
3962
3963 2011-05-25  Ian Lance Taylor  <iant@google.com>
3964
3965         * godump.c (go_format_type): Check for invalid type names, pointer
3966         target types, and struct field types.
3967
3968 2011-05-25  Jason Merrill  <jason@redhat.com>
3969
3970         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
3971
3972 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
3973
3974         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
3975
3976 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3977
3978         * config/i386/i386.md (*movqi_extv_1)): Put back
3979         "register_operand" check in "type" calculation.
3980         (*movqi_extzv_2): Likewise.
3981
3982 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3983
3984         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
3985
3986 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
3987
3988         PR bootstrap/49160
3989         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
3990         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
3991         __divxc3, __divtc3): Wrap definitions in #ifndef.
3992
3993 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3994
3995         PR target/49142
3996         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
3997         "register_operand" check and replace q_regs_operand with
3998         QIreg_operand in "type" calculation.
3999         (*movqi_extv_1): Likewise.
4000         (*movqi_extzv_2_rex64): Likewise.
4001         (*movqi_extzv_2): Likewise.
4002
4003         * config/i386/predicates.md (QIreg_operand): New.
4004
4005 2011-05-25  Richard Guenther  <rguenther@suse.de>
4006
4007         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4008         type-based offset disambiguation, streamline MEM_REF and
4009         TARGET_MEM_REF handling.
4010
4011 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4012
4013         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4014         (bdesc_special_args): Add pause intrinsic.
4015
4016         * config/i386/i386.md (UNSPEC_PAUSE): New.
4017         (pause): Likewise.
4018         (*pause): Likewise.
4019         * config/i386/ia32intrin.h (__pause): Likewise.
4020
4021         * doc/extend.texi (X86 Built-in Functions): Add documentation for
4022         pause intrinsic.
4023
4024 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4025
4026         PR tree-optimization/46728
4027         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4028         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4029
4030 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
4031
4032         * tree.h (struct tree_exp): Inherit from struct tree_typed.
4033         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4034         instead of TS_COMMON.
4035
4036 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4037
4038         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4039         LIBGCC2_GNU_PREFIX is defined.
4040         (__N): New macro.
4041         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4042         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4043         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4044         __clz_tab): Define using __N.
4045         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4046         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4047         * target.def (libfunc_gnu_prefix): New hook.
4048         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4049         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4050         * doc/tm.texi: Regenerate.
4051         * system.h (LIBGCC2_GNU_PREFIX): Poison.
4052         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4053         account.
4054         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4055         (init_optabs): Likewise for the bswap libfuncs.
4056         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4057         and divide.
4058         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4059         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4060         * libgcc-std.ver: Remove.
4061         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4062         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4063         libgcc-std.ver.
4064         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4065         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4066         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4067         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4068         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4069         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4070         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4071         * config/fixed-bit.h (FIXED_OP): Define differently depending on
4072         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4073         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4074
4075 2011-05-25  Jan Hubicka  <jh@suse.cz>
4076
4077         * lto-streamer-out.c (output_record_start): Use lto_output_enum
4078         (lto_output_tree): Use output_record_start.
4079         * lto-streamer-in.c (input_record_start): Use lto_input_enum
4080         (lto_get_pickled_tree): Use input_record_start.
4081         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4082         (lto_value_range_error): New function.
4083         * lto-streamer.h (lto_value_range_error): Declare.
4084         (lto_output_int_in_range, lto_input_int_in_range): New functions.
4085         (lto_output_enum, lto_input_enum): New macros.
4086
4087 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4088
4089         * common.opt (flag_stack_usage_info): New variable.
4090         (-Wstack-usage): New option.
4091         * doc/invoke.texi (Warning options): Document -Wstack-usage.
4092         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4093         <OPT_fstack_usage>: Likewise.
4094         * toplev.c (output_stack_usage): Handle -Wstack-usage.
4095         * calls.c (expand_call): Test flag_stack_usage_info variable instead
4096         of flag_stack_usage.
4097         (emit_library_call_value_1): Likewise.
4098         * explow.c (allocate_dynamic_stack_space): Likewise.
4099         * function.c (instantiate_virtual_regs ): Likewise.
4100         (prepare_function_start): Likewise.
4101         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4102         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4103         * config/arm/arm.c (arm_expand_prologue): Likewise.
4104         (thumb1_expand_prologue): Likewise.
4105         * config/avr/avr.c (expand_prologue): Likewise.
4106         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4107         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4108         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4109         * config/mips/mips.c (mips_expand_prologue): Likewise.
4110         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4111         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4112         * config/s390/s390.c (s390_emit_prologue): Likewise.
4113         * config/sh/sh.c (sh_expand_prologue): Likewise.
4114         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4115         * config/spu/spu.c (spu_expand_prologue): Likewise.
4116
4117 2011-05-25  Richard Guenther  <rguenther@suse.de>
4118
4119         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4120         (gimple_canonical_types_compatible_p): Likewise.
4121
4122 2011-05-25  Jan Hubicka  <jh@suse.cz>
4123
4124         PR middle-end/49062
4125         * ipa.c (function_and_variable_visibility): Only add to same
4126         comdat group list if DECL_ONE_ONLY.
4127
4128 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
4129
4130         PR rtl-optimization/49014
4131         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4132
4133 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
4134
4135         PR target/49128
4136         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4137
4138 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4139
4140         PR rtl-optimization/48757
4141         * ira-build.c (loop_with_eh_edge_p): Rename to
4142         loop_with_complex_edge_p, check edges on complexity, make function
4143         conditional.
4144         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4145         conditional.
4146
4147 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4148
4149         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4150         force flag_ira_share_save_slots to 0.
4151
4152 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4153
4154         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4155         (vt_initialize): Set PROLOGUE_BB unconditionally.
4156         Add block comment about CFA_BASE_RTX machinery.
4157         Reset FP_CFA_OFFSET to -1 on all invalid paths.
4158         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4159
4160 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
4161
4162         PR objc/48187
4163         * c-parser.c (c_parser_objc_class_instance_variables): More robust
4164         parsing of syntax error in ObjC instance variable lists.  In
4165         particular, avoid an infinite loop if there is a stray ']'.
4166         Updated error message.
4167
4168 2011-05-24  Ian Lance Taylor  <iant@google.com>
4169
4170         * godump.c (go_define): Don't accept a string immediately after
4171         another operand.
4172
4173 2011-05-24  Ian Lance Taylor  <iant@google.com>
4174
4175         * godump.c (struct godump_container): Add invalid_hash field.
4176         (go_format_type): Return false if type is found in invalid_hash.
4177         (go_output_typedef): Add invalid type to invalid_hash.
4178         (go_finish): Create and delete invalid_hash.
4179
4180 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4181
4182         PR tree-optimization/46728
4183         * tree-ssa-math-opts.c (powi_table): New.
4184         (powi_lookup_cost): New.
4185         (powi_cost): New.
4186         (powi_as_mults_1): New.
4187         (powi_as_mults): New.
4188         (gimple_expand_builtin_powi): New.
4189         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4190         (gate_cse_sincos): Remove sincos/cexp restriction.
4191
4192 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4193
4194         PR target/3746
4195         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4196         mips-tdump native.
4197         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4198         * mips-tdump.c: Likewise.
4199
4200 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4201
4202         PR target/49128
4203         * config/i386/driver-i386.c (host_detect_local_cpu): Always
4204         add -mno-XXX.  Handle FMA.
4205
4206 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4207
4208         PR rtl-optimization/48633
4209         * ira-build.c (loop_with_eh_edge_p): New function.
4210         (mark_loops_for_removal): Use it.
4211
4212 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4213
4214         PR rtl-optimization/48971
4215         * ira.c (setup_pressure_classes): Don't check register move cost
4216         for classes with one registers.  Don't add pressure class if there
4217         is a pressure class with the same available hard registers.
4218         Check contains_reg_of_mode.  Fix a typo in collecting
4219         temp_hard_regset.  Ignore hard registers not belonging to a class.
4220
4221 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
4222
4223         PR target/49133
4224         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4225
4226 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4227             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4228
4229         PR gcov-profile/48845
4230         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4231
4232 2011-05-24  Richard Guenther  <rguenther@suse.de>
4233
4234         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4235         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4236         (gimple_types_compatible_p_1): Adjust.
4237         (iterative_hash_canonical_type): Do not bother about complete vs.
4238         incomplete types.
4239         (gimple_canonical_types_compatible_p): Likewise.
4240
4241 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4242
4243         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4244
4245 2011-05-24  Richard Guenther  <rguenther@suse.de>
4246
4247         PR bootstrap/49078
4248         * gimple.c (gimple_register_canonical_type): Revert
4249         previous change.
4250         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4251         does not for a tree for the case where it matters.  Cache
4252         pointer-type alias-sets.
4253
4254 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
4255
4256         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4257         (OBJS): Remove options.o, opts-common.o and prefix.o.
4258         (OBJS-libcommon-target): New.
4259         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4260         (BACKEND): Include libcommon-target.a.
4261         (MOSTLYCLEANFILES): Include libcommon-target.a.
4262         (libcommon-target.a): New.
4263         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4264         prefix.o.
4265
4266 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
4267
4268         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
4269         parts of output shared with the driver.
4270         * optc-gen.awk: Don't generate parts of output not shared with the
4271         driver.
4272         * opth-gen.awk: Remove GCC_DRIVER conditionals.
4273         * doc/options.texi (SourcerInclude): Mention options-save.c.
4274         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4275         (OBJS): Add options-save.o.
4276         (options-save.c, options-save.o): New.
4277         (options.o): Update dependencies.
4278         (gcc-options.o): Remove.
4279         (mostlyclean): Remove options-save.c.
4280
4281 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4282
4283         PR debug/49032
4284         * dbxout.c: Include cgraph.h.
4285         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4286         and without value expr, return NULL if no varpool node exists for
4287         it or if it is not needed.
4288         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4289
4290         PR c/49120
4291         * c-decl.c (start_decl): Convert expr to void_type_node.
4292
4293 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
4294
4295         PR rtl-optimization/48826
4296         * emit-rtl.c (try_split): When splitting a call that is followed
4297         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4298
4299 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4300
4301         * cfgexpand.c (expand_debug_expr): For unused non-addressable
4302         parameters passed in memory prefer using DECL_INCOMING_RTL over
4303         the pseudos it will be copied into.
4304
4305 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4306
4307         PR target/47315
4308         * config/i386/i386.c (ix86_option_override_internal): Save the
4309         initial options after checking vzeroupper.
4310
4311 2011-05-23  David Li  <davidxl@google.com>
4312
4313         PR tree-optimization/48988
4314         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4315         Initialize has_valid_pred for each pred chain.
4316
4317 2011-05-23  Richard Guenther  <rguenther@suse.de>
4318
4319         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4320         (iterative_hash_gimple_type): Always hash type names.
4321
4322 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
4323
4324         * c-typeck.c (build_function_call_vec): Tweak call to
4325         check_function_arguments.
4326
4327 2011-05-23  Richard Guenther  <rguenther@suse.de>
4328
4329         PR tree-optimization/49115
4330         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4331         is not necessarily carried out, do not claim it kills the ref.
4332         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4333
4334 2011-05-23  Richard Guenther  <rguenther@suse.de>
4335
4336         PR middle-end/15419
4337         * builtins.c (fold_builtin_memory_op): Be less restrictive about
4338         what pointer types we accept for folding.
4339
4340 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4341
4342         * gthr-gnat.c: Remove.
4343         * gthr-gnat.h: Remove.
4344         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4345         * config/t-freebsd (LIB2ADDEH): Likewise.
4346         * config/t-linux (LIB2ADDEH): Likewise.
4347         * config/t-sol2 (LIB2ADDEH): Likewise.
4348         * config/ia64/t-vms (LIB2ADDEH): Likewise.
4349         * configure.ac (target_thread_file): Remove gnat handling.
4350         * configure: Regenerate.
4351         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4352
4353 2011-05-23  Tristan Gingold  <gingold@adacore.com>
4354             Eric Botcazou  <ebotcazou@adacore.com>
4355
4356         * gcov.c (create_file_names): If no object directory is specified,
4357         keep the directory of the file.
4358
4359 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4360
4361         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4362         * configure: Regenerate.
4363
4364 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4365
4366         PR middle-end/48973
4367         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4368         failed and the comparison has a single bit signed type, use
4369         constm1_rtx instead of const1_rtx for true value.
4370         (do_store_flag): If ops->type is single bit signed type, disable
4371         signel bit test optimization and pass -1 instead of 1 as last
4372         parameter to emit_store_flag_force.
4373
4374 2011-05-23  Tom de Vries  <tom@codesourcery.com>
4375
4376         PR target/45098
4377         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4378         function.
4379         (infer_loop_bounds_from_undefined): Use new function.
4380
4381 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4382
4383         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4384         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
4385         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4386         and -O0 otherwise.
4387         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4388
4389 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4390
4391         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4392         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4393         returns true.
4394
4395 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4396
4397         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4398
4399 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4400
4401         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4402         UNSPEC_MOVE_PIC pattern.
4403
4404 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4405
4406         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4407         (sparc-*-rtems*): Likewise.
4408         (sparc64-*-elf*): Likewise.
4409         (sparc64-*-rtems*): Likewise.
4410         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
4411         * config/sparc/t-crtin: New file.
4412         * config/sparc/t-sol2 (crti.o): Delete rule.
4413         (crtn.o): Likewise.
4414         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4415         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4416         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4417         (ENDFILE_SPEC): Add crtn.o.
4418
4419 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4420
4421         PR middle-end/48689
4422         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4423         CODE_CONTAINS_STRUCT (TS_COMMON).
4424
4425 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
4426
4427         PR middle-end/49029
4428         * expmed.c (extract_fixed_bit_field): Test whether target can be used
4429         only after deciding which mode to use.
4430
4431 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4432
4433         PR target/45098
4434         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4435         for call to get_shiftadd_cost.
4436
4437 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
4438
4439         PR target/49104
4440         * config/i386/cpuid.h (bit_MMXEXT): New define.
4441
4442 2011-05-22  Nick Clifton  <nickc@redhat.com>
4443
4444         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4445         initialisation of non-existant args[2] element.  Use args[] array
4446         not arg[] array to pass arguments to build_function_type_list.
4447
4448 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
4449
4450         PR tree-optimization/49087
4451         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4452
4453 2011-05-21  Jason Merrill  <jason@redhat.com>
4454
4455         PR c++/49092
4456         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4457         static storage duration.
4458
4459 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4460
4461         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4462         frame pointer.
4463
4464 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4465
4466         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4467         false if there are call-saved registers here...
4468         (sparc_can_use_return_insn_p): ...but here instead.
4469         (save_or_restore_regs): Fix thinko.
4470         (sparc_expand_prologue): Use current_function_is_leaf.
4471         (sparc_frame_pointer_required): Likewise.
4472
4473 2011-05-21  Nick Clifton  <nickc@redhat.com>
4474
4475         PR target/49098
4476         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4477
4478 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4479
4480         * gengtype.c (walk_type): Implemented "atomic" GTY option.
4481         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4482
4483 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
4484
4485         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
4486         * optc-gen.awk: Move common code to opt-read.awk.
4487         * opth-gen.awk: Likewise.
4488         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4489
4490 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
4491
4492         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4493
4494 2011-05-20  Tom de Vries  <tom@codesourcery.com>
4495
4496         PR target/45098
4497         * tree-ssa-loop-ivopts.c: Include expmed.h.
4498         (get_shiftadd_cost): New function.
4499         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
4500
4501 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
4502
4503         PR bootstrap/49086
4504         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4505         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4506
4507 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
4508
4509         * Makefile.in: Update comment referring to $(OBJS-common).
4510
4511 2011-05-20  Ian Lance Taylor  <iant@google.com>
4512
4513         * godump.c (go_output_typedef): Put enum constants in the macro
4514         hash table to avoid duplicate Go const definitions.
4515
4516 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
4517
4518         * Makefile.in (LIBDEPS): Add libcommon.a.
4519         (LIBS): Likewise.
4520         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4521         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4522         pretty-print.o and version.o.
4523         (OBJS-libcommon): New.
4524         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4525         (BACKEND): Add libcommon.a.
4526         (MOSTLYCLEANFILES): Likewise.
4527         (libcommon.a): New.
4528         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4529         (cpp$(exeext)): Likewise.
4530         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4531         pretty-print.o and input.o.
4532         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4533         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4534         (errors.o): Remove.
4535         (mips-tfile): Don't explicitly use version.o.
4536         (mips-tdump): Likewise.
4537         (gcov.o): Depend on $(DIAGNOSTIC_H).
4538         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4539         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4540         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4541         * gcov-dump.c: Include intl.h and diagnostic.h.
4542         (main): Initialize diagnostics.
4543         * gcov.c: Include diagnostic.h.
4544         (fnotice): Remove.
4545         (main): Initialize diagnostics.
4546         * lto-wrapper.c: Include diagnostic.h.
4547         (main): Initialize diagnostics.
4548
4549 2011-05-20  Michael Matz  <matz@suse.de>
4550
4551         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4552
4553 2011-05-20  Michael Matz  <matz@suse.de>
4554             Richard Guenther  <rguenther@suse.de>
4555
4556         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4557         use lto_streamer_cache_append directly instead of returning a VEC.
4558         (preload_common_node): Remove.
4559         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4560         track seen nodes.
4561         (lto_streamer_cache_create): Call lto_preload_common_nodes.
4562
4563 2011-05-20  Richard Guenther  <rguenther@suse.de>
4564
4565         PR tree-optimization/49079
4566         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4567         MEM_REFs correctly for the trailing array access detection.
4568         Special case constants the same way as decls for overall size
4569         constraining.
4570
4571 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
4572
4573         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4574         argument expansion.
4575
4576 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
4577
4578         PR tree-optimization/49073
4579         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4580         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4581         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4582
4583 2011-05-20  Richard Guenther  <rguenther@suse.de>
4584
4585         PR middle-end/48849
4586         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4587         of pointer types the same way the middle-end does.
4588
4589 2011-05-20  Richard Guenther  <rguenther@suse.de>
4590
4591         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4592         or pointer-to chains.  Delay all fixup to uniquify_nodes.
4593
4594 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
4595
4596         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4597         (fma4_fmaddsub): Likewise
4598
4599 2011-05-19  Jan Hubicka  <jh@suse.cz>
4600
4601         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4602         (GIMPLE_TYPE_PAIR_SIZE): New macro.
4603         (type_pair_cache): New static var.
4604         (lookup_type_pair): Use fixed sized custom hash; make inline.
4605         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4606         calls of lookup_type_pair.
4607         (print_gimple_types_stats): Remove cache stats.
4608         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4609         and gtc_ob.
4610
4611 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
4612
4613         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4614         when TARGET_RDRND is active.
4615         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4616         Generate dummy SImode target register when target is NULL.
4617
4618 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
4619
4620         * config/arm/arm-fpus.def: New.
4621         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4622         arm-fpus.def.
4623         * config/arm/arm-tables.opt: Regenerate.
4624         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4625         (arm_option_override): Don't decode FPU name to string here.
4626         * config/arm/arm.opt (mfpu=): Use Enum.
4627         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4628         Update dependencies.
4629
4630 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
4631
4632         * collect2.c: Include diagnostic.h.
4633         (fatal_perror, fatal, error, fancy_abort): Remove.
4634         (main): Set progname.  Call xmalloc_set_program_name and
4635         diagnostic_initialize.
4636         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4637         scan_libraries, resolve_lib_name): Call fatal_error instead of
4638         fatal and fatal_perror.
4639         * collect2.h (error, fatal, fatal_perror): Don't declare.
4640         * tlink.c: Include diagnostic-core.h.
4641         (recompile_files): Call fatal_error instead of fatal_perror.
4642         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4643         pretty-print.o and input.o.
4644         (collect2.o, tlink.o): Update dependencies.
4645
4646 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4647
4648         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4649
4650 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4651
4652         PR target/40483
4653         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4654         COMDAT group syntax, both SPARC and x86 variants.
4655         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4656         * configure: Regenerate.
4657         * config/sol2.h (TARGET_SOLARIS): Define.
4658         (PUSHSECTION_FORMAT): Remove.
4659         (SECTION_NAME_FORMAT): Define.
4660         * config/sol2.c: Include hashtab.h.
4661         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4662         expansion, using SECTION_NAME_FORMAT.
4663         (solaris_comdat_htab): New variable.
4664         (struct comdat_entry): Define.
4665         (comdat_hash): New function.
4666         (comdat_eq): New function.
4667         (solaris_elf_asm_comdat_section): New function.
4668         (solaris_define_comdat_signature): New function.
4669         (solaris_code_end): New function.
4670         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4671         (solaris_code_end): Declare.
4672         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4673         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4674         solaris_code_end.
4675         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4676         Remove ATTRIBUTE_UNUSED.
4677         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4678         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4679         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4680         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4681         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4682         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4683         (PUSHSECTION_FORMAT): Remove.
4684         (SECTION_NAME_FORMAT): Redefine.
4685
4686 2011-05-19  Kai Tietz  <ktietz@redhat.com>
4687
4688         * tree-cfg.c (verify_gimple_assign_binary): Barf on
4689         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4690         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4691
4692 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
4693             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4694
4695         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4696
4697 2011-05-19  Richard Guenther  <rguenther@suse.de>
4698
4699         PR middle-end/48985
4700         * tree-object-size.c (addr_object_size): If the pointed-to
4701         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4702
4703 2011-05-19  Richard Guenther  <rguenther@suse.de>
4704
4705         * gimple.c (gimple_types_compatible_p_1): Compare names of
4706         the types themselves.
4707         (iterative_hash_gimple_type): And hash them that way.
4708         (gimple_register_type_1): If we register a main variant properly
4709         initialize the leader to ourselves.
4710
4711 2011-05-19  Tom de Vries  <tom@codesourcery.com>
4712
4713         PR target/45098
4714         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4715         get_loop_invariant_expr_id.
4716         (get_loop_invariant_expr_id): Use get_expr_id.
4717         (parm_decl_cost): New function.
4718         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4719         Improve bound cost estimation.  Use different inv_expr_id for elim and
4720         express cases.
4721
4722 2011-05-19  Tom de Vries  <tom@codesourcery.com>
4723
4724         PR target/45098
4725         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4726         cost_base.cost == 0.
4727
4728 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4729
4730         PR target/49002
4731         * config/i386/sse.md
4732         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4733         load cast.
4734
4735 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
4736
4737         PR tree-optimization/49039
4738         * tree-vrp.c (extract_range_from_binary_expr): For
4739         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4740         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4741
4742 2011-05-18  Tom de Vries  <tom@codesourcery.com>
4743
4744         PR target/45098
4745         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4746
4747 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
4748
4749         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4750         (*tls_global_dynamic_64): Ditto.
4751         (*tls_local_dynamic_base_32_gnu): Ditto.
4752         (*tls_local_dynamic_base_64): Ditto.
4753         (tls_initial_exec_64_sun): Ditto.
4754
4755 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
4756
4757         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4758         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4759         bf592-none.
4760         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4761         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4762         * config/bfin/bfin.c (bfin_cpus): Add bf592.
4763         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4764         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4765         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4766         * config/bfin/elf.h (LIB_SPEC): Add bf592.
4767
4768 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
4769
4770         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4771         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4772         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4773         target_thread_pointer, arm_structure_size_boundary, struct
4774         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4775         struct abi_name, arm_all_abis): Remove.
4776         (arm_option_override) Don't process most enumerated option values here.
4777         Don't process target_fpe_name here.  Work with integer not string for
4778         structure size boundary; use separate diagnostics for each case.
4779         * config/arm/arm.h (enum float_abi_type, enum
4780         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4781         to arm-opts.h.
4782         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4783         arm_structure_size_boundary): Remove.
4784         * config/arm/arm.opt (mabi=): Use Enum and Init.
4785         (arm_abi_type): New Enum and EnumValue entries.
4786         (mfloat-abi=): Use Enum and Init.
4787         (float_abi_type): New Enum and EnumValue entries.
4788         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4789         (mfp16-format=): Use Enum and Init.
4790         (arm_fp16_format_type): New Enum and EnumValue entries.
4791         (mstructure-size-boundary=): Use UInteger and Init.
4792         (mtp=): Use Enum and Init.
4793         (arm_tp_type): New Enum and EnumValue entries.
4794
4795 2011-05-18  Richard Guenther  <rguenther@suse.de>
4796
4797         PR tree-optimization/49018
4798         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4799         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4800         gimple_has_side_effects.
4801
4802 2011-05-18  Richard Guenther  <rguenther@suse.de>
4803
4804         * gimple.c (gimple_register_type_1): New function, split out from ...
4805         (gimple_register_type): ... here.  Avoid infinite recursion.
4806
4807 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
4808
4809         PR tree-optimization/41881
4810         * tree-vectorizer.h (struct _loop_vec_info): Add new field
4811         reduction_chains along with a macro for its access.
4812         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4813         (destroy_loop_vec_info): Free reduction chains.
4814         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4815         (vect_is_slp_reduction): New function.
4816         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4817         (vect_create_epilog_for_reduction): Support SLP reduction chains.
4818         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4819         definition types for reduction chains.
4820         (vect_supported_load_permutation_p): Don't allow permutations for
4821         reduction chains.
4822         (vect_analyze_slp_instance): Support reduction chains.
4823         (vect_analyze_slp): Try to build SLP instance from reduction chains.
4824         (vect_get_constant_vectors):  Handle reduction chains.
4825         (vect_schedule_slp_instance): Mark the first statement of the
4826         reduction chain as reduction.
4827
4828 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
4829
4830         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4831         names for group elements access.
4832         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4833         reduction chains as well.  Remove data reference and interleaving
4834         related words from the fields names.
4835         * tree-vect-loop.c (vect_transform_loop): Use new names for group
4836         elements access.
4837         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4838         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4839         vect_update_interleaving_chain, vect_same_range_drs,
4840         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4841         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4842         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4843         vect_analyze_group_access, vect_analyze_data_ref_access,
4844         vect_create_data_ref_ptr, vect_transform_strided_load,
4845         vect_record_strided_load_vectors): Likewise.
4846         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4847         vect_model_load_cost, vectorizable_store, vectorizable_load,
4848         vect_remove_stores, new_stmt_vec_info): Likewise.
4849         * tree-vect-slp.c (vect_build_slp_tree,
4850         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4851
4852 2011-05-18  Richard Guenther  <rguenther@suse.de>
4853
4854         PR middle-end/48989
4855         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4856         operand verification.
4857         (verify_gimple_assign_binary): Likewise.
4858         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4859         to non-1-precision BOOLEAN_TYPEs.
4860
4861 2011-05-18  Tom de Vries  <tom@codesourcery.com>
4862
4863         PR target/45098
4864         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4865
4866 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
4867
4868         PR tree-optimization/49000
4869         * tree-ssa.c (execute_update_addresses_taken): Call
4870         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
4871         be rewritten and decl has been marked for renaming, reset
4872         the debug stmt.
4873
4874 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
4875
4876         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4877         enum_opts_set when testing if attributes have set -mfpmath=.
4878
4879 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
4880
4881         * config/mips/mips.c (mips_handle_option): Remove unused variable.
4882
4883 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
4884
4885         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4886         info->entry with 0
4887         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
4888         id.transform_lang_insert_block with NULL.
4889
4890 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
4891
4892         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4893         (output_fp_compare): Change args 3 and 4 to bool.
4894         (ix86_expand_call): Change arg 6 to bool.
4895         (ix86_attr_length_immediate_default): Change arg 2 to bool.
4896         (ix86_attr_length_vex_default): Change arg 3 to bool.
4897         * config/i386/i386.md: Update all uses.
4898         * config/i386/i386.c: Ditto.
4899         (ix86_flags_dependent): Change return type to bool.
4900
4901 2011-05-17  Richard Guenther  <rguenther@suse.de>
4902
4903         * gimple.c (type_hash_pair_compare): Fix comparison.
4904
4905 2011-05-17  Richard Guenther  <rguenther@suse.de>
4906
4907         * gimple.c (iterative_hash_gimple_type): Simplify singleton
4908         case some more, fix final hash value of the non-singleton case.
4909
4910 2011-05-17  Richard Guenther  <rguenther@suse.de>
4911
4912         PR bootstrap/49013
4913         Revert
4914         2011-05-16  Richard Guenther  <rguenther@suse.de>
4915
4916         * gimple.c (gimple_types_compatible_p_1): Use names of the
4917         type itself, not its main variant.
4918         (iterative_hash_gimple_type): Likewise.
4919
4920 2011-05-17  Richard Guenther  <rguenther@suse.de>
4921
4922         * gimple.c (gimple_register_canonical_type): Use the main-variant
4923         leader for computing the canonical type.
4924
4925 2011-05-17  Nick Clifton  <nickc@redhat.com>
4926
4927         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4928         moves.
4929
4930         * config/rx/rx.md: Add peephole to remove redundant extensions
4931         after loads.
4932         (bitset_in_memory): Use rx_restricted_mem_operand.
4933         (bitinvert_in_memory): Likewise.
4934         (bitclr_in_memory): Likewise.
4935
4936 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
4937             Nick Clifton  <nickc@redhat.com>
4938
4939         * config/rx/rx.md: Add peepholes to match a register move followed
4940         by a comparison of the moved register.  Replace these with an
4941         addition of zero that does both actions in one instruction.
4942
4943 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
4944
4945         PR target/48986
4946         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
4947         predicate to allow CONST_INT.
4948         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
4949
4950 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
4951
4952         * opts-common.c (opt_enum_arg_to_value): New.
4953         * opts.h (opt_enum_arg_to_value): Declare.
4954         * config/i386/i386.opt (fpmath): Remove.
4955         (mfpmath=): Use Enum, Init and Save.
4956         (fpmath_unit): New Enum and EnumValue entries.
4957         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
4958         name for function fpmath state.
4959         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
4960         * config/i386/i386.c: Include diagnostic.h.
4961         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
4962         (ix86_target_string): Take enum fpmath_unit value instead of string.
4963         (ix86_debug_options): Update call to ix86_target_string.
4964         (ix86_option_override_internal): Don't process fpmath strings here.
4965         (x86_function_specific_save, ix86_function_specific_restore):
4966         Don't handle fpmath state specially.
4967         (ix86_function_specific_print): Pass fpmath state to
4968         ix86_target_string instead of printing in this function.
4969         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
4970         Handle enum attributes.
4971         (IX86_ATTR_ENUM, ix86_opt_enum): New.
4972         (ix86_valid_target_attribute_tree): Update option_strings
4973         handling.  Handle fpmath as enum option.
4974         (ix86_can_inline_p): Update field names for function fpmath state.
4975         (ix86_expand_builtin): Update call to ix86_target_string.
4976         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
4977         (ix86_fpmath): Remove.
4978         * config/i386/t-i386 (i386.o): Update dependencies.
4979
4980 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
4981
4982         PR preprocessor/48677
4983         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
4984         from decoded_options[0], not from itself.
4985
4986 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
4987
4988         * config/i386/constraints.md (z): New constraint.
4989         * config/i386/i386.c (c): New mode attribute.
4990         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
4991         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
4992         constraint for operand 0.
4993         (*call_vzeroupper): Ditto.
4994         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
4995         (*call_rex64_ms_sysv_vzeroupper): Ditto.
4996         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
4997         Use "lzm" constraint for operand 0.
4998         (*call_pop_vzeroupper): Ditto.
4999         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5000         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
5001         constraint for operand 0.
5002         (*sibcall_vzeroupper): Ditto.
5003         (*sibcall_rex64_ms_sysv): Ditto.
5004         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5005         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5006         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
5007         (*sibcall_pop_vzeroupper): Ditto.
5008         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5009         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5010         mode iterator.  Use "<c>zm" constraint for operand 1.
5011         (*call_value_vzeroupper): Ditto.
5012         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
5013         for operand 1.
5014         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5015         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5016         *call_value_pop_1.  Use "lzm" constraint for operand 1.
5017         (*call_value_pop_vzeroupper): Ditto.
5018         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5019         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5020         mode iterator.  Use "Uz" constraint for operand 1.
5021         (*sibcall_value_vzeroupper): Ditto.
5022         (*sibcall_value_rex64_ms_sysv): Ditto.
5023         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5024         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
5025         constraint for operand 1.
5026         (*sibcall_value_pop_vzeroupper): Ditto.
5027         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5028         and "z" constraint for operand 2.
5029         (*tls_global_dynamic_32_gnu): Ditto.
5030         (*tls_local_dynamic_base_32_gnu): Ditto.
5031         (*tls_local_dynamic_base_64): Ditto.
5032         (*tls_local_dynamic_32_once): Ditto.
5033         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5034         Update all callers.
5035         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5036
5037 2011-05-16  Richard Guenther  <rguenther@suse.de>
5038
5039         * gimple.c (gimple_types_compatible_p_1): Use names of the
5040         type itself, not its main variant.
5041         (iterative_hash_gimple_type): Likewise.
5042
5043 2011-05-16  Richard Guenther  <rguenther@suse.de>
5044
5045         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5046         always visit pointer target and function result and argument types.
5047
5048 2011-05-16  Jason Merrill  <jason@redhat.com>
5049
5050         PR c++/48999
5051         * tree-inline.c (copy_statement_list): Put back recursion.
5052
5053 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5054
5055         PR target/27663
5056         PR target/41076
5057         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5058         * config/avr/avr.md ("*ior<mode>qi.byte0",
5059         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5060
5061 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5062
5063         PR target/45099
5064         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5065         register is needed for a function argument.
5066
5067 2011-05-16  Richard Guenther  <rguenther@suse.de>
5068
5069         * gimple.c (struct type_hash_pair): New type.
5070         (type_hash_pair_compare): New function.
5071         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5072
5073 2011-05-16  Revital Eres  <revital.eres@linaro.org>
5074
5075         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5076
5077 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5078
5079         * config/i386/i386.md (floating point move splitters): Fix
5080         usage of standard_80387_constant_p.
5081         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5082
5083 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5084
5085         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5086
5087 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5088
5089         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5090         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5091         (tree_ssa_lim_finalize): Likewise.
5092
5093 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
5094
5095         * config/i386/constraint.md (Yd, Yx): New register constraints.
5096         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
5097         Yd conditional register constraint.
5098         (*movtf_internal): Use standard_sse_constant_opcode.
5099         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
5100         Yx conditional register constraint.
5101         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
5102         Yd conditional register constraint.  Use standard_sse_constant_p to
5103         check for valid SSE constants and call standard_sse_constant_opcode to
5104         output SSE insn.
5105         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5106         constants and call standard_sse_constant_opcode to output SSE insn.
5107         * config/i386/i386.c (ix86_option_ovverride_internal): Set
5108         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
5109         optimize_size is set.
5110         (standard_sse_constant_opcode): Output conditional AVX insn templates.
5111
5112 2011-05-14  Tobias Burnus  <burnus@net-b.de>
5113
5114         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5115
5116 2011-05-13  Martin Jambor  <mjambor@suse.cz>
5117
5118         * ipa-prop.c (ipa_cst_from_jfunc): New function.
5119         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5120         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5121         (evaluate_conditions_for_ipcp_clone): Removed.
5122         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5123         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5124         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5125
5126 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
5127
5128         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5129         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5130         lieu of MAY_HAVE_DEBUG_STMTS.
5131         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5132         debug statements if !MAY_HAVE_DEBUG_STMTS.
5133
5134 2011-05-13  Martin Thuresson  <martint@google.com>
5135
5136         PR gcov-profile/47793
5137         * libgcov.c (gcov_exit): Support relative profile paths.
5138         * doc/invoke.texi (-fprofile-dir): Update for above change.
5139
5140 2011-05-13  Richard Guenther  <rguenther@suse.de>
5141
5142         * gimple.c (gimple_canonical_types_compatible_p): Do not use
5143         type-pair caching, do not compare hashes.
5144
5145 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
5146
5147         PR middle-end/48965
5148         * tree-cfg.c (edge_to_cases_cleanup): Return true.
5149         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5150
5151 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5152
5153         * gimplify.c (gimplify_expr): Make sure operand is boolified.
5154         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5155         compatible type for TRUTH_NOT_EXPR.
5156
5157 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5158
5159         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5160         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
5161         can_create_pseudo_p ().
5162
5163 2011-05-13  Richard Guenther  <rguenther@suse.de>
5164
5165         PR lto/48978
5166         * gimple.c (iterative_hash_gimple_type): Revert change in
5167         pointer target and function result and argument hashing.
5168
5169 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
5170
5171         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5172         (*movxf_internal_nointeger): Ditto.
5173         (*movdf_internal_rex64): Ditto.
5174         (*movdf_internal): Ditto.
5175         (*movdf_internal_nointeger): Ditto.
5176         (*movsf_internal): Ditto.
5177         (sincos splitters): Use can_create_pseudo ().
5178
5179 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
5180
5181         * config/i386/i386-opts.h: New.
5182         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5183         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5184         ix86_section_threshold): Remove.
5185         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
5186         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5187         OPT_mbranch_cost_.
5188         (ix86_option_override_internal): Don't decode strings for options
5189         other than -march=, -mtune= and -mfpmath=.  Don't allow for
5190         __attribute__ uses in remaining diagnostics for options with
5191         string arguments.  Don't check for integer arguments being negative.
5192         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5193         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5194         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5195         ix86_branch_cost, ix86_section_threshold): Remove.
5196         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5197         HeaderInclude.
5198         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5199         but not Var.
5200         (masm=): Use Enum and Init.
5201         (asm_dialect): New Enum and EnumValue entries.
5202         (mbranch-cost=): Use UInteger.
5203         (mlarge-data-threshold=): Use UInteger and Init.
5204         (mcmodel=): Use Enum and Init.
5205         (cmodel): New Enum and EnumValue entries.
5206         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5207         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5208         mregparm=): Use UInteger.
5209         (mstringop-strategy=): Use Enum and Init.
5210         (stringop_alg): New Enum and EnumValue entries.
5211         (mtls-dialect=): Use Enum and Init.
5212         (tls_dialect): New Enum and EnumValue entries.
5213         (mabi=): Use Enum and Init.
5214         (calling_abi): New Enum and EnumValue entries.
5215         (mveclibabi=): Use Enum and Init.
5216         (ix86_veclibabi): New Enum and EnumValue entries.
5217
5218 2011-05-13  Nick Clifton  <nickc@redhat.com>
5219
5220         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5221         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5222
5223 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5224
5225         PR middle-end/48984
5226         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5227         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5228         (gimple_boolify): Check for cast for boolean_type_node instead for
5229         BOOLEAN_TYPE.
5230
5231 2011-05-13  Richard Guenther  <rguenther@suse.de>
5232
5233         PR tree-optimization/48172
5234         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5235         multiplying by number of iterations for equal step.
5236         (vect_create_cond_for_alias_checks): Likewise.
5237
5238 2011-05-13  Andreas Schwab  <schwab@redhat.com>
5239
5240         * configure.ac: Use AS_HELP_STRING throughout.
5241         * configure: Regenerate.
5242
5243 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5244
5245         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5246         (ix86_emit_restore_regs_using_mov): Likewise.
5247         (ix86_emit_restore_sse_regs_using_mov): Likewise.
5248
5249 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
5250
5251         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5252         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5253         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5254         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5255         RTX_OK_FOR_OLO10_P): ...here.
5256         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5257         SYMBOLIC_CONST.
5258
5259 2011-05-12  Kai Tietz  <ktietz@redhat.com>
5260
5261         * gimplify.c (gimple_boolify): Re-boolify expression
5262         arguments even if expression type is of kind BOOLEAN_TYPE.
5263         (gimplify_boolean_expr): Removed.
5264         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5265         and XOR. Additional take care that we keep expression's type.
5266         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5267         of TRUTH_AND|OR|XOR_EXPR.
5268
5269 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5270
5271         PR tree-optimization/48975
5272         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5273         on all bbs here and free and clear ifc_bbs at the end.
5274
5275 2011-05-12  Richard Guenther  <rguenther@suse.de>
5276
5277         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5278         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
5279         until after simple checks.
5280         (gimple_types_compatible_p): Likewise.
5281         (iterative_hash_gimple_type): Always hash pointer targets
5282         and function return and argument types.
5283         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5284         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
5285         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5286         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
5287         completely in the simple compare section.
5288         (gimple_register_canonical_type): Query the cache again after
5289         registering.
5290
5291 2011-05-12  Richard Guenther  <rguenther@suse.de>
5292
5293         PR tree-optimization/48172
5294         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5295         the number of iterations from the segment size calculation.
5296         (vect_create_cond_for_alias_checks): Adjust.
5297
5298 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5299
5300         PR debug/48967
5301         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5302         if validate_subreg fails.
5303
5304 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
5305
5306         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5307         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5308         early.
5309
5310 2011-05-12  DJ Delorie  <dj@redhat.com>
5311
5312         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5313         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5314         created builtin into rx_builtins array.
5315         (rx_builtin_decl): New function.
5316         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
5317
5318 2011-05-12  DJ Delorie  <dj@redhat.com>
5319             Nick Clifton  <nickc@redhat.com>
5320
5321         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5322         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5323         (rx_is_legitimate_address): Add pre-decrement and post-increment
5324         addressing in HImode and QImode.  Fix test for out of range
5325         REG+INT addressing.
5326         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5327         (rx_align_for_label): Test label before extracting its usage count.
5328         (rx_adjust_insn_lengths): Fix selection of insn codes.
5329         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5330
5331 2011-05-11  Jason Merrill  <jason@redhat.com>
5332
5333         * tree.c (type_hash_canon): Use struct tree_type_non_common.
5334
5335 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5336
5337         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5338         reindent the subsequent block.
5339
5340 2011-05-11  Satoru Takabayashi  <satorux@google.com>
5341             Paul Pluzhnikov  <ppluzhnikov@google.com>
5342
5343         * doc/install.texi (Configuration): Document --with-linker-hash-style.
5344         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5345         * config.in: Add LINKER_HASH_STYLE.
5346         * configure.ac: Add --with-linker-hash-style.
5347         * configure: Regenerate.
5348
5349 2011-05-11  Richard Guenther  <rguenther@suse.de>
5350
5351         PR middle-end/48964
5352         * gimple.c (iterative_hash_canonical_type): Fix typo.
5353
5354 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
5355
5356         * config/i386/i386.c (legitimize_tls_address)
5357         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5358         expanders directly for TARGET_GNU2_TLS.  Determine pic and
5359         __tls_get_addr symbol reference here.  Update call to
5360         gen_tls_global_dynamic_{32,64} for added arguments.
5361         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5362         expanders directly for TARGET_GNU2_TLS.  Determine
5363         __tls_get_addr symbol reference here.  Update call to
5364         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
5365         unique UNSPEC REG_EQUIV to libcall block.
5366         (ix86_tls_get_addr): Declare static.
5367         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5368         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5369         Do not determine pic and __tls_get_addr symbol reference here. Do not
5370         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5371         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5372         (tls_global_dynamic_64): Add operand 2.  Do not determine
5373         __tls_get_addr symbol reference here.  Do not call
5374         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5375         (tls_local_dynamic_base64): Ditto for operand 1.
5376
5377 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5378
5379         * function.c (expand_function_start): Initialize stack_check_probe_note
5380         only if the generic stack checking mechanism is used.
5381
5382 2011-05-11  Richard Guenther  <rguenther@suse.de>
5383
5384         PR tree-optimization/15256
5385         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5386         (A & B) | C, combine (A op CST1) op CST2.
5387         (tree_ssa_forward_propagate_single_use_vars): Only bother to
5388         visit assigns that have uses.
5389
5390 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
5391
5392         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5393         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5394         (unpack_ts_type_common_value_fields): ...this.  Update comment.
5395         (unpack_value_fields): Adjust for renaming.
5396         (lto_input_ts_type_tree_pointers): Split into...
5397         (lto_input_ts_type_common_tree_pointer): ...this and...
5398         (lto_input_ts_type_non_common_tree_pointers): ...this.
5399         (lto_input_tree_pointers): Adjust for above split.
5400         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5401         (pack_ts_type_common_value_fields): ...this.  Update comment.
5402         (lto_output_ts_type_tree_pointers): Split into...
5403         (lto_output_ts_type_common_tree_pointers): ...this and...
5404         (lto_output_ts_type_non_common_tree_pointers): ...this.
5405         (lto_output_tree_pointers): Adjust for above split.
5406         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5407         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5408         * stor-layout.c (vector_type_mode): Adjust location of mode field.
5409         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5410         Define.
5411         (struct tree_type): Split into...
5412         (struct tree_type_common: ...this and...
5413         (struct tree_type_with_lang_specific): ...this and...
5414         (struct tree_type_non_common): ...this.  Adjust accessor macros
5415         accordingly.
5416         (TYPE_VALUES_RAW): Define.
5417         (union tree_node): Update for above changes.
5418         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5419         TS_TYPE_NON_COMMON.
5420         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5421         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5422         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5423         * treestructu.def (TS_TYPE): Remove.
5424         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5425         Define.
5426
5427 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
5428
5429         PR debug/48159
5430         * tree-ssa.c (reset_debug_uses): New function.
5431         * tree-flow.h (reset_debug_uses): New prototype.
5432         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5433         * tree-loop-distribution.c (generate_loops_for_partition): Call
5434         reset_debug_uses on the stmts that will be removed.  Keep around
5435         all debug stmts, don't count them as bits in partition bitmap.
5436         (generate_builtin): Don't count debug stmts or labels as bits in
5437         partition bitmap.
5438
5439 2011-05-11  Richard Guenther  <rguenther@suse.de>
5440
5441         * gimple.c (gimple_type_hash_1): Merge with ...
5442         (gimple_type_hash): ... this.
5443         (gtc_visit): Remove mode parameter and simplify accordingly.
5444         (gimple_types_compatible_p_1): Likewise.
5445         (gimple_types_compatible_p): Likewise.
5446         (iterative_hash_gimple_type): Likewise.
5447         (visit): Likewise.
5448         (gimple_type_eq): Adjust.
5449
5450 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5451
5452         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5453         enters the branch create an anti edge in the opposite direction
5454         to prevent the creation of reg-moves.
5455         * modulo-sched.c: Adjust comment to reflect the fact we are
5456         scheduling closing branch.
5457         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5458         (stage_count): New field in struct partial_schedule.
5459         (calculate_stage_count): New function.
5460         (normalize_sched_times): Rename to reset_sched_times and handle
5461         incrementing the sched time of the nodes by a constant value
5462         passed as parameter.
5463         (duplicate_insns_of_cycles): Skip closing branch.
5464         (sms_schedule_by_order): Schedule closing branch.
5465         (ps_insn_find_column): Handle closing branch.
5466         (sms_schedule): Call reset_sched_times and adjust the code to
5467         support scheduling of the closing branch.
5468         (ps_insert_empty_row): Update calls to normalize_sched_times
5469         and rotate_partial_schedule functions.
5470
5471 2011-05-11  Richard Guenther  <rguenther@suse.de>
5472
5473         PR middle-end/48953
5474         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5475
5476 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
5477
5478         * opts.c (finish_options): Move warning settings from process_options.
5479         * toplev.c (process_options): Move warning settings to finish_options.
5480
5481 2011-05-11  Richard Guenther  <rguenther@suse.de>
5482
5483         PR tree-optimization/18041
5484         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5485         (simplify_bitwise_binary): ... this.  Handle operand conversions
5486         by applying them to the result instead.
5487         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
5488
5489 2011-05-11  Richard Guenther  <rguenther@suse.de>
5490
5491         * gimple.c (gimple_canonical_types_compatible_p): Split out
5492         from gimple_types_compatible_p and friends.  Do not recurse
5493         to pointed-to types.
5494         (gimple_canonical_type_eq): Use it.
5495         (iterative_hash_canonical_type): Split out from
5496         iterative_hash_gimple_type and friends.  Do not recurse
5497         to pointed-to types.
5498         (gimple_canonical_type_hash): Use it, allocate the hash here.
5499
5500 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5501
5502         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5503         recognizing doloop.
5504
5505 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5506
5507         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5508         instead of PREV_INSN.
5509
5510 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5511
5512         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5513         * loop-doloop.c (doloop_condition_get): Likewise.
5514         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5515         (doloop_end): New.
5516         * config/arm/arm.md (*addsi3_compare0): Remove "*".
5517
5518 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
5519
5520         * tree.def (CASE_LABEL_EXPR): Add an operand.
5521         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5522
5523 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5524
5525         * c-decl.c (c_override_global_bindings_to_false): Remove.
5526         (global_bindings_p): Don't check
5527         c_override_global_bindings_to_false.
5528         * c-tree.h (c_override_global_bindings_to_false): Remove.
5529         * c-typeck.c (composite_type): Don't set
5530         c_override_global_bindings_to_false.
5531
5532 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5533
5534         PR target/48857, 48495
5535         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5536         (VSX_MODE): Ditto.
5537         (VSX_MOVE_MODE): Ditto.
5538         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5539         VSX vector types.  Add V2DImode.
5540         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5541         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5542         (MODES_TIEABLE_P): Ditto.
5543
5544         * config/rs6000/rs6000.c (rs6000_emit_move): Use
5545         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5546         VSX_VECTOR_MODE.
5547         (init_cumulative_args): Ditto.
5548         (rs6000_function_arg_boundary): Ditto.
5549         (rs6000_function_arg_advance_1): Ditto.
5550         (rs6000_function_arg): Ditto.
5551         (rs6000_function_ok_for_sibcall): Ditto.
5552         (emit_frame_save): Ditto.
5553         (rs6000_function_value): Ditto.
5554         (rs6000_libcall_value): Ditto.
5555
5556 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5557
5558         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5559         i386/darwin-lib.h to $libgcc_tm_file.
5560         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5561
5562 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5563
5564         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5565
5566 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5567
5568         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5569         * config/rs6000/rs6000-tables.opt: New file (generated).
5570         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5571         rs6000/rs6000-tables.opt to extra_options.
5572         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5573         * config/rs6000/rs6000.c (rs6000_select): Remove.
5574         (processor_target_table): Move contents to rs6000-cpus.def.
5575         (darwin_rs6000_override_options): Check
5576         global_options_set.x_rs6000_cpu_index instead of
5577         rs6000_select[1].string.
5578         (rs6000_option_override_internal): Likewise.
5579         (rs6000_handle_option): Don't assert that global structures are in
5580         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
5581         (rs6000_default_cpu): New variable.
5582         (rs6000_file_start): Set it instead of local default_cpu.  Check
5583         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5584         global_options_set.x_rs6000_tune_index instead of rs6000_select.
5585         (rs6000_darwin_file_start): Check rs6000_default_cpu and
5586         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5587         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5588         rs6000_select): Remove.
5589         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5590         Remove.
5591         (mcpu=, mtune=): Use Var, Init, Enum and Save.
5592         * config/rs6000/t-rs6000
5593         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5594         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5595         global_options_set.x_rs6000_cpu_index instead of
5596         rs6000_select[1].string.
5597         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5598         global_options_set.x_rs6000_cpu_index instead of
5599         rs6000_select[1].string.
5600
5601 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5602
5603         * config.gcc (libgcc_tm_file): Define instead of including files
5604         from ../../libgcc/config/ in tm_file.
5605         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
5606         * configure: Regenerate.
5607         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5608         libgcc_tm.h, cs-libgcc_tm.h): New.
5609         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5610         (clean): Remove libgcc_tm.h.
5611         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5612         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5613         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5614
5615 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
5616
5617         PR target/48896
5618         * config/avr/avr.c (avr_ret_register): Return unsigned int
5619         instead of int.
5620         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5621         it to avr_libcall_value.
5622         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5623         expand_expr.
5624         (avr_expand_binop_builtin): Ditto.
5625         (avr_expand_unop_builtin): Ditto.
5626
5627 2011-05-10  DJ Delorie  <dj@redhat.com>
5628
5629         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5630         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5631         * config/rx/rx.c (rx_align_for_label): Add label and
5632         uses_threshold parameters.  Do not align when the label is not
5633         used enough.
5634         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5635
5636 2011-05-10  Richard Guenther  <rguenther@suse.de>
5637
5638         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5639         a series of conversions and apply foldings similar to what
5640         fold-const does.
5641         (tree_ssa_forward_propagate_single_use_vars): Call it.
5642
5643 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
5644
5645         PR tree-optimization/48611
5646         PR tree-optimization/48794
5647         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5648         referenced from RESX or EH_DISPATCH arguments.
5649
5650         PR debug/48928
5651         * dfp.c (decimal_to_decnumber): Handle conversion from
5652         dconst{1,2,m1,half}.
5653
5654 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5655
5656         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5657         for !flag_prefer_avx128.
5658         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5659
5660 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
5661
5662         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5663         (fold_ternary_loc): Use expr_location_or.
5664
5665 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5666
5667         PR debug/48853
5668         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5669         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5670         Pmode and mem_mode is not VOIDmode.
5671
5672 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
5673
5674         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5675         TYPE_QUAL_RESTRICT): Convert to enum.
5676
5677 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5678
5679         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5680         (const_pow2_1_to_8_operand): Ditto.
5681         (const_pow2_1_to_128_operand): Ditto.
5682         (const_pow2_1_to_32768_operand): Ditto.
5683         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5684         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
5685         in insn constraint to check integer value of operand 3.
5686         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5687
5688         (PINSR_MODE): New mode iterator.
5689         (sse2p4_1): New mode attribute.
5690         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5691         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5692         iterator.  Use const_int_operand instead of
5693         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
5694         exact_log2 in insn constraint to check integer value of operand 3.
5695
5696 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5697
5698         * config/i386/sse.md (blendbits): Remove mode attribute.
5699         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5700         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5701         Check integer value of operand 3 in insn constraint.
5702
5703 2011-05-09  Richard Guenther  <rguenther@suse.de>
5704
5705         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5706         for diagnostics.
5707         (lto_symtab_merge): Likewise.  Do not register types here.
5708         (lto_symtab_merge_decls_2): Likewise.
5709         (lto_symtab_merge_decls_1): Likewise.
5710         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5711         * gimple.c (enum gtc_mode): Declare.
5712         (gimple_types_compatible_p): Make static.
5713
5714 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5715
5716         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5717         temporary register to match Pmode.
5718
5719 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5720
5721         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5722         and *vec_concatv4si_1_avx.
5723
5724 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5725
5726         PR rtl-optimization/48927
5727         * ira-conflicts.c (commutative_constraint_p): Use
5728         recog_data.alternative_enabled_p to disable alternatives where
5729         "enabled" attribute is false.
5730         (get_dup_num): Ditto.
5731         * ira-lives.c (single_reg_class): Ditto.
5732         (ira_implicitly_set_insn_hard_regs): Ditto.
5733
5734 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
5735
5736         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5737         (dataflow_set_preserve_mem_locs): Likewise.
5738
5739 2011-05-09  Philipp Thomas  <pth@suse.de>
5740
5741         * config/mep/mep.c (mep_validate_vliw): Syntax description
5742         should not be translated.
5743
5744 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
5745
5746         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5747         * config/mips/mips-tables.opt: New file (generated).
5748         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5749         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5750         MIPS_ARCH_OPTION_NATIVE): Define.
5751         * config/mips/mips.c (mips_cpu_info_table): Move contents to
5752         mips-cpus.def.
5753         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5754         mips_parse_cpu): Remove.
5755         (mips_cpu_info_from_opt, mips_default_arch): New.
5756         (mips_handle_option): Don't assert that global structures are in
5757         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5758         (mips_option_override): Use new variables and functions to set
5759         state of these options.  Use strcmp to check for individual CPU names.
5760         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5761         definition.
5762         * config/mips/mips.opt (march=): Use ToLower and Enum.
5763         (mips): Use ToLower, Enum and Var.
5764         (mtune=): Use ToLower and Enum.
5765         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5766
5767 2011-05-08  Jan Hubicka  <jh@suse.cz>
5768
5769         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5770         Arrange type pairs to be UID ordered.
5771         (gimple_lookup_type_leader): Make inline.
5772
5773 2011-05-09  Nick Clifton  <nickc@redhat.com>
5774
5775         PR target/48899
5776         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5777         PROCESSOR_DEFAULT.
5778
5779         PR target/48897
5780         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5781         variable 's'.
5782
5783 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
5784
5785         * combine.c (simplify_comparison): Abstract out parts into...
5786         (simplify_compare_const): ... new function.
5787         (try_combine): Generalize parallel arithmetic/compare combining
5788         to call simplify_compare_const() and CANONICALIZE_COMPARE().
5789
5790 2011-05-08  Jan Hubicka  <jh@suse.cz>
5791
5792         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5793         (cgraph_create_virtual_clone): Call hooks once virtual clone
5794         is finished.
5795         * cgraph.h (cgraph_clone_node): Update prototype.
5796         * ipa-cp.c (ipcp_estimate_growth): Use
5797         estimate_ipcp_clone_size_and_time.
5798         * ipa-inline-transform.c (clone_inlined_nodes): Update.
5799         * lto-cgraph.c (input_node): Update.
5800         * ipa-inline.c (recursive_inlining): Update.
5801         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5802         (evaluate_conditions_for_known_args): Break out from ...
5803         (evaluate_conditions_for_edge): ... here.
5804         (evaluate_conditions_for_ipcp_clone): New function.
5805         (inline_node_duplication_hook): Update clone summary based
5806         on parameter map.
5807         (estimate_callee_size_and_time): Rename to ...
5808         (estimate_node_size_and_time): take NODE instead of EDGE;
5809         take POSSIBLE_TRUTHS as argument.
5810         (estimate_callee_size_and_time): Update.
5811         (estimate_ipcp_clone_size_and_time): New function.
5812         (do_estimate_edge_time): Update.
5813
5814 2011-05-08  Richard Guenther  <rguenther@suse.de>
5815
5816         PR middle-end/48908
5817         PR middle-end/48905
5818         * expmed.c (expand_shift_1): Compute adjusted constant shift
5819         amount manually.
5820
5821 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
5822
5823         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5824
5825 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
5826
5827         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5828
5829 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
5830
5831         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5832
5833 2011-05-07  Jan Hubicka  <jh@suse.cz>
5834
5835         * ipa-inline-transform.c (inline_call): Account when program size
5836         decreases.
5837         * ipa-inline.c (relative_time_benefit): New function.
5838         (edge_badness): Reorganize to be power 2 based; fix thinko when
5839         computing badness for negative growth; update comments to match
5840         reality; better dumps.
5841
5842 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
5843
5844         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5845         type to bool and adjust comment.
5846         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5847         (fold_mathfn_compare): Remove calls to global_bindings_p.
5848         (fold_inf_compare): Likewise.
5849         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5850         * c-tree.h (global_bindings_p): Adjust prototype.
5851         * c-decl.c (global_bindings_p): Return bool and simplify.
5852
5853 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
5854
5855         PR tree-optimization/48837
5856         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5857         when accumulator transformation is performed.
5858
5859 2011-05-06  Jan Hubicka  <jh@suse.cz>
5860
5861         * i386.h (ix86_tune_indices): Add
5862         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
5863         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
5864         * i386.c (initial_ix86_tune_features): Add
5865         X86_SOFTARE_PREFETCHING_BENEFICIAL.
5866         (software_prefetching_beneficial_p): Remove predicate.
5867         (ix86_option_override_internal): Use new macro.
5868
5869 2011-05-06  Jan Hubicka  <jh@suse.cz>
5870
5871         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5872
5873 2011-05-06  Jan Hubicka  <jh@suse.cz>
5874
5875         * cgraph.c (cgraph_add_thunk): Create real function node instead
5876         of alias node; finalize it and mark needed/reachale; arrange visibility
5877         to be right and add it into the corresponding same comdat group list.
5878         (dump_cgraph_node): Dump thunks.
5879         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
5880         cgraph_function_with_gimple_body_p,
5881         cgraph_first_function_with_gimple_body,
5882         cgraph_next_function_with_gimple_body): New functions.
5883         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5884         New macros.
5885         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5886         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5887         * cgraphunit.c (cgraph_finalize_function): Only look into possible
5888         devirtualization when optimizing.
5889         (verify_cgraph_node): Verify thunks.
5890         (cgraph_analyze_function): Analyze thunks.
5891         (cgraph_mark_functions_to_output): Output thunks only in combination
5892         with function they are assigned to.
5893         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5894         alias into normal node.
5895         (assemble_thunks): New functoin.
5896         (cgraph_expand_function): Use it.
5897         * lto-cgraph.c (lto_output_node): Stream thunks.
5898         (input_overwrite_node): Stream in thunks.
5899         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5900         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5901         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5902         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5903         (inline_analyze_function): Do not care about thunk jump functions.
5904         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
5905         * ipa-prop.c (ipa_prop_write_jump_functions): Use
5906         cgraph_function_with_gimple_body_p.
5907         * passes.c (do_per_function_toporder): Use
5908         cgraph_function_with_gimple_body_p.
5909         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5910         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5911         (function_called_by_processed_nodes_p): Likewise.
5912
5913 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
5914
5915         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5916         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5917         entries.
5918         (mabi=): Replace with separate entries for mabi=altivec,
5919         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5920         mabi=ieeelongdouble and mabi=ibmlongdouble.
5921         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5922         check for -mabi=spe without SPE ABI support here.
5923         (rs6000_handle_option): Replace OPT_mabi_ handling with
5924         OPT_mabi_altivec and OPT_mabi_spe handling.
5925
5926 2011-05-06  Cary Coutant  <ccoutant@google.com>
5927
5928         * dwarf2out.c (contains_subprogram_definition): New function.
5929         (should_move_die_to_comdat): Call it.
5930
5931 2011-05-06  Jeff Law  <law@redhat.com>
5932
5933         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5934         remove_ctrl_stmt_and_useless_edges.
5935         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5936         (fixup_template_block, thread_single_edge): Likewise.
5937         (mark_threaded_blocks): Use THREAD_TARGET.
5938
5939 2011-05-06  Alan Modra  <amodra@gmail.com>
5940
5941         PR target/48900
5942         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5943         const0_rtx as the arg to the dummy __tls_get_addr libcall.
5944
5945 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
5946
5947         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
5948         constraint modifier to "r".
5949
5950 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
5951
5952         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
5953         fall through for OPT_mcmodel_.
5954
5955 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5956
5957         * config/s390/s390.c (s390_asm_trampoline_template): Comment
5958         instruction sizes.
5959         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
5960
5961 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5962
5963         PR target/47930
5964         * config/arm/arm.opt (marm): Document it.
5965         (mthumb): Reject negative variant.
5966
5967 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
5968
5969         PR target/48898
5970         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5971         Fix typo in "ccvt" variable name.
5972
5973 2011-05-06  Tristan Gingold  <gingold@adacore.com>
5974
5975         PR target/48895
5976         * config/vms/vms-ar.c (main): Remove cwd variable.
5977
5978 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
5979
5980         PR debug/48902
5981         * var-tracking.c (prepare_call_arguments): Move else before #endif.
5982
5983 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
5984
5985         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
5986         * gimplify.c (gimplify_switch_expr): Likewise.
5987         * omp-low.c (expand_omp_sections): Likewise.
5988         * tree-eh.c (lower_try_finally_switch): Likewise.
5989         (lower_eh_dispatch): Likewise.
5990         * tree.h (build_case_label): Declare.
5991         * tree.c (build_case_label): Define.
5992
5993 2011-05-05  Jason Merrill  <jason@redhat.com>
5994
5995         PR c++/40975
5996         * tree-inline.c (copy_tree_r): Use copy_statement_list.
5997         (copy_statement_list): Don't recurse.
5998         * stor-layout.c (copy_self_referential_tree_r): Don't allow
5999         STATEMENT_LIST.
6000
6001 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6002
6003         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6004         through from -mfpu= handling.
6005         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6006
6007 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
6008
6009         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6010         POST_MODIFY.
6011
6012 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
6013
6014         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6015         for 11.31.
6016         (hppa[12]*-*-hpux11*): Ditto.
6017         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6018         * config/ia64/hpux-unix2003.h: New.
6019         * config/pa/pa-hpux1131.opt: New.
6020         * config/pa/pa-hpux1131.h: New.
6021         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6022         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6023         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6024
6025 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6026
6027         PR debug/48853
6028         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6029         instead of mode as 3rd argument to recursive call.
6030         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6031         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6032         VOIDmode.
6033         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6034         don't give up if mode is Pmode and mem_mode is not VOIDmode.
6035         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6036         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6037
6038 2011-05-05  Julian Brown  <julian@codesourcery.com>
6039
6040         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6041         parenthesis in D-register case.
6042
6043 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6044
6045         * opt-functions.awk (var_type_struct): Handle Enum options.
6046         * optc-gen.awk: Don't check range of variables of character type.
6047         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6048         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6049         rs6000_sdata_name, rs6000_explicit_options): Remove.
6050         (rs6000_option_override_internal): Check for -malign-power here.
6051         Use global_options_set instead of rs6000_explicit_options.
6052         (rs6000_parse_fpu_option): Remove.
6053         (rs6000_handle_option): Access variables via opts and opts_set
6054         pointers.  Use error_at and warning_at.  Add fall-through
6055         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6056         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6057         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6058         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6059         here.  Don't use rs6000_parse_fpu_option.
6060         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6061         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6062         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6063         (mrecip=): Use Var.
6064         (mspe): Use Var and Save.
6065         (mtraceback=): Use Enum and Var.
6066         (rs6000_traceback_type): New Enum and EnumValue entries.
6067         (mfloat-gprs=): Use Enum, Var and Save.
6068         (rs6000_float_gprs): New Enum and EnumValue entries.
6069         (mlong-double-): use Var and Save.
6070         (msched-costly-dep=, minsert-sched-nops=): Use Var.
6071         (malign-): Use Enum and Var.
6072         (rs6000_alignment_flags): New Enum and EnumValue entries.
6073         (mfpu=): Use Enum.
6074         (fpu_type_t): New Enum and EnumValue entries.
6075         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6076         global_options_set instead of rs6000_explicit_options.
6077         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6078         global_options_set instead of rs6000_explicit_options.
6079         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6080         global_options_set instead of rs6000_explicit_options.
6081         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6082         global_options_set instead of rs6000_explicit_options.
6083         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6084         global_options_set instead of rs6000_explicit_options.
6085         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6086         global_options_set instead of rs6000_explicit_options.
6087         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6088         definition.
6089         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6090         global_options_set instead of rs6000_explicit_options.
6091         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6092         (rs6000_cmodel): New Enum and EnumValue entries.
6093         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6094         global_options_set instead of rs6000_explicit_options.
6095         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6096         (mtls-size=): Use Enum and Var.
6097         (rs6000_tls_size): New Enum and EnumValue entries.
6098
6099 2011-05-05  Michael Matz  <matz@suse.de>
6100
6101         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6102         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6103         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6104         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6105         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6106         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6107         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6108         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6109         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6110         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6111         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6112         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6113         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6114         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6115         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6116         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6117
6118 2011-05-05  Richard Guenther  <rguenther@suse.de>
6119
6120         * expmed.c (expand_variable_shift): Rename to ...
6121         (expand_shift_1): ... this.  Take an expanded shift amount.
6122         For rotates recurse directly not building trees for the shift amount.
6123         (expand_variable_shift): Wrap around expand_shift_1.
6124         (expand_shift): Adjust.
6125
6126 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6127
6128         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6129
6130 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
6131
6132         * tree.h (get_pending_sizes): Remove prototype.
6133         (put_pending_size): Likewise.
6134         (put_pending_sizes): Likewise.
6135         * stor-layout.c (pending_sizes): Delete.
6136         (get_pending_sizes): Likewise.
6137         (put_pending_size): Likewise.
6138         (put_pending_sizes): Likewise.
6139         (variable_size): Do not call put_pending_size and tidy up.
6140         * function.h (struct function): Remove dont_save_pending_sizes_p.
6141         * lto-streamer-in.c (input_function): Do not stream it.
6142         * lto-streamer-out.c (output_function): Likewise.
6143         * tree-inline.c (initialize_cfun): Do not copy it.
6144         * c-decl.c (store_parm_decls): Do not set it.
6145         * omp-low.c (create_task_copyfn): Likewise.
6146         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6147
6148 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
6149
6150         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6151         conditions.
6152         (*movdf_internal): Ditto.
6153         (*movdf_internal_nointeger): Ditto.
6154         (*movsf_internal): Ditto.
6155
6156 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6157
6158         * c-decl.c (finish_decl): Don't call get_pending_sizes.
6159         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
6160         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
6161         (c_variable_size): Remove.
6162         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
6163         call put_pending_sizes.
6164         (get_parm_info): Add parameter expr.  Use it to set
6165         arg_info->pending_sizes.
6166         (store_parm_decls): Use arg_info->pending_sizes instead or calling
6167         get_pending_sizes.
6168         * c-parser.c (c_parser_parms_declarator): Update call to
6169         c_parser_parms_list_declarator.
6170         (c_parser_parms_list_declarator): Take parameter expr.  Update
6171         call to push_parm_decl.  Update recursive call.  Don't call
6172         get_pending_sizes.  Update calls to get_parm_info.
6173         (c_parser_objc_method_definition): Update calls to
6174         c_parser_objc_method_decl and objc_start_method_definition.
6175         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6176         (c_parser_objc_method_decl): Add parameter expr.  Update call to
6177         grokparm.
6178         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6179         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6180         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6181
6182 2011-05-05  Michael Hope  <michael.hope@linaro.org>
6183
6184         PR pch/45979
6185         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6186         __ARM_EABI__ hosts.
6187
6188 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6189
6190         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6191         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6192         (spu_output_mi_thunk): New function.
6193
6194 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6195
6196         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6197         targetm.asm_out.print_operand.
6198         * config/sol2.c: Include target.h.
6199
6200 2011-05-04  Jan Hubicka  <jh@suse.cz>
6201
6202         * ipa-inline.c (reset_edge_caches): New function.
6203         (update_caller_keys): Add check_inlinablity_for; do not
6204         reset edge caches; remove now unnecesary loop.
6205         (update_callee_keys): Add comments; reset node_growth_cache of callee.
6206         (update_all_callee_keys): Likewise.
6207         (inline_small_functions): Sanity check cache; update code
6208         recomputing it.
6209
6210 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
6211
6212         PR rtl-optimization/47612
6213         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6214         as the last insn of the sequence to be moved.
6215
6216 2011-05-04  Tobias Burnus  <burnus@net-b.de>
6217
6218         PR fortran/48864
6219         * doc/invoke.texi (Ofast): Document that it
6220         enables Fortran's -fno-protect-parens.
6221
6222 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6223
6224         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6225
6226 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
6227
6228         * stor-layout.c (variable_size): Do not issue errors.
6229
6230 2011-05-04  Richard Guenther  <rguenther@suse.de>
6231
6232         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6233         for array-ref indices.
6234         (tree_coverage_counter_addr): Likewise.
6235         (build_fn_info_type): Use size_int for index types.
6236         (build_gcov_info): Likewise.
6237
6238 2011-05-04  Richard Guenther  <rguenther@suse.de>
6239
6240         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6241         to build_int_cst.
6242         * c-typeck.c (really_start_incremental_init): Use bitsize_int
6243         for constructor indices.
6244         (push_init_level): Likewise.
6245
6246 2011-05-04  Richard Guenther  <rguenther@suse.de>
6247
6248         * explow.c (promote_mode): Move variable declarations before code.
6249
6250 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
6251
6252         * tree.h (build_function_type_array): Declare.
6253         (build_varargs_function_type_array): Declare.
6254         (build_function_type_vec, build_varargs_function_type_vec): Define.
6255         * tree.c (build_function_type_array_1): New function.
6256         (build_function_type_array): New function.
6257         (build_varargs_function_type_array): New function.
6258
6259 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
6260
6261         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6262         before setting STMT_VINFO_TYPE.
6263
6264 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6265
6266         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6267         instead of spu_pass_by_reference.
6268
6269 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6270
6271         * calls.c (emit_library_call_value_1): Invoke
6272         promote_function_mode hook on libcall arguments.
6273         * explow.c (promote_function_mode, promote_mode): Handle TYPE
6274         argument being NULL.
6275         * targhooks.c (default_promote_function_mode): Lisewise.
6276         * config/s390/s390.c (s390_promote_function_mode): Likewise.
6277         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6278
6279         * doc/tm.texi: Document that TYPE argument might be NULL.
6280
6281 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6282
6283         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6284
6285 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6286
6287         From Bernd Schmidt
6288         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6289
6290 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6291
6292         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6293         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6294         Move ...
6295         * mips-tfile.c: ... here.
6296         Don't include coretypes.h, tm.h, filenames.h.
6297         (saber_stop): Remove definition and all calls.
6298         [__SABER__]: Remove.
6299         (__LINE__): Remove default.
6300         (Size_t, Ptrdiff_t): Remove definitions.
6301         Replace by size_t, ptrdiff_t.
6302         [!MIPS_DEBUGGING_INFO]: Remove.
6303         (SHASH_SIZE, THASH_SIZE): Remove defaults.
6304         (progname): Add const.
6305         (STATIC): Remove.
6306         Replace all uses by static.
6307         (ALIGN_SYMTABLE_OFFSET): Remove default.
6308         * mips-tdump.c: Don't include coretypes.h, tm.h.
6309         Remove !MIPS_IS_STAB guard.
6310         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6311         $(TM_H), filenames.h dependencies.
6312         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6313
6314 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6315
6316         From Jie Zhang
6317         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6318         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6319
6320 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6321
6322         From Bernd Schmidt
6323         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6324         account and save/restore RETS.
6325         (PROFILE_BEFORE_PROLOGUE): Define.
6326         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
6327         the push insn to use predecrement.
6328
6329 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6330
6331         From Jie Zhang
6332         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6333
6334 2011-05-04  Nick Clifton  <nickc@redhat.com>
6335
6336         * config/mn10300/mn10300.c: Include cfgloop.h.
6337         (DUMP): New macro.
6338         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
6339         Lcc or a FLcc insn into the instruction stream.
6340         (mn10300_block_contains_call): New function.  Returns true if the
6341         given basic block contains a CALL insn.
6342         (mn10300_loop_contains_call_insn): New function.  Returns true if
6343         the given loop contains a CALL insn.
6344         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
6345         to use the SETLB and Lcc or FLcc insns.
6346         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6347         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6348         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
6349         disable the SETLB optimization.
6350         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6351         __SETLB__ or __NO_SETLB__.
6352         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6353         (movsf_internal): Handle MDR register.
6354         (cmpsi): Make visible.
6355         (setlb): New pattern.
6356         (Lcc): New pattern.
6357         (FLcc): New pattern.
6358
6359 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6360
6361         PR target/48860
6362         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6363         for reg<->xmm moves.
6364         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6365         (vec_concatv2di_rex64_sse): Ditto.
6366         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6367         (*vec_extractv2di_1_rex64): Ditto.
6368
6369         Revert:
6370         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6371
6372         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6373         reg<->xmm moves.
6374         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6375
6376 2011-05-04  Richard Guenther  <rguenther@suse.de>
6377
6378         * tree.h (int_const_binop): Remove notrunc argument.
6379         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
6380         create integer constants that are properly truncated.
6381         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6382         (const_binop): Remove zero notrunc argument to int_const_binop.
6383         (size_binop_loc): Likewise.
6384         (fold_div_compare): Likewise.
6385         (maybe_canonicalize_comparison_1): Likewise.
6386         (fold_comparison): Likewise.
6387         (fold_binary_loc): Likewise.
6388         (multiple_of_p): Likewise.
6389         * expr.c (store_constructor): Likewise.
6390         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6391         (maybe_fold_stmt_addition): Likewise.
6392         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6393         * stor-layout.c (layout_type): Likewise.
6394         * tree-data-ref.c (tree_fold_divides_p): Likewise.
6395         * tree-sra.c (build_ref_for_offset): Likewise.
6396         (build_user_friendly_ref_for_offset): Likewise.
6397         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6398         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6399         * tree-ssa-loop-niter.c (inverse): Likewise.
6400         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6401         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6402         * tree-switch-conversion.c (check_range): Likewise.
6403         (build_constructors): Likewise.
6404         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6405         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6406         (extract_range_from_assert): Likewise.
6407         (vrp_int_const_binop): Likewise.
6408         (extract_range_from_binary_expr): Likewise.
6409         (extract_range_from_unary_expr): Likewise.
6410         (check_array_ref): Likewise.
6411         (find_case_label_range): Likewise.
6412         (simplify_div_or_mod_using_ranges): Likewise.
6413         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6414         comparing case labels for merging.
6415
6416 2011-05-03  Mark Wielaard  <mjw@redhat.com>
6417
6418         * dwarf2out.c (debug_str_hash_forced): Removed.
6419         (gen_label_for_indirect_string): Removed.
6420         (get_debug_string_label): Removed.
6421         (AT_string_form): Generate label directly.
6422         (output_indirect_string): Test indirect_string_node for
6423         DW_FORM_strp instead of checking label and refcount.
6424         (prune_indirect_string): Removed.
6425         (prune_unused_types): Don't check debug_str_hash_forced or
6426         call prune_indirect_string.
6427
6428 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6429
6430         PR other/48093
6431         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6432
6433 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6434
6435         PR debug/47994
6436         PR debug/47919
6437         * combine.c (try_combine): Skip debug insns at m_split tests.
6438
6439 2011-04-26  Mark Wielaard  <mjw@redhat.com>
6440
6441         PR42288
6442         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6443         when info_section_emitted.
6444
6445 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
6446
6447         * config/mips/mips-opts.h: New.
6448         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6449         to mips-opts.h.
6450         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6451         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6452         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
6453         via opts pointer.
6454         * config/mips/mips.h (enum mips_code_readable_setting): Move to
6455         mips-opts.h.
6456         (mips_abi, mips_code_readable): Don't declare.
6457         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6458         (mabi=): Use Enum and Var.
6459         (mips_abi): New Enum and EnumValue entries.
6460         (mcode-readable=): Use Enum and Var.
6461         (mips_code_readable_setting): New Enum and EnumValue entries.
6462         (mr10k-cache-barrier=): Use Enum and Var.
6463         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6464
6465 2011-05-03  Jan Hubicka  <jh@suse.cz>
6466
6467         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6468         replace hash by pointer map.
6469         (cgraph_node_set_element_def, cgraph_node_set_element,
6470         const_cgraph_node_set_element, varpool_node_set_element_def,
6471         varpool_node_set_element, const_varpool_node_set_element): Remove.
6472         (free_cgraph_node_set, free_varpool_node_set): New function.
6473         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6474         * tree-emutls.c: Free varpool node set.
6475         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6476         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6477         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6478         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6479         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6480         Move here from ipa.c; implement using pointer_map
6481         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6482         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6483         debug_cgraph_node_set, varpool_node_set_new,
6484         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6485         dump_varpool_node_set, debug_varpool_node_set):
6486         Move to ipa-uitls.c.
6487         * passes.c (ipa_write_summaries): Update.
6488
6489 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6490
6491         From Mike Frysinger:
6492         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6493         bf542/bf544/bf547/bf548/bf549.
6494
6495 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
6496
6497         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6498
6499 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6500
6501         From Bernd Schmidt:
6502         * config/bfin/bfin.md (MOVCC): New mode_macro.
6503         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6504         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
6505         comments from generated assembly.
6506
6507 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6508
6509         From Bernd Schmidt
6510         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6511         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6512         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6513         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6514         * config/bfin/lib1funcs.asm (___muldi3): New function.
6515
6516 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6517
6518         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6519         build_function_type_list instead of build_function_type.
6520         Rearrange initialization of `args' to do so.
6521
6522 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6523
6524         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6525         instead of build_function_type.
6526
6527 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6528
6529         * config/rs6000/rs6000.c (spe_init_builtins): Call
6530         build_function_type_list instead of build_function_type.
6531         (paired_init_builtins, altivec_init_builtins): Likewise.
6532         (builtin_function_type): Likewise.
6533
6534 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6535
6536         * config/sh/sh.c (sh_media_init_builtins): Call
6537         build_function_type_list instead of build_function_type.
6538
6539 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6540
6541         * config/sparc/sparc.c (sparc_file_end): Call
6542         build_function_type_list instead of build_function_type.
6543
6544 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6545
6546         * config/alpha/alpha.c (alpha_init_builtins): Call
6547         build_function_type_list instead of build_function_type.
6548
6549 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6550
6551         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6552         build_function_type_list instead of build_function_type.
6553
6554 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6555
6556         * config/iq2000/i2000.c (iq2000_init_builtins): Call
6557         build_function_type_list instead of build_function_type.
6558         Delete `endlink' variable.
6559
6560 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6561
6562         * config/avr/avr.c (avr_init_builtins): Call
6563         build_function_type_list instead of build_function_type.
6564
6565 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6566
6567         * config/picochip/picochip.c (picochip_init_builtins): Call
6568         build_function_type_list instead of build_function_type.
6569         Delete `endlink' variable.
6570
6571 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6572
6573         * config/bfin/bfin.c (bfin_init_builtins): Call
6574         build_function_type_list instead of build_function_type.
6575
6576 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6577
6578         From Bernd Schmidt
6579         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6580         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
6581
6582 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6583
6584         From Jie Zhang:
6585         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6586         libbffastfp overrides libgcc when -mfast-fp.
6587
6588 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6589
6590         Originally from Bernd Schmidt
6591         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6592         * config/bfin/bfin.c (override_options): Test it and error if
6593         TARGET_FDPIC.
6594
6595 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6596
6597         Originally From Bernd Schmidt
6598         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6599         FD-PIC.
6600
6601 2011-05-03  Jeff Law  <law@redhat.com>
6602
6603         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6604         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6605         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6606         than accessing AUX field directly.  Free the AUX field before
6607         clearing it.
6608         (thread_block, thread_through_loop_header): Likewise.
6609         (thread_single_edge, mark_threaded_blocks): Likewise.
6610         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
6611         (register_jump_thread): Do not attempt to thread to a NULL edge.
6612
6613 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
6614
6615         * function.c (init_function_start): Call decide_function_section.
6616         * varasm.c (decide_function_section): New function.
6617         (assemble_start_function): When not using
6618         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6619         or first_function_block_is_cold.
6620         * rtl.h (decide_function_section): Declare.
6621
6622 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
6623             Jakub Jelinek  <jakub@redhat.com>
6624
6625         PR target/48774
6626         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6627         only succeed if req_mode is the same as set_mode.
6628
6629 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
6630
6631         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6632         * genemit.c (gen_exp): Handle RETURN.
6633         * emit-rtl.c (verify_rtx_sharing): Likewise.
6634         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6635         * rtl.c (copy_rtx): RETURN is shared.
6636         * rtl.h (enum global_rtl_index): Add GR_RETURN.
6637         (ret_rtx): New.
6638         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6639         * config/s390/s390.c (s390_emit_epilogue): Likewise.
6640         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6641         * config/cris/cris.c (cris_expand_return): Likewise.
6642         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6643         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6644         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6645         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6646         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6647         Likewise.
6648         * config/v850/v850.c (expand_epilogue): Likewise.
6649         * config/bfin/bfin.c (bfin_expand_call): Likewise.
6650         * config/arm/arm.md (epilogue): Likewise.
6651         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6652         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6653         variable to ret_reg.
6654
6655 2011-05-03  Richard Guenther  <rguenther@suse.de>
6656
6657         PR lto/48846
6658         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6659         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6660         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6661
6662 2011-05-03  Richard Guenther  <rguenther@suse.de>
6663
6664         * c-decl.c (grokdeclarator): Instead of looking at
6665         TREE_OVERFLOW check if the constant fits in the index type.
6666
6667 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6668
6669         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6670         (vec_store_lanes<mode><mode>): Likewise.
6671
6672 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6673
6674         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6675         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6676         convert_optab_index values.
6677         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6678         * genopinit.c (optabs): Initialize the new optabs.
6679         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6680         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6681         (expand_STORE_LANES): New functions.
6682         * tree.h (build_array_type_nelts): Declare.
6683         * tree.c (build_array_type_nelts): New function.
6684         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6685         (vect_model_load_cost): Likewise.
6686         (vect_store_lanes_supported, vect_load_lanes_supported)
6687         (vect_record_strided_load_vectors): Declare.
6688         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6689         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6690         (vect_transform_strided_load): Split out statement recording into...
6691         (vect_record_strided_load_vectors): ...this new function.
6692         * tree-vect-stmts.c (create_vector_array, read_vector_array)
6693         (write_vector_array, create_array_ref): New functions.
6694         (vect_model_store_cost): Add store_lanes_p argument.
6695         (vect_model_load_cost): Add load_lanes_p argument.
6696         (vectorizable_store): Try to use store-lanes functions for
6697         interleaved stores.
6698         (vectorizable_load): Likewise load-lanes and loads.
6699         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6700         to vect_model_store_cost.
6701         (vect_build_slp_tree): Likewise vect_model_load_cost.
6702
6703 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6704
6705         * hooks.h (hook_bool_mode_uhwi_false): Declare.
6706         * hooks.c (hook_bool_mode_uhwi_false): New function.
6707         * target.def (array_mode_supported_p): New hook.
6708         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6709         * doc/tm.texi: Regenerate.
6710         * stor-layout.c (mode_for_array): New function.
6711         (layout_type): Use it.
6712         * config/arm/arm.c (arm_array_mode_supported_p): New function.
6713         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6714
6715 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
6716
6717         PR target/48723
6718         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6719         for -fstack-check if the size to allocate is negative.
6720
6721 2011-05-02  Lawrence Crowl  <crowl@google.com>
6722
6723         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6724         (timevar_cond_start): New for starting a timer only when it is not
6725         already running.
6726         (timevar_cond_stop): New for stopping a timer when it was not already
6727         running.
6728
6729         * timevar.c (timevar_stop): Enable start/stop timers to start again.
6730         (timevar_cond_start): New as above.
6731         (timevar_cond_stop): New as above.
6732
6733         * timevar.def: Add start/stop timers for compiler phases,
6734         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6735         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6736         and TV_PHASE_FINALIZE.
6737         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6738         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6739         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6740         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6741         Make unused TV_OVERLOAD into a start/stop timer.
6742
6743         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6744         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6745         to indicate that they are start/stop timers.
6746
6747         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6748         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6749         Move initialization to do_compile.
6750         (do_compile): Add initialization from above.
6751         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6752
6753         * c-decl.c (c_write_global_declarations): Add start/stop of
6754         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6755
6756         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6757         or TV_PARSE_INLINE, as appropriate.
6758         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6759         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6760
6761 2011-05-02  Jason Merrill  <jason@redhat.com>
6762
6763         PR c++/40975
6764         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6765
6766 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
6767
6768         PR c/35445
6769         * c-decl.c (finish_decl): Only create a composite if the types are
6770         compatible.
6771
6772 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
6773
6774         * config/fr30/fr30-protos.h (Mmode): Don't define.
6775         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
6776         definition where used.
6777         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6778         define.  Expand definitions where used.
6779         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6780         Expand definitions where used.
6781         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6782         rx_function_arg, rx_function_arg_advance,
6783         rx_function_arg_boundary): Expand definitions of those macros.
6784         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
6785         definition where used.
6786
6787 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6788
6789         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6790         reg<->xmm moves.
6791         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6792         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
6793         with *movv2sf_internal_rex64_avx.
6794         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6795         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6796         Use %v prefix in insn mnemonic to handle TARGET_AVX.
6797         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
6798         "vex" in "prefix" attribute calculation.
6799         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
6800
6801 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
6802
6803         PR target/47951
6804         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6805         inputs match the output.
6806
6807 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
6808
6809         PR target/47955
6810         * config/m68k/m68k.c (m68k_expand_prologue): Set
6811         current_function_static_stack_size.
6812
6813 2011-05-02   Jan Hubicka  <jh@suse.cz>
6814
6815         * lto-streamer.c (lto_streamer_cache_insert_1,
6816         lto_streamer_cache_lookup, lto_streamer_cache_create,
6817         lto_streamer_cache_delete): Use pointer map instead of hashtable.
6818         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6819
6820 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
6821
6822         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6823         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6824         config/m68k/t-opts: New files.
6825         * config/m68k/m68k-tables.opt: New file (generated).
6826         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6827         extra_options and m68k/t-opts to tmake_file.
6828         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6829         (all_isas): Initialize using m68k-isas.def.
6830         (all_microarchs): Initialize using m68k-microarchs.def.
6831         (m68k_find_selection): Remove.
6832         (m68k_handle_option): Don't assert that global structures are in
6833         use.  Use error_at.  Access variables via opts pointer.  Don't
6834         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
6835         directly for -m68020-40 and -m68020-60.
6836         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6837         m68k_tune_entry here.
6838         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6839         to m68k-opts.h.
6840         (m68k_library_id_string): Remove declaration.
6841         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6842         (m68k_library_id_string): New Variable.
6843         (march=, mcpu=, mtune=): Use Enum and Var.
6844
6845 2011-05-02  Richard Guenther  <rguenther@suse.de>
6846
6847         * varasm.c (output_constructor_regular_field): Compute zero-based
6848         index with double-ints.  Make sure to ICE instead of producing
6849         wrong code.
6850         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6851         in asserts.  Properly use a signed type.
6852
6853 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6854
6855         * config/i386/sse.md (V): New mode iterator.
6856         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
6857         TARGET_SSE2.
6858         (V_256): Rename from AVX256MODE.
6859         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
6860         condition to all users.
6861         (VF1): Ditto.
6862         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
6863         condition to all users.
6864         (VF_128): Make V4SF mode unconditional.
6865         (VF_256): Rename from AVX256MODEF2P.
6866         (VI4F_128): Rename from SSEMODE4S.
6867         (VI8F_128): Rename from SSEMODE2D.
6868         (VI4F_256): Rename from AVX256MODE8P.
6869         (VI8F_256): Rename from AVX256MODE4P.
6870         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6871         (ssescalarmodesuffix): Remove SF and DF modes.
6872         (SSEMODE124): Remove.
6873         (SSEMODE1248): Ditto.
6874         (SSEMODEF2P): Ditto.
6875         (AVXMODEF2P): Ditto.
6876         (AVXMODEFDP): Ditto.
6877         (AVXMODEFSP): Ditto.
6878         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6879         unconditional.
6880         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
6881         unconditional.
6882         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6883         xop_pcmov_<mode>256.  Use V mode iterator.
6884
6885         Adjust RTX patterns globally for renamed mode attributes.
6886
6887 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6888
6889         * haifa-sched.c (sched_emit_insn): Emit insn before first
6890         non-scheduled insn.  Inform back-end about new insn.  Add
6891         new insn to scheduled_insns list.
6892
6893 2011-05-02  Richard Guenther  <rguenther@suse.de>
6894
6895         PR tree-optimization/48822
6896         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6897         (process_scc): Indicate which iteration we start.
6898
6899 2011-05-02  Jan Hubicka  <jh@suse.cz>
6900
6901         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6902         (lto_section_overrun): New.
6903         * lto-section-out.c (append_block): Rename to ...
6904         (lto_append_block): ... this one; export.
6905         (lto_output_1_stream): Move lto lto-streamer.h
6906         (lto_output_data_stream): Update.
6907         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6908         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6909         functions.
6910
6911 2011-05-02  Richard Guenther  <rguenther@suse.de>
6912
6913         * tree.c (tree_code_counts): New global array.
6914         (record_node_allocation_statistics): Count individual tree codes.
6915         (dump_tree_statistics): Dump individual code stats.
6916
6917 2011-05-01  Jan Hubicka  <jh@suse.cz>
6918
6919         * ipa-inline.c (caller_growth_limits): Fix thinko when
6920         looking for largest stack frame.
6921         * ipa-inline.h (dump_inline_summary): Declare.
6922         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6923         on stack usage.
6924         (dump_inline_summary): Export.
6925         (debug_inline_summary): Declare as DEBUG_FUNCTION.
6926
6927 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
6928
6929         * reginfo.c (memory_move_cost): Change rclass argument type form
6930         'enum reg_class' to reg_class_t.
6931         * reload.h (memory_move_cost): Update prototype.
6932         * postreload.c reload_cse_simplify_set): Change type dclass var to
6933         reg_class_t.
6934         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6935         Update prototype.
6936         (ira_allocate_and_set_costs): Change aclass argument type form
6937         'enum reg_class' to reg_class_t.
6938         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6939         Change aclass argument type to reg_class_t.
6940         (update_conflict_hard_reg_costs): Change type aclass and pref vars
6941         to reg_class_t.
6942         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
6943         memory_move_cost call.
6944
6945         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
6946         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
6947         Change type tmp var to reg_class_t.
6948
6949 2011-04-30  Jan Hubicka  <jh@suse.cz>
6950
6951         * ipa-inline.c (can_inline_edge_p): Disregard limits when
6952         inlining into function with flatten attribute.
6953         (want_inline_small_function_p): Be more realistic about inlining
6954         cold calls where callee size grows.
6955
6956 2011-04-30  Jan Hubicka  <jh@suse.cz>
6957
6958         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
6959         flags.
6960
6961 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
6962
6963         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6964         PRINT_OPERAND_PUNCT_VALID_P): Remove.
6965         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
6966         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
6967         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6968         (print_operand): Rename to...
6969         (sparc_print_operand): ...this. Make static. Adjust
6970         sparc_print_operand function call.
6971         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
6972         functions.
6973
6974 2011-04-30  Jan Hubicka  <jh@suse.cz>
6975
6976         PR middle-end/48752
6977         * ipa-inline.c (early_inliner): Disable when doing late
6978         addition of function.
6979
6980 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
6981
6982         * dwarf2out.c (get_address_mode): New inline.
6983         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
6984         if not dwarf_strict emit
6985         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
6986         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
6987         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
6988         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
6989         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
6990         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
6991         mem_loc_descriptor callers.
6992         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6993         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
6994         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
6995         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
6996         (base_types): New variable.
6997         (get_base_type_offset, calc_base_type_die_sizes,
6998         base_type_for_mode, mark_base_types, base_type_cmp,
6999         move_marked_base_types): New functions.
7000         (calc_die_sizes): Assert that die_offset is 0 or equal to
7001         next_die_offset.
7002         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7003         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
7004         callers.  If not dwarf_strict, call mem_loc_descriptor even for
7005         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7006         (gen_subprogram_die): Don't give up on call site parameters
7007         with non-integral or large integral modes.  Adjust
7008         mem_loc_descriptor callers.
7009         (prune_unused_types): Call prune_unused_types_mark on base_types
7010         vector entries.
7011         (resolve_addr): Call mark_base_types.
7012         (dwarf2out_finish): Call move_marked_base_types.
7013
7014         PR tree-optimization/48809
7015         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7016         type.
7017         (gen_inbound_check): Don't compute index_expr - range_min in utype
7018         again, instead reuse SSA_NAME initialized in build_arrays.
7019         Remove two useless gsi_for_stmt calls.
7020
7021 2011-04-29  Jeff Law  <law@redhat.com>
7022
7023         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7024
7025 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7026
7027         * cgraph.h (cgraph_postorder): Remove declaration.
7028         * ipa-utils.h (ipa_free_postorder_info): Declare.
7029         (ipa_reverse_postorder): Likewise.
7030         * cgraphunit.c: Include ipa-utils.h.
7031         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7032         * ipa-inline.c: Include ipa-utils.h.
7033         (ipa_inline): Update call to ipa_reverse_postorder.
7034         * ipa-pure-const.c (propagate_pure_const): Update call to
7035         ipa_reduced_postorder and ipa_print_order.  Call
7036         ipa_free_postorder_info to clean up.
7037         (propagate_nothrow): Likewise.
7038         * ipa-reference.c (propagate): Removed a useless call to
7039         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7040         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
7041         * ipa.c: Include ipa-utils.h.
7042         (ipa_profile): Update call to ipa_reverse_postorder.
7043         (cgraph_postorder): Moved to...
7044         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7045         (ipa_utils_print_order): Renamed to ipa_print_order.
7046         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7047         comments.
7048         (ipa_free_postorder_info): New function.
7049         * passes.c: Include ipa-utils.h.
7050         (do_per_function_toporder): Update call to ipa_reverse_postorder.
7051         (ipa_write_summaries): Likewise.
7052         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7053         (cgraphunit.o): Likewise.
7054         (ipa.o): Likewise.
7055         (ipa-inline.o): Likewise.
7056
7057 2011-04-29  Jan Hubicka  <jh@suse.cz>
7058
7059         * gcc.dg/tree-ssa/inline-10.c: New testcase.
7060         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7061         * ipa-inline.h (clause_t): Turn into unsigned int.
7062         * ipa-inline-analysis.c (add_clause): Do more simplification.
7063         (and_predicates): Shortcut more cases.
7064         (predicates_equal_p): Move forward; check that clauses are properly
7065         ordered.
7066         (or_predicates): Shortcut more cases.
7067         (edge_execution_predicate): Rewrite as...
7068         (set_cond_stmt_execution_predicate): ... this function; handle
7069         __builtin_constant_p.
7070         (set_switch_stmt_execution_predicate): New .
7071         (compute_bb_predicates): New.
7072         (will_be_nonconstant_predicate): Update TODO.
7073         (estimate_function_body_sizes): Use compute_bb_predicates
7074         and free them later, always try to estimate if stmt is constant.
7075         (estimate_time_after_inlining, estimate_size_after_inlining):
7076         Gracefully handle optimized out edges.
7077         (read_predicate): Fix off by one error.
7078
7079 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7080
7081         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7082
7083 2011-04-27  Xinliang David Li  <davidxl@google.com>
7084
7085         * tree-profile.c (init_ic_make_global_vars): Set
7086         tls attribute on ic vars.
7087         * coverage.c (coverage_end_function): Initialize
7088         function_list with zero.
7089
7090 2011-04-29  Richard Guenther  <rguenther@suse.de>
7091
7092         * builtins.c (fold_builtin_classify_type): Use integer_type_node
7093         for the type of the result.
7094         (fold_builtin_isascii): Likewise.
7095         (fold_builtin_toascii): Use integer_type_node where appropriate.
7096         (fold_builtin_logb): Likewise.
7097         (fold_builtin_frexp): Likewise.
7098         (fold_builtin_strstr): Likewise.
7099         (fold_builtin_strpbrk): Likewise.
7100         (fold_builtin_fputs): Likewise.
7101         (fold_builtin_sprintf): Likewise.
7102         (fold_builtin_snprintf): Likewise.
7103         (fold_builtin_printf): Likewise.
7104         (do_mpfr_remquo): Use a proper type for the assigned constant.
7105         (do_mpfr_lgamma_r): Likewise.
7106         * dwarf2out.c (resolve_one_addr): Use size_int.
7107         * except.c (init_eh): Likewise.
7108         (assign_filter_values): Use integer_type_node for filter values.
7109         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7110         indices.
7111         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7112         for EH region numbers.
7113         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7114         for the shift amount.
7115
7116 2011-04-29  Richard Guenther  <rguenther@suse.de>
7117
7118         * expr.h (expand_shift): Rename to ...
7119         (expand_variable_shift): ... this.
7120         (expand_shift): Take a constant shift amount.
7121         * expmed.c (expand_shift): Rename to ...
7122         (expand_variable_shift): ... this.
7123         (expand_shift): New wrapper around expand_variable_shift.
7124         * expr.c (convert_move, emit_group_load_1, emit_group_store,
7125         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7126         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7127         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7128         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7129         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7130         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7131         emit_store_flag_1, emit_store_flag): Likewise.
7132         * builtins.c (expand_builtin_signbit): Likewise.
7133         * calls.c (load_register_parameters): Likewise.
7134         * function.c (assign_parm_setup_block): Likewise.
7135         * lower-subreg.c (resolve_shift_zext): Likewise.
7136         * optabs.c (widen_bswap, expand_abs_nojump,
7137         expand_one_cmpl_abs_nojump, expand_float): Likewise.
7138         * spu/spu.c (spu_expand_extv): Likewise.
7139         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7140
7141 2011-04-29  Richard Guenther  <rguenther@suse.de>
7142
7143         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7144         for the remapped region number.
7145         * predict.c (build_predict_expr): Use integer_type_node for the
7146         predict kind.
7147         * fold-const.c (fold_binary_loc): Use integer_type_node for
7148         the shift amount.  Use a proper type for the PLUS_EXPR operand.
7149
7150 2011-04-29  Michael Matz  <matz@suse.de>
7151
7152         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7153         other trees that just builtins.
7154         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7155
7156 2011-04-29  Richard Guenther  <rguenther@suse.de>
7157
7158         * tree-nested.c (get_trampoline_type): Use size_int.
7159         (get_nl_goto_field): Likewise.
7160         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7161         for all indexes.
7162         (lower_eh_constructs_2): Likewise.
7163         (lower_resx): Likewise.
7164         (lower_eh_dispatch): Likewise.
7165         * tree-mudflap.c (mf_build_string): Use size_int.
7166         (mudflap_register_call): Use integer_type_node for the flag.
7167         (mudflap_enqueue_constant): Use size_int.
7168         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7169         instead of rebuilding it.
7170
7171 2011-04-29  Richard Guenther  <rguenther@suse.de>
7172
7173         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7174         Handle OBJ_TYPE_REF.
7175         (find_func_aliases_for_call): Use it more consistently.
7176
7177 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
7178
7179         * haifa-sched.c (last_nondebug_scheduled_insn): New.
7180         (rank_for_schedule): Use it.
7181         (schedule_block): Set it.
7182
7183 2011-04-28  David Li  <davidxl@google.com>
7184
7185         * tree.c (crc32_string): Use crc32_byte.
7186         (crc32_byte): New function.
7187         * tree.h (crc32_byte): New function.
7188         * gcov.c (read_graph_file): Handle new cfg_cksum.
7189         (read_count_file): Ditto.
7190         * profile.c (instrument_values): Ditto.
7191         (get_exec_counts): Ditto.
7192         (read_profile_edge_counts): Ditto.
7193         (compute_branch_probabilities): Ditto.
7194         (compute_value_histograms): Ditto.
7195         (branch_prob): Ditto.
7196         (end_branch_prob): Ditto.
7197         * coverage.c (read_counts_file): Ditto.
7198         (get_coverage_counts): Ditto.
7199         (tree_coverage_counter_addr): Ditto.
7200         (coverage_checksum_string): Ditto.
7201         (coverage_begin_output): Ditto.
7202         (coverage_end_function): Ditto.
7203         (build_fn_info_type): Ditto.
7204         (build_fn_info_value): Ditto.
7205         * libgcov.c (gcov_exit): Ditto.
7206         * gcov-dump.c (tag_function): Ditto.
7207         (compute_checksum): Remove.
7208
7209 2011-04-29  Alan Modra  <amodra@gmail.com>
7210
7211         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7212         unspec plus offset.  Tidy macho code.
7213
7214 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7215
7216         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7217         node instead of a decl.  Update all callers.
7218         * cgraph.h: Update declaration.
7219
7220 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
7221
7222         PR tree-optimization/48765
7223         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7224         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7225         to indicate if loop aware SLP is being used.  Scan the statements
7226         and update the vectorization factor according to the type of
7227         vectorization before statement analysis.
7228         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7229         pass it to vect_analyze_loop_operations.
7230         (vectorizable_reduction): Set number of copies to 1 in case of pure
7231         SLP statement.
7232         * tree-vect-stmts.c (vectorizable_conversion,
7233         vectorizable_assignment, vectorizable_shift,
7234         vectorizable_operation, vectorizable_type_demotion,
7235         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7236         Likewise.
7237         (vectorizable_condition): Move the check that it is not SLP
7238         vectorization before the number of copies check.
7239         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7240         to vectorize the loop using SLP.
7241
7242 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
7243
7244         PR middle-end/48597
7245         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7246         inline asm.
7247
7248 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
7249
7250         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7251         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7252         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7253         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7254         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7255         linux*.h headers.
7256         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7257         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7258         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7259         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7260         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7261         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7262         REG_NAME.
7263         * config/i386/linux.h (REG_NAME): Don't define.
7264         * config/i386/linux64.h (REG_NAME): Don't define.
7265         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7266         Undefine before defining.
7267
7268 2011-04-28  Jan Hubicka  <jh@suse.cz>
7269
7270         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7271         nonconstant_names array.
7272         (estimate_function_body_sizes): Build nonconstant_names array; handle
7273         BUILT_IN_CONSTANT_P.
7274
7275 2011-04-28  Richard Guenther  <rguenther@suse.de>
7276
7277         PR bootstrap/48804
7278         Revert
7279         2011-04-28  Richard Guenther  <rguenther@suse.de>
7280
7281         * tree-ssa-structalias.c (solve_constraints): Build succ graph
7282         as late as possible.
7283
7284 2011-04-28  Richard Guenther  <rguenther@suse.de>
7285
7286         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7287         (debug_constraint): Do it here.
7288         (dump_constraints): And here.
7289         (rewrite_constraints): And here.
7290         (dump_constraint_edge): Remove.
7291         (dump_constraint_graph): Rewrite to produce DOT output.
7292         (solve_constraints): Build succ graph as late as possible.
7293         Dump constraint graphs before and after solving.
7294
7295 2011-04-28  Richard Guenther  <rguenther@suse.de>
7296
7297         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7298         New function split out from ...
7299         (find_func_aliases): ... here.  Call it.
7300         (find_func_aliases_for_call): Likewise.
7301
7302 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7303
7304         * internal-fn.h (internal_fn_name_array): Declare.
7305         (internal_fn_flags_array): Likewise.
7306
7307 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7308
7309         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
7310         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7311         Move from sse.md.
7312         (ssemodefsuffix): Remove.
7313         (ssevecmodesuffix): New mode attribute.
7314         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7315         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7316         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7317         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7318         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7319         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7320         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7321         ssemodesuffix mode attribute.
7322         (float splitters): Use ssevecmodesuffix mode attribute.
7323         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7324         (sseinsmode): Rename from avxvecmode.
7325         (avxsizesuffix): Rename from avxmodesuffix.
7326         (sseintvecmode): Rename from avxpermvecmode.
7327         (ssedoublevecmode): Rename from ssedoublesizemode.
7328         (ssehalfvecmode): Rename from avxhalfvecmode.
7329         (ssescalarmode): Rename from avxscalarmode.
7330         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7331         templates for ssemodesuffix mode attribute.
7332         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7333         mode attribute.
7334
7335         Adjust RTX patterns globally for renamed mode attributes.
7336
7337 2011-04-27  Jan Hubcika  <jh@suse.cz>
7338
7339         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7340         * ipa-inline-analysis.c: Include alloc-pool.h.
7341         (edge_predicate_pool): New.
7342         (trye_predicate_p): New function
7343         (false_predicate_p): New function.
7344         (add_clause): Sanity check that false clauses are "optimized";
7345         never add clauses to predicate that is already known to be false.
7346         (and_predicate): Use flase_predicate_p.
7347         (evaulate_predicate): Rename to ...
7348         (evaluate_predicate): ... this one; update all callers; assert
7349         that false is not listed among possible truths.
7350         (dump_predicate): Use true_predicate_p.
7351         (account_size_time): Use false_predicate_p.
7352         (evaulate_conditions_for_edge): Rename to ...
7353         (evaluate_conditions_for_edge) ... this one.
7354         (edge_set_predicate): New function.
7355         (inline_edge_duplication_hook): Duplicate edge predicates.
7356         (inline_edge_removal_hook): Free edge predicates.
7357         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7358         (dump_inline_summary): Update.
7359         (estimate_function_body_sizes): Set edge predicates.
7360         (estimate_calls_size_and_time): Handle predicates.
7361         (estimate_callee_size_and_time): Update.
7362         (remap_predicate): Add toplev_predicate; update comment.
7363         (remap_edge_predicates): New function.
7364         (inline_merge_summary): Compute toplev predicate; update.
7365         (read_predicate): New function.
7366         (read_inline_edge_summary): Use it.
7367         (inline_read_section): Likewise.
7368         (write_predicate): New function.
7369         (write_inline_edge_summary): Use it.
7370         (inline_write_summary): Likewise.
7371         (inline_free_summary): Free alloc pool and edge summary vec.
7372
7373 2011-04-27  Richard Guenther  <rguenther@suse.de>
7374
7375         * tree-ssa-structalias.c (changed_count): Remove.
7376         (changed): Use a bitmap.
7377         (unify_nodes): Adjust.
7378         (do_sd_constraint): Likewise.
7379         (do_ds_constraint): Likewise.
7380         (do_complex_constraint): Likewise.
7381         (solve_graph): Likewise.
7382
7383 2011-04-27  Jan Hubicka  <jh@suse.cz>
7384
7385         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7386
7387 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7388
7389         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7390         (avx_vperm2f128_*_operand): Ditto.
7391         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7392         Use avx_vpermilp_parallel in insn condition.
7393         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7394         Use avx_vperm2f128_parallel in insn condition.
7395
7396 2011-04-27  Richard Guenther  <rguenther@suse.de>
7397
7398         * Makefile.in (tree-ssa-structalias.o): Remove
7399         gt-tree-ssa-structalias.h dependency.
7400         (GTFILES): Remove tree-ssa-structalias.c.
7401         * tree.c (allocate_decl_uid): New function.
7402         (make_node_stat): Use it.
7403         (copy_node_stat): Likewise.
7404         * tree.h (allocate_decl_uid): Declare.
7405         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7406         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7407         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7408         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7409         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7410         (struct heapvar_map): Likewise.
7411         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7412         heapvar_insert): Likewise.
7413         (make_heapvar_for): Rename to ...
7414         (make_heapvar): ... this.  Simplify.
7415         (fake_var_decl_obstack): New global var.
7416         (build_fake_var_decl): New function.
7417         (make_constraint_from_heapvar): Adjust.
7418         (handle_lhs_call): Likewise.
7419         (create_function_info_for): Likewise.
7420         (intra_create_variable_infos): Likewise.
7421         (init_alias_vars): Allocate fake_var_decl_obstack.
7422         (init_alias_heapvars, delete_alias_heapvars): Remove.
7423         (compute_points_to_sets): Do not call init_alias_heapvars.
7424         (ipa_pta_execute): Likewise.
7425         (delete_points_to_sets): Free fake_var_decl_obstack.
7426
7427 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7428
7429         * config/spu/divmovti4.c (union qword_UTItype): New data type.
7430         (si_from_UTItype, si_to_UTItype): New functions.
7431         (__udivmodti4): Use them to implement type-punning.
7432         * config/spu/multi3.c (union qword_TItype): New data type.
7433         (si_from_TItype, si_to_TItype): New functions.
7434         (__multi3): Use them to implement type-punning.
7435
7436 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7437
7438         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7439
7440 2011-04-27  Jan Hubicka  <jh@suse.cz>
7441
7442         * ipa-prop.c (function_insertion_hook_holder): New holder.
7443         (ipa_add_new_function): New function.
7444         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7445         Register/deregister holder.
7446
7447 2011-04-27  Richard Guenther  <rguenther@suse.de>
7448
7449         PR tree-optimization/48772
7450         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7451
7452 2011-04-27  Richard Guenther  <rguenther@suse.de>
7453
7454         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7455         TARGET_MEM_REF handling.
7456
7457 2011-04-27  Nick Clifton  <nickc@redhat.com>
7458
7459         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7460         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7461         (REG_CLASS_NAMES): Likewise.
7462         (REG_CLASS_CONTENTS): Likewise.
7463         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7464         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7465         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
7466         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
7467         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
7468         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7469         duplicate register classes.
7470         (frv_class_likely_spilled_p): Likewise.
7471         (frv_register_move_cost): Likewise.
7472
7473         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7474         end of the regno_reg_class array.
7475
7476 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
7477
7478         PR c/48742
7479         * c-typeck.c (build_binary_op): Don't wrap arguments if
7480         int_operands is true.
7481
7482 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
7483
7484         PR target/48767
7485         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7486         targetm.calls.must_pass_in_stack for void type.
7487
7488 2011-04-26  Jan Hubicka  <jh@suse.cz>
7489
7490         * cgraphbuild.c (build_cgraph_edges): Update call
7491         of cgraph_create_edge and cgraph_create_indirect_edge.
7492         * cgraph.c (cgraph_create_edge_including_clones,
7493         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7494         cgraph_update_edges_for_call_stmt_node): Do not take nest
7495         argument; do not initialize call_stmt_size/time.
7496         (dump_cgraph_node): Do not dump nest.
7497         (cgraph_clone_edge): Do not take loop_nest argument;
7498         do not propagate it; do not clone call_stmt_size/time.
7499         (cgraph_clone_node): Likewise.
7500         (cgraph_create_virtual_clone): Update.
7501         * cgraph.h (struct cgraph_edge): Remove
7502         call_stmt_size/call_stmt_time/loop_nest.
7503         (cgraph_create_edge, cgraph_create_indirect_edge,
7504         cgraph_create_edge_including_clones, cgraph_clone_node): Update
7505         prototype.
7506         * tree-emutls.c (gen_emutls_addr): Update.
7507         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7508         loop_nest; handle indirect calls, too.
7509         (clone_inlined_nodes): Do not care about updating inline summaries.
7510         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7511         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7512         stream call_stmt_size/call_stmt_time/loop_nest.
7513         * ipa-inline.c (edge_badness): Update.
7514         (ipa_inline): dump summaries after inlining.
7515         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7516         New.
7517         (inline_edge_summary): New function.
7518         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7519         (inline_edge_removal_hook): Handle edge summaries.
7520         (inline_edge_duplication_hook): New hook.
7521         (inline_summary_alloc): Alloc hooks.
7522         (initialize_growth_caches): Do not register removal hooks.
7523         (free_growth_caches); Do not free removal hook.
7524         (dump_inline_edge_summary): New function.
7525         (dump_inline_summary): Use it.
7526         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7527         (inline_update_callee_summaries): New function.
7528         (inline_merge_summary): Use it.
7529         (do_estimate_edge_time, do_estimate_edge_growth): Update.
7530         (read_inline_edge_summary): New function.
7531         (inline_read_section): Use it.
7532         (write_inline_edge_summary): New function.
7533         (inline_write_summary): Use it.
7534         (inline_free_summary): Free edge new holders.
7535         * tree-inline.c (copy_bb): Update.
7536
7537 2011-04-26  Jason Merrill  <jason@redhat.com>
7538
7539         * tree-eh.c (lower_try_finally_switch): Create the label along with
7540         the CASE_LABEL_EXPR.
7541
7542 2011-04-26  David S. Miller  <davem@davemloft.net>
7543             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7544
7545         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7546         * configure: Regenerate.
7547
7548 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7549
7550         PR target/48258
7551         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7552         reduction.
7553         (VEC_reduc): New code iterator and splitters for vector reduction.
7554         (VEC_reduc_name): Ditto.
7555         (VEC_reduc_rtx): Ditto.
7556         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7557         (reduc_<VEC_reduc_name>_v4sf): Ditto.
7558
7559         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7560         support for extracting SF on VSX.
7561
7562         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7563         generating xscvspdp.
7564         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7565         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7566         double add, minimum, maximum vector reduction.
7567         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7568         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7569         optimize double vector reduction.
7570         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7571
7572 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
7573
7574         * config/fr30/fr30.h (inhibit_libc): Don't define.
7575         * config/m32r/m32r-protos.h: Correct comment.
7576         * config/v850/v850.h (GHS_default_section_names,
7577         GHS_current_section_names): Use tree, not union tree_node *.
7578
7579 2011-04-26  Xinliang David Li  <davidxl@google.com>
7580
7581         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7582         * c-family/c-opts.c (c_common_handle_option): Set
7583         warn_maybe_uninitialized.
7584         * opts.c (common_handle_option): Ditto.
7585         * common.opt:  New option.
7586         * tree-ssa.c (warn_uninit): Add one more parameter.
7587         (warn_uninitialized_var): Pass warning code.
7588         * tree-flow.h: Interface change.
7589
7590 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7591
7592         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7593         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7594         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7595
7596 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7597
7598         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7599         * config/mips/mips.opt (mmips-tfile): Remove.
7600
7601         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7602         mips-tdump reference to ...
7603         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
7604         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7605         reference by Tru64 UNIX.
7606
7607 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
7608
7609         PR debug/48768
7610         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7611         is error_mark_node, set value to NULL.
7612
7613         PR tree-optimization/48734
7614         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7615         if return value from maybe_fold_*_comparsions isn't something
7616         the code is prepared to handle.
7617
7618 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
7619
7620         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7621         mode check.
7622         (ext_QIreg_nomode_operands): Remove.
7623         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7624         (*andsi_1): Ditto.
7625         (*andhi_1): Ditto.
7626
7627 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
7628
7629         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7630
7631 2011-04-26  Richard Guenther  <rguenther@suse.de>
7632
7633         * c-typeck.c (build_unary_op): Do not expand array-refs via
7634         pointer arithmetic.  Only adjust qualifiers for function types.
7635
7636 2011-04-26  Richard Guenther  <rguenther@suse.de>
7637
7638         PR middle-end/48694
7639         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7640         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7641         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
7642         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7643
7644 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
7645
7646         * doc/extend.texi: Document __underlying_type.
7647
7648 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
7649
7650         * config/rs6000/titan.md (automata_option "progress"): Remove.
7651
7652 2011-04-25  Jeff Law  <law@redhat.com>
7653
7654         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7655
7656 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7657
7658         * system.h (ENUM_BITFIELD): Remove.
7659
7660 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
7661             Eric Botcazou  <ebotcazou@adacore.com>
7662
7663         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7664         for STORE_FLAG_VALUE==-1 case.
7665
7666 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
7667
7668         PR target/43804
7669         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7670         LEGITIMATE_PIC_OPERAND_P.
7671
7672 2011-04-24  Jan Hubicka  <jh@suse.cz>
7673
7674         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7675         WPA hack.
7676         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7677         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7678         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7679         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7680         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7681         Sanity check predicate length.
7682         (remap_predicate): Likewise; sanity check jump functions.
7683         (inline_read_section, inline_write_summary): Sanity check
7684         predicate length.
7685
7686 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7687
7688         PR other/48748
7689         * doc/extend.texi (Type Traits): Document __is_standard_layout,
7690         __is_literal_type, and __is_trivial; update throughout about
7691         possibly cv-qualified void types.
7692
7693 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
7694
7695         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7696         testsuite and make it version agnostic.
7697
7698 2011-04-22  Jan Hubicka  <jh@suse.cz>
7699
7700         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7701
7702 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
7703
7704         PR c/48685
7705         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7706         to VOID_TYPE even around MODIFY_EXPR.
7707
7708 2011-04-22  Mike Stump  <mikestump@comcast.net>
7709
7710         * gensupport.c (read_md_rtx): Fix typo in comment.
7711         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7712         comment.
7713
7714 2011-04-22  Jan Hubicka  <jh@suse.cz>
7715
7716         * gengtype.c (open_base_files): Add ipa-inline.h include.
7717         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7718         ipa-prop.c; update all uses.
7719         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7720         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7721         merge summary of inlined function into former caller.
7722         * ipa-inline.c (max_benefit): Remove.
7723         (edge_badness): Compensate for removal of benefits.
7724         (update_caller_keys): Use
7725         reset_node_growth_cache/reset_edge_growth_cache.
7726         (update_callee_keys): Likewise.
7727         (update_all_callee_keys): Likewise.
7728         (inline_small_functions): Do not collect max_benefit; do not reset
7729         estimated_growth; call free_growth_caches and initialize_growth_caches.
7730         * ipa-inline.h (struct condition, type clause_t, struct predicate,
7731         struct size_time_entry): New structures.
7732         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7733         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7734         and estimated_growth.
7735         (edge_growth_cache_entry): New structure.
7736         (node_growth_cache, edge_growth_cache): New global vars.
7737         (estimate_growth): Turn into inline.
7738         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7739         initialize_growth_caches, free_growth_caches): Declare.
7740         (estimate_edge_growth): Rewrite.
7741         (estimate_edge_time): Implement as inline cache lookup.
7742         (reset_node_growth_cache, reset_edge_growth_cache): New inline
7743         functions.
7744         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7745         (NUM_CONDITIONS): New constant.
7746         (predicate_conditions): New enum.
7747         (IS_NOT_CONSTANT): New constant.
7748         (edge_removal_hook_holder): New var.
7749         (node_growth_cache, edge_growth_cache): New global vars.
7750         (true_predicate, single_cond_predicate, false_predicate,
7751         not_inlined_predicate, add_condition, add_clause, and_predicates,
7752         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7753         dump_clause, dump_predicate, account_size_time,
7754         evaulate_conditions_for_edge): New functions.
7755         (inline_summary_alloc): Move to heap.
7756         (inline_node_removal_hook): Clear condition and entry vectors.
7757         (inline_edge_removal_hook): New function.
7758         (initialize_growth_caches, free_growth_caches): New function.
7759         (dump_inline_summary): Update.
7760         (edge_execution_predicate): New function.
7761         (will_be_nonconstant_predicate): New function.
7762         (estimate_function_body_sizes): Compute BB and constantness predicates.
7763         (compute_inline_parameters): Do not clear estimated_growth.
7764         (estimate_edge_size_and_time): New function.
7765         (estimate_calls_size_and_time): New function.
7766         (estimate_callee_size_and_time): New function.
7767         (remap_predicate): New function.
7768         (inline_merge_summary): New function.
7769         (do_estimate_edge_time): New function based on...
7770         (estimate_edge_time): ... this one.
7771         (do_estimate_edge_growth): New function.
7772         (do_estimate_growth): New function based on....
7773         (estimate_growth): ... this one.
7774         (inline_analyze_function): Analyze after deciding on jump functions.
7775         (inline_read_section): New function.
7776         (inline_read_summary): Use it.
7777         (inline_write_summary): Write all the new data.
7778         * ipa-prop.c (ipa_get_param_decl_index): Export.
7779         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7780         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7781         Declare.
7782         (ipa_get_lattice): Move here from ipa-cp.c
7783         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7784         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7785         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7786         cgraph_edge_inlinable_p): Remove.
7787         * cgraphunit.c: Include ipainline.h
7788         (cgraph_process_new_functions): Update call of
7789         compute_inline_parameters.
7790
7791 2011-04-22  Richard Guenther  <rguenther@suse.de>
7792
7793         * tree.c (build_int_cst): Properly create canonicalized integer
7794         constants.
7795         (build_int_cst_type): Remove scary comments.
7796
7797 2011-04-22  Xinliang David Li  <davidxl@google.com>
7798
7799         * toplev.c (process_options): Enable -Werror=coverage-mismatch
7800         by default when -Wno-error is not specified.
7801         * opts-global.c (decode_options): Remove call to
7802         control_warning_options.
7803
7804 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
7805
7806         PR tree-optimization/48717
7807         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7808         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7809
7810 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
7811
7812         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
7813         definition where used.
7814
7815 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
7816
7817         PR c/48716
7818         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7819         TREE_STATIC variables declared inside of some OpenMP construct.
7820
7821 2011-04-22  Martin Jambor  <mjambor@suse.cz>
7822
7823         PR middle-end/48585
7824         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7825
7826 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
7827
7828         PR c/36750
7829         * c-typeck.c (pop_init_level): Do not warn about initializing
7830         with ` = {0}'.
7831
7832 2011-04-22  Alan Modra  <amodra@gmail.com>
7833
7834         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7835         when returning call_cookie.
7836         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7837         pointers, to functions with no more vector args than the current
7838         function, and some non-local calls for ABI_V4.
7839         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7840         sibcall_nonlocal_aix64): Combine to ..
7841         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
7842         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7843         (sibcall_value_nonlocal_aix<mode>): ..likewise.
7844         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7845         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
7846         operand.
7847         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7848         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7849         sibcall_value_symbolic_64): Delete.
7850
7851 2011-04-21  Xinliang David Li  <davidxl@google.com>
7852
7853         * cgraph.h: Remove pid.
7854         * cgraph.c: Remove pid.
7855         * value-prof.c (init_node_map): New function.
7856         (del_node_map): New function.
7857         (find_func_by_funcdef_no): New function.
7858         (gimple_ic_transform): Call new function.
7859         * cgraphunit.c (cgraph_finalize_function): Remove pid.
7860         * function.c (get_last_funcdef_no): New function.
7861         * function.h (get_last_funcdef_no): New function.
7862         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7863         to libgcov function.
7864         (tree-profiling): Call node map init and delete function.
7865
7866 2011-04-21  Ian Lance Taylor  <iant@google.com>
7867
7868         * godump.c (go_format_type): Use exported Go name for anonymous
7869         field name.
7870
7871 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
7872
7873         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7874         Call builtin_function_type_list instead of builtin_function_type.
7875         (UNARY, BINARY, TRINARY, QUAD): Likewise.
7876
7877 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
7878
7879         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7880         build_function_type_list instead of build_function_type.
7881         Delete variable `endlink'.
7882
7883 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
7884
7885         * config/s390/s390.c (s390_init_builtins): Call
7886         build_function_type_list instead of build_function_type.
7887
7888 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
7889
7890         * config/ia64/ia64.c (ia64_init_builtins): Call
7891         build_function_type_list instead of builtin_function_type.
7892
7893 2011-04-21  Easwaran Raman  <eraman@google.com>
7894
7895         * cfgexpand.c (stack_var): Remove OFFSET...
7896         (add_stack_var): ...and its reference here...
7897         (expand_stack_vars): ...and here.
7898         (stack_var_cmp): Sort by descending order of size.
7899         (partition_stack_vars): Change heuristic.
7900         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
7901         (dump_stack_var_partition): Add newline after each partition.
7902
7903 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
7904             Jeff Law  <law@redhat.com>
7905
7906         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
7907         * gengtype.c (matching_file_name_substitute): Likewise.
7908
7909 2011-04-21  Richard Guenther  <rguenther@suse.de>
7910
7911         PR lto/48703
7912         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
7913
7914 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
7915
7916         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7917
7918 2011-04-21  Richard Guenther  <rguenther@suse.de>
7919
7920         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7921         file name.
7922
7923 2011-04-21  Richard Guenther  <rguenther@suse.de>
7924
7925         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7926         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7927         Use DECL_P, not SSA_VAR_P.
7928         (ptr_derefs_may_alias_p): Likewise.
7929         (ptr_deref_may_alias_ref_p_1): Likewise.
7930         (decl_refs_may_alias_p): Likewise.
7931         (refs_may_alias_p_1): Likewise.
7932         (ref_maybe_used_by_call_p_1): Likewise.
7933         (call_may_clobber_ref_p_1): Likewise.
7934         (indirect_ref_may_alias_decl_p): Assume indirect refrences
7935         are either MEM_REF or TARGET_MEM_REF.
7936         (indirect_refs_may_alias_p): Likewise.
7937         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7938         for MEM_EXPR of indirect calls.
7939
7940 2011-04-21  Tristan Gingold  <gingold@adacore.com>
7941
7942         * vmsdbgout.c (write_srccorr): Compute file length from the string.
7943         (dst_file_info_struct): Remove flen field.
7944         (lookup_filename): Remove code that set flen field.
7945
7946 2011-04-21  Tristan Gingold  <gingold@adacore.com>
7947
7948         * config/ia64/ia64.c (ia64_start_function): Add a guard.
7949
7950 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
7951
7952         PR target/48708
7953         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
7954         vec_extract and vec_concat for non-SSE4_1 targets.
7955
7956 2011-04-21  Richard Guenther  <rguenther@suse.de>
7957
7958         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
7959         return statements.
7960
7961 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
7962
7963         * config/i386/cygming.h (union tree_node, TREE): Don't define or
7964         undefine.
7965         (FILE): Don't undefine.
7966
7967 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
7968
7969         * config/alpha/alpha.c (struct machine_function): Use rtx, not
7970         struct rtx_def *.
7971         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
7972         struct rtx_def *.
7973         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
7974         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
7975         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
7976         rtx_def *.
7977         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
7978         definitions where used.
7979         * config/microblaze/microblaze.h (struct microblaze_args): Use
7980         rtx, not struct rtx_def *.
7981         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
7982         rtx_def *.
7983         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
7984         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
7985         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
7986         not struct rtx_def *.
7987         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
7988         struct rtx_def *.
7989         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
7990         rtx_def *.
7991         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
7992
7993 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
7994
7995         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
7996         operand_equal_p to compare DR_BASE_ADDRESSes.
7997         (vect_check_interleaving): Likewise.
7998
7999 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8000
8001         PR target/46329
8002         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8003         for all Neon struct constants.
8004
8005 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8006
8007         * target.def (legitimate_constant_p): New hook.
8008         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8009         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8010         * doc/tm.texi: Regenerate.
8011         * hooks.h (hook_bool_mode_rtx_true): Declare.
8012         * hooks.c (hook_bool_mode_rtx_true): Define.
8013         * system.h (LEGITIMATE_CONSTANT_P): Poison.
8014         * calls.c (precompute_register_parameters): Replace uses of
8015         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8016         (emit_library_call_value_1): Likewise.
8017         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8018         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8019         * ira-costs.c (scan_one_insn): Likewise.
8020         * recog.c (general_operand, immediate_operand): Likewise.
8021         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8022         * reload1.c (init_eliminable_invariants): Likewise.
8023
8024         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8025         mode argument.
8026         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8027         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8028         argument.
8029         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8030         * config/alpha/predicates.md (input_operand): Update call to
8031         alpha_legitimate_constant_p.
8032
8033         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8034         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8035         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8036         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8037         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8038         (arm_legitimate_constant_p): New functions.
8039         (arm_cannot_force_const_mem): Make static.
8040
8041         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8042
8043         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8044         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8045         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8046         instead of bfin_legitimate_constant_p.
8047         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
8048         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8049
8050         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8051
8052         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8053
8054         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8055         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8056         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8057         (frv_legitimate_constant_p): Make static.  Add a mode argument.
8058
8059         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8060         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8061         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8062
8063         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8064         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8065         * config/i386/i386.c (legitimate_constant_p): Rename to...
8066         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
8067         argument.
8068         (ix86_cannot_force_const_mem): Update accordingly.
8069         (ix86_legitimate_address_p): Likewise.
8070         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8071         * config/i386/i386.md: Update commentary.
8072
8073         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8074         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8075         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8076         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
8077
8078         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8079
8080         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8081         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8082         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8083         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
8084
8085         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8086         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8087         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8088
8089         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8090         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8091         (m32r_legitimate_constant_p): New function.
8092
8093         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8094         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8095         LEGITIMATE_CONSTANT_P.
8096         (LEGITIMATE_CONSTANT_P): Delete.
8097         * config/m68k/m68k.c (m68k_expand_prologue): Call
8098         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8099         (m68k_legitimate_constant_p): New function.
8100         * config/m68k/m68k.md: Update comments.
8101
8102         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8103         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8104         (mcore_legitimate_constant_p): New function.
8105
8106         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8107         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8108         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8109         Add a mode argument.
8110         (mep_legitimate_address): Update accordingly.
8111         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8112
8113         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8114         Delete.
8115         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8116         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8117         static.  Check OP's mode for VOIDmode.
8118         (microblaze_legitimate_constant_p): New function.
8119         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8120
8121         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8122         * config/mips/mips.c (mips_legitimate_constant_p): New function.
8123         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8124         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8125         * config/mips/predicates.md: Update comments.
8126
8127         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8128         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8129         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8130         (mmix_legitimate_constant_p): Make static, return a bool, and take
8131         a mode argument.
8132         (mmix_print_operand_address): Update accordingly.
8133
8134         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8135         Delete.
8136         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8137         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8138         static.  Add a mode argument.
8139         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8140
8141         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8142
8143         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8144         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8145         (pa_legitimate_constant_p): New function.
8146
8147         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8148
8149         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8150         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8151         (pdp11_legitimate_constant_p): New function.
8152
8153         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8154         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8155         (rs6000_legitimate_constant_p): New function.
8156
8157         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8158         (rx_legitimate_constant_p): ...this.
8159         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8160         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8161         (rx_legitimate_constant_p): ...this.
8162         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8163         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8164
8165         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8166         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8167         * config/s390/s390.c (legitimate_constant_p): Rename to...
8168         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
8169         and add a mode argument.
8170         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8171
8172         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8173
8174         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8175         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8176         (sh_legitimate_constant_p): New function.
8177
8178         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8179         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8180         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8181         (legitimate_constant_p): Rename to...
8182         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
8183         argument.
8184         (constant_address_p): Update accordingly.
8185
8186         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8187         argument and return a bool.
8188         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8189         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8190         (spu_legitimate_constant_p): Add a mode argument and return a bool.
8191         (spu_rtx_costs): Update accordingly.
8192         * config/spu/predicates.md (vec_imm_operand): Likewise.
8193
8194         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8195
8196         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8197         * config/v850/v850.c (v850_legitimate_constant_p): New function.
8198         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8199
8200         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8201         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8202         * config/vax/vax.c (legitimate_constant_p): Likewise.
8203
8204         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8205         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8206         (xtensa_legitimate_constant_p): New function.
8207
8208 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8209
8210         * target.def (cannot_force_const_mem): Add a mode argument.
8211         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8212         * doc/tm.texi: Regenerate.
8213         * hooks.h (hook_bool_mode_rtx_false): Declare.
8214         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8215         (hook_bool_mode_const_rtx_true): Likewise.
8216         (hook_bool_mode_rtx_false): New function.
8217         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8218         to be non-VOID.  Update call to cannot_force_const_mem.
8219         (find_reloads): Update accordingly.
8220         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8221         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8222         argument.
8223         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8224         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8225         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8226         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8227         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8228         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8229         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8230         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8231         (m68k_cannot_force_const_mem): ...this new function.
8232         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8233         argument.
8234         (mips_const_insns, mips_legitimize_const_move): Update calls.
8235         (mips_secondary_reload_class): Likewise.
8236         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8237         (pa_cannot_force_const_mem): ...this new function.
8238         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8239         (rs6000_cannot_force_const_mem): ...this new function.
8240         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8241         argument.
8242         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8243         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8244         to...
8245         (xtensa_cannot_force_const_mem): ...this new function.
8246
8247 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8248
8249         * config/mips/mips.c (mips16_build_function_stub): Call
8250         build_function_type_list instead of build_function_type.
8251         (mips16_build_call_stub): Likewise.
8252
8253 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8254
8255         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8256         instead of build_function_type.
8257
8258 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8259
8260         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8261         instead of build_function_type.
8262
8263 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
8264
8265         PR target/48678
8266         * config/i386/i386.md (insv): Change operand 0 constraint to
8267         "register_operand".  Change operand 1 and 2 constraint to
8268         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
8269         * config/i386/sse.md (sse4_1_pinsrb): Export.
8270         (sse2_pinsrw): Ditto.
8271         (sse4_1_pinsrd): Ditto.
8272         (sse4_1_pinsrq): Ditto.
8273         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8274         * config/i386/i386.c (ix86_expand_pinsr): New.
8275
8276 2011-04-20  Easwaran Raman  <eraman@google.com>
8277
8278         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8279         containing union type only with -fstrict-aliasing.
8280
8281 2011-04-20  Jim Meyering  <meyering@redhat.com>
8282
8283         Remove useless if-before-free tests.
8284         * calls.c (expand_call, save_area): Likewise.
8285         * cfgcleanup.c (try_forward_edges): Likewise.
8286         * collect2.c (collect_execute): Likewise.
8287         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8288         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8289         * coverage.c (coverage_checksum_string): Likewise.
8290         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8291         * cselib.c (cselib_init): Likewise.
8292         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8293         (df_set_clean_cfg): Likewise.
8294         * function.c (free_after_compilation): Likewise.
8295         * gcc.c (do_spec_1, main): Likewise.
8296         * gcov.c (create_file_names): Likewise.
8297         * gensupport.c (identify_predicable_attribute): Likewise.
8298         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8299         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8300         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8301         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8302         * ipa-pure-const.c (local_pure_const): Likewise.
8303         * ipa-reference.c (propagate): Likewise.
8304         * ira-costs.c (free_ira_costs): Likewise.
8305         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8306         * matrix-reorg.c (mat_free): Likewise.
8307         * prefix.c (get_key_value): Likewise.
8308         * profile.c (compute_value_histograms): Likewise.
8309         * reload1.c (free_reg_equiv): Likewise.
8310         * sched-deps.c (free_deps): Likewise.
8311         * sel-sched-ir.c (fence_clear): Likewise.
8312         * sese.c (set_rename, if_region_set_false_region): Likewise.
8313         * tree-data-ref.c (free_rdg): Likewise.
8314         * tree-eh.c (lower_try_finally): Likewise.
8315         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8316         * tree-ssa-live.c (delete_var_map): Likewise.
8317         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8318         * tree-ssa-pre.c (phi_trans_add): Likewise.
8319
8320 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
8321
8322         PR tree-optimization/48611
8323         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8324         beyond ERT_MUST_NOT_THROW region.
8325
8326 2011-04-20  Catherine Moore  <clm@codesourcery.com>
8327
8328         * config/mips/mips.opt (mfix-24k): New.
8329         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8330         * config/mips/mips.md (length): Increase by 4 for stores if
8331         fixing 24K errata.
8332         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8333         all noreorder if fixing 24K errata.
8334         * doc/invoke.texi: Document mfix-24k.
8335
8336 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
8337
8338         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8339         quad-word modes, reduce to 9-bit index range when above 1016 limit.
8340
8341 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8342
8343         * config/arm/arm.c (arm_gen_constant): Move movw support ....
8344         (const_ok_for_op): ... to here.
8345
8346 2011-04-20  Kai Tietz  <ktietz@redhat.com>
8347
8348         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8349         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8350
8351 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8352
8353         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8354
8355 2011-04-20  Richard Guenther  <rguenther@suse.de>
8356
8357         PR tree-optimization/47892
8358         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8359         are if-convertible.
8360
8361 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8362
8363         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8364
8365 2011-04-20  Tristan Gingold  <gingold@adacore.com>
8366
8367         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8368
8369 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
8370
8371         PR target/18145
8372
8373         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8374         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8375         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8376         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8377         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8378
8379         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8380         New prototype.
8381
8382         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8383         (avr_asm_named_section, avr_asm_output_aligned_common,
8384         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8385         New functions to update...
8386         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8387         (avr_asm_init_sections): Overwrite section callbacks for
8388         data_section, bss_section.
8389         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8390         from here to...
8391         (avr_file_end): ...here.
8392
8393 2011-04-20  Richard Guenther  <rguenther@suse.de>
8394
8395         PR middle-end/48695
8396         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8397         objects and types here.  Adjust for their offset before comparing.
8398
8399 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8400
8401         * tree-vect-stmts.c (vectorizable_store): Only chain one related
8402         statement per copy.
8403
8404 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8405
8406         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8407         (GIMPLE_H): Include $(INTERNAL_FN_H).
8408         (OBJS-common): Add internal-fn.o.
8409         (internal-fn.o): New rule.
8410         * internal-fn.def: New file.
8411         * internal-fn.h: Likewise.
8412         * internal-fn.c: Likewise.
8413         * gimple.h: Include internal-fn.h.
8414         (GF_CALL_INTERNAL): New gf_mask.
8415         (gimple_statement_call): Put fntype into a union with a new
8416         internal_fn field.
8417         (gimple_build_call_internal): Declare.
8418         (gimple_build_call_internal_vec): Likewise.
8419         (gimple_call_same_target_p): Likewise.
8420         (gimple_call_internal_p): New function.
8421         (gimple_call_internal_fn): Likewise.
8422         (gimple_call_fntype): Return null for internal calls.
8423         (gimple_call_set_fntype): Assert that the function is not internal.
8424         (gimple_call_set_fn): Likewise.
8425         (gimple_call_set_fndecl): Likewise.
8426         (gimple_call_set_internal_fn): New function.
8427         (gimple_call_addr_fndecl): Handle null functions.
8428         (gimple_call_return_type): Likewise null types.
8429         * gimple.c (gimple_build_call_internal_1): New function.
8430         (gimple_build_call_internal): Likewise.
8431         (gimple_build_call_internal_vec): Likewise.
8432         (gimple_call_same_target_p): Likewise.
8433         (gimple_call_flags): Handle calls to internal functions.
8434         (gimple_call_fnspec): New function.
8435         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8436         (gimple_has_side_effects): Handle null functions.
8437         (gimple_rhs_has_side_effects): Likewise.
8438         (gimple_call_copy_skip_args): Handle calls to internal functions.
8439         * cfgexpand.c (expand_call_stmt): Likewise.
8440         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8441         * gimple-fold.c (gimple_fold_call): Handle null functions.
8442         (gimple_fold_stmt_to_constant_1): Don't fold
8443         calls to internal functions.
8444         * gimple-low.c (gimple_check_call_args): Handle calls to internal
8445         functions.
8446         * gimple-pretty-print.c (dump_gimple_call): Likewise.
8447         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8448         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8449         (do_warn_unused_result): Likewise.
8450         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8451         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8452         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8453         the target of a call.
8454         (initialize_hash_element): Update accordingly.
8455         (hashable_expr_equal_p): Use gimple_call_same_target_p.
8456         (iterative_hash_hashable_expr): Handle calls to internal functions.
8457         (print_expr_hash_elt): Likewise.
8458         * tree-ssa-pre.c (can_value_number_call): Likewise.
8459         (eliminate): Handle null functions.
8460         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8461         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8462         (find_func_aliases): Likewise.
8463         * value-prof.c (gimple_ic_transform): Likewise.
8464         (gimple_indirect_call_to_profile): Likewise.
8465         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8466         * lto-streamer-out.c (output_gimple_stmt): Likewise.
8467
8468 2011-04-19  Jan Hubicka  <jh@suse.cz>
8469
8470         * ipa-inline-transform.c (save_inline_function_body): Add comments.
8471         * ipa-inline.c (inline_small_functions): Compute summaries first,
8472         populate heap later.
8473
8474 2011-04-19  Jan Hubicka  <jh@suse.cz>
8475
8476         * cgraph.h (save_inline_function_body): Remove.
8477         * ipa-inline-transform.c: New file, broke out of...
8478         * ipa-inline.c: ... this one; Update toplevel comment.
8479         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8480         make global.
8481         (update_noncloned_frequencies): Move to ipa-inline-transform.c
8482         (cgraph_mark_inline_edge): Rename to inline_call; move to
8483         ipa-inline-transform.c.
8484         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8485         move to ipa-inline-transform.c
8486         (recursive_inlining, inline_small_functions, flatten_function,
8487         ipa_inline, inline_always_inline_functions,
8488         early_inline_small_functions): Update.
8489         (inline_transform): Move to ipa-inline-transform.c.
8490         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8491         Declare.
8492         * Makefile.in (ipa-inline-transform.o): New file.
8493         * cgraphunit.c (save_inline_function_body): Move to
8494         ipa-inline-transform.c
8495
8496 2011-04-19  DJ Delorie  <dj@redhat.com>
8497
8498         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8499         registers if we already know there aren't any.
8500         (m32c_emit_epilogue): Don't emit a barrier here.
8501         (m32c_emit_eh_epilogue): Likewise.
8502         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8503         operands at expand time.
8504         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8505         int" wchar type.
8506         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8507         duplicates.  Provide aliases instead.
8508         * config/m32c/prologue.md (eh_return): Emit a barrier here.
8509         (eh_epilogue): Add a "(return)" here as a hint to other parts of
8510         the compiler.
8511
8512 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
8513
8514         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8515         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8516         (general_or_i64_p, sparc_register_move_cost): New function.
8517
8518 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8519
8520         * doc/install.texi (Configuration, --enable-threads): Remove mach.
8521         Add lynx, mipssde.  Sort table.
8522
8523 2011-04-19  Xinliang David Li  <davidxl@google.com>
8524
8525         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8526         not negative.
8527
8528 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
8529
8530         PR target/48678
8531         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8532         is a SUBREG with non-MODE_INT mode inside of it.
8533
8534 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8535
8536         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8537         also according to actual contants.
8538         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8539         (gimple_fold_call): Use it.
8540         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8541
8542 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8543
8544         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8545         non-pointer assignments.
8546
8547 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8548
8549         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8550         account anc_offset and otr_type from the indirect edge info.
8551         * ipa-prop.c (get_ancestor_addr_info): New function.
8552         (compute_complex_ancestor_jump_func): Assignment analysis moved to
8553         get_ancestor_addr_info, call it.
8554         (ipa_note_param_call): Do not initialize information about polymorphic
8555         calls, return the indirect call graph edge.  Remove the last
8556         parameter, adjust all callers.
8557         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8558         parameters.  Initialize polymorphic information in the indirect edge.
8559
8560 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8561
8562         PR lto/48148
8563         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8564         the types if they have different enumeration identifiers.
8565
8566 2011-04-19  Jan Hubicka  <jh@suse.cz>
8567
8568         * cgraph.h (cgraph_optimize_for_size_p): Declare.
8569         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8570         * predict.c (cgraph_optimize_for_size_p): Break out from ...
8571         (optimize_function_for_size_p) ... here.
8572
8573 2011-04-19  Richard Guenther  <rguenther@suse.de>
8574
8575         PR lto/48207
8576         * tree.c (free_lang_data): Do not reset the decl-assembler-name
8577         langhook.
8578
8579 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8580
8581         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8582         if DECL_NO_INLINE_WARNING_P is set on the function.
8583
8584 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
8585
8586         PR fortran/47976
8587         * reload1.c (inc_for_reload): Return void. All callers changed.
8588         (emit_input_reload_insns): Don't try to delete previous output
8589         reloads to a register, or record spill_reg_store for autoincs.
8590
8591 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
8592
8593         * gengtype.h: Updated copyright year.
8594         (struct input_file_st): Add inpisplugin field.
8595         (type_fileloc): New function.
8596         * gengtype.c
8597         (write_typed_struct_alloc_def): Add gcc_assert.
8598         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8599         (write_typed_alloc_defns): Don't output for plugin files.
8600         (input_file_by_name): Clear inpisplugin field.
8601         (main): Set inpisplugin field for plugin files.
8602
8603 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
8604
8605         * gengtype-state.c (string_eq): New.
8606         (read_state): Use string_eq instead of strcmp when creating the
8607         state_ident_tab.
8608
8609 2011-04-19  Wei Guozhi  <carrot@google.com>
8610
8611         PR target/47855
8612         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8613         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8614         linkage.
8615         * config/arm/constraints.md (Uu): New constraint.
8616         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8617
8618 2011-04-19  Tristan Gingold  <gingold@adacore.com>
8619
8620         * config.gcc (-*-*-*vms): Added.
8621         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8622         definitions moved.
8623         * config/vms/vms-ld.c: New file.
8624         * config/vms/vms-ar.c: New file.
8625         * config/vms/t-vmsnative: New file.
8626
8627 2011-04-18  Xinliang David Li  <davidxl@google.com>
8628
8629         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8630
8631 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
8632
8633         PR middle-end/48661
8634         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8635         if TREE_TYPE (v) is non-NULL.
8636
8637         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8638         gimple_get_virt_mehtod_for_binfo.
8639         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8640         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8641         callers.
8642         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8643
8644 2011-04-18  Michael Matz  <matz@suse.de>
8645             Steve Ellcey  <sje@cup.hp.com>
8646
8647         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8648         use its mode as source mode if it isn't VOIDmode.
8649
8650 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
8651
8652         * doc/passes.texi: Fill crossref nodes.
8653
8654 2011-04-18  Jim Meyering  <meyering@redhat.com>
8655
8656         Fix doubled-word typos in comments and strings
8657         * config/alpha/vms-unwind.h: s/for for/for/
8658         * config/arm/unwind-arm.h: Likewise.
8659         * config/microblaze/microblaze.c: Likewise.
8660         * config/sh/constraints.md: s/in in/in/
8661         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8662
8663 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
8664
8665         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8666         (AVX_FLOAT_MODE_P): Ditto.
8667         (AVX128_VEC_FLOAT_MODE_P): Ditto.
8668         (AVX256_VEC_FLOAT_MODE_P): Ditto.
8669         (AVX_VEC_FLOAT_MODE_P): Ditto.
8670         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8671         (UNSPEC_MASKSTORE): Ditto.
8672         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8673         Merge from <sse>_movmsk<ssemodesuffix> and
8674         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
8675         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
8676         iterator.
8677         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8678         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8679         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8680
8681 2011-04-18  Jan Hubicka  <jh@suse.cz>
8682
8683         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8684
8685         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8686         (want_inline_function_called_once_p): Break out the logic from
8687         ipa_inline.
8688         (edge_badness): Ensure that profile is not misupdated.
8689         (lookup_recursive_calls): Prioritize by call frequencies.
8690         (inline_small_functions): Move program size estimates here;
8691         actually process whole queue even when unit growth has been
8692         met. (to properly compute inline_failed reasons and for the
8693         case unit size decrease.) Revisit comments on recursive inlining.
8694         (ipa_inline): Remove unit summary code; first inline hot calls
8695         of functions called once, cold calls next.
8696         (order, nnodes): Remove unused variables.
8697         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8698         (GTFILES): Remove ipa-inline.c
8699         * sel-sched.c (fill_insns): Silence uninitialized var warning.
8700
8701 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8702
8703         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8704
8705 2011-04-18  Jie Zhang  <jie@codesourcery.com>
8706             Richard Earnshaw  <rearnsha@arm.com>
8707
8708         * arm.c (neon_builtin_type_bits): Remove.
8709         (typedef enum neon_builtin_mode): New.
8710         (T_MAX): Don't define.
8711         (typedef enum neon_builtin_datum): Remove bits, codes[],
8712         num_vars and base_fcode.  Add mode, code and fcode.
8713         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8714         VAR10): Change accordingly.
8715         (neon_builtin_data[]): Change accordingly
8716         (arm_init_neon_builtins): Change accordingly.
8717         (neon_builtin_compare): Remove.
8718         (locate_neon_builtin_icode): Remove.
8719         (arm_expand_neon_builtin): Change accordingly.
8720
8721         * arm.h (enum arm_builtins): Move to ...
8722         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8723
8724         * arm.c (arm_builtin_decl): Declare.
8725         (TARGET_BUILTIN_DECL): Define.
8726         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8727         (arm_builtin_decls[]): New.
8728         (arm_init_neon_builtins): Store builtin declarations in
8729         arm_builtin_decls[].
8730         (arm_init_tls_builtins): Likewise.
8731         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
8732         (arm_builtin_decl): New.
8733
8734 2011-04-18  Richard Guenther  <rguenther@suse.de>
8735
8736         * tree.c (upper_bound_in_type): Build properly canonicalized
8737         INTEGER_CSTs.
8738         (lower_bound_in_type): Likewise.
8739
8740 2011-04-18  Richard Guenther  <rguenther@suse.de>
8741
8742         * gimple.h (gimple_call_addr_fndecl): New function.
8743         (gimple_call_fndecl): Use it.
8744         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8745         for direct calls.
8746         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8747         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8748
8749 2011-04-18  Richard Guenther  <rguenther@suse.de>
8750
8751         PR middle-end/48650
8752         * tree.c (build_string): STRING_CST is now derived from tree_typed.
8753
8754 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8755
8756         PR lto/48492
8757         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8758         DECL_IN_CONSTANT_POOL without RTL.
8759
8760 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
8761             Ira Rosen  <ira.rosen@linaro.org>
8762
8763         PR target/48252
8764         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8765         to match neon_vzip/vuzp/vtrn_internal.
8766         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8767         outputs explicitly dependent on both inputs.
8768         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8769
8770 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
8771
8772         PR tree-optimization/48616
8773         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8774         whether the shift is by scalar or vector based on whether all SLP
8775         scalar stmts have the same rhs.
8776
8777 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
8778
8779         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8780         memory operands.
8781
8782 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
8783
8784         PR target/43700
8785         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8786         registers.
8787
8788 2011-04-17  Jan Hubicka  <jh@suse.cz>
8789
8790         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8791         * cgrpahunit.c (cgraph_finalize_function): Do not set
8792         finalized_by_frontend.
8793         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8794         finalized_by_frontend.
8795
8796 2011-04-17  Jan Hubicka  <jh@suse.cz>
8797
8798         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8799         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8800         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8801         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8802         method.
8803         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8804         gimple-fold.c
8805         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8806
8807 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8808
8809         PR lto/48538
8810         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8811         is non-null before accessing it.
8812         (input_cgraph): Remove trailing spaces.
8813
8814 2011-04-17  Revital Eres  <revital.eres@linaro.org>
8815
8816         * params.def (sms-min-sc): New param flag.
8817         * modulo-sched.c (sms_schedule): Use it.
8818         * doc/invoke.texi (sms-min-sc): Document it.
8819
8820 2011-04-17  Jan Hubicka  <jh@suse.cz>
8821
8822         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8823         present, also set gimple_call_set_cannot_inline.
8824         * ipa-inline.c: Update toplevel comment.
8825         (MAX_TIME): Remove.
8826         (cgraph_clone_inlined_nodes): Fix linebreaks.
8827         (cgraph_check_inline_limits): Restructure to ...
8828         (caller_growth_limits): ... this one; be more tolerant
8829         on growth in nested inline chains; add explanatory comment;
8830         fix stack accounting thinko introduced by previous patch.
8831         (cgraph_default_inline_p): Remove.
8832         (report_inline_failed_reason): New function.
8833         (can_inline_edge_p): New function.
8834         (can_early_inline_edge_p): New function.
8835         (leaf_node_p): Move upwards in file.
8836         (want_early_inline_function_p): New function.
8837         (want_inline_small_function_p): New function.
8838         (want_inline_self_recursive_call_p): New function.
8839         (cgraph_edge_badness): Rename to ...
8840         (edge_badness) ... this one; fix linebreaks.
8841         (update_edge_key): Update call of edge_baddness; add
8842         detailed dump about queue updates.
8843         (update_caller_keys): Use can_inline_edge_p and
8844         want_inline_small_function_p.
8845         (cgraph_decide_recursive_inlining): Rename to...
8846         (recursive_inlining): Use can_inline_edge_p and
8847         want_inline_self_recursive_call_p; simplify and remove no longer
8848         valid FIXME.
8849         (cgraph_set_inline_failed): Remove.
8850         (add_new_edges_to_heap): Use can_inline_edge_p and
8851         want_inline_small_function_p.
8852         (cgraph_decide_inlining_of_small_functions): Rename to ...
8853         (inline_small_functions): ... this one; cleanup; use
8854         can/want predicates; cleanup debug ouput; work edges till fibheap
8855         is exhausted and do not stop once unit growth is reached; remove
8856         later loop processing remaining edges.
8857         (cgraph_flatten): Rename to ...
8858         (flatten_function): ... this one; use can_inline_edge_p
8859         and can_early_inline_edge_p predicates.
8860         (cgraph_decide_inlining): Rename to ...
8861         (ipa_inline): ... this one; remove unreachable nodes before
8862         inlining functions called once; simplify the pass.
8863         (cgraph_perform_always_inlining): Rename to ...
8864         (inline_always_inline_functions): ... this one; use
8865         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
8866         (cgraph_decide_inlining_incrementally): Rename to ...
8867         (early_inline_small_functions): ... this one; simplify
8868         using new predicates; cleanup; make dumps prettier.
8869         (cgraph_early_inlining): Rename to ...
8870         (early_inliner): newer inline regular functions into always-inlines;
8871         fix updating of call stmt summaries.
8872         (pass_early_inline): Update for new names.
8873         (inline_transform): Fix formating.
8874         (gate_cgraph_decide_inlining): Rename to ...
8875         (pass_ipa_inline): ... this one.
8876         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8877         * ipa-inline-analysis.c (dump_inline_summary): Update.
8878         (compute_inline_parameters): Do not compute disregard_inline_limits;
8879         look for mismatching arguments.
8880         (estimate_growth): Fix handlig of non-trivial self recursion.
8881         (inline_read_summary): Do not read info->disregard_inline_limits.
8882         (inline_write_summary): Do not write info->disregard_inline_limits.
8883         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8884         and move all checks into can_inline_edge_p predicate; re-enable code
8885         comparing optimization levels.
8886         (expand_call_inline): Do not test inline_forbidden_into_p.
8887         * Makefile.in (ipa-inline.o): Update arguments.
8888
8889 2011-04-17  Revital Eres  <revital.eres@linaro.org>
8890
8891         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8892
8893 2011-04-17  Revital Eres  <revital.eres@linaro.org>
8894
8895         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8896
8897 2011-04-17  Michael Matz  <matz@suse.de>
8898
8899         PR tree-optimization/48622
8900         PR lto/48645
8901         * ipa-inline-analysis.c (inline_read_summary): Read size/time
8902         in same order as they're written.
8903
8904 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8905
8906         * config/pa/predicates.md: Reorganize and simplify predicates.
8907         Eliminate duplicate code checks.
8908         (arith_operand): Rename to arith14_operand
8909         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8910         * config/pa/pa.md: Use renamed operands.
8911         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8912         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8913         arith11_operand, adddi3_operand, indexed_memory_operand,
8914         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8915         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8916         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8917         move_dest_operand, move_src_operand, prefetch_cc_operand,
8918         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8919         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8920         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8921         div_operand, int5_operand, movb_comparison_operator,
8922         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8923         arith_double_operand, ireg_operand, lhs_lshift_operand,
8924         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8925         integer_store_memory_operand): Likewise.
8926         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8927         (integer_store_memory_operand, read_only_operand,
8928         function_label_operand, borx_reg_operand,
8929         non_hard_reg_operand): Likewise.
8930         (eq_neq_comparison_operator): Delete unused operator.
8931         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8932         function_label_operand.
8933         (emit_move_sequence): Likewise.
8934
8935 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
8936
8937         * config/i386/sse.md (sseunpackmode): New mode attribute.
8938         (ssepackmode): Ditto.
8939         (vec_pack_trunc_<mode>): Macroize expander from
8940         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8941         (vec_unpacks_lo_<mode>): Macroize expander from
8942         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8943         (vec_unpacks_hi_<mode>): Macroize expander from
8944         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8945         (vec_unpacku_lo_<mode>): Macroize expander from
8946         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8947         (vec_unpacku_hi_<mode>): Macroize expander from
8948         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8949         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
8950         ix86_expand_sse4_unpack.
8951         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
8952
8953 2011-04-16  Jan Hubicka  <jh@suse.cz>
8954
8955         * cgraphbuild.c: Include ipa-inline.h.
8956         (reset_inline_failed): Use initialize_inline_failed.
8957         * cgraph.c: Include ipa-inline.h.
8958         (cgraph_create_node_1): Do not initialize estimated_growth.
8959         (initialize_inline_failed): More to ipa-inline-analysis.c
8960         (dump_cgraph_node): Do not dump inline flags.
8961         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
8962         and disregard_inline_limits flags.
8963         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
8964         time, size, estimated_growth.
8965         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
8966         Update.
8967         * cgraphunit.c (cgraph_decide_is_function_needed): Use
8968         DECL_DISREGARD_INLINE_LIMITS.
8969         (cgraph_analyze_function): Do not initialize
8970         node->local.disregard_inline_limits.
8971         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8972         inlinable, versionable and disregard_inline_limits.
8973         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8974         cgraph_check_inline_limits, cgraph_default_inline_p,
8975         cgraph_edge_badness, update_caller_keys, update_callee_keys,
8976         add_new_edges_to_heap): Update.
8977         (cgraph_decide_inlining_of_small_function): Update; set
8978         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
8979         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
8980         cgraph_decide_inlining_incrementally): Update.
8981         * ipa-inline.h (inline_summary): Add inlinable, versionable,
8982         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
8983         time, size and estimated_growth parameters.
8984         (estimate_edge_growth): Update.
8985         (initialize_inline_failed): Declare.
8986         * ipa-split.c: Include ipa-inline.h
8987         (execute_split_functions): Update.
8988         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
8989         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
8990         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
8991         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
8992         estimated_growth to INT_MIN.
8993         (inline_node_duplication_hook): Likewise.
8994         (dump_inline_summary): Dump new fields.
8995         (compute_inline_parameters): Update.
8996         (estimate_edge_time, estimate_time_after_inlining,
8997         estimate_size_after_inlining, estimate_growth, inline_read_summary,
8998         inline_write_summary):
8999         (initialize_inline_failed): Move here from cgraph.c.
9000         * tree-sra.c: Include ipa-inline.h.
9001         (ipa_sra_preliminary_function_checks): Update.
9002         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9003         ipa-inline.h.
9004
9005 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9006
9007         * config/i386/sse.md (V16): New mode iterator.
9008         (VI1, VI8): Ditto.
9009         (AVXMODEQI, AVXMODEDI): Remove.
9010         (sse2, sse3): New mode attribute.
9011         (mov<mode>): Use V16 mode iterator.
9012         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9013         (push<mode>1): Use V16 mode iterator.
9014         (movmisalign<mode>): Ditto.
9015         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9016         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9017         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9018         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9019         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9020         avx_movdqu<avxmodesuffix>.
9021         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9022         *avx_movdqu<avxmodesuffix>.
9023         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9024         avx_lddqu<avxmodesuffix>.
9025         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9026         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9027         avx_movnt<AVXMODEDI:mode>.
9028         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9029         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9030
9031 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
9032
9033         PR target/48629
9034         * haifa-sched.c (prune_ready_list, schedule_block): Use
9035         sched_pressure_p rather than flag_sched_pressure.
9036
9037 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
9038
9039         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9040         cgraph_get_node instead of cgraph_get_create_node.
9041
9042 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
9043
9044         * cfgexpand.c (expand_debug_expr): Use
9045         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9046
9047 2011-04-15  Michael Matz  <matz@suse.de>
9048
9049         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9050         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9051         * function.c (gimplify_parameters): Ditto.
9052         * gimplify.c (gimplify_vla_decl): Ditto.
9053
9054         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9055         (gimple_call_set_alloca_for_var): New inline function.
9056         (gimple_call_alloca_for_var_p): Ditto.
9057         * gimple.c (gimple_build_call_from_tree): Remember
9058         CALL_ALLOCA_FOR_VAR_P state.
9059         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9060
9061         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9062         calls if they were for VLA objects.
9063
9064 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9065
9066         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9067         of ADR_EXPRs.
9068
9069 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9070
9071         PR middle-end/48601
9072         * tree-emutls.c (lower_emutls_function_body): Call
9073         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
9074         result is non-NULL.
9075
9076 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
9077
9078         * c-decl.c (detect_field_duplicates): Call
9079         objc_detect_field_duplicates instead of objc_get_interface_ivars.
9080
9081 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
9082
9083         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9084         * gimple.c (gimple_asm_clobbers_memory_p): Define.
9085         * ipa-pure-const.c (check_stmt): Call it.
9086         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9087
9088 2011-04-15  Richard Guenther  <rguenther@suse.de>
9089
9090         PR tree-optimization/48290
9091         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9092         Properly decide inhibiting propagation based on the valueized
9093         operand.  Do loop-closed SSA form preserving here ...
9094         (init_copy_prop): ... not here.
9095
9096 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
9097
9098         PR target/48612
9099         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9100         (*ieee_smax<mode>3): Likewise.
9101
9102 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9103
9104         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9105         Replace match_operand with match_dup for the third operand in
9106         these expanders.
9107
9108 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9109
9110         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9111         to track processing of conditionals.  Update all callers.
9112         (try_combine, simplify_if_then_else): Update.
9113
9114 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9115
9116         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9117         -fsched-pressure.
9118
9119 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
9120
9121         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9122         instead of match_operand for operand 3.
9123
9124 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
9125
9126         * recog.h (insn_operand_data): Add an "allows_mem" field.
9127         * genoutput.c (output_operand_data): Initialize it.
9128         * optabs.c (maybe_legitimize_operand_same_code): New function.
9129         (maybe_legitimize_operand): Use it when matching the original
9130         op->value.
9131
9132 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9133
9134         * gimplify.c: Fix issues in comments throughout.
9135         (voidify_wrapper_expr): Fix long line.
9136         (build_stack_save_restore): Likewise.
9137         (gimplify_loop_expr): Likewise.
9138         (gimplify_compound_lval): Likewise.
9139         (gimplify_init_ctor_eval): Likewise.
9140         (gimplify_modify_expr_rhs): Likewise.
9141         (omp_notice_threadprivate_variable): Likewise.
9142
9143 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9144
9145         * cfgexpand.c (expand_call_stmt): Convert the function type to the
9146         original one if this is not a builtin function.
9147
9148 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
9149
9150         PR target/48605
9151         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9152         offset it as needed based on top 2 bits in operands[3], change
9153         MEM mode to SFmode and mask those 2 bits away from operands[3].
9154
9155 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9156
9157         * c-parser.c (c_parser_objc_protocol_definition): Updated for
9158         change from objc_declare_protocols() to objc_declare_protocol().
9159
9160 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
9161
9162         * config/i386/sse.md (sse4_1): New mode attribute.
9163         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9164         avx_blend<ssemodesuffix><avxmodesuffix> and
9165         sse4_1_blend<ssemodesuffix> using VF mode iterator.
9166         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9167         avx_blendv<ssemodesuffix><avxmodesuffix> and
9168         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9169         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9170         avx_dp<ssemodesuffix><avxmodesuffix> and
9171         sse4_1_dp<ssemodesuffix> using VF mode iterator.
9172         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9173         (sse4_1_packusdw): Merge with *avx_packusdw.
9174         (sse4_1_pblendvb): Merge with *avx_pblendvb.
9175         (sse4_1_pblendw): Merge with *avx_pblendw.
9176         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9177         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9178         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9179         VF mode iterator.
9180         (sse4_1_round<ssescalarmodesuffix>): Merge with
9181         *avx_round<ssescalarmodesuffix>.
9182         (aesenc): Merge with *avx_aesenc.
9183         (aesenclast): Merge with *avx_aesenclast.
9184         (aesdec): Merge with *avx_aesdec.
9185         (aesdeclast): Merge with *avx_aesdeclast.
9186         (pclmulqdq): Merge with *pclmulqdq.
9187         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9188         New predicate.
9189         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9190
9191 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
9192
9193         PR middle-end/48608
9194         * cfgexpand.c (get_decl_align_unit): Renamed to ...
9195         (align_local_variable): This.  Update DECL_ALIGN.
9196         (add_stack_var): Updated.
9197         (expand_one_stack_var): Likewise.
9198
9199 2011-04-14  Richard Guenther  <rguenther@suse.de>
9200
9201         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9202         Remove.
9203         (dse_initialize_block_local_data, dse_leave_block,
9204         record_voperand_set, get_stmt_uid): Likewise.
9205         (dse_possible_dead_store_p): Allow any kind of killing stmt.
9206         (dse_optimize_stmt): Remove voperand set handling code.
9207         Simplify and improve to handle any kind of killing stmt.
9208         (dse_record_phi): Remove.
9209         (dse_enter_block): Simplify.
9210         (tree_ssa_dse): Likewise.
9211         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9212
9213 2011-04-14  Jan Hubicka  <jh@suse.cz>
9214
9215         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9216         * cgraph.h (struct inline_summary): Move to ipa-inline.h
9217         (cgraph_local_info): Remove inline_summary.
9218         * ipa-cp.c: Include ipa-inline.h.
9219         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9220         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9221         accesor.
9222         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9223         (input_overwrite_node): Do not set inline summary.
9224         (input_node): Do not stream inline summary.
9225         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9226         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9227         growth; we do not have inline parameters computed for that anyway.
9228         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9229         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9230         (inline_summary_t): New type and VECtor.
9231         (debug_inline_summary, dump_inline_summaries): Declare.
9232         (inline_summary): Use VOCtor.
9233         (estimate_edge_growth): Kill hack computing call stmt size directly.
9234         * lto-section-in.c (lto_section_name): Add inline section.
9235         * ipa-inline-analysis.c: Include lto-streamer.h
9236         (node_removal_hook_holder, node_duplication_hook_holder): New holders
9237         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9238         (inline_summary_vec): Define.
9239         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9240         dump_inline_summaries): New functions.
9241         (estimate_function_body_sizes): Properly compute size/time of outgoing
9242         calls.
9243         (compute_inline_parameters): Alloc inline_summary; do not compute
9244         size/time of incomming calls.
9245         (estimate_edge_time): Avoid missing time summary hack.
9246         (inline_read_summary): Read inline summary info.
9247         (inline_write_summary): Write inline summary info.
9248         (inline_free_summary): Free all hooks and inline summary vector.
9249         * lto-streamer.h: Add LTO_section_inline_summary section.
9250         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9251         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9252
9253 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9254
9255         * tree-vectorizer.h (vect_strided_store_supported): Add a
9256         HOST_WIDE_INT argument.
9257         (vect_strided_load_supported): Likewise.
9258         (vect_permute_store_chain): Return void.
9259         (vect_transform_strided_load): Likewise.
9260         (vect_permute_load_chain): Delete.
9261         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9262         count argument.  Check that the count is a power of two.
9263         (vect_strided_load_supported): Likewise.
9264         (vect_permute_store_chain): Return void.  Update after above changes.
9265         Assert that the access is supported.
9266         (vect_permute_load_chain): Likewise.
9267         (vect_transform_strided_load): Return void.
9268         * tree-vect-stmts.c (vectorizable_store): Update calls after
9269         above interface changes.
9270         (vectorizable_load): Likewise.
9271         (vect_analyze_stmt): Don't check for strided powers of two here.
9272
9273 2011-04-14  Richard Guenther  <rguenther@suse.de>
9274
9275         PR tree-optimization/48590
9276         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9277         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9278         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9279         BUILT_IN_STACK_SAVE.
9280         * tree-ssa-dce.c (propagate_necessity): Handle
9281         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9282
9283 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9284
9285         * c-parser.c (c_parser_objc_class_declaration): Updated call to
9286         objc_declare_class.
9287
9288 2011-04-14  Richard Guenther  <rguenther@suse.de>
9289
9290         * tree.h (get_object_alignment_1): Declare.
9291         * builtins.c (get_object_alignment_1): Split out worker from ...
9292         (get_object_alignment): ... here.
9293         * fold-const.c (get_pointer_modulus_and_residue): Use
9294         get_object_alignment_1.
9295
9296 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9297
9298         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9299         type parameter.
9300         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9301         parameter.  Generalise code to handle arrays as well as vectors.
9302         (vect_setup_realignment): Update accordingly.
9303         * tree-vect-stmts.c (vectorizable_store): Likewise.
9304         (vectorizable_load): Likewise.
9305
9306 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9307
9308         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9309         within the per-copy loop.
9310
9311 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9312
9313         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9314         in the dump file.
9315
9316 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9317
9318         * doc/options.texi (Negative): Explicitly mention that the
9319         Negative chain must be circular.
9320
9321 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
9322
9323         * function.h (block_chainon): Declare.
9324         * function.c (block_chainon): Define.
9325
9326 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
9327             Eric Weddington  <eric.weddington@atmel.com>
9328             Georg-Johann Lay  <avr@gjlay.de>
9329
9330         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9331         New Includes
9332         (avr_init_builtins, avr_expand_builtin,
9333         avr_expand_delay_cycles, avr_expand_unop_builtin,
9334         avr_expand_binop_builtin ): New functions.
9335         (avr_builtin_id): New enum
9336         (struct avr_builtin_description): New struct
9337         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9338         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9339
9340         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9341         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9342         UNSPECV_DELAY_CYCLES): new enumeration values
9343         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9344         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9345         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9346         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9347         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9348         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9349         "fmulsu"): New insns
9350
9351         * config/avr/avr-c.c: fix line endings
9352         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9353         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9354         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9355         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9356         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9357
9358         * doc/extend.texi (AVR Built-in Functions): New node
9359         (Target Builtins): Add documentation of AVR
9360         built-in functions.
9361
9362 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
9363
9364         PR target/44643
9365         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9366         alone. Error if non-const data has attribute progmem.
9367
9368 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9369
9370         * tree.h (struct tree_constructor): Include tree_typed instead of
9371         tree_common.
9372         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9373         TS_TYPED instead of TS_COMMON.
9374
9375 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9376
9377         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9378         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9379         (sse2_psadbw): Merge with *avx_psadbw.
9380         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9381         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9382         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9383         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9384         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9385         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9386         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9387         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9388         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9389         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9390         (ssse3_palignrti): Merge with *avx_palignrti.
9391
9392 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9393
9394         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9395         * tree-ssanames.c (fini_ssanames): VEC_free it.
9396         (make_ssa_name_fn): Update for VECness of free_ssanames.
9397         (release_ssa_name, release_dead_ssa_names): Likewise.
9398         * tree.h (struct tree_ssa_name): Include tree_typed instead of
9399         tree_common.
9400         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9401         TS_TYPED instead of TS_COMMON.
9402
9403 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9404
9405         * postreload-gcse.c (gcse_after_reload_main): Add calls to
9406         statistics_counter_event.
9407         * tree-ssa-copyrename.c (stats): Define.
9408         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
9409         statistics_counter_event.
9410         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9411         (bswap_stats, widen_mul_stats): Define.
9412         (insert_reciprocals): Increment rdivs_inserted.
9413         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
9414         rfuncs_inserted.  Add calls to statistics_counter_event.
9415         (execute_cse_sincos_1): Increment inserted.
9416         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
9417         statistics_counter_event.
9418         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
9419         of bswap_stats.  Add calls to statistics_counter_event.
9420         (convert_mult_to_widen): Increment widen_mults_inserted.
9421         (convert_plusminus_to_widen): Increment maccs_inserted.
9422         (convert_mult_to_fma): Increment fmas_inserted.
9423         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
9424         calls to statistics_counter_event.
9425
9426 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
9427
9428         PR rtl-optimization/48455
9429         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9430         `temp_costs->mem_cost'.
9431
9432 2011-04-13  Jan Hubicka  <jh@suse.cz>
9433
9434         * ipa-inline.h: New file.
9435         * ipa-inline-analysis.c: New file. Broken out of ...
9436         * ipa-inline.c: ... this file; update toplevel comment;
9437         include ipa-inline.h
9438         (inline_summary): Move to ipa-inline.h
9439         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9440         ipa-inline-analysis.c.
9441         (cgraph_estimate_time_after_inlining): Rename to
9442         estiamte_time_after_inlining; move to ipa-inline-analysis.c
9443         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9444         to estimate_edge_growth.
9445         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9446         rename to estimate_size_after_inlining.
9447         (cgraph_mark_inline_edge): Update for new naming convention.
9448         (cgraph_check_inline_limits): Likewise.
9449         (cgraph_edge_badness): Likewise.
9450         (cgraph_decide_recursive_inlining): Likewise.
9451         (cgraph_decide_inlining_of_small_functions): Likewise.
9452         (cgraph_decide_inlining_incrementally): Likewise.
9453         (cgraph_estimate_growth): Rename to estimate_growth; move to
9454         ipa-inline-analysis.c.
9455         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9456         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9457         (compute_inline_parameters): Likewise.
9458         (compute_inline_parameters_for_current): Likewise.
9459         (pass_inline_parameters): Likewise.
9460         (inline_indirect_intraprocedural_analysis): Likewise.
9461         (analyze_function): Rename to inline_analyze_function; likewise.
9462         (add_new_function): Move to ipa-inline-analysis.c.
9463         (inline_generate_summary): Likewise.
9464         (inline_read_summary): Likewise.
9465         (inline_write_summary): Likewise.
9466         * Makefile.in (ipa-inline-analysis.c): New file.
9467
9468 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9469
9470         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9471         * configure: Regenerate.
9472
9473 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9474
9475         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9476         instead of tree_common.
9477         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9478         Likewise.
9479         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9480         TS_TYPED rather than TS_COMMON.
9481         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9482
9483 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
9484
9485         PR target/45263
9486         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9487         r20 around calls of __tablejump_elpm__
9488
9489 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
9490
9491         PR middle-end/48591
9492         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9493         NULL.
9494         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9495
9496 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
9497
9498         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9499         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9500         (cfi_vec): New typedef.
9501         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9502         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9503         (cie_cfi_vec): New static variable.
9504         (cie_cfi_head): Delete.
9505         (add_cfi): Accept a cfi_vec * as first argument. All callers and
9506         declaration changed. Use vector rather than list operations.
9507         (new_cfi): Don't initialize the dw_cfi_next field.
9508         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9509         rather than list operations.
9510         (lookup_cfa): Use vector rather than list operations.
9511         (output_cfis): New argument upto. Accept a cfi_vec rather than
9512         a dw_cfi_ref list head as argument. All callers changed.
9513         Iterate over the vector using upto as a maximum index.
9514         (output_all_cfis): New static function.
9515         (output_fde): Use vector rather than list operations. Use the
9516         new upto argument for output_cfis rather than manipulating a
9517         list.
9518         (dwarf2out_begin_prologue): Change initializations to match
9519         new struct members.
9520         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9521         from the vector length rather than searching for the end of a list.
9522         Use output_all_cfis.
9523         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9524
9525 2011-04-13  Nick Clifton  <nickc@redhat.com>
9526
9527         * config/rx/rx.md (movmemsi): Do not use this pattern when
9528         volatile pointers are involved.
9529
9530 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9531
9532         * config/i386/sse.md (pinsrbits): Remove.
9533         (sse2_packsswb): Merge with *avx_packsswb.
9534         (sse2_packssdw): Merge with *avx_packssdw.
9535         (sse2_packuswb): Merge with *avx_packuswb.
9536         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9537         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9538         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9539         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9540         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9541         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9542         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9543         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9544         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9545         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9546         (sse2_loadld): Merge with *avx_loadld.
9547         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9548         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9549         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9550         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9551         (vec_concatv2di): Merge with *vec_concatv2di_avx.
9552
9553 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
9554
9555         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9556         calling TREE_CHAIN.
9557         * print-tree.c (print_node): Likewise.
9558         * tree-inline.c (copy_tree_r): Likewise.
9559         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9560         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9561         instead of TS_COMMON.
9562         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9563         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9564         (copy_node_stat): Zero TREE_CHAIN only if necessary.
9565         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9566         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9567         ...and these...
9568         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9569         * tree.h: ...here.
9570         (TREE_CHAIN): Check for a TS_COMMON structure.
9571         (TREE_TYPE): Check for a TS_TYPED structure.
9572
9573 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
9574
9575         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9576         cgraph_get_create_node instead of cgraph_node.
9577
9578 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
9579
9580         * c-parser.c (c_parser_initelt): Updated call to
9581         objc_build_message_expr.
9582         (c_parser_postfix_expression): Likewise.
9583
9584 2011-04-12  Kai Tietz  <ktietz@redhat.com>
9585
9586         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9587         MASK_MS_BITFIELD_LAYOUT bit.
9588
9589 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9590
9591         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9592         assert it is always true.
9593         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9594         moves.
9595
9596 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
9597
9598         * c-parser.c (c_lex_one_token): Rewritten conditional used when
9599         compiling Objective-C to be more efficient.
9600
9601 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
9602
9603         * opts-common.c (decode_cmdline_options_to_array): Remove variable
9604         argv_copied.
9605
9606 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9607
9608         * recog.h, genoutput.c, optabs.c: Revert last patch.
9609
9610 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9611
9612         PR target/48090
9613         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
9614
9615 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9616
9617         * recog.h (insn_operand_data): Add an "allows_mem" field.
9618         * genoutput.c (output_operand_data): Initialize it.
9619         * optabs.c (maybe_legitimize_operand_same_code): New function.
9620         (maybe_legitimize_operand): Use it when matching the original
9621         op->value.
9622
9623 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9624
9625         * genpreds.c (process_define_predicate): Move most processing
9626         to gensupport.c.  Continue to validate the expression.
9627         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9628         (process_define_predicate): Move processing to gensupport.c.
9629         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9630         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9631         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
9632         argument.
9633         (valid_predicate_name_p): New function, split out from old
9634         genpreds.c:process_define_predicate.
9635         (process_define_predicate): New function, combining code from
9636         old genpreds.c and genrecog.c functions.
9637         (process_rtx): Call it for DEFINE_PREDICATE and
9638         DEFINE_SPECIAL_PREDICATE.
9639
9640 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9641
9642         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9643         size of a '%A' memory reference.
9644         (T_DREG, T_QREG): New neon_builtin_type_bits.
9645         (arm_init_neon_builtins): Assert that the load and store operands
9646         are neon_struct_operands.
9647         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9648         (NEON_ARG_MEMORY): New builtin_arg.
9649         (neon_dereference_pointer): New function.
9650         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9651         Handle NEON_ARG_MEMORY.
9652         (arm_expand_neon_builtin): Update after above interface changes.
9653         Use NEON_ARG_MEMORY for loads and stores.
9654         * config/arm/predicates.md (neon_struct_operand): New predicate.
9655         * config/arm/iterators.md (V_two_elem): Tweak formatting.
9656         (V_three_elem): Use BLKmode for accesses that have no associated mode.
9657         (V_four_elem): Tweak formatting.
9658         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9659         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9660         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9661         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9662         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9663         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9664         (neon_vst4<mode>): Replace pointer operand with a memory operand.
9665         Use %A in the output template.
9666         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9667         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9668         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9669         the width of the memory access.  Remove post-increment.
9670         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9671
9672 2011-04-12  Nick Clifton  <nickc@redhat.com>
9673
9674         * config/v850/v850.c (expand_prologue): Do not use the CALLT
9675         instruction for interrupt handlers if the target is the basic V850
9676         architecture.
9677         (expand_epilogue): Likewise.
9678
9679 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9680
9681         PR rtl-optimization/48549
9682         * combine.c (propagate_for_debug): Also stop after BB_END of
9683         this_basic_block.  Process LAST and just stop processing after it.
9684         (combine_instructions): If last_combined_insn has been deleted,
9685         set last_combined_insn to its PREV_INSN.
9686
9687 2011-04-12  Richard Guenther  <rguenther@suse.de>
9688
9689         PR tree-optimization/46076
9690         * gimple.h (struct gimple_statement_call): Add fntype field.
9691         (gimple_call_fntype): Adjust.
9692         (gimple_call_set_fntype): New function.
9693         * gimple.c (gimple_build_call_1): Set the call function type.
9694         * gimplify.c (gimplify_call_expr): Preserve the function
9695         type the frontend used for the call.
9696         (gimplify_modify_expr): Likewise.
9697         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9698         function type.
9699         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9700         function type.
9701         * tree-ssa.c (useless_type_conversion_p): Function pointer
9702         conversions are useless.
9703
9704 2011-04-12  Martin Jambor  <mjambor@suse.cz>
9705
9706         * cgraph.h (cgraph_node): Remove function declaration.
9707         (cgraph_create_node): Declare.
9708         (cgraph_get_create_node): Likewise.
9709         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9710         Updated all callers.
9711         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9712         the decl does not already exist.  Call cgraph_get_create_node instead
9713         of cgraph_node.
9714         (cgraph_get_create_node): New function.
9715         (cgraph_same_body_alias): Update comment.
9716         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9717         assert it does not return NULL.
9718         (cgraph_update_edges_for_call_stmt): Likewise.
9719         (cgraph_clone_edge): Likewise.
9720         (cgraph_create_virtual_clone): Likewise.
9721         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9722         instead of cgraph_node.
9723         (cgraph_add_new_function): Call cgraph_create_node or
9724         cgraph_get_create_node instead of cgraph_node.
9725         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9726         instead of cgraph_node.
9727         (record_eh_tables): Likewise.
9728         (mark_address): Likewise.
9729         (mark_load): Likewise.
9730         (build_cgraph_edges): Call cgraph_get_create_node instead
9731         of cgraph_node.
9732         (rebuild_cgraph_edges): Likewise.
9733         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9734         instead of cgraph_node.
9735         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9736         cgraph_node.
9737         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9738         cgraph_create_node instead of cgraph_node.
9739         * c-decl.c (finish_function): Call cgraph_get_create_node instead
9740         of cgraph_node.
9741         * lto-cgraph.c (input_node): Likewise.
9742         * lto-streamer-in.c (input_function): Likewise.
9743         * varasm.c (mark_decl_referenced): Likewise.
9744         (assemble_alias): Likewise.
9745
9746 2011-04-12  Martin Jambor  <mjambor@suse.cz>
9747
9748         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9749         instead of cgraph_node and assert it does not return NULL.
9750         * lto-streamer-in.c (lto_read_body): Likewise.
9751         * omp-low.c (new_omp_context): Likewise.
9752         (create_task_copyfn): Likewise.
9753         * tree-emutls.c (lower_emutls_function_body): Likewise.
9754         * matrix-reorg.c (transform_allocation_sites): Likewise.
9755
9756 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9757
9758         PR c/48552
9759         * c-typeck.c (build_asm_expr): Error out on attempts to use
9760         void type outputs or inputs for constraints that allow reg or
9761         don't allow memory.
9762
9763 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
9764             Richard Earnshaw  <rearnsha@arm.com>
9765
9766         PR target/48250
9767         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9768         to use sign-magnitude offsets. Reject unsupported unaligned
9769         cases. Add detailed description in comments.
9770         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9771         condition from TARGET_32BIT to TARGET_ARM.
9772
9773 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
9774
9775         * tree.h (struct typed_tree): New.
9776         (struct tree_common): Include it instead of tree_base.
9777         (TREE_TYPE): Update for new location of type field.
9778         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9779         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9780         (union tree_node): Add typed field.
9781         * treestruct.def (TS_TYPED): New.
9782         * lto-streamer.c (check_handled_ts_structures): Handle it.
9783         * tree.c (MARK_TS_TYPED): New macro.
9784         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9785
9786 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
9787
9788         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9789         (force_nonfallthru): Do not alter the loop nest if no basic block
9790         was created.
9791
9792 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
9793
9794         * config/i386/sse.md (VI): New mode iterator.
9795         (SSEMODEI): Remove.
9796         (AVX256MODEI): Ditto.
9797         (AVXMODEF4P): Ditto.
9798         (avxvecpsmode): Ditto.
9799         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
9800         (sse2_andnot<mode>3): New expander.
9801         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9802         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
9803         (<any_logic:code><mode>3): Use VI mode iterator.
9804         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9805         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
9806         (*andnottf3): Handle AVX three-operand constraints.
9807         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9808
9809 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9810             Robert Millan  <rmh@gnu.org>
9811
9812         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9813         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9814         GNU_USER_DYNAMIC_LINKER64): Define.
9815         (REG_NAME): Don't undefine.
9816         (MD_UNWIND_SUPPORT): Undefine.
9817         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9818         (REG_NAME): Don't undefine.
9819         (MD_UNWIND_SUPPORT): Undefine.
9820         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9821
9822 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9823
9824         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9825         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9826
9827 2011-04-11  Xinliang David Li  <davidxl@google.com>
9828
9829         * value-profile.c (check_ic_target): New function.
9830         (gimple_ic_transform): Sanity check indirect call target.
9831         * gimple-low.c (gimple_check_call_args): Interface change.
9832         (gimple_check_call_matching_types): New function.
9833         * tree-inline.c (tree_can_inline_p): Call new function.
9834
9835 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
9836
9837         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9838         tree-pretty-print.h & realmpfr.h.
9839
9840 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
9841
9842         PR middle-end/48464
9843         * ira.c (setup_pressure_classes): Fix typo in loop condition.
9844         (setup_allocno_and_important_classes): Ditto.
9845
9846 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9847
9848         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9849         GNU_USER_DYNAMIC_LINKER.
9850         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9851         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9852         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9853         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9854         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9855         GNU_USER_TARGET_OS_CPP_BUILTINS.
9856         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9857         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9858         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9859         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9860         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9861         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9862         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9863         GNU_USER_TARGET_OS_CPP_BUILTINS.
9864         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9865         GNU_USER_DYNAMIC_LINKER.
9866         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9867         GNU_USER_TARGET_OS_CPP_BUILTINS.
9868         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9869         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9870         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9871         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9872         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9873         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9874         GNU_USER_DYNAMIC_LINKER64): Remove.
9875         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9876         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9877         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9878         GNU_USER_DYNAMIC_LINKER.
9879         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9880         GNU_USER_TARGET_OS_CPP_BUILTINS.
9881         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9882         GNU_USER_TARGET_OS_CPP_BUILTINS.
9883         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9884         to GNU_USER_TARGET_OS_CPP_BUILTINS.
9885         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9886         GNU_USER_TARGET_OS_CPP_BUILTINS.
9887         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9888         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9889         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9890         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9891         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9892         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9893         GNU_USER_DYNAMIC_LINKER.
9894         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9895         GNU_USER_TARGET_OS_CPP_BUILTINS.
9896         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9897         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9898         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9899         GNU_USER_DYNAMIC_LINKER.
9900         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9901         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9902         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9903         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9904         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9905         GNU_USER_DYNAMIC_LINKER.
9906         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9907         GNU_USER_DYNAMIC_LINKERN32.
9908         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9909         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
9910         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
9911         GNU_USER_DYNAMIC_LINKER32.
9912         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9913         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9914         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9915         GNU_USER_DYNAMIC_LINKER.
9916         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9917         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9918         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9919         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9920         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9921         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9922         GNU_USER_DYNAMIC_LINKER32.
9923         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9924         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9925         GNU_USER_DYNAMIC_LINKER.
9926         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9927         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9928         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9929         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
9930         GNU_USER_DYNAMIC_LINKER64.
9931         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9932         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9933         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9934         GNU_USER_DYNAMIC_LINKER.
9935         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9936         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9937         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9938         GNU_USER_DYNAMIC_LINKER.
9939         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9940         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9941         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9942         GNU_USER_DYNAMIC_LINKER32.
9943         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9944         GNU_USER_DYNAMIC_LINKER64.
9945         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9946         GNU_USER_DYNAMIC_LINKER64.
9947         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
9948         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9949         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
9950         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9951         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9952
9953 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9954
9955         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
9956         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
9957         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
9958         GNU_USER_DYNAMIC_LINKER.
9959         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9960         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
9961         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
9962         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
9963         GNU_USER_DYNAMIC_LINKER64.
9964         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9965         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
9966         GNU_USER_LINK_EMULATION.
9967         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
9968         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
9969         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
9970         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
9971         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
9972         CPP_SPEC, CC1_SPEC): Remove.
9973         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
9974         (GNU_USER_DYNAMIC_LINKER): Define.
9975         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
9976         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
9977         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
9978         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
9979         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
9980         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
9981         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9982         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
9983         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
9984         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
9985         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
9986         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
9987         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
9988         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
9989         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
9990         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9991         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9992         GNU_USER_DYNAMIC_LINKER.
9993         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9994         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
9995         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9996         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
9997         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9998         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
9999         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10000         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10001         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10002         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10003
10004 2011-04-11  Kai Tietz  <ktietz@redhat.com>
10005
10006         PR target/9601
10007         PR target/11772
10008         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10009         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10010         comment.
10011         (ix86_is_msabi_thiscall): Removed.
10012         (ix86_is_type_thiscall): Likewise.
10013         (ix86_get_callcvt): New function.
10014         (ix86_comp_type_attributes): Simplify check.
10015         (ix86_function_regparm): Use ix86_get_callcvt for calling
10016         convention attribute checks.
10017         (ix86_return_pops_args): Likewise.
10018         (ix86_static_chain): Likewise.
10019         (x86_this_parameter): Likewise.
10020         (x86_output_mi_thunk): Likewise.
10021         (ix86_function_type_abi): Optimize check for types without attributes.
10022         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10023         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10024         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10025         by flag-values.
10026         (IX86_BASE_CALLCVT): Helper macro.
10027         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10028         Use ix86_get_callcvt for calling convention attribute checks and avoid
10029         symbol-decoration for stdcall in TARGET_RTD case.
10030         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10031         Likewise.
10032         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10033         for declaration.
10034
10035 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10036
10037         * config/i386/sse.md (VI_128): New mode iterator.
10038         (VI12_128): Rename from SSEMODE12.
10039         (VI14_128): Rename from SSEMODE14.
10040         (VI124_128): New mode iterator.
10041         (VI24_128): Rename from SSEMODE248.
10042         (VI248_128): Rename from SSEMODE248.
10043         (SSEMODE124C8): Remove.
10044         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10045         (*sse2_<plusminus_insn><mode>3): Merge with
10046         *avx_<plusminus_insn><mode>3.
10047         (*mulv8hi3): Merge with *avx_mulv8hi3.
10048         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10049         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10050         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10051         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10052         (ashr<mode>3): Merge with *avx_ashr<mode>3.
10053         (lshr<mode>3): Merge with *avx_lshr<mode>3.
10054         (ashl<mode>3): Merge with *avx_ashl<mode>3.
10055         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10056         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10057         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10058         (*<smaxmin:code>v8hi3): Ditto.
10059         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10060         (*<smaxmin:code>v16qi3): Ditto.
10061         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10062         (*sse2_eq<mode>3): Ditto.
10063         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10064         (*sse2_gt<mode>3): Ditto.
10065         (vcondv2di): Split out of vcond<mode>.
10066         (vconduv2di): Split out of vcondu<mode>.
10067
10068 2011-04-11  Richard Guenther  <rguenther@suse.de>
10069
10070         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10071         before calling tree_low_cst.
10072
10073 2011-04-11  Richard Guenther  <rguenther@suse.de>
10074
10075         * stor-layout.c (layout_type): Compute all array index size operations
10076         in the original type.
10077         (initialize_sizetypes): Add comment.
10078         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10079
10080 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10081
10082         * common.opt (Tbss=, Tdata=, Ttext=): New options.
10083
10084 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10085
10086         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10087         of cgraph_node, handle NULL return value.
10088         (cgraph_global_info): Likewise.
10089         (cgraph_rtl_info): Likewise.
10090         * tree-inline.c (estimate_num_insns): Likewise.
10091         * gimplify.c (unshare_body): Likewise.
10092         (unvisit_body): Likewise.
10093         (gimplify_body): Likewise.
10094         * predict.c (optimize_function_for_size_p): Likewise.
10095         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10096         (call_may_clobber_ref_p_1): Likewise.
10097         * varasm.c (function_section_1): Likewise.
10098         (assemble_start_function): Likewise.
10099
10100 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10101
10102         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10103         of cgraph_node.
10104         * final.c (rest_of_clean_state): Likewise.
10105         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10106         * passes.c (pass_init_dump_file): Likewise.
10107         (execute_all_ipa_transforms): Likewise.
10108         (function_called_by_processed_nodes_p): Likewise.
10109         * predict.c (maybe_hot_frequency_p): Likewise.
10110         (probably_never_executed_bb_p): Likewise.
10111         (compute_function_frequency): Likewise.
10112         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10113         (unnest_nesting_tree_1): Likewise.
10114         (lower_nested_functions): Likewise.
10115         * tree-optimize.c (execute_fixup_cfg): Likewise.
10116         (tree_rest_of_compilation): Likewise.
10117         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10118         * tree-sra.c (ipa_early_sra): Likewise.
10119         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10120         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10121         * ipa.c (record_cdtor_fn): Likewise.
10122         * ipa-inline.c (cgraph_early_inlining): Likewise.
10123         (compute_inline_parameters_for_current): Likewise.
10124         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10125         * ipa-pure-const.c (local_pure_const): Likewise.
10126         * ipa-split.c (split_function): Likewise.
10127         (execute_split_functions): Likewise.
10128         * cgraphbuild.c (build_cgraph_edges): Likewise.
10129         (rebuild_cgraph_edges): Likewise.
10130         (cgraph_rebuild_references): Likewise.
10131         (remove_cgraph_callee_edges): Likewise.
10132         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10133         (verify_cgraph_node): Likewise.
10134         (cgraph_analyze_functions): Likewise.
10135         (cgraph_preserve_function_body_p): Likewise.
10136         (save_inline_function_body): Likewise.
10137         (save_inline_function_body): Likewise.
10138         * tree-inline.c (copy_bb): Likewise.
10139         (optimize_inline_calls): Likewise.
10140
10141 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10142
10143         PR tree-optimization/48195
10144         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10145         ipa_check_create_edge_args.
10146         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10147         ipa_check_create_edge_args.
10148         * ipa-inline.c (inline_generate_summary): Do not call
10149         ipa_check_create_node_params and ipa_check_create_edge_args.
10150         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10151         ipa_check_create_edge_args.
10152
10153 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
10154
10155         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10156         instead of loop.
10157         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10158         * function.c (record_hard_reg_sets): Likewise.
10159         * ira.c (compute_regs_asm_clobbered): Likewise.
10160         * sched-deps.c (sched_analyze_1): Likewise.
10161         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10162
10163 2011-04-09  Xinliang David Li  <davidxl@google.com>
10164
10165         PR tree-optimization/PR48484
10166         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10167         has_valid_pred lazily
10168
10169 2011-04-09  Duncan Sands  <baldrick@free.fr>
10170
10171         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10172
10173 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
10174
10175         * combine.c (combine_validate_cost): Adjust comments.  Set registered
10176         cost of I0 to zero at the end, if any.
10177
10178 2011-04-08  Xinliang David Li  <davidxl@google.com>
10179
10180         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10181         to insane profile data.
10182
10183 2011-04-08  Xinliang David Li  <davidxl@google.com>
10184
10185         * ipa-cp.c (ipcp_update_profiling): Correct
10186          negative scale factor due to insane profile data.
10187
10188 2011-04-08  Xinliang David Li  <davidxl@google.com>
10189
10190         * final.c (dump_basic_block_info): New function.
10191         (final): Dump basic block.
10192         (final_scan_insn): Remove old dump.
10193
10194 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
10195
10196         PR target/47829
10197         * config.gcc (i386-*-freebsd): Disable unwind table generation for
10198         crtbegin/crtend.
10199
10200 2011-04-08  Michael Matz  <matz@suse.de>
10201
10202         PR middle-end/48389
10203         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10204         functions.
10205         (rebuild_jump_labels): Call rebuild_jump_labels_1.
10206         * rtl.h (rebuild_jump_labels_chain): Declare.
10207         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10208         insns inserted on edges.
10209
10210 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
10211
10212         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10213         * config/arm/arm-arches.def: New.
10214         * config/arm/arm-opts.h: New.
10215         * config/arm/genopt.sh: New.
10216         * config/arm/arm-tables.opt: New (generated).
10217         * config/arm/arm.c (arm_handle_option, arm_target_help,
10218         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10219         (all_architectures): Get most table contents from arm-arches.def.
10220         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10221         arm_selected_tune here.
10222         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10223         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10224         (march=, mcpu=, mtune=): Use Enum and Var.
10225         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10226         (arm.o): Update dependencies.
10227
10228 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
10229
10230         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10231         of header_file.
10232         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10233         (write_typed_alloc_defns): Likewise.
10234         (main): Calls write_typed_alloc_defns with output_header.
10235
10236 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
10237
10238         PR inline-asm/48435
10239         * ira-color.c (setup_profitable_hard_regs): Add comments.
10240         Don't take prohibited hard regs into account.
10241         (setup_conflict_profitable_regs): Rename to
10242         get_conflict_profitable_regs.
10243         (check_hard_reg_p): Check prohibited hard regs.
10244
10245 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
10246
10247         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10248         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10249         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10250
10251 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10252
10253         PR target/48366
10254         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10255         move from floating point to shift amount register.
10256         (emit_move_sequence): Remove secondary reload support for floating
10257         point to shift amount amount register copies.
10258         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10259         amount register copies.
10260         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10261         register, return false if mode isn't a scalar integer mode.
10262         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10263
10264 2011-04-08  Richard Guenther  <rguenther@suse.de>
10265
10266         * gimple.c (gimple_call_flags): Remove kludge.
10267
10268 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10269
10270         * sel-sched.c (sel_region_init): Move call to
10271         sel_setup_region_sched_flags after setup_current_loop_nest.
10272
10273 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
10274
10275         PR rtl-optimization/48272
10276         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10277         init_insn_reg_pressure_info.  Adjust a caller.
10278         * sched-int.h (init_insn_reg_pressure_info): Declare.
10279         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10280         when sched-pressure is enabled.
10281
10282 2011-04-08  Richard Guenther  <rguenther@suse.de>
10283
10284         * gimple.c (gimple_set_modified): Do not queue calls to
10285         MODIFIED_NORETURN_CALLS here ...
10286         * tree-ssa-operands.c (update_stmt_operands): ... but here.
10287
10288 2011-04-08  Richard Guenther  <rguenther@suse.de>
10289
10290         PR lto/48467
10291         * toplev.c (lang_dependent_init): Do not open asm_out_file
10292         in WPA mode, nor perform debug machinery initialization.
10293         (finalize): Do not unlink asm_out_file in WPA mode.
10294
10295 2011-04-08  Richard Guenther  <rguenther@suse.de>
10296
10297         * gimple.h (gimple_call_fntype): New function.
10298         (gimple_call_return_type): Use it.
10299         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10300         * gimple-low.c (gimple_check_call_args): Likewise.
10301         * gimple.c (gimple_call_flags): Likewise.
10302         (gimple_call_arg_flags): Likewise.
10303         (gimple_call_return_flags): Likewise.
10304         * tree-cfg.c (verify_gimple_call): Likewise.
10305         (do_warn_unused_result): Likewise.
10306         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10307         * value-prof.c (gimple_ic_transform): Fix fndecl check.
10308
10309 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
10310
10311         PR rtl-optimization/48235
10312         * sel-sched.c (code_motion_process_successors): Recompute the last
10313         insn in basic block if control flow changed.
10314         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
10315         Update condition for ilist_remove.
10316
10317 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10318
10319         PR rtl-optimization/48302
10320         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10321         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
10322         it to record added preheader blocks.
10323         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
10324         on to sel_add_loop_preheaders.
10325         (sel_region_init): Move call to setup_current_loop_nest after
10326         sel_init_bbs.
10327
10328 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10329
10330         PR target/48273
10331         * cfgloop.h (loop_has_exit_edges): New helper.
10332         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10333         non-clonable.
10334         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10335         that have no exit edges.
10336
10337 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10338
10339         PR rtl-optimization/48442
10340         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
10341         all callers.  Adjust assert.
10342
10343 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
10344
10345         PR tree-optimization/48377
10346         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10347         is_packed to true even for types with smaller TYPE_ALIGN than
10348         TYPE_SIZE.
10349
10350 2011-04-08  Richard Guenther  <rguenther@suse.de>
10351
10352         PR bootstrap/48513
10353         * doc/tm.texi: Re-generate.
10354
10355 2011-04-08  Wei Guozhi  <carrot@google.com>
10356
10357         PR target/47855
10358         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10359         * config/arm/arm.c (arm_attr_length_push_multi): New function.
10360         * config/arm/arm.md (*push_multi): Change the length computation to
10361         call a C function.
10362
10363 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
10364
10365         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10366         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10367         * doc/tm.texi: Regenerate.
10368         * system.h (ASM_OUTPUT_BSS): Poison.
10369         * varasm.c (asm_output_bss): Remove function.
10370         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10371
10372         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10373         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10374         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10375         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10376         Likewise.
10377         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10378         Likewise.
10379         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10380         Likewise.
10381         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10382
10383 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10384
10385         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10386         EnumValue lines.
10387
10388 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10389
10390         * config/m68k/m68k.c (m68k_handle_option): Don't handle
10391         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10392         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10393         OPT_mcpu32.
10394         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10395         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10396         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10397         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10398         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10399         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10400         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10401         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10402         options.  Don't map other m68k options manually.  Don't handle
10403         old-style options as canonical.
10404         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10405         * doc/install.texi (m68k-*-*): Document binutils version requirement.
10406
10407 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10408
10409         * basic-block.h (force_nonfallthru): Move to...
10410         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10411         (force_nonfallthru): ...here.
10412         * cfghooks.c (force_nonfallthru): New function.
10413         * cfgrtl.c (force_nonfallthru): Rename into...
10414         (rtl_force_nonfallthru): ...this.
10415         (commit_one_edge_insertion): Do not set AUX field.
10416         (commit_edge_insertions): Do not discover new basic blocks.
10417         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10418         (cfg_layout_rtl_cfg_hooks): Likewise.
10419         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10420         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
10421         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10422
10423 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
10424
10425         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10426         Remove macros.
10427
10428 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
10429
10430         * config/i386/sse.md: Update copyright year.
10431         (avxcvtvecmode): Remove.
10432         (sse_movhlps): Merge with *avx_movhlps.
10433         (sse_movlhps): Merge with *avx_movlhps.
10434         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10435         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10436         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10437         (sse_loadhps): Merge with *avx_loadhps.
10438         (sse_storelps): Merge with *avx_storelps.
10439         (sse_loadlps): Merge with *avx_loadlps.
10440         (sse_movss): Merge with *avx_movss.
10441         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10442         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10443         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10444         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10445         (vec_set<mode>_0): Ditto.
10446         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10447         (sse4_1_insertps): Merge with *avx_insertps.
10448         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10449         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10450         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10451         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10452         (sse2_storehpd): Merge with *avx_storehpd.
10453         (sse2_loadhpd): Merge with *avx_loadhpd.
10454         (sse2_loadlpd): Merge with *avx_loadlpd.
10455         (sse2_movsd): Merge with *avx_movsd.
10456         (*vec_concatv2df): Merge with *vec_concatv2df.
10457
10458 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
10459
10460         PR debug/48343
10461         * combine.c (combine_instructions): Add last_combined_insn,
10462         update it if insn is after it, pass it to all try_combine calls.
10463         (try_combine): Add last_combined_insn parameter, pass it instead of
10464         i3 to propagate_for_debug.
10465
10466 2011-04-07  Nick Clifton  <nickc@redhat.com>
10467
10468         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10469         to handle MDR <-> data register transfers.
10470         (movhi_internal): Likewise.
10471
10472 2011-04-07  Alan Modra  <amodra@gmail.com>
10473
10474         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10475         previous stack info.
10476
10477 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10478
10479         PR target/43920
10480         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
10481         flow_find_cross_jump.  Swap variables to implement backward replacement.
10482         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10483
10484 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10485
10486         PR target/43920
10487         * cfgcleanup.c (walk_to_nondebug_insn): New function.
10488         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
10489         and bb2.
10490         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10491         src1 or src2.  Redirect edges to the last basic block.  Update
10492         frequency and count on multiple basic blocks in case of fallthru.
10493
10494 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10495
10496         PR target/43920
10497         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10498         function.
10499         (old_insns_match_p): Change return type.  Replace return false/true
10500         with return dir_none/dir_both.  Use can_replace_by.
10501         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
10502         direction from dir_p.  Register replacement direction in dir, last_dir
10503         and afterlast_dir.  Handle new return type of old_insns_match_p using
10504         merge_dir.  Return replacement direction in dir_p.
10505         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10506         return type of old_insns_match_p.
10507         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10508         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10509         flow_find_cross_jump.
10510         * basic-block.h (enum replace_direction): New type.
10511         (flow_find_cross_jump): Add parameter to declaration.
10512
10513 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
10514
10515         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10516         (AVXMODEDCVTPS2DQ): Ditto.
10517         (VEC_FLOAT_MODE): Ditto.
10518         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
10519         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10520         (<any_logic:code><mode>3): Use VF mode iterator.
10521         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10522         Use VF mode iterator.
10523         (copysign<mode>3): Use VF mode iterator.
10524         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
10525         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10526         (*<any_logic:code><MODEF:mode>3): Merge with
10527         *avx_<any_logic:code><MODEF:mode>3.
10528         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10529         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10530         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10531         (avx_cvtdq2ps<avxmodesuffix>): Remove.
10532         (sse2_cvtdq2ps): Use %v modifier.
10533         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10534         (avx_cvtps2dq<avxmodesuffix>): Remove.
10535         (sse2_cvtps2dq): Use %v modifier.
10536         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10537         (avx_cvttps2dq<avxmodesuffix>): Remove.
10538         (sse2_cvttps2dq): Use %v modifier.
10539         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10540         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10541         (sse2_cvtsd2siq): Fix insn template.
10542         (sse2_cvtsd2siq_2): Ditto.
10543         (sse2_cvttsd2siq): Ditto.
10544         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10545         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10546
10547 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
10548
10549         * gcov-io.c: Use GCC Runtime Library Exception.
10550
10551 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
10552
10553         PR debug/48466
10554         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10555         as base_reg whatever register reg has been eliminated to, instead
10556         of hardcoding STACK_POINTER_REGNUM.
10557
10558 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
10559
10560         * doc/tm.texi.in: Document C target hooks as separate from general
10561         target hooks.
10562         * doc/tm.texi: Regenerate.
10563         * genhooks.c (struct hook_desc): Add docname field.
10564         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
10565         docname field.
10566         (hook_array): Include c-target.def.
10567         (emit_documentation): Use docname field in output.
10568         (emit_init_macros): Take docname argument.  Only emit definitions
10569         for hooks matching docname.
10570         (main): Expect additional arguments in all cases.  Pass argument
10571         to emit_init_macros.
10572         * target.def: Move initial macro definitions and comments to
10573         target-hooks-macros.h.
10574         (gcc_targetcm): Move to c-family/c-target.def.
10575         * target.h (targetcm): Move declaration to c-family/c-target.h.
10576         * targhooks.c (default_handle_c_option): Move to
10577         c-family/c-opts.c.
10578         * targhooks.h (default_handle_c_option): Move declaration to
10579         c-family/c-common.h.
10580         * target-hooks-macros.h: New file.
10581         * config.gcc (target_has_targetcm): Define and use to add to
10582         c_target_objs and cxx_target_objs.
10583         * config/default-c.c: New file.
10584         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10585         of target.h and target-def.h.
10586         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10587         (darwin_objc_construct_string, darwin_cfstring_ref_p,
10588         darwin_check_cfstring_format_arg): Make static.
10589         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10590         TARGET_STRING_OBJECT_REF_TYPE_P,
10591         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10592         * config/darwin-protos.h (darwin_objc_construct_string,
10593         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10594         declare.
10595         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10596         TARGET_STRING_OBJECT_REF_TYPE_P,
10597         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10598         * config/t-darwin (darwin-c.o): Update dependencies.
10599         * system.h (TARGET_HAS_TARGETCM): Poison.
10600         * Makefile.in (TARGET_H): Update.
10601         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10602         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10603         (default-c.o): New target.
10604         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
10605         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
10606         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
10607         c-target.def.
10608         (build/genhooks.o): Update dependencies.
10609
10610 2011-04-06  Richard Guenther  <rguenther@suse.de>
10611
10612         * ipa-inline.c (enum inlining_mode): Remove.
10613         (cgraph_flatten): Use some other token.
10614         (cgraph_edge_early_inlinable_p): New function, split out from ...
10615         (cgraph_perform_always_inlining): New function, split out from ...
10616         (cgraph_decide_inlining_incrementally): ... here.
10617         (cgraph_mark_inline_edge): Adjust.
10618         (cgraph_early_inlining): Re-structure.
10619         (pass_early_inline): Require SSA form.
10620
10621 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
10622             Julian Brown  <julian@codesourcery.com>
10623             Mark Shinwell  <shinwell@codesourcery.com>
10624
10625         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10626         LO_REGS only for Thumb-1.
10627         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10628         be used in short instructions when optimising for size on Thumb-2.
10629
10630 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
10631
10632         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10633         associated with user returns to be preserved.
10634
10635 2011-04-06  Tristan Gingold  <gingold@adacore.com>
10636
10637         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10638         symbol_queue_size, DBXOUT_DECR_NESTING,
10639         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10640         if XCOFF_DEBUGGING_INFO.
10641
10642 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
10643
10644         * config/i386/i386.md (attribute isa): New.
10645         (attribute enabled): New.
10646         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10647         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10648         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10649         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10650         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10651         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10652         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10653         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10654
10655         * config/i386/sse.md (VF): New mode iterator.
10656         (VF1): Ditto.
10657         (VF2): Ditto.
10658         (VF_128): Ditto.
10659         (SSEMODEF4): Remove.
10660         (attribute sse): Handle V8SF and V4DF modes.
10661         (<absneg:code><mode>2): Use VF mode iterator.
10662         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
10663         mode iterator.
10664         (<plusminus_insn><mode>3): Use VF mode iterator.
10665         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10666         Use VF mode iterator.
10667         (<sse>_vm<plusminus_insn><mode>3): Merge with
10668         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
10669         (mul<mode>3): Use VF mode iterator.
10670         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
10671         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
10672         mode iterator.
10673         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10674         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10675         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
10676         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
10677         mode iterator.
10678         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10679         Use VF1 mode iterator.
10680         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10681         (sqrt<VF2:mode>2): New expander.
10682         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10683         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10684         and sqrtv2df2.  Use VF mode iterator.
10685         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
10686         mode iterator.
10687         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10688         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10689         Use VF1 mode iterator.
10690         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10691         (<smaxmin:code><mode>3): Use VF mode iterator.
10692         (*<smaxmin:code><mode>3_finite): Merge with
10693         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
10694         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10695         (<sse>_vm<smaxmin:code><mode>2): Merge with
10696         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
10697         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
10698         mode iterator.
10699         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
10700         mode iterator.
10701         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10702         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10703         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10704         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10705         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
10706         VF mode iterator.
10707         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10708         Use VF_128 mode iterator.
10709         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
10710         mode iterator.
10711         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
10712         VF_128 mode iterator.
10713         (vcond<mode>): Use VF mode iterator.
10714         * config/i386/predicates.md (sse_comparison_operator): Merge with
10715         avx_comparison_float_operator.  Do not declare as special_predicate.
10716         * config/i386/i386.c (struct builtin_description): Update for renamed
10717         compare patterns.
10718         (ix86_expand_args_builtin): Ditto.
10719         (ix86_expand_sse_compare_mask): Ditto.
10720
10721 2011-04-06  Richard Guenther  <rguenther@suse.de>
10722
10723         * tree-inline.c (estimate_num_insns): For calls simply account
10724         for all passed arguments and a used return value.
10725
10726 2011-04-06  Richard Guenther  <rguenther@suse.de>
10727
10728         PR tree-optimization/47663
10729         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10730         call_stmt_time fields.
10731         (cgraph_edge_inlinable_p): Declare.
10732         (cgraph_edge_recursive_p): New inline function.
10733         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10734         (cgraph_clone_edge): Copy it.
10735         * ipa-inline.c (cgraph_estimate_edge_time): New function.
10736         Account for call stmt time.
10737         (cgraph_estimate_time_after_inlining): Take edge argument.
10738         (cgraph_estimate_edge_growth): Account call stmt size.
10739         (cgraph_estimate_size_after_inlining): Take edge argument.
10740         (cgraph_mark_inline_edge): Adjust.
10741         (cgraph_check_inline_limits): Likewise.
10742         (cgraph_recursive_inlining_p): Remove.
10743         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10744         (cgraph_decide_recursive_inlining): Take edge argument and
10745         adjust.
10746         (cgraph_decide_inlining_of_small_functions): Do not avoid
10747         diags for recursive inlining here.
10748         (cgraph_flatten): Adjust.
10749         (cgraph_decide_inlining_incrementally): Likewise.
10750         (estimate_function_body_sizes): Remove call cost handling.
10751         (compute_inline_parameters): Initialize caller edge call costs.
10752         (cgraph_estimate_edge_growth): New function.
10753         (cgraph_estimate_growth): Use it.
10754         (cgraph_edge_badness): Likewise.
10755         (cgraph_check_inline_limits): Take an edge argument.
10756         (cgraph_decide_inlining_of_small_functions): Adjust.
10757         (cgraph_decide_inlining): Likewise.
10758         * tree-inline.c (estimate_num_insns): Only account for call
10759         return value if it is used.
10760         (expand_call_inline): Avoid diagnostics on recursive inline
10761         functions here.
10762         * lto-cgraph.c (lto_output_edge): Output edge call costs.
10763         (input_edge): Input edge call costs.
10764
10765 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10766
10767         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10768
10769 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
10770
10771         * doc/invoke.texi (Spec Files): Fix typo.
10772
10773 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
10774
10775         * profile.c (branch_prob): Move declaration of local variable.  Remove
10776         obsolete ??? comment.  Expand the location explicitly instead of using
10777         the LOCATION_FILE and LOCATION_LINE macros.
10778
10779 2011-04-06  Wei Guozhi  <carrot@google.com>
10780
10781         PR target/47855
10782         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10783         (arm_cond_branch): Likewise.
10784         (arm_cond_branch_reversed): Likewise.
10785         (arm_jump): Likewise.
10786         (push_multi): Likewise.
10787         * config/arm/constraints.md (Py): New constraint.
10788
10789 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10790
10791         PR bootstrap/48471
10792         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10793         Move these...
10794         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10795         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10796         #ifdef DBX_DEBUGGING_INFO.
10797
10798 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
10799
10800         PR bootstrap/48403
10801         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10802         if old and new states differ.
10803
10804 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
10805
10806         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10807         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10808         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10809         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10810         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10811         mcfv4e): Use Alias.
10812         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10813         ColdFire options to -mcpu= options.
10814
10815 2011-04-05  Jeff Law  <law@redhat.com>
10816
10817         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10818         check if BB is a successor of LOOP->header and return
10819         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10820
10821 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
10822
10823         * cprop.c (struct reg_use): Remove.
10824         (reg_use_table): Make an array of RTX.
10825         (find_used_regs, constprop_register, local_cprop_pass,
10826         bypass_block): Simplify users of reg_use_table.
10827         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
10828         on one of the uses found by find_used_regs.
10829
10830 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10831
10832         PR bootstrap/48469
10833         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10834         declaration.
10835
10836 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10837
10838         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10839         as an rtx.
10840         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10841
10842 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
10843
10844         PR middle-end/48441
10845         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10846
10847 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10848
10849         * combine.c: Include obstack.h.
10850         (struct insn_link): Define.
10851         (uid_log_links): Adjust type.
10852         (FOR_EACH_LOG_LINK): New macro.
10853         (insn_link_obstack): Declare.
10854         (alloc_insn_link): Define.
10855         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
10856         type of link variables.
10857         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10858         (try_combine, record_promoted_values, distribute_notes): Likewise.
10859         (distribute_links): Likewise.  Tweak prototype.
10860         (clear_log_links): Delete.
10861         (adjust_for_new_dest): Call alloc_insn_link.
10862         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10863
10864 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10865
10866         * gcse.c (modify_mem_list): Convert to an array of VECs.
10867         (canon_modify_mem_list, compute_transp): Tweak formatting.
10868         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
10869         (load_killed_in_block_p): Likewise.
10870         (record_last_mem_set_info): Likewise.
10871         (clear_modify_mem_tables): Likewise.
10872
10873 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10874
10875         PR middle-end/48461
10876         * function.c (emit_use_return_register_into_block): Only define if
10877         HAVE_return.
10878
10879 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
10880
10881         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10882
10883 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
10884
10885         * config/rx/rx-opts.h: New.
10886         * config/rx/rx.c (rx_cpu_type): Remove.
10887         (rx_handle_option): Don't assert that global structures are in
10888         use.  Access variables via opts pointer.  Defer most handling of
10889         OPT_mint_register_.  Use error_at.
10890         (rx_option_override): Handle deferred OPT_mint_register_ here.
10891         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10892         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10893         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10894         (rx_cpu_types): New Enum and EnumValue entries.
10895         (mint-register=): Use Defer and use Var accordingly.
10896
10897 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10898
10899         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10900         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10901         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10902         Move these...
10903         (debug_free_queue, debug_nesting, symbol_queue_index):
10904         ...and these...
10905         * dbxout.c: ...to here.  Make static.
10906
10907 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10908
10909         * gcse.c (modify_pair): Define.  Define a VEC of it.
10910         (canon_modify_mem_list): Convert to an array of VECs.
10911         (free_insn_expr_list_list): Delete.
10912         (clear_modify_mem_tables): Call VEC_free instead.
10913         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10914         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10915         (canon_list_insert, compute_transp): Likewise.
10916
10917 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10918
10919         PR target/43920
10920         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10921         for size.
10922
10923 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10924
10925         PR target/43920
10926         * function.c (emit_use_return_register_into_block): New function.
10927         (thread_prologue_and_epilogue_insns): Use
10928         emit_use_return_register_into_block.
10929
10930 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10931
10932         PR target/43920
10933         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10934         insn.
10935
10936 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10937
10938         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10939
10940 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
10941
10942         * config/arm/arm.md (define_constants for unspec): Replace with
10943         define_c_enum.
10944         (define_constants for unspecv): Replace with define_c_enum.
10945         * config/arm/neon.md (define_constants for unspec): Replace with
10946         define_c_enum.
10947
10948 2011-04-04  Richard Henderson  <rth@redhat.com>
10949
10950         PR bootstrap/48400
10951         * dwarf2out.c (output_line_info): Always emit line info from
10952         at least one section.
10953         (dwarf2out_init): Create text_section_line_info here ...
10954         (set_cur_line_info_table): ... not here.
10955
10956 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
10957
10958         PR target/48380
10959         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
10960         not called.
10961
10962         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
10963
10964 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
10965
10966         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
10967         (expr_equiv_p): Remove.
10968         (insert_set_in_table): Look at <dest, src> pair instead of expr.
10969         (hash_scan_set): Update call to insert_set_in_table.
10970         (dump_hash_table): Dump <dest, src> pair.
10971         (lookup_set): Simplify.  Lookup <dest, src> pair.
10972         (compute_transp): Remove, fold heavily simplified code into...
10973         (compute_local_properties): ...here.  Expect COMP and TRANSP
10974         unconditionally.
10975         (find_avail_set): Take set directly from struct expr.
10976         (find_bypass-set): Likewise.
10977         (bypass_block): Likewise.
10978         (cprop_insn): Likewise.  Remove redundant INSN_P test.
10979
10980         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
10981         checks on form of COND from find_implicit_sets to here.
10982         (find_implicit_sets): Cleanup control flow. Split critical edges
10983         if it exposes implicit sets.  Allocate/resize implicit_sets as
10984         necessary.
10985         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
10986         changed something.  Run df_analyze after find_implicit_sets if any
10987         edges were split.  Do not allocate implicit_sets here.
10988
10989         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
10990         (gcse_obstack): Renamed to cprop_obstack.
10991         (GNEW, GNEWVEC, GNEWVAR): Remove.
10992         (gmalloc): Remove.
10993         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
10994         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
10995         (gcse_alloc): Likewise, and rename to cprop_alloc.
10996         (alloc_gcse_men, free_gcse_mem): Remove.
10997         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
10998         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
10999         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11000
11001         * cprop.c (oprs_not_set_p): Remove.
11002         (mark_set, mark_clobber): Remove.
11003         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11004         (reg_not_set_p): New function.
11005         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11006         (cprop_insn): Likewise.
11007         (cprop_jump): Use FOR_EACH_EDGE.
11008
11009 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
11010
11011         PR bootstrap/48403
11012         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11013         (rank_for_schedule): Use scheduled_insns vector instead of
11014         last_scheduled_insn.
11015         (ok_for_early_queue_removal): Likewise.
11016         (queue_to_ready): Search forward in nonscheduled_insns_begin if
11017         we have a dbg_cnt.
11018         (choose_ready): Likewise.
11019         (commit_schedule): Use VEC_iterate.
11020         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
11021         a dbg_cnt, use it and ensure the first insn is in the ready list.
11022         (haifa_sched_init): Allocate scheduled_insns.
11023         (sched_extend_ready_list): Don't allocate it; reserve space.
11024         (haifa_sched_finish): Free it.
11025
11026 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11027
11028         * optc-gen.awk: Always remove type from Variable entry before
11029         recording in var_seen.
11030
11031 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
11032
11033         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11034         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11035         call to tidy_fallthru_edges.
11036
11037 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11038
11039         * doc/options.texi (ToLower): Document.
11040         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11041         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11042         * opts.h (cl_option): Add cl_tolower field.
11043         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11044         arguments with lowercase strings.
11045         * config/rx/rx.opt (mcpu=): Add ToLower.
11046         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11047         argument.
11048
11049 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11050
11051         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11052
11053 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11054
11055         * config/vax/vax.c: Include reload.h.
11056
11057 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
11058
11059         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11060         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11061         (sparc_preferred_reload_class): New function.
11062
11063 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
11064
11065         PR debug/48401
11066         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11067         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11068
11069 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
11070
11071         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11072         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11073
11074 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
11075
11076         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11077         (ASM_OUTPUT_ALIGNED_BSS): Define.
11078
11079 2011-04-03  Michael Matz  <matz@suse.de>
11080
11081         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11082         and next_slot members.
11083         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11084         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11085         (lto_streamer_cache_append): Declare.
11086         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11087         unsigned index, remove offset parameter, ensure that we append
11088         or update existing entries.
11089         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11090         parameter, update next_slot for append.
11091         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11092         parameter.
11093         (lto_streamer_cache_insert_at): Likewise.
11094         (lto_streamer_cache_append): New function.
11095         (lto_streamer_cache_lookup): Use unsigned index.
11096         (lto_streamer_cache_get): Likewise.
11097         (lto_record_common_node): Don't test tree_node_can_be_shared.
11098         (preload_common_node): Adjust call to lto_streamer_cache_insert.
11099         (lto_streamer_cache_delete): Don't free offsets member.
11100         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11101         (lto_output_string_with_length): Use lto_output_data_stream.
11102         (lto_output_tree_header): Remove ix parameter, don't write it.
11103         (lto_output_builtin_tree): Likewise.
11104         (lto_write_tree): Adjust callers to above, don't track and write
11105         offset, write unsigned index.
11106         (output_unreferenced_globals): Don't emit all global vars.
11107         (write_global_references): Use unsigned indices.
11108         (lto_output_decl_state_refs): Likewise.
11109         (write_symbol): Likewise.
11110         * lto-streamer-in.c (lto_input_chain): Move earlier.
11111         (input_function): Use unsigned index.
11112         (input_alias_pairs): Don't read and then ignore all global vars.
11113         (lto_materialize_tree): Remove ix_p parameter, don't read index,
11114         don't pass it back, use lto_streamer_cache_append.
11115         (lto_register_var_decl_in_symtab): Use unsigned index.
11116         (lto_register_function_decl_in_symtab): Likewise.
11117         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11118         index.
11119         (lto_get_builtin_tree): Don't read index, use
11120         lto_streamer_cache_append.
11121         (lto_read_tree): Adjust call to lto_materialize_tree.
11122
11123         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11124         don't use function calls in arguments to MIN.
11125
11126         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11127         twice.
11128
11129         * gimple.c (gimple_type_leader_entry): Mark deletable.
11130
11131 2011-04-03  Alan Modra  <amodra@gmail.com>
11132
11133         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11134
11135 2011-04-03  Michael Matz  <matz@suse.de>
11136
11137         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11138         an integer.
11139         * tree.h (tree_decl_non_common.vindex): Adjust comment.
11140
11141 2011-04-03  Michael Matz  <matz@suse.de>
11142
11143         * cgraphbuild.c (record_reference): Canonicalize constructor values.
11144         * gimple-fold.c (canonicalize_constructor_val): Accept being called
11145         without function context.
11146         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11147         current_function_decl and cfun.
11148
11149 2011-04-03  Michael Matz  <matz@suse.de>
11150
11151         * tree.c (decl_init_priority_insert): Don't create entry for
11152         default priority.
11153         (decl_fini_priority_insert): Ditto.
11154         (fields_compatible_p, find_compatible_field): Remove.
11155         * tree.h (fields_compatible_p, find_compatible_field): Remove.
11156         * gimple.c (gimple_compare_field_offset): Adjust block comment.
11157
11158 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
11159
11160         * combine.c (try_combine): Remove useless local variable.
11161
11162 2011-04-03  Richard Guenther  <rguenther@suse.de>
11163             Ira Rosen  <ira.rosen@linaro.org>
11164
11165         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11166         non-variable offsets and compare the remaining bases of the two
11167         accesses instead of looking for exact same data-ref.
11168
11169 2011-04-02  Kai Tietz  <ktietz@redhat.com>
11170
11171         PR target/48416
11172         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11173
11174         * i386.c (ix86_is_msabi_thiscall): New helper function.
11175         (ix86_is_type_thiscall): New helper function.
11176         (ix86_comp_type_attributes): Handle thiscall for method-functions
11177         special.
11178         (init_cumulative_args): Likewise.
11179         (find_drap_reg): Likewise.
11180         (ix86_static_chain): Likewise.
11181         (x86_this_parameter): Likewise.
11182         (x86_output_mi_thunk): Likewise.
11183
11184 2011-04-01  Olivier Hainque  <hainque@adacore.com>
11185             Nicolas Setton  <setton@adacore.com>
11186             Eric Botcazou  <ebotcazou@adacore.com>
11187
11188         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11189         (add_gnat_descriptive_type_attribute): New function.
11190         (gen_array_type_die): Call it.
11191         (gen_enumeration_type_die): Likewise.
11192         (gen_struct_or_union_type_die): Likewise.
11193         (modified_type_die): Likewise.
11194         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11195         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11196         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11197
11198 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11199
11200         PR bootstrap/48148
11201         * dwarf2out.c (resolve_addr): Don't call force_decl_die
11202         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11203
11204         Revert:
11205         2011-03-17  Richard Guenther  <rguenther@suse.de>
11206
11207         PR bootstrap/48148
11208         * lto-cgraph.c (input_overwrite_node): Clear the abstract
11209         origin for decls in other ltrans units.
11210         (input_varpool_node): Likewise.
11211
11212 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11213
11214         PR middle-end/48335
11215         * expr.c (expand_assignment): Handle all possibilities
11216         if TO_RTX is CONCAT.
11217         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11218         (store_split_bit_field): If SUBREG_REG (op0) or
11219         op0 itself has smaller mode than word, return it
11220         for offset 0 and const0_rtx for out-of-bounds stores.
11221         If word is const0_rtx, skip it.
11222
11223 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
11224
11225         * config/h8300/h8300.c (print_operand_address): Rename to...
11226         (h8300_print_operand_address): ...this. Make static. Adjust comments.
11227         Call h8300_print_operand and h8300_print_operand_address instead of
11228         print_operand and print_operand_address. Declare.
11229         (print_operand): Renake to...
11230         (h8300_print_operand): ...this. Make static. Adjust comments.
11231         Call h8300_print_operand instead of print_operand. Declare.
11232         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11233         (h8300_register_move_cost): Likewise.
11234         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11235         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11236         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11237         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11238         * config/h8300/h8300-protos.h (print_operand): Delete.
11239         (print_operand_address): Delete.
11240
11241 2011-04-01  Richard Henderson  <rth@redhat.com>
11242
11243         PR 48400
11244         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11245         in strict mode before dwarf4.  Re-order tests to early out
11246         before switching sections.
11247
11248 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
11249
11250         * config/h8300/constraints.md: New file.
11251         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
11252         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11253         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11254         * config/h8300/predicates.md (bit_operand): Likewise.
11255         (incdec_operand): Use satisfies_constraint_M and
11256         satisfies_constraint_O.  Don't use C code block.
11257         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11258         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11259         (compute_mov_length): Use satisfies_constraint_G.
11260         (fix_bit_operand): Use satisfies_constraint_U.
11261         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11262         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11263         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11264         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11265         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11266         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11267         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11268         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11269         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11270         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11271         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11272         (EXTRA_MEMORY_CONSTRAINT): Delete.
11273
11274 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
11275             Michael Meissner  <meissner@linux.vnet.ibm.com>
11276
11277         PR target/48262
11278         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11279         operands, as per the specifications.
11280
11281         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11282         (vec_extract_evenv4sf): Ditto.
11283         (vec_extract_evenv8hi): Ditto.
11284         (vec_extract_evenv16qi): Ditto.
11285         (vec_extract_oddv4si): Ditto.
11286
11287 2011-03-31  Mark Wielaard  <mjw@redhat.com>
11288
11289         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11290         high_pc attribute if the CU has no associated code. Only output
11291         DW_AT_entry_pc for CU if not generating strict dwarf and
11292         dwarf_version < 4.
11293
11294 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
11295
11296         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11297         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11298         out of ...
11299         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11300         * final.c (final_start_function): Call the new function rather
11301         than using a NULL argument for dwarf2out_frame_debug.
11302
11303         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11304         that contains the prologue.
11305
11306         * haifa-sched.c (queue_insn): New arg REASON.  All callers
11307         changed.  Print it in debugging output.
11308
11309         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11310
11311         * sched-ebb.c (begin_schedule_ready): Remove second argument.
11312         Split most of the code into...
11313         (begin_move_insn): ... here.  New function.
11314         (ebb_sched_info): Add a pointer to it.
11315         * haifa-sched.c (scheduled_insns): New static variable.
11316         (sched_extend_ready_list): Allocate it.
11317         (schedule_block): Use it to record the order of scheduled insns.
11318         Perform RTL changes to move insns only after all scheduling
11319         decisions have been made.
11320         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11321         begin_move_insn field.
11322         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11323         * sched-int.h (struct haifa_sched_info): Remove second argument
11324         from begin_schedule_ready hook.  Add new member begin_move_insn.
11325         * sched-rgn.c (begin_schedule_ready): Remove second argument.
11326         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11327
11328         * haifa-sched.c (prune_ready_list): New function, broken out of
11329         schedule_block.
11330         (schedule_block): Use it.
11331
11332 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11333
11334         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11335
11336 2011-04-01  Kai Tietz  <ktietz@redhat.com>
11337
11338         * config.gcc (*-*-mingw*): Allow as option the
11339         posix threading model.
11340         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
11341         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11342         definition.
11343         (CPP_SPEC): Add pthread/no-pthread handling.
11344         (LIB_SPEC): Likewise.
11345         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11346         (LIB_SPEC): Likewise.
11347         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11348         flag to pass -pthread option for shared libgcc build.
11349         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11350         for shared libgcc build.
11351         * config/i386/t-mingw-pthread: New file.
11352         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11353         New define to enable use of library pthread by default.
11354         * config/i386/mingw.opt (pthread): New driver option.
11355         (no-pthread): New driver option.
11356         * config/i386/cygming.opt: Make sure trailing empty line is retained.
11357         * config/i386/mingw-w64.opt: Likewise.
11358
11359 2011-04-01  Gary Funck  <gary@intrepid.com>
11360
11361         * c-decl.c (grokdeclarator): Fix formatting.
11362
11363 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11364
11365         * expr.c (emit_block_move_via_movmem): Use n_generator_args
11366         instead of n_operands.
11367         (set_storage_via_setmem): Likewise.
11368         * optabs.c (maybe_gen_insn): Likewise.
11369         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11370         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11371         (mips_expand_builtin_direct): Likewise.
11372         * config/spu/spu.c (expand_builtin_args): Likewise.
11373
11374 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11375
11376         * recog.h (insn_data_d): Add n_generator_args.
11377         * genoutput.c (data): Likewise.
11378         (output_insn_data): Print it.
11379         (max_opno, num_dups): Delete.
11380         (scan_operands): Just fill in "d->operand[...]".
11381         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11382
11383 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11384
11385         * gensupport.h (pattern_stats): New structure.
11386         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11387         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11388         (max_operand_1, max_operand_vec): Delete.
11389         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11390
11391 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
11392
11393         * emit-rtl.c (emit_pattern_after_setloc): New function.
11394         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11395         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11396         (emit_pattern_after): New function.
11397         (emit_insn_after, emit_jump_insn_after): Call it.
11398         (emit_call_insn_after, emit_debug_insn_after): Likewise.
11399         (emit_pattern_before_setloc): New function.
11400         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11401         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11402         Likewise.
11403         (emit_pattern_before): New function.
11404         (emit_insn_before, emit_jump_insn_before): Call it.
11405         (emit_call_insn_before, emit_debug_insn_before): Likewise.
11406
11407 2011-03-31  Richard Henderson  <rth@redhat.com>
11408
11409         * dwarf2out.c (dw_separate_line_info_ref): Remove.
11410         (dw_separate_line_info_entry): Remove.
11411         (enum dw_line_info_opcode): New.
11412         (dw_line_info_entry): Use it.
11413         (dw_line_info_table, dw_line_info_table_p): New.
11414         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11415         (line_info_table, line_info_label_num): Remove.
11416         (line_info_table_in_use): Remove.
11417         (separate_line_info_table): Remove.
11418         (separate_line_info_table_allocated): Remove.
11419         (separate_line_info_table_in_use): Remove.
11420         (LINE_INFO_TABLE_INCREMENT): Remove.
11421         (line_info_label_num): New.
11422         (cur_line_info_table): New.
11423         (text_section_line_info, cold_text_section_line_info): New.
11424         (separate_line_info): New.
11425         (SEPARATE_LINE_CODE_LABEL): Remove.
11426         (print_dwarf_line_table): Remove.
11427         (debug_dwarf): Don't dump it.
11428         (output_one_line_info_table): New.
11429         (output_line_info): Use it.
11430         (new_line_info_table): New.
11431         (set_cur_line_info_table): New.
11432         (dwarf2out_switch_text_section): Use it.
11433         (dwarf2out_begin_function): Likewise.
11434         (push_dw_line_info_entry): New.
11435         (dwarf2out_source_line): Rewrite for new line info tables.
11436         (dwarf2out_init): Remove dead initailizations.
11437
11438 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11439
11440         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
11441         various flags.
11442         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11443         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11444         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11445         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11446         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11447         * opt-functions.awk (flag_init, switch_bit_fields): New.
11448         (switch_flags): Don't handle flags moved to bit-fields.  Don't
11449         generate CL_MISSING_OK or CL_SAVE.
11450         * optc-gen.awk: Update to generate bit-field output as well as
11451         flags field.
11452         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11453         bit-field instead of CL_REJECT_DRIVER flag.
11454         * opts-common.c (generate_canonical_option,
11455         decode_cmdline_option): Use bit-fields instead of CL_* flags.
11456         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11457         instead of CL_REJECT_NEGATIVE flag.
11458         * toplev.c (print_switch_values): Use cl_report bit-field instead
11459         of CL_REPORT flag.
11460
11461 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11462
11463         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11464         a zero minimum index only if it is redundant.
11465
11466 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
11467
11468         PR rtl-optimization/48381
11469         * ira-color.c (assign_hard_reg): Use hard reg set intersection
11470         instead of ira_class_hard_reg_index for calculating conflicting
11471         hard registers.
11472
11473 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
11474
11475         * cprop.c: Clean up hash table building.
11476         (reg_avail_info): Remove.
11477         (oprs_available_p): Remove.
11478         (record_last_reg_set_info): Remove.
11479         (record_last_set_info): Remove.
11480         (reg_available_p): New function.
11481         (gcse_constant_p): Do not treat unfolded conditions as constants.
11482         (make_set_regs_unavailable): New function.
11483         (hash_scan_set): Simplify with new reg_available_p.
11484         (compute_hash_table_work): Traverse insns stream only once.
11485         Do not compute reg_avail_info. Traverse insns in reverse order.
11486         Record implicit sets after recording explicit sets from the block.
11487
11488 2011-03-31  Michael Matz  <matz@suse.de>
11489
11490         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11491
11492 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
11493
11494         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11495         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11496         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11497         (h8300_mode_dependent_address_p): New function.
11498         (h8300_get_index): Make static.
11499
11500 2011-03-31  Jeff Law  <law@redhat.com>
11501
11502         * reload1.c (elimination_effects): Fix typo in recent change.
11503
11504         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11505         typo potentially leading to null pointer dereference.
11506
11507         * caller-save.c (new_saved_hard_reg): Eliminate return value.
11508         (setup_save_areas): Corresponding changes to avoid useless
11509         assignments.
11510
11511         * jump.c (reversed_comparison_code_parts): Avoid successive return
11512         statements when REVERSE_CONDITION is defined.
11513
11514         * expr.c (expand_assignment): Avoid useless assignments.
11515         (expand_expr_real_1): Likewise.
11516         (expand_expr_real_2): Avoid useless statements.
11517
11518         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11519
11520         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11521
11522         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11523         statements.
11524
11525         * stmt.c (expand_expr_stmt): Avoid useless assignment.
11526
11527 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11528
11529         PR target/47109
11530         * doc/tm.texi.in (TARGET_VERSION): Remove.
11531         * doc/tm.texi: Regenerate.
11532         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11533         * collect2.c (main): Don't use TARGET_VERSION.
11534         * mips-tdump.c (main): Don't use TARGET_VERSION.
11535         * mips-tfile.c (main): Don't use TARGET_VERSION.
11536         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11537         * config/rs6000/vxworksae.h: Remove.
11538         * config/alpha/alpha.h (TARGET_VERSION): Remove.
11539         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11540         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11541         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11542         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11543         * config/arm/arm.h (TARGET_VERSION): Remove.
11544         * config/arm/coff.h (TARGET_VERSION): Remove.
11545         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11546         * config/arm/elf.h (TARGET_VERSION): Remove.
11547         * config/arm/freebsd.h (TARGET_VERSION): Remove.
11548         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11549         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11550         * config/arm/pe.h (TARGET_VERSION): Remove.
11551         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11552         * config/arm/semi.h (TARGET_VERSION): Remove.
11553         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11554         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11555         * config/arm/vxworks.h (TARGET_VERSION): Remove.
11556         * config/avr/avr.h (TARGET_VERSION): Remove.
11557         * config/bfin/bfin.h (TARGET_VERSION): Remove.
11558         * config/fr30/fr30.h (TARGET_VERSION): Remove.
11559         * config/frv/frv.h (TARGET_VERSION): Remove.
11560         * config/h8300/h8300.h (TARGET_VERSION): Remove.
11561         * config/i386/cygwin.h (TARGET_VERSION): Remove.
11562         * config/i386/darwin.h (TARGET_VERSION): Remove.
11563         * config/i386/darwin64.h (TARGET_VERSION): Remove.
11564         * config/i386/djgpp.h (TARGET_VERSION): Remove.
11565         * config/i386/freebsd.h (TARGET_VERSION): Remove.
11566         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11567         * config/i386/gnu.h (TARGET_VERSION): Remove.
11568         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11569         * config/i386/i386elf.h (TARGET_VERSION): Remove.
11570         * config/i386/linux.h (TARGET_VERSION): Remove.
11571         * config/i386/linux64.h (TARGET_VERSION): Remove.
11572         * config/i386/lynx.h (TARGET_VERSION): Remove.
11573         * config/i386/mingw32.h (TARGET_VERSION): Remove.
11574         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11575         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11576         * config/i386/netware.h (TARGET_VERSION): Remove.
11577         * config/i386/nto.h (TARGET_VERSION): Remove.
11578         * config/i386/openbsd.h (TARGET_VERSION): Remove.
11579         * config/i386/vxworks.h (TARGET_VERSION): Remove.
11580         * config/ia64/elf.h (TARGET_VERSION): Remove.
11581         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11582         * config/ia64/hpux.h (TARGET_VERSION): Remove.
11583         * config/ia64/linux.h (TARGET_VERSION): Remove.
11584         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11585         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11586         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11587         * config/lm32/lm32.h (TARGET_VERSION): Remove.
11588         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11589         * config/m32c/m32c.h (TARGET_VERSION): Remove.
11590         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11591         * config/m32r/m32r.h (TARGET_VERSION): Remove.
11592         * config/m68k/linux.h (TARGET_VERSION): Remove.
11593         * config/m68k/m68k.h (TARGET_VERSION): Remove.
11594         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11595         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11596         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11597         * config/mep/mep.h (TARGET_VERSION): Remove.
11598         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11599         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11600         * config/mips/iris6.h (MACHINE_TYPE): Remove.
11601         * config/mips/linux.h (TARGET_VERSION): Remove.
11602         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11603         * config/mips/vxworks.h (TARGET_VERSION): Remove.
11604         * config/mmix/mmix.h (TARGET_VERSION): Remove.
11605         * config/mn10300/linux.h (TARGET_VERSION): Remove.
11606         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11607         * config/pa/pa.h (TARGET_VERSION): Remove.
11608         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11609         * config/picochip/picochip.h (TARGET_VERSION): Remove.
11610         * config/rs6000/aix.h (TARGET_VERSION): Remove.
11611         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11612         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11613         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11614         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11615         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11616         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11617         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11618         * config/rs6000/linux.h (TARGET_VERSION): Remove.
11619         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11620         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11621         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11622         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11623         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11624         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11625         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11626         * config/s390/linux.h (TARGET_VERSION): Remove.
11627         * config/s390/s390.h (TARGET_VERSION): Remove.
11628         * config/s390/tpf.h (TARGET_VERSION): Remove.
11629         * config/score/score.h (TARGET_VERSION): Remove.
11630         * config/sh/linux.h (TARGET_VERSION): Remove.
11631         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11632         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11633         * config/sh/sh.h (TARGET_VERSION): Remove.
11634         * config/sh/sh64.h (TARGET_VERSION): Remove.
11635         * config/sh/superh.h (TARGET_VERSION): Remove.
11636         * config/sh/vxworks.h (TARGET_VERSION): Remove.
11637         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11638         * config/sparc/linux.h (TARGET_VERSION): Remove.
11639         * config/sparc/linux64.h (TARGET_VERSION): Remove.
11640         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11641         TARGET_NAME32, TARGET_NAME): Remove.
11642         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11643         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11644         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11645         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11646         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11647         * config/spu/spu.h (TARGET_VERSION): Remove.
11648         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11649         * config/v850/v850.h (TARGET_VERSION): Remove.
11650         * config/vax/linux.h (TARGET_VERSION): Remove.
11651         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11652         * config/xtensa/elf.h (TARGET_VERSION): Remove.
11653         * config/xtensa/linux.h (TARGET_VERSION): Remove.
11654
11655 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11656
11657         PR target/48142
11658         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11659         frame-related from frame-unrelated adjustments to the stack pointer.
11660
11661 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
11662
11663         * common.opt (fdebug-types-section): Move earlier.
11664         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11665
11666 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
11667
11668         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11669         var.
11670
11671 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
11672
11673         * tree.h (CASE_CHAIN): Define.
11674         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11675         (gimple_redirect_edge_and_branch): Likewise.
11676
11677 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11678
11679         PR middle-end/48367
11680         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11681         calculation.
11682
11683 2011-03-30  Jeff Law  <law@redhat.com>
11684
11685         * PR bootstrap/48371
11686         * reload1.c (reload): Fix botch in last change.
11687
11688         * reload.h (struct reload): Fix typo introduced in last change.
11689
11690 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11691
11692         * config/arm/arm.opt (mhard-float, msoft-float): Mark
11693         Undocumented.  Remove help text.
11694         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11695         -mhard-float.
11696
11697 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11698
11699         * doc/options.texi (NegativeAlias): Document.
11700         (Alias): Mention NegativeAlias.
11701         * opt-functions.awk: Handle NegativeAlias.
11702         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11703         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11704         * opts.h (CL_NEGATIVE_ALIAS): Define.
11705         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11706         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11707         OPT_mspe_.
11708         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11709         Alias entries.
11710         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11711         mno-spe and mno-isel instead of mspe=no and -misel=no.
11712
11713 2011-03-29  Mark Wielaard  <mjw@redhat.com>
11714
11715         * common.opt (fdebug-types-section): New flag.
11716         * doc/invoke.texi: Document new -fno-debug-types-section flag.
11717         * dwarf2out.c (use_debug_types): New define.
11718         (struct die_struct): Mark die_id with GTY desc use_debug_types.
11719         (print_die): Guard output of type unit signatures using
11720         use_debug_types.
11721         (build_abbrev_table): Replace assert of dwarf_version >= 4
11722         with assert on use_debug_types.
11723         (size_of_die): Likewise.
11724         (unmark_dies): Likewise.
11725         (value_format): Decide AT_ref_external form on use_debug_types.
11726         (output_die): Replace dwarf_version version check guard with
11727         use_debug_types where appropriate.
11728         (modified_type_die): Likewise.
11729         (gen_reference_type_die): Likewise.
11730         (dwarf2out_start_source_file): Likewise.
11731         (dwarf2out_end_source_file): Likewise.
11732         (prune_unused_types_walk_attribs): Likewise.
11733         (dwarf2out_finish): Likewise.
11734
11735 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11736
11737         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11738
11739 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
11740
11741         PR rtl-optimization/48332
11742         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11743         mode of input operand N and modeN to its actual mode.
11744
11745 2011-03-30  Jeff Law  <law@redhat.com>
11746
11747         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11748         define accessor macro.
11749         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11750         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11751         (reg_equiv_init): Likewise.
11752         (reg_equivs_size): New variable.
11753         (reg_equiv_init_size): Remove.
11754         (allocate_initial_values): Move prototype to here from....
11755         * integrate.h (allocate_initial_values): Remove prototype.
11756         * integrate.c: Include reload.h.
11757         (allocate_initial_values): Corresponding changes.
11758         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11759         (fix_reg_equiv_init, no_equiv): Corresponding changes.
11760         (update_equiv_regs): Corresponding changes.
11761         (ira): Corresponding changes.
11762         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11763         (push_secondary_reload): Corresponding changes.
11764         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11765         (make_memloc, find_reloads_address): Corresponding changes.
11766         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11767         (find_reloads_address_1): Corresponding changes.
11768         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11769         (refers_to_regno_for_reload_p): Corresponding changes.
11770         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11771         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11772         * reload1.c: Include ggc.h.
11773         (grow_reg_equivs): New function.
11774         (replace_pseudos_in, reload): Corresponding changes.
11775         (calculate_needs_all_insns, alter_regs): Corresponding changes.
11776         (eliminate_regs_1, elimination_effects): Corresponding changes.
11777         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11778         (delete_output_reload): Likewise.
11779         * caller-save.c (mark_referenced_regs): Corresponding changes.
11780         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11781         * frv/predicates.md (frv_load_operand): Corresponding changes.
11782         * microblaze/microblaze.c (double_memory_operand): Corresponding
11783         changes.
11784         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11785         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11786         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11787         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11788         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11789         changes.
11790         * pa/pa.c (emit_move_sequence): Corresponding changes.
11791         * vax/vax.c (nonindexed_address_p): Corresponding changes.
11792
11793 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
11794
11795         PR target/47551
11796         * config/arm/arm.c (coproc_secondary_reload_class): Handle
11797         structure modes.  Don't check neon_vector_mem_operand for
11798         vector or structure modes.
11799
11800 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
11801             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11802
11803         PR target/43590
11804         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11805         operand 1 and reshuffle the operands to match.
11806         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11807
11808 2011-03-30  Christian Schüler  <cschueler@gmx.de>
11809
11810         PR driver/48208
11811         * config/c.opt (F): Added 'Driver' to -F option.
11812
11813         PR driver/48260
11814         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11815           handler function.
11816         * config/darwin.opt: Added '-arch' option.
11817
11818 2011-03-30  Nick Clifton  <nickc@redhat.com>
11819
11820         * config/rx/rx.md: Add peepholes and patterns to combine
11821         extending loads and simple arithmetic instructions.
11822         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11823         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11824         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11825         modes to use pre-decrement and post-increment addressing.
11826         (rx_is_restricted_memory_address): Add range checking of REG+INT
11827         addresses.
11828         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
11829         (rx_memory_move_cost): Adjust cost of stores.
11830         (rx_adjust_insn_length): New function.
11831
11832 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
11833
11834         PR c/48305
11835         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11836         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11837         matching arg00/arg01 types.
11838
11839 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
11840
11841         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11842         last_location to UNKNOWN_LOCATION.
11843
11844 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11845
11846         PR target/48349
11847         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11848         FLOAT_SSE_REGS.
11849
11850 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11851             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11852
11853         PR bootstrap/48337
11854         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11855         Init(PROCESSOR_V7).
11856         (sparc_cpu): Likewise.
11857         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11858         PROCESSOR_V7.
11859
11860 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11861
11862         PR target/48336
11863         PR middle-end/48342
11864         PR rtl-optimization/48345
11865         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11866         hard regs for given mode from profitable regs when doing secondary
11867         allocation.
11868
11869 2011-03-29  Jeff Law  <law@redhat.com>
11870
11871         PR bootstrap/48327
11872         * tree-ssa-threadupdate.c (struct redirection_data): Remove
11873         do_not_duplicate field.
11874         (lookup_redirection_data): Corresponding changes.
11875         (create_duplicates): Always create a template block.
11876         (redirect_edges): Remove code which reused the original block
11877         when it was going to become unreachable code.
11878         (thread_block): Don't set do_not_duplicate field.
11879
11880 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
11881
11882         * lto-opts.c (register_user_option_p, lto_register_user_option):
11883         Make type argument unsigned.
11884         * lto-streamer.h (lto_register_user_option): Make type argument
11885         unsigned.
11886         * opth-gen.awk: Make CL_* macros unsigned.
11887         * opts-common.c (find_opt): Make lang_mask argument unsigned.
11888         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11889         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11890         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11891         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11892         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11893         (find_opt): Make lang_mask argument unsigned.
11894
11895 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11896
11897         PR rtl-optimization/48331
11898         PR rtl-optimization/48334
11899         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11900         for any used algorithm.
11901
11902 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11903
11904         * ira-conflicts.c (build_object_conflicts): Add unused attribute
11905         to parent_max.
11906
11907 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
11908
11909         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11910         (alpha_option_override): Don't set alpha_sr_alias_set.
11911         (emit_frame_store_1): Use gen_frame_mem rather than calling
11912         set_mem_alias_set.
11913         (alpha_expand_epilogue): Ditto.
11914
11915 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
11916
11917         PR tree-optimization/48290
11918         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11919         vectorization, check that relevant phis in the basic block after
11920         the inner loop are really inner loop's exit phis.
11921
11922 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
11923
11924         PR debug/48190
11925         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11926         (cached_dw_loc_list_def): New structure.
11927         (cached_dw_loc_list): New typedef.
11928         (cached_dw_loc_list_table): New variable.
11929         (cached_dw_loc_list_table_hash): New function.
11930         (cached_dw_loc_list_table_eq): Likewise.
11931         (add_location_or_const_value_attribute): Take a bool cache_p.
11932         Cache the list when the parameter is true.
11933         (gen_formal_parameter_die): Update caller.
11934         (gen_variable_die): Likewise.
11935         (dwarf2out_finish): Likewise.
11936         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11937         while generating debug info for the decl.
11938         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11939         (dwarf2out_init): Initialize cached_dw_loc_list_table.
11940         (resolve_addr): Cache the result of resolving a chain of
11941         location lists.
11942
11943 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
11944
11945         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
11946         conflict object hard regset nodes have intersecting hard reg sets.
11947
11948         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
11949         after regstat_init_n_sets_and_refs.
11950
11951         * ira.c: Add more comments at the top.
11952         (setup_stack_reg_pressure_class, setup_pressure_classes):
11953         Add comments how we compute the register pressure classes.
11954         (setup_allocno_and_important_classes): Add more comments.
11955         (setup_class_translate_array, reorder_important_classes)
11956         (setup_reg_class_relations): Add comments.
11957
11958         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
11959         start of the file.
11960
11961         * ira-color.c: Add 2011 to the Copyright line.
11962         (assign_hard_reg):  Add more comments.
11963         (improve_allocation): Ditto.
11964
11965         * ira-costs.c: Add 2011 to the Copyright line.
11966         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
11967         comments.
11968         (setup_regno_cost_classes_by_mode): Ditto.
11969
11970         Initial patches from ira-improv branch:
11971
11972         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
11973
11974         * ira-build.c (ira_create_object): Remove initialization of
11975         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
11976         (ira_create_allocno): Remove initialization of
11977         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
11978         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
11979         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11980         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
11981         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
11982         Initialize ALLOCNO_ADD_DATA.
11983         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
11984         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
11985         ALLOCNO_REG.
11986         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
11987         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
11988
11989         * ira.c (ira_reallocate): Remove.
11990         (setup_pressure_classes): Call
11991         ira_init_register_move_cost_if_necessary.  Use
11992         ira_register_move_cost instead of ira_get_register_move_cost.
11993         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
11994         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
11995
11996         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
11997         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11998         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
11999         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12000         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12001         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12002         Fix formatting.
12003         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12004         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12005         (struct allocno_color_data): New.
12006         (allocno_color_data_t): New typedef.
12007         (allocno_color_data): New definition.
12008         (ALLOCNO_COLOR_DATA): New macro.
12009         (struct object_color_data): New.
12010         (object_color_data_t): New typedef.
12011         (object_color_data): New definition.
12012         (OBJECT_COLOR_DATA): New macro.
12013         (update_copy_costs, calculate_allocno_spill_cost): Call
12014         ira_init_register_move_cost_if_necessary.  Use
12015         ira_register_move_cost instead of ira_get_register_move_cost.
12016         (move_spill_restore, update_curr_costs): Ditto.
12017         (allocno_spill_priority): Make it inline.
12018         (color_pass): Allocate and free allocno_color_dat and object_color_data.
12019         (struct coalesce_data, coalesce_data_t): New.
12020         (allocno_coalesce_data): New definition.
12021         (ALLOCNO_COALESCE_DATA): New macro.
12022         (merge_allocnos, coalesced_allocno_conflict_p): Use
12023         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12024         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12025         (coalesce_allocnos): Ditto.
12026         (setup_coalesced_allocno_costs_and_nums): Ditto.
12027         (collect_spilled_coalesced_allocnos): Ditto.
12028         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12029         (setup_slot_coalesced_allocno_live_ranges): Ditto.
12030         (coalesce_spill_slots): Ditto.
12031         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
12032         free allocno_coalesce_data.
12033
12034         * ira-conflicts.c: Fix formatting.
12035         (process_regs_for_copy): Call
12036         ira_init_register_move_cost_if_necessary.  Use
12037         ira_register_move_cost instead of ira_get_register_move_cost.
12038         (build_object_conflicts): Optimize.
12039
12040         * ira-costs.c (record_reg_classes): Optimize.  Call
12041         ira_init_register_move_cost_if_necessary.  Use
12042         ira_register_move_cost, ira_may_move_in_cost, and
12043         ira_may_move_out_cost instead of ira_get_register_move_cost and
12044         ira_get_may_move_cost.
12045         (record_address_regs): Ditto.
12046         (scan_one_insn): Optimize.
12047         (find_costs_and_classes): Optimize.
12048         (process_bb_node_for_hard_reg_moves): Call
12049         ira_init_register_move_cost_if_necessary.  Use
12050         ira_register_move_cost instead of ira_get_register_move_cost.
12051
12052         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12053         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12054         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12055         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12056         definitions.
12057         (ira_initiate_emit_data, ira_finish_emit_data)
12058         (create_new_allocno): New functions.
12059         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12060         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12061         Use ira_register_move_cost instead of ira_get_register_move_cost.
12062
12063         * ira-int.h: Fix some comments.
12064         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12065         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12066         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12067         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
12068         add_data.
12069         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
12070         bitfield after mode.  Make hard_regno a short int.  Make
12071         hard_regno short.  Remove first_coalesced_allocno and
12072         next_coalesced_allocno.  Move mem_optimized_dest_p,
12073         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12074         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
12075         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12076         temp, colorable_p.  Add new member add_data.
12077         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12078         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12079         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12080         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12081         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12082         (ALLOCNO_ADD_DATA): New macro.
12083         (ira_emit_data_t): New typedef.
12084         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
12085         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12086         from struct ira_allocno.
12087         (ALLOCNO_EMIT_DATA): New macro.
12088         (ira_allocno_emit_data, allocno_emit_reg): New.
12089         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12090         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12091         (OBJECT_ADD_DATA): New macro.
12092         (ira_reallocate): Remove.
12093         (ira_initiate_emit_data, ira_finish_emit_data): New.
12094         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12095         (ira_init_register_move_cost_if_necessary): New.
12096         (ira_object_conflict_iter_next): Merge into
12097         ira_object_conflict_iter_cond.
12098         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12099
12100         * ira-live.c (process_single_reg_class_operands): Call
12101         ira_init_register_move_cost_if_necessary.  Use
12102         ira_register_move_cost instead of ira_get_register_move_cost.
12103
12104         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12105
12106         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12107
12108         * ira-costs.c: Fix formatting.
12109         (cost_classes, cost_classes_num): Remove.
12110         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12111         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12112         (cost_classes_del, cost_classes_htab): New.
12113         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12114         (initiate_regno_cost_classes, setup_cost_classes): New.
12115         (setup_regno_cost_classes_by_aclass): New.
12116         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12117         (record_reg_classes): Use regno_cost_classes instead of
12118         cost_classes.  Move checking opposite operand up.
12119         (record_address_regs): Use regno_cost_classes
12120         instead of cost_classes.
12121         (scan_one_insn): Ditto.  Use always general register.
12122         (print_allocno_costs): Use regno_cost_classes instead of
12123         cost_classes.
12124         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
12125         (find_costs_and_classes): Set up cost classes for each registers.
12126         Use also their mode for this.  Use regno_cost_classes instead of
12127         cost_classes.
12128         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12129         cost_classes.
12130         (free_ira_costs, ira_init_costs): Don't use cost_classes.
12131         (ira_costs, ira_set_pseudo_classes): Call
12132         initiate_regno_cost_classes and finish_regno_cost_classes.
12133
12134         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
12135
12136         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12137
12138         * target.def (ira_cover_classes): Remove.
12139
12140         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12141
12142         * doc/tm.texi.in: Ditto.
12143
12144         * ira-conflicts.c: Remove mentioning cover classes from the file.
12145         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
12146         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
12147
12148         * targhooks.c (default_ira_cover_classes): Remove.
12149
12150         * targhooks.h (default_ira_cover_classes): Ditto.
12151
12152         * haifa-sched.c: Remove mentioning cover classes from the file.
12153         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12154         ira_pressure_classes and ira_pressure_classes_num instead of
12155         ira_reg_class_cover_size and ira_reg_class_cover.  Use
12156         sched_regno_pressure_class instead of sched_regno_cover_class.
12157         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12158         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12159
12160         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
12161         classes from the file.
12162         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12163         (struct object_hard_regs, struct object_hard_regs_node): New.
12164         (struct ira_object): New members profitable_hard_regs,
12165         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12166         (struct ira_allocno): Rename cover_class to aclass.  Rename
12167         cover_class_cost and updated_cover_class_cost to class_cost and
12168         updated_class_cost.  Remove splay_removed_p and
12169         left_conflict_size.  Add new members colorable_p.
12170         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12171         (ALLOCNO_COLORABLE_P): New macro.
12172         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12173         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12174         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12175         (OBJECT_...): Rename parameter C to O.
12176         (OBJECT_PROFITABLE_HARD_REGS): New macro.
12177         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12178         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12179         (struct target_ira_int): New members x_ira_max_memory_move_cost,
12180         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12181         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12182         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12183         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
12184         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
12185         x_ira_reg_class_subunion.
12186         (ira_max_memory_move_cost, ira_max_register_move_cost)
12187         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12188         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12189         (ira_important_class_nums, ira_reg_class_superunion): New macros.
12190         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12191         (ira_reg_class_union): Rename to ira_reg_class_subunion.
12192         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12193         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12194         (ira_tune_allocno_costs_and_cover_classes): Rename to
12195         ira_tune_allocno_costs.
12196         (ira_debug_hard_regs_forest): New.
12197         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12198         (ira_object_conflict_iter_next): Fix comments.
12199         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12200         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12201         cover_class to aclass.
12202         (ira_allocate_and_accumulate_costs): Ditto.
12203         (ira_allocate_and_set_or_copy_costs): Ditto.
12204
12205         * opts.c (decode_options): Remove ira_cover_class check.
12206
12207         * ira-color.c: Remove mentioning cover classes from the file.  Use
12208         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12209         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12210         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12211         (splay-tree.h): Remove include.
12212         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12213         before copy_freq_compare_func.
12214         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12215         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12216         New definitions.
12217         (hard_regs_roots, hard_regs_node_vec): Ditto.
12218         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12219         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12220         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12221         (create_new_object_hard_regs_node): Ditto.
12222         (add_new_object_hard_regs_node_to_forest): Ditto.
12223         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12224         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12225         Ditto.
12226         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12227         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12228         (remove_unused_object_hard_regs_nodes): Ditto.
12229         (enumerate_object_hard_regs_nodes): Ditto.
12230         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12231         (object_hard_regs_subnode_t): Ditto.
12232         (struct object_hard_regs_subnode): Ditto.
12233         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12234         (setup_object_hard_regs_subnode_index): Ditto.
12235         (get_object_hard_regs_subnodes_num): Ditto.
12236         (form_object_hard_regs_nodes_forest): Ditto.
12237         (finish_object_hard_regs_nodes_tree): Ditto.
12238         (finish_object_hard_regs_nodes_forest): Ditto.
12239         (allocnos_have_intersected_live_ranges_p): Rename to
12240         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12241         (pseudos_have_intersected_live_ranges_p): Rename to
12242         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12243         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12244         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12245         (update_copy_costs): Remove assert.  Skip cost update if the hard
12246         reg does not belong the class.
12247         (assign_hard_reg): Process only profitable hard regs.
12248         (uncolorable_allocnos_num): Make it scalar.
12249         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12250         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12251         and ira_reg_class_max_nregs.
12252         (bucket_allocno_compare_func): Check frequency first.
12253         (sort_bucket): Add compare function as a parameter.
12254         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12255         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12256         (push_allocno_to_stack): Rewrite for checking new allocno
12257         colorability.
12258         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
12259         (push_only_colorable): Pass new parameter to sort_bucket.
12260         (push_allocno_to_spill): Remove.
12261         (allocno_spill_priority_compare): Make it inline and rewrite.
12262         (splay_tree_allocate, splay_tree_free): Remove.
12263         (allocno_spill_sort_compare): New function.
12264         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
12265         build and use splay tree.  Choose first allocno in uncolorable
12266         allocno bucket to spill.  Remove setting spill cost.
12267         (all_conflicting_hard_regs): Remove.
12268         (setup_allocno_available_regs_num): Check only profitable hard
12269         regs.  Print info about hard regs nodes.
12270         (setup_allocno_left_conflicts_size): Remove.
12271         (put_allocno_into_bucket): Don't call
12272         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
12273         (improve_allocation): New.
12274         (color_allocnos): Call setup_profitable_hard_regs,
12275         form_object_hard_regs_nodes_forest, improve_allocation,
12276         finish_object_hard_regs_nodes_forest.  Setup spill cost.
12277         (print_loop_title): Use pressure classes.
12278         (color_allocnso): Ditto.
12279         (do_coloring): Remove allocation and freeing splay_tree_node_pool
12280         and allocnos_for_spilling.
12281         (ira_sort_regnos_for_alter_reg): Don't setup members
12282         {first,next}_coalesced_allocno.
12283         (color): Remove allocating and freeing removed_splay_allocno_vec.
12284         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12285         prohibited_class_mode_regs.
12286
12287         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
12288         formatting.
12289         (update_allocno_pressure_excess_length): Use pressure classes.
12290         (inc_register_pressure, dec_register_pressure): Check for pressure
12291         class.
12292         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12293         pressure class.  Use ira_reg_class_nregs instead of
12294         ira_reg_class_max_nregs.
12295         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12296         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12297         (single_reg_class): Use ira_reg_class_nregs instead of
12298         ira_reg_class_max_nregs.
12299         (process_bb_node_lives): Use pressure classes.
12300
12301         * ira-emit.c: Remove mentioning cover classes from the file.  Use
12302         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12303         (change_loop): Use pressure classes.
12304         (modify_move_list): Call ira_set_allocno_class instead of
12305         ira_set_allocno_cover_class.
12306
12307         * ira-build.c: Remove mentioning cover classes from the file.  Use
12308         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12309         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
12310         ALLOCNO_UPDATED_CLASS_COST instead of
12311         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12312         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12313         (ira_create_allocno): Remove initialization of
12314         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
12315         ALLOCNO_COLORABLE_P.
12316         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12317         Update conflict regs for the objects.
12318         (create_cap_allocno): Remove assert.  Don't propagate
12319         ALLOCNO_AVAILABLE_REGS_NUM.
12320         (ira_free_allocno_costs): New function.
12321         (finish_allocno): Change a part of code into call of
12322         ira_free_allocno_costs.
12323         (low_pressure_loop_node_p): Use pressure classes.
12324         (object_range_compare_func): Don't compare classes.
12325         (setup_min_max_conflict_allocno_ids): Ditto.
12326
12327         * loop-invariant.c: Remove mentioning cover classes from the file.
12328         Use ira_pressure_classes and ira_pressure_classes_num instead of
12329         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
12330         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12331         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12332         Use reg_allocno_class instead of reg_cover_class.
12333         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12334         STACK_REG_COVER_CLASS.
12335         (get_regno_cover_class): Rename to get_regno_pressure_class.
12336         (move_loop_invariants): Initialize and finalize regstat.
12337
12338         * ira.c: Remove mentioning cover classes from the file.  Add
12339         comments about coloring without cover classes.  Use ALLOCNO_CLASS
12340         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12341         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12342         setup_class_subset_and_memory_move_costs.
12343         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12344         (setup_cover_and_important_classes): Rename to
12345         setup_allocno_and_important_classes.
12346         (setup_class_translate_array): New.
12347         (setup_class_translate): Call it for allocno and pressure classes.
12348         (cover_class_order): Rename to allocno_class_order.
12349         (comp_reg_classes_func): Use ira_allocno_class_translate instead
12350         of ira_class_translate.
12351         (reorder_important_classes): Set up ira_important_class_nums.
12352         (setup_reg_class_relations): Set up ira_reg_class_superunion.
12353         (print_class_cover): Rename to print_classes.  Add parameter.
12354         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12355         Print pressure classes too.
12356         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
12357         setup_reg_subclasses.
12358         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12359         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12360         (setup_prohibited_class_mode_regs): Use
12361         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12362         (clarify_prohibited_class_mode_regs): New function.
12363         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12364         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12365         (ira_init_once): Initialize them.
12366         (free_register_move_costs): Process them.
12367         (ira_init): Move calls of find_reg_classes and
12368         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12369         Call clarify_prohibited_class_mode_regs.
12370         (ira_no_alloc_reg): Remove.
12371         (too_high_register_pressure_p): Use pressure classes.
12372
12373         * sched-deps.c: Remove mentioning cover classes from the file.
12374         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12375         ira_pressure_classes and ira_pressure_classes_num instead of
12376         ira_reg_class_cover_size and ira_reg_class_cover.
12377         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12378         sched_regno_pressure_class instead of sched_regno_cover_class.
12379         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
12380         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12381
12382         * ira.h: Add 2010 to Copyright.
12383         (ira_no_alloc_reg): Remove external.
12384         (struct target_ira): Rename x_ira_hard_regno_cover_class,
12385         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12386         x_ira_class_translate to x_ira_hard_regno_allocno_class,
12387         x_ira_allocno_classes_num, x_ira_allocno_classes, and
12388         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
12389         x_ira_pressure_classes, x_ira_pressure_class_translate, and
12390         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
12391         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
12392         x_ira_no_alloc_regs.
12393         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12394         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12395         ira_allocno_classes_num and ira_allocno_classes.
12396         (ira_class_translate): Rename to ira_allocno_class_translate.
12397         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12398         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12399         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12400         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12401         (ira_no_alloc_regs): New.
12402
12403         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
12404         classes from the file.  Use ALLOCNO_CLASS instead of
12405         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
12406         ALLOCNO_COVER_CLASS_COST.
12407         (regno_cover_class): Rename to regno_aclass.
12408         (record_reg_classes): Use ira_reg_class_subunion instead of
12409         ira_reg_class_union.
12410         (record_address_regs): Check overflow.
12411         (scan_one_insn): Ditto.
12412         (print_allocno_costs): Print total mem cost fore regional allocation.
12413         (print_pseudo_costs): Use REG_N_REFS.
12414         (find_costs_and_classes): Use classes intersected with them on the
12415         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
12416         ira_reg_class_union.  Use ira_allocno_class_translate and
12417         regno_aclass instead of ira_class_translate and regno_cover_class.
12418         Modify code for finding regno_aclass.  Setup preferred classes for
12419         the next pass.
12420         (setup_allocno_cover_class_and_costs): Rename to
12421         setup_allocno_class_and_costs.  Use regno_aclass instead of
12422         regno_cover_class.  Use ira_set_allocno_class instead of
12423         ira_set_allocno_cover_class.
12424         (init_costs, finish_costs): Use regno_aclass instead of
12425         regno_cover_class.
12426         (ira_costs): Use setup_allocno_class_and_costs instead of
12427         setup_allocno_cover_class_and_costs.
12428         (ira_tune_allocno_costs_and_cover_classes): Rename to
12429         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
12430         by processing objects.  Use ira_reg_class_max_nregs instead of
12431         ira_reg_class_nregs.
12432
12433         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12434
12435         * sched-int.h: Remove mentioning cover classes from the file.
12436         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12437
12438         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
12439         classes from the file.
12440         (struct reg_pref): Rename coverclass into allocnoclass.
12441         (reg_cover_class): Rename to reg_allocno_class.
12442
12443         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12444
12445         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12446
12447         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12448
12449         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12450
12451         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12452
12453         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12454
12455         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12456
12457         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12458
12459         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12460
12461         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12462
12463         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12464         (i386_ira_cover_classes): Ditto.
12465
12466         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12467
12468         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12469
12470         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12471
12472         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12473
12474         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12475
12476         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12477
12478         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12479         (mips_ira_cover_classes): Ditto.
12480
12481         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12482
12483         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12484
12485         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12486
12487         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12488
12489         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12490
12491         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12492         (IRA_COVER_CLASSES_VSX): Ditto.
12493
12494         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12495         (rs6000_ira_cover_classes): Ditto.
12496
12497         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12498
12499         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12500
12501         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12502
12503         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12504
12505         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12506
12507         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12508
12509         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12510
12511         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12512
12513         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12514
12515         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12516
12517 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
12518
12519         PR debug/48253
12520         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12521         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12522         dw_fde_unlikely_section_end_label, cold_in_std_section,
12523         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12524         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12525         fields.
12526         (output_fde): Use dw_fde_second_{begin,end} if second is
12527         true, otherwise dw_fde_{begin,end}.
12528         (output_call_frame_info): Test dw_fde_second_begin != NULL
12529         instead of dw_fde_switched_sections.
12530         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12531         fields, initialize new fields.  Initialize in_std_section
12532         unconditionally from the first partition.
12533         (dwarf2out_end_epilogue): Don't override dw_fde_end when
12534         dw_fde_second_begin is non-NULL.
12535         (dwarf2out_switch_text_section): Stop initializing removed
12536         dw_fde_struct fields, initialize new fields, initialize
12537         also dw_fde_end here.  Set dw_fde_switch_cfi even when
12538         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
12539         (struct var_loc_list_def): Add last_before_switch field.
12540         (arange_table, arange_table_allocated, arange_table_in_use,
12541         ARANGE_TABLE_INCREMENT, add_arange): Removed.
12542         (size_of_aranges): Count !in_std_section and !second_in_std_section
12543         hunks in fdes, instead of looking at arange_table_in_use.
12544         (output_aranges): Add aranges_length argument, don't call
12545         size_of_aranges here.  Instead of using aranges_table*
12546         emit ranges for fdes when !in_std_section resp.
12547         !second_in_std_section.
12548         (dw_loc_list): Break ranges crossing section switch.
12549         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
12550         use dw_fde_second_end instead of dw_fde_end as end of last range.
12551         (gen_subprogram_die): Don't call add_arange.  Use
12552         dw_fde_{begin,end} for first partition and if switched
12553         section dw_fde_second_{begin,end} for the second.
12554         (var_location_switch_text_section_1,
12555         var_location_switch_text_section): New functions.
12556         (dwarf2out_begin_function): Initialize cold_text_section even
12557         when function_section () isn't text_section.
12558         (prune_unused_types): Don't walk arange_table.
12559         (dwarf2out_finish): Don't needlessly test
12560         flag_reorder_blocks_and_partition when testing cold_text_section_used.
12561         If info_section_emitted, call size_of_aranges and if it indicates
12562         non-empty .debug_aranges, call output_aranges with the computed
12563         size.  Stop using removed dw_fde_struct fields, use
12564         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12565         for second.
12566
12567         PR debug/48203
12568         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12569         create ENTRY_VALUE if incoming or address of incoming's MEM
12570         is a hard REG.
12571         * dwarf2out.c (mem_loc_descriptor): Don't emit
12572         DW_OP_GNU_entry_value of DW_OP_fbreg.
12573         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12574         on ENTRY_VALUE is able to find the canonical parameter VALUE.
12575         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12576         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12577         ENTRY_VALUE_EXPs.
12578         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12579         is a REG_P or MEM_P with REG_P address, compute hash directly
12580         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12581         (preserve_only_constants): Don't clear VALUES forwaring
12582         ENTRY_VALUE to some other VALUE.
12583
12584 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
12585
12586         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12587         instead of GEN_INT.
12588
12589 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
12590
12591         * cfgexpand.c (expand_gimple_cond): Always set the source location and
12592         block before expanding the statement.
12593         (expand_gimple_stmt_1): Likewise.  Set them here...
12594         (expand_gimple_stmt): ...and not here.  Tidy.
12595         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12596         unknown.
12597
12598 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
12599
12600         * Makefile.in: New rule for cprop.o.
12601         * gcse.c: Move constant/copy propagation to cprop.c.
12602         (compute_local_properties): Only handle expression tables.
12603         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12604         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12605         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12606         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
12607         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
12608         compute_cprop_data, find_used_regs, try_replace_reg,
12609         find_avail_set, cprop_jump, constprop_register, cprop_insn,
12610         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12611         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12612         find_bypass_set, reg_killed_on_edge, bypass_block,
12613         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12614         execute_rtl_cprop, pass_rtl_cprop): Move to...
12615         * cprop.c: ...here.  New file, constant/copy propagation for RTL
12616         moved from gcse.c to here with minor cleanups in duplicated code.
12617
12618 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
12619
12620         * config/i386/i386.c (flag_opts): Fix a typo in
12621         -mavx256-split-unaligned-store.
12622
12623 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
12624
12625         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12626         LIBCALL_VALUE): Remove macros.
12627         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12628         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12629         (h8300_function_value, h8300_libcall_value,
12630         h8300_function_value_regno_p): New functions.
12631
12632 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
12633
12634         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12635
12636 2011-03-28  Jeff Law  <law@redhat.com>
12637
12638         * tree-ssa-threadupdate.c (redirect_edges): Call
12639         create_edge_and_update_destination_phis as needed.
12640         (create_edge_and_update_destination_phis): Accept new BB argument.
12641         All callers updated.
12642         (thread_block): Do not update the profile when threading around
12643         intermediate blocks.
12644         (thread_single_edge): Likewise.
12645         (determine_bb_domination_status): If BB is not a successor of the
12646         loop header, return NONDOMINATING.
12647         (register_jump_thread): Note when we register a jump thread around
12648         an intermediate block.
12649         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12650         (thread_across_edge): Use it.
12651
12652 2011-03-28  Tristan Gingold  <gingold@adacore.com>
12653
12654         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12655         when for_return is 2.
12656
12657 2011-03-28  Jeff Law  <law@redhat.com>
12658
12659         * var-tracking.c (canonicalize_values_mark): Delete unused
12660         lhs assignment.
12661         (canonicalize_values_star, set_variable_part): Likewise.
12662         (clobber_variable_part, delete_variable_part): Likewise.
12663
12664 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
12665
12666         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12667
12668 2011-03-28  Martin Jambor  <mjambor@suse.cz>
12669
12670         * tree-inline.c (expand_call_inline): Do not check that destination
12671         node is analyzed.
12672         (optimize_inline_calls): Assert that destination node is analyzed.
12673         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12674         not call tree_lowering_passes.
12675         * cgraph.h (cgraph_analyze_function): Declare.
12676         * cgraphunit.c (cgraph_analyze_function): Make public.
12677
12678 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
12679
12680         * config/sparc/sparc-opts.h: New.
12681         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12682         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12683         (sparc_option_override): Store processor_type enumeration rather
12684         than string in cpu_default.  Remove name and enumeration from
12685         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
12686         without using sparc_select.  Use target_flags_explicit instead of
12687         fpu_option_set.
12688         * config/sparc/sparc.h (enum processor_type): Move to
12689         sparc-opts.h.
12690         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12691         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12692         HeaderInclude entry.
12693         (mcpu=, mtune=): Use Var and Enum.
12694         (sparc_processor_type): New Enum and EnumValue entries.
12695
12696 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12697             Iain Sandoe  <iains@gcc.gnu.org>
12698
12699         PR target/48245
12700         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12701
12702 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
12703
12704         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12705         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12706         Insert new statements at it in lieu of STMT.
12707         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12708         * tree-vect-stmts.c (vectorizable_store): Likewise.
12709         (vectorizable_load): Likewise.
12710
12711 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
12712
12713         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12714         (divtf3): Ditto.
12715         (multf3): Ditto.
12716         (subtf3): Ditto.
12717
12718 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12719
12720         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12721         unaligned 256bit load/store.
12722         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12723         (*avx_movdqu<avxmodesuffix>): Likewise.
12724
12725 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12726
12727         PR target/48288
12728         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12729         * config/pa/pa.md (iordi3): Use new predicate in expander.
12730         (iorsi3): Likewise.
12731
12732 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
12733
12734         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12735         FUNCTION_VALUE_REGNO_P): Remove macros.
12736         * config/mips/mips-protos.h (mips_function_value): Remove.
12737         * config/mips/mips.c (mips_function_value): Rename to...
12738         (mips_function_value_1): ... this. Make static.  Handle receiving
12739         the function type in 'fn_decl_or_type' argument.
12740         (mips_function_value, mips_libcall_value,
12741         mips_function_value_regno_p): New function.
12742         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12743         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12744
12745 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12746
12747         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12748         and -mavx256-split-unaligned-store.
12749         (ix86_option_override_internal): Split 32-byte AVX unaligned
12750         load/store by default.
12751         (ix86_avx256_split_vector_move_misalign): New.
12752         (ix86_expand_vector_move_misalign): Use it.
12753
12754         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12755         -mavx256-split-unaligned-store.
12756
12757         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12758         256bit load/store.  Generate unaligned store on misaligned memory
12759         operand.
12760         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12761         256bit load/store.
12762         (*avx_movdqu<avxmodesuffix>): Likewise.
12763
12764         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12765         -mavx256-split-unaligned-store.
12766
12767 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
12768
12769         PR target/38598
12770         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12771         Update commentary.
12772
12773 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
12774
12775         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12776         opno arguments with an expand_operand.  Use create_input_operand.
12777         (mips_prepare_builtin_target): Delete.
12778         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12779         functions.
12780         (mips_expand_builtin_direct): Use create_output_operand and
12781         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
12782         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
12783         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12784
12785 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
12786
12787         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12788         function.
12789         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12790
12791 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
12792
12793         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12794         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
12795         basic blocks and call commit_edge_insertions directly.
12796         (fixup_abnormal_edges): Move from here to...
12797         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
12798         on the edges and return whether some have actually been inserted.
12799         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12800         compensation code.
12801
12802 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
12803
12804         PR rtl-optimization/48144
12805         * sel-sched-ir.c (merge_history_vect): Factor out from ...
12806         (merge_expr_data): ... here.
12807         (av_set_intersect): Rename to av_set_code_motion_filter.
12808         Update all callers.  Call merge_history_vect when an expression
12809         is found in both sets.
12810         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12811
12812 2011-03-26  Alan Modra  <amodra@gmail.com>
12813
12814         * config/rs6000/predicates.md (word_offset_memref_op): Handle
12815         cmodel medium addresses.
12816         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12817         64-bit gpr loads and stores.
12818         (rs6000_secondary_reload_ppc64): New function.
12819         * config/rs6000/rs6000-protos.h: Declare it.
12820         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12821
12822 2011-03-26  Alan Modra  <amodra@gmail.com>
12823
12824         PR target/47487
12825         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12826         GNU Go in traceback table.
12827
12828 2011-03-25  Richard Henderson  <rth@redhat.com>
12829
12830         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12831         if there are exactly 6 operands.
12832         (set_storage_via_setmem): Similarly.
12833
12834 2011-03-25  Kai Tietz  <ktietz@redhat.com>
12835
12836         * collect2.c (write_c_file_stat): Handle backslash
12837         as right-hand directory separator.
12838         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12839         checking just for slash.
12840         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12841         instead of checking for trailing slash.
12842         * gcc.c (record_temp_file): Use filename_cmp instead
12843         of strcmp.
12844         (do_spec_1): Likewise.
12845         (replace_outfile_spec_function): Likewise.
12846         (is_directory): Use filename_ncmp instead of strncmp.
12847         (print_multilib_info): Likewise.
12848         * gcov.c (find_source): Use filename_cmp instead
12849         instead of strcmp.
12850         (make_gcov_file_name): Fix order of slash/backslash
12851         checks.
12852         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12853         (add_standard_paths): Likewise.
12854         * mips-tfile.c (saber_stop): Handle backslash.
12855         * prefix.c (update_path): Use filename_ncmp instead of
12856         strncmp.
12857         * profile.c (output_location): Use filename_cmp instead
12858         of strcmp.
12859         * read-md.c (handle_toplevel_file): Handle backslash.
12860         * tlink.c (frob_extension):  Likewise.
12861         * tree-cfg.c (same_line_p): Use filename_cmp instead of
12862         strcmp.
12863         * tree-dump.c (dequeue_and_dump): Handle backslash.
12864         * tree.c (get_file_function_name): Likewise.
12865         * gengtype.c (read_input_list): Likewise.
12866         (get_file_realbasename): Likewise.
12867         (get_output_file_with_visibility): Use filename_cmp
12868         instead of strcmp.
12869
12870 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
12871
12872         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12873         case to VFPv1.
12874
12875 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
12876
12877         * fold-const.c (expr_location_or): New function.
12878         (fold_truth_not_expr): Call it.
12879
12880 2011-03-25  Jeff Law  <law@redhat.com>
12881
12882         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12883         va_end.
12884         * c-family/c-common.c (def_fn_type): Likewise.
12885         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12886         * emit-rtl.c (gen_rtvec): Likewise.
12887         * lto/lto-lang.c (def_fn_type): Likewise.
12888
12889 2011-03-25  Richard Guenther  <rguenther@suse.de>
12890
12891         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12892         also generate copies.
12893         (fini_copy_prop): Handle constant values properly.
12894
12895 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
12896
12897         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12898         mode size instead of bitsize with DWARF2_ADDR_SIZE.
12899         (hash_loc_operands, compare_loc_operands): Handle
12900         DW_OP_GNU_entry_value.
12901
12902 2011-03-25  Kai Tietz  <ktietz@redhat.com>
12903
12904         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12905         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12906         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12907         comment and use macro TARGET_64BIT_MS_ABI instead.
12908         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12909         and change default behavior for 32-bit MS_ABI.
12910         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12911         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12912         32-bit, too.
12913         (ix86_cfun_abi): Likewise.
12914         (ix86_maybe_switch_abi): Adjust comment.
12915         (init_cumulative_args): Check for bit-ness in MS_ABI case.
12916         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12917         instead of checking for SYSV_ABI.
12918         (ix86_nsaved_sseregs): Likewise.
12919         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12920         to 16 bytes.
12921         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12922         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12923         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12924         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12925         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12926
12927 2011-03-25  Richard Guenther  <rguenther@suse.de>
12928
12929         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12930         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12931         (verify_gimple): Remove.
12932         * tree-cfg.c (verify_gimple_call): Merge verification
12933         from verify_stmts.
12934         (verify_gimple_phi): Merge verification from verify_stmts.
12935         (verify_gimple_label): New function.
12936         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12937         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12938         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12939         (verify_stmts): Rename to verify_gimple_in_cfg.
12940         (verify_gimple_in_cfg): New function.
12941         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12942         * tree-ssa.c (verify_ssa): Likewise.
12943         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
12944
12945 2011-03-25  Richard Guenther  <rguenther@suse.de>
12946
12947         * passes.c (init_optimization_passes): Add FRE pass after
12948         early SRA.
12949
12950 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
12951             Andrew Stubbs  <ams@codesourcery.com>
12952
12953         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
12954         for Cortex-A8.
12955         (arm_movdi_vfp_cortexa8): New pattern.
12956         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
12957         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
12958         instructions when tuning for Cortex-A8.  Set attribute "arch".
12959         * config/arm/arm.md: Move include arm-tune.md up a bit.
12960         (define_attr "arch"): Add "onlya8" and "nota8" values.
12961         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
12962
12963 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
12964
12965         PR bootstrap/48282
12966         Revert:
12967         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
12968
12969         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12970         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
12971         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12972         * passes.c (init_optimization_passes): Move
12973         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12974
12975 2011-03-25  Kai Tietz  <ktietz@redhat.com>
12976
12977         * c-typeck.c (comptypes_internal): Replace target
12978         hook call of comp_type_attributes by version in tree.c file.
12979         * gimple.c (gimple_types_compatible_p_1): Likewise.
12980         * tree-ssa.c (useless_type_conversion_p): Likewise.
12981         * tree.c (build_type_attribute_qual_variant): Likewise.
12982         (attribute_value_equal): New static helper function.
12983         (comp_type_attributes): New function.
12984         (merge_attributes): Use attribute_value_equal for comparison.
12985         (attribute_list_contained): Likewise.
12986         * tree.h (comp_type_attributes): New prototype.
12987
12988 2011-03-25  Richard Guenther  <rguenther@suse.de>
12989
12990         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
12991         of complex types at -O0.
12992         (verify_gimple_assign_binary): Likewise.
12993         (verify_gimple_assign_ternary): Likewise.
12994
12995 2011-03-24  Mark Wielaard  <mjw@redhat.com>
12996
12997         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
12998         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
12999
13000 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13001
13002         PR debug/48041
13003         * dwarf2out.c (output_abbrev_section): Only write table when
13004         abbrev_die_table_in_use > 1.
13005
13006 2011-02-24  Richard Henderson  <rth@redhat.com>
13007
13008         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13009         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13010         (alpha_expand_unaligned_load_words): Use extql.
13011         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13012         (emit_insxl): Handle all modes for consistency.
13013
13014 2011-02-24  Richard Henderson  <rth@redhat.com>
13015
13016         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13017         (alpha_expand_unaligned_load): Likewise.
13018         (alpha_expand_unaligned_store): Likewise.
13019         (alpha_expand_unaligned_load_words): Likewise.
13020         (alpha_expand_unaligned_store_words): Likewise.
13021         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13022         (alpha_split_lock_test_and_set_12): Likewise.
13023         (print_operand, alpha_fold_builtin_extxx): Likewise.
13024         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13025         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13026         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13027         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13028         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13029         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13030         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13031         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13032         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13033         (extwl, extll, extql): Similarly.
13034         (inswh, inslh, insqh): Similarly.
13035         (mskbl, mskwl, mskll, mskql): Similarly.
13036         (mskwh, msklh, mskqh): Similarly.
13037
13038 2011-02-24  Richard Henderson  <rth@redhat.com>
13039
13040         * config/alpha/alpha.md (attribute isa): Add er, ner.
13041         (attribute enabled): Handle them.
13042         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13043
13044 2011-02-24  Richard Henderson  <rth@redhat.com>
13045
13046         * config/alpha/alpha.md (attribute isa): Add vms.
13047         (attribute enabled): Handle it.
13048         (*movsf): Merge *movsf_{nofix,fix,nofp}.
13049         (*movdf): Merge *movdf_{nofix,fix,nofp}.
13050         (*movtf): Rename from *movtf_internal for consistency.
13051         (*movsi): Merge with *movsi_nt_vms.
13052         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13053         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13054         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13055         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13056
13057 2011-02-24  Richard Henderson  <rth@redhat.com>
13058
13059         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13060         (extendqisi2, extendhisi2): Likewise.
13061         (extendqidi2): Simplify BWX/non-BWX expansions.
13062         (extendhidi2): Similarly.
13063
13064 2011-02-24  Richard Henderson  <rth@redhat.com>
13065
13066         * config/alpha/alpha.md (attribute isa): New.
13067         (attribute enabled): New.
13068         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13069         (zero_extendqisi2, zero_extendqidi2): Similarly.
13070         (zero_extendhisi2, zero_extendhidi2): Similarly.
13071         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13072
13073 2011-02-24  Richard Henderson  <rth@redhat.com>
13074
13075         * config/alpha/predicates.md (input_operand): Revert last change;
13076         update comment to mention 32-bit VMS rather than Windows.
13077
13078 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13079
13080         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13081         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13082         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13083         * passes.c (init_optimization_passes): Move
13084         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13085
13086 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13087
13088         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13089
13090 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13091
13092         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13093         correctly.
13094
13095 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
13096
13097         PR debug/48204
13098         * simplify-rtx.c (simplify_const_unary_operation): Call
13099         real_convert when changing mode class with FLOAT_EXTEND.
13100
13101 2011-03-24  Nick Clifton  <nickc@redhat.com>
13102
13103         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13104         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13105         * config/rx/rx.c (rx_option_override): Set align_jumps,
13106         align_loops and align_labels if not set by the user.
13107         (rx_align_for_label): New function.
13108         (rx_max_skip_for_label): New function.
13109         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13110         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13111         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13112         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13113         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13114
13115 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13116
13117         PR rtl-optimization/48263
13118         * optabs.c (expand_binop_directly): Reinstate convert_modes code
13119         and original commutative_p handling.  Use maybe_gen_insn.
13120
13121 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13122
13123         * reload.c (find_reloads_subreg_address): Add address_reloaded
13124         parameter and return true there if the full address has been
13125         reloaded.
13126         (find_reloads_toplev): Pass address_reloaded flag.
13127         (find_reloads_address_1): Don't use address_reloaded parameter.
13128
13129 2011-03-24  Jeff Law  <law@redhat.com>
13130
13131         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13132         unused variable "ann".
13133         (remove_unused_locals): Likewise.
13134
13135         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13136         statement.
13137
13138         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13139         after it is freed.
13140
13141 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13142
13143         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13144         for invalid symbolic addresses.
13145         (s390_secondary_reload): Don't use s390_check_symref_alignment for
13146         larl operands.
13147
13148 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13149
13150         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13151         the argument in calls to fold_truth_not_expr.
13152
13153 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13154
13155         * tree.c (record_node_allocation_statistics): New function.
13156         (make_node_stat, copy_node_stat, build_string): Call it.
13157         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13158         (build1_stat, build_omp_clause): Likewise.
13159
13160 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13161
13162         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13163         last commit.
13164
13165 2011-03-24  Richard Guenther  <rguenther@suse.de>
13166
13167         PR tree-optimization/48271
13168         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13169         blocks that still exist.
13170
13171 2011-03-24  Richard Guenther  <rguenther@suse.de>
13172
13173         PR tree-optimization/48270
13174         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13175         not free datarefs before ddrs.
13176
13177 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13178
13179         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13180         from the address built for a reference with variable offset.
13181
13182 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13183
13184         PR target/48237
13185         * config/i386/i386.md (*movdf_internal_rex64): Do not split
13186         alternatives that can be handled with movq or movabsq insn.
13187         (*movdf_internal): Disable for !TARGET_64BIT.
13188         (*movdf_internal_nointeger): Ditto.
13189         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13190
13191 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13192
13193         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13194         (FUNCTION_ARG_ADVANCE): Likewise.
13195         * tm.texi.in: Change references to them to hook references.
13196         * tm.texi: Regenerate.
13197         * targhooks.c (default_function_arg): Eliminate check for target macro.
13198         (default_function_incoming_arg): Likewise.
13199         (default_function_arg_advance): Likewise.
13200         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13201         (function_arg_advance): Likewise.
13202         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13203
13204 2011-03-24  Richard Guenther  <rguenther@suse.de>
13205
13206         PR middle-end/48269
13207         * tree-object-size.c (addr_object_size): Do not double-account
13208         for MEM_REF offsets.
13209
13210 2011-03-24  Diego Novillo  <dnovillo@google.com>
13211
13212         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13213         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13214         (lto_input_data_block): Move from lto-opts.c.  Make extern.
13215         Update all users.
13216         (lto_input_string): Rename from input_string.  Make extern.
13217         Update all users.
13218         * lto-streamer-out.c (lto_output_string_with_length): Rename from
13219         output_string_with_length.
13220         Output 0 to indicate a non-NULL string.  Update all callers to
13221         not emit 0.
13222         (lto_output_string): Rename from output_string.  Make extern.
13223         Update all users.
13224         (lto_output_decl_state_streams): Make extern.
13225         (lto_output_decl_state_refs): Make extern.
13226         * lto-streamer.h (lto_input_string): Declare.
13227         (lto_input_data_block): Declare.
13228         (lto_output_string): Declare.
13229         (lto_output_string_with_length): Declare.
13230         (lto_output_decl_state_streams): Declare.
13231         (lto_output_decl_state_refs): Declare.
13232
13233 2011-03-24  Richard Guenther  <rguenther@suse.de>
13234
13235         PR tree-optimization/46562
13236         * tree.c (build_invariant_address): New function.
13237         * tree.h (build_invariant_address): Declare.
13238         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13239         a renamed function moved ...
13240         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13241         Take valueization callback parameter.
13242         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13243         * gimple-fold.h: New file.
13244         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13245         (ccp_fold, fold_const_aggregate_ref,
13246         fold_ctor_reference, fold_nonarray_ctor_reference,
13247         fold_array_ctor_reference, fold_string_cst_ctor_reference,
13248         get_base_constructor): Move ...
13249         * gimple-fold.c: ... here.
13250         (gimple_fold_stmt_to_constant_1): New function
13251         split out from ccp_fold.  Take a valueization callback parameter.
13252         Valueize all operands.
13253         (gimple_fold_stmt_to_constant): New wrapper function.
13254         (fold_const_aggregate_ref_1): New function split out from
13255         fold_const_aggregate_ref.  Take a valueization callback parameter.
13256         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13257         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13258         invariant POINTER_PLUS_EXPRs to invariant form.
13259         (vn_valueize): New function.
13260         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13261         * tree-vrp.c (vrp_valueize): New function.
13262         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13263         to fold statements to constants.
13264         * tree-ssa-pre.c (eliminate): Properly guard propagation of
13265         function declarations.
13266         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13267         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13268
13269 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13270
13271         * config/h8300/predicates.md (jump_address_operand): Fix register
13272         mode check.
13273
13274 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
13275
13276         * doc/invoke.texi (max-stores-to-sink): Document.
13277         * params.h (MAX_STORES_TO_SINK): Define.
13278         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13279         if either vectorization or if-conversion is disabled.
13280         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13281         tree-vect-data-refs.c vect_equal_offsets.
13282         (dr_equal_offsets_p): New function.
13283         (find_data_references_in_bb): Remove static.
13284         * tree-data-ref.h (find_data_references_in_bb): Declare.
13285         (dr_equal_offsets_p): Likewise.
13286         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13287         (vect_drs_dependent_in_basic_block): Update calls to
13288         vect_equal_offsets.
13289         (vect_check_interleaving): Likewise.
13290         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13291         (cond_if_else_store_replacement): Rename to...
13292         (cond_if_else_store_replacement_1): ... this.  Change arguments and
13293         documentation.
13294         (cond_if_else_store_replacement): New function.
13295         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13296         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13297
13298 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
13299
13300         PR target/46934
13301         * config/arm/arm.md (casesi): Use the gen_int_mode() function
13302         to subtract lower bound instead of GEN_INT().
13303
13304 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
13305
13306         PR other/48179
13307         PR other/48221
13308         PR other/48234
13309         * doc/extend.texi (Alignment): Move section to match order in TOC.
13310         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13311         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13312
13313 2011-03-23  Jeff Law  <law@redhat.com>
13314
13315         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13316         before removing the edge.
13317
13318         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13319         it may have been freed by redirect_branch_edge or
13320         redirect_edge_succ_nodup.
13321
13322 2011-03-23  Richard Guenther  <rguenther@suse.de>
13323
13324         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13325         (check_va_list_escapes): Likewise.
13326         (check_all_va_list_escapes): Likewise.
13327
13328 2011-03-23  Richard Guenther  <rguenther@suse.de>
13329
13330         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13331         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13332         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13333         (alias.o): Likewise.
13334         (ipa-type-escape.o): Remove.
13335         (ipa-struct-reorg.o): Likewise.
13336         (GTFILES): Remove ipa-struct-reorg.c.
13337         * alias.c: Do not include ipa-type-escape.h.
13338         * tree-ssa-alias.c: Likewise.
13339         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13340         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13341         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13342         and ipa-type-escape passes.
13343         * tree-pass.h (pass_ipa_type_escape): Remove.
13344         (pass_ipa_struct_reorg): Likewise.
13345         * ipa-struct-reorg.h: Remove.
13346         * ipa-struct-reorg.c: Likewise.
13347         * ipa-type-escape.h: Likewise.
13348         * ipa-type-escape.c: Likewise.
13349         * doc/invoke.texi (-fipa-struct-reorg): Remove.
13350         (--param struct-reorg-cold-struct-ratio): Likewise.
13351         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13352         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13353         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13354
13355 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13356
13357         * config/s390/2084.md: Enable all insn reservations also for z9_ec
13358         cpu attribute value.
13359         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13360         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13361         * config/s390/s390.c (processor_flags_table): New constant array.
13362         (s390_handle_arch_option): Remove.
13363         (s390_handle_option): Remove s390_handle_arch_option invocations
13364         and OPT_mwarn_framesize_ handling.
13365         (s390_option_override): Remove s390_handle_arch_option invocation.
13366         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13367         warnings.
13368         * config/s390/s390.md (cpu attribute): Add z9_ec value.
13369         * config/s390/s390.opt (s390_tune, s390_arch)
13370         (march=): Replace s390_arch_option enum and values with
13371         processor_type.  Set variable name to s390_arch.  Set
13372         initialization value.
13373         (mtune=): Replace s390_arch_option with processor_type.  Set
13374         variable name to s390_tune.  Set initialization value.
13375
13376 2011-03-23  Julian Brown  <julian@codesourcery.com>
13377
13378         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13379         accesses which are not naturally aligned.
13380
13381 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13382
13383         PR target/47553
13384         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13385
13386 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13387
13388         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13389         parameter from "int" to "enum insn_code".
13390         (expand_operand_type): New enum.
13391         (expand_operand): New structure.
13392         (create_expand_operand): New function.
13393         (create_fixed_operand, create_output_operand): Likewise
13394         (create_input_operand, create_convert_operand_to): Likewise.
13395         (create_convert_operand_from, create_address_operand): Likewise.
13396         (create_integer_operand): Likewise.
13397         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13398         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13399         (expand_insn, expand_jump_insn): Likewise.
13400         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13401         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13402         (expand_movstr, expand_builtin___clear_cache): Likewise.
13403         (expand_builtin_lock_release): Likewise.
13404         * explow.c (allocate_dynamic_stack_space): Likewise.
13405         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
13406         and use the default handling in that case.
13407         * expmed.c (check_predicate_volatile_ok): Delete.
13408         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13409         (emit_cstore): Likewise.
13410         * expr.c (emit_block_move_via_movmem): Likewise.
13411         (set_storage_via_setmem, expand_assignment): Likewise.
13412         (emit_storent_insn, try_casesi): Likewise.
13413         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
13414         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13415         (expand_vec_shift_expr, expand_binop_directly): Likewise.
13416         (expand_twoval_unop, expand_twoval_binop): Likewise.
13417         (expand_unop_direct, emit_indirect_jump): Likewise.
13418         (emit_conditional_move, vector_compare_rtx): Likewise.
13419         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13420         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13421         (expand_sync_lock_test_and_set): Likewise.
13422         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
13423         (emit_unop_insn): Likewise.
13424         (expand_copysign_absneg): Change icode to an insn_code.
13425         (create_convert_operand_from_type): New function.
13426         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13427         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13428         (expand_insn, expand_jump_insn): Likewise.
13429         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13430         than const_int_operand for operand 2.
13431
13432 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13433
13434         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13435         if possible.
13436
13437 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13438
13439         * emit-rtl.c (emit_pattern_before_noloc): New function.
13440         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13441         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13442         (emit_pattern_after_noloc): New function.
13443         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13444         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13445
13446 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13447
13448         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13449         (__ffsDI2): Likewise.
13450
13451 2011-03-22  Richard Henderson  <rth@redhat.com>
13452
13453         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13454         of !TARGET_ABI_OPEN_VMS.
13455         (alpha_trampoline_init, alpha_start_function): Likewise.
13456         (alpha_expand_epilogue, alpha_file_start): Likewise.
13457         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13458         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13459         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13460         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13461         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13462
13463 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13464
13465         * config/s390/s390-opts.h: New.
13466         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13467         s390_arch_flags, s390_warn_framesize, s390_stack_size,
13468         s390_stack_guard): Remove.
13469         (s390_handle_arch_option): Return void.  Take enum
13470         s390_arch_option value instead of string and searching array.
13471         (s390_handle_option): Don't assert that global structures are in
13472         use.  Access variables via opts pointer.  Use error_at.  Don't use
13473         sscanf for -mstack-guard= or -mstack-size=.  Update call to
13474         s390_handle_arch_option.
13475         (s390_option_override): Update call to s390_handle_arch_option.
13476         (s390_emit_prologue): Use %d format for s390_stack_size in
13477         diagnostic.  Use %wd for HOST_WIDE_INT.
13478         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13479         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13480         * config/s390/s390.opt (config/s390/s390-opts.h): New
13481         HeaderInclude entry.
13482         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13483         s390_arch_flags, s390_warn_framesize): New Variable entries.
13484         (s390_arch_option): New Enum and EnumValue entries.
13485         (march=): Use Enum instead of Var.
13486         (mstack-guard=, mstack-size=): Use UInteger and Var.
13487         (mtune=): Use Enum.
13488
13489 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13490
13491         * config/score/score.c (score_handle_option): Don't assert that
13492         global structures are in use.  Access target_flags via opts
13493         pointer.  Use value of -march= option to determine target_flags
13494         settings.
13495         * config/score/score.opt (march=): Use Enum.
13496         (score_arch): New Enum and EnumValue entries.
13497
13498 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13499
13500         * config/mep/mep.c (option_mtiny_specified): Remove.
13501         (mep_option_override): Move register handling for -mivc2 from
13502         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
13503         instead of option_mtiny_specified.
13504         (mep_handle_option): Access target_flags via opts pointer.  Don't
13505         assert that global structures are in use.  Defer part of -mivc2
13506         handling and move it to mep_option_override.
13507         * config/mep/mep.opt (IVC2): New Mask entry.
13508         (mivc2): Use Var and Defer instead of Mask.
13509
13510 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13511
13512         * config/v850/v850-opts.h: New.
13513         * config/v850/v850.c (small_memory): Replace with
13514         small_memory_physical_max array.  Make that array static const.
13515         (v850_handle_memory_option): Take integer value of argument.  Take
13516         gcc_options pointer, option text and location.  Return void.
13517         Update for changes to small memory structures.
13518         (v850_handle_option): Access target_flags via opts pointer.  Don't
13519         assert that global structures are in use.  Update calls to
13520         v850_handle_memory_option.
13521         (v850_encode_data_area): Update references to small memory settings.
13522         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13523         (enum small_memory_type): Move to v850-opts.h.
13524         * config/v850/v850.opt (config/v850/v850-opts.h): New
13525         HeaderInclude entry.
13526         (small_memory_max): New Variable entry.
13527         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
13528         (mtda, mzda): Likewise.
13529
13530 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13531
13532         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13533         pointer.  Don't assert that global structures are in use.
13534
13535 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13536
13537         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13538         via opts pointer.  Don't assert that global structures are in use.
13539
13540 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13541
13542         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13543         (munix=93): Use Var.
13544         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13545         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13546         * config/pa/pa-opts.h: New.
13547         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13548         (pa_handle_option): Don't assert that global structures are in
13549         use.  Access target_flags via opts pointer.  Don't handle
13550         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13551         OPT_munix_98 here.
13552         (pa_option_override): Handle deferred OPT_mfixed_range_.
13553
13554 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13555
13556         * config/mn10300/mn10300-opts.h: New.
13557         * config/mn10300/mn10300.c (mn10300_processor,
13558         mn10300_tune_string): Remove.
13559         (mn10300_handle_option): Don't assert that global structures are
13560         in use.  Access mn10300_processor via opts pointer.  Don't handle
13561         OPT_mtune_ here.
13562         * config/mn10300/mn10300.h (enum processor_type): Move to
13563         mn10300-opts.h.
13564         (mn10300_processor): Remove.
13565         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13566         HeaderInclude entry.
13567         (mn10300_processor): New Variable entry.
13568         (mtune=): Use Var.
13569
13570 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13571
13572         * config/microblaze/microblaze.c: Don't include opts.h.
13573         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13574         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13575         (mno-clearbss): Use Var and Warn.
13576
13577 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13578
13579         * config/m32r/m32r-opts.h: New.
13580         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13581         (m32r_handle_option): Don't assert that global structures are in
13582         use.  Access target_flags and m32r_cache_flush_func via opts
13583         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
13584         OPT_mno_flush_trap here.
13585         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13586         include of m32r-opts.h.
13587         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13588         HeaderInclude entry.
13589         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13590         (mmodel=): Use Enum and Var.
13591         (m32r_model): New Enum and EnumValue entries.
13592         (mno-flush-trap): Use Var.
13593         (msdata=): Use Enum and Var.
13594         (m32r_sdata): New Enum and EnumValue entries.
13595
13596 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13597
13598         * config/m32c/m32c.c: Don't include opts.h.
13599         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13600         m32c_handle_option): Remove.
13601         (m32c_option_override): Check global_options_set.x_target_memregs
13602         instead of target_memregs_set.
13603         * config/m32c/m32c.h (target_memregs): Remove.
13604         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13605         variable.
13606
13607 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13608
13609         * config/iq2000/iq2000-opts.h: New.
13610         * config/iq2000/iq2000.c: Don't include opts.h.
13611         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
13612         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
13613         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13614         HeaderInclude entry.
13615         (iq2000_tune): New Variable entry.
13616         (march=): Add comment.  Use Enum.
13617         (iq2000_arch): New Enum and EnumValue entries.
13618         (mcpu=): Use Enum and Var.
13619         (iq2000_tune): New Enum and EnumValue entries.
13620
13621 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13622
13623         * config/ia64/ia64-opts.h: New.
13624         * config/ia64/ia64.c (ia64_tune): Remove.
13625         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13626         here.  Use error_at.
13627         (ia64_option_override): Handle deferred OPT_mfixed_range_.
13628         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13629         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13630         HeaderInclude entry.
13631         (ia64_tune): New Variable entry.
13632         (mfixed-range=): Use Defer and Var.
13633         (mtune=): Use Enum and Var.
13634         (ia64_tune): New Enum and EnumValue entries.
13635
13636 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13637
13638         * config/frv/frv-opts.h: New.
13639         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13640         frv-opts.h.
13641         (frv_cpu_type): Remove.
13642         * config/frv/frv.c: Don't include opts.h.
13643         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13644         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13645         (frv_cpu_type): New Variable entry.
13646         (frv_cpu): New Enum and EnumValue entries.
13647
13648 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13649
13650         * config/cris/cris.c (cris_handle_option): Access target_flags via
13651         opts pointer.  Don't assert that global structures are in use.
13652         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13653         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13654
13655 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13656
13657         * config/bfin/bfin-opts.h: New.
13658         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13659         bfin_si_revision, bfin_workarounds): Remove.
13660         (bfin_cpus): Make static const.
13661         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13662         not bfin_lib_id_given.
13663         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
13664         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13665         pointer. Use error_at.  Don't assert that global structures are in use.
13666         * config/bfin/bfin.h: Include bfin-opts.h.
13667         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13668         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13669         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13670         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13671         entries.
13672
13673 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13674
13675         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13676         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13677         or -msoft-float here.
13678         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13679         -msoft-float and -mhard-float.
13680         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13681         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13682         msoft-float.
13683         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13684         -msoft-float.
13685         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13686         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13687         not mhard-float.
13688         (LIBGCC_SPEC): Don't handle -msoft-float.
13689         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13690         -mhard-float.
13691         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13692         msoft-float.
13693         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13694         -mfloat-abi=*, not -msoft-float and -mhard-float.
13695         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13696         -msoft-float.
13697         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13698         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13699         mhard-float and msoft-float.
13700         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13701         mfloat-abi=soft in comments, not mhard-float and msoft-float.
13702         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13703         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13704         mhard-float.
13705         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13706         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13707         msoft-float.
13708         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13709         not mhard-float.
13710         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13711         not msoft-float.
13712
13713 2011-03-22  Richard Henderson  <rth@redhat.com>
13714
13715         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13716         TARGET_ABI_WINDOWS_NT.
13717         (alpha_output_function_end_prologue): Likewise.
13718         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13719         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13720         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13721         (trap, *movsi_nt_vms): Likewise.
13722         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13723         (*tablejump_osf_nt_internal): Remove.
13724         * config/alpha/predicates.md (input_operand): Only test Pmode.
13725
13726 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13727
13728         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13729         via opts pointer.  Use error_at.  Don't assert that global
13730         structures are in use.
13731
13732 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13733
13734         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13735         (ix86_handle_option): Access ix86_isa_flags and
13736         ix86_isa_flags_explicit via opts pointer.  Don't assert that
13737         global structures are in use.
13738         (ix86_function_specific_save, ix86_function_specific_restore):
13739         Update ix86_isa_flags_explicit field name.
13740         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13741         (ix86_isa_flags_explicit): Rename TargetSave entry to
13742         x_ix86_isa_flags_explicit.
13743
13744 2011-03-22  Richard Henderson  <rth@redhat.com>
13745
13746         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13747         (alpha_option_override, direct_return): Likewise.
13748         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13749         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13750         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13751         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13752         (alpha_expand_epilogue, alpha_end_function): Likewise.
13753         (alpha_init_libfuncs): Likewise.
13754         (struct machine_function): Remove unicosmk members.
13755         (print_operand) ['t']: Remove.
13756         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13757         unicosmk_output_module_name, unicosmk_output_common,
13758         current_section_align, unicosmk_output_text_section_asm_op,
13759         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13760         unicosmk_section_type_flags, unicosmk_unique_section,
13761         unicosmk_asm_named_section, unicosmk_insert_attributes,
13762         unicosmk_output_align, unicosmk_defer_case_vector,
13763         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13764         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13765         unicosmk_output_ssib, unicosmk_add_call_info_word,
13766         unicosmk_extern_head, unicosmk_output_default_externs,
13767         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13768         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13769         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13770         * config/alpha/alpha-protos.h: Update.
13771         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13772         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13773         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13774         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13775         (*mulsi_se, mulvsi3): Likewise.
13776         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13777         (*divmodsi_internal, call, call_value, realign): Likewise.
13778         (moddi3, umoddi3): Likewise; remove duplicate expander.
13779         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13780         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13781         (*movdi_nofix): Remove r/U alternative.
13782         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13783         * config/alpha/constraints.md ("U"): Remove.
13784         * config/alpha/predicates.md (call_operand"): Don't test
13785         TARGET_ABI_UNICOSMK.
13786
13787 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13788
13789         * target.def (handle_option): Take gcc_options and
13790         cl_decoded_option pointers and location_t.
13791         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13792         * doc/tm.texi: Regenerate.
13793         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13794         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13795         * lto-opts.c (lto_reissue_options): Generate option structure for
13796         targetm.handle_option call.
13797         * opts.c (target_handle_option): Update call to
13798         targetm.handle_option.  Remove assertions about values now passed
13799         down to hook.
13800         * targhooks.c (default_target_handle_option): New.
13801         * targhooks.h (default_target_handle_option): Declare.
13802         * config/alpha/alpha.c: Include opts.h.
13803         (alpha_handle_option): Update to new hook interface.
13804         * config/arm/arm.c: Include opts.h.
13805         (arm_handle_option): Update to new hook interface.
13806         * config/arm/t-arm (arm.o): Update dependencies.
13807         * config/bfin/bfin.c: Include opts.h.
13808         (bfin_handle_option): Update to new hook interface.
13809         * config/cris/cris.c: Include opts.h.
13810         (cris_handle_option): Update to new hook interface.
13811         * config/frv/frv.c: Include opts.h.
13812         (frv_handle_option): Update to new hook interface.
13813         * config/i386/i386.c: Include opts.h.
13814         (ix86_handle_option): Update to new hook interface.
13815         (ix86_valid_target_attribute_inner_p): Generate option structure
13816         for call to ix86_handle_option.
13817         * config/i386/t-i386 (i386.o): Update dependencies.
13818         * config/ia64/ia64.c: Include opts.h.
13819         (ia64_handle_option): Update to new hook interface.
13820         * config/ia64/t-ia64 (ia64.o): Update dependencies.
13821         * config/iq2000/iq2000.c: Include opts.h.
13822         (iq2000_handle_option): Update to new hook interface.
13823         * config/m32c/m32c.c: Include opts.h.
13824         (m32c_handle_option): Update to new hook interface.
13825         * config/m32r/m32r.c: Include opts.h.
13826         (m32r_handle_option): Update to new hook interface.
13827         * config/m68k/m68k.c: Include opts.h.
13828         (m68k_handle_option): Update to new hook interface.
13829         * config/mep/mep.c: Include opts.h.
13830         (mep_handle_option): Update to new hook interface.
13831         * config/microblaze/microblaze.c: Include opts.h.
13832         (microblaze_handle_option): Update to new hook interface.
13833         * config/mips/mips.c: Include opts.h.
13834         (mips_handle_option): Update to new hook interface.
13835         * config/mn10300/mn10300.c: Include opts.h.
13836         (mn10300_handle_option): Update to new hook interface.
13837         * config/pa/pa.c: Include opts.h.
13838         (pa_handle_option): Update to new hook interface.
13839         * config/pdp11/pdp11.c: Include opts.h.
13840         (pdp11_handle_option): Update to new hook interface.
13841         * config/rs6000/rs6000.c: Include opts.h.
13842         (rs6000_handle_option): Update to new hook interface.
13843         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13844         * config/rx/rx.c: Include opts.h.
13845         (rx_handle_option): Update to new hook interface.
13846         * config/s390/s390.c: Include opts.h.
13847         (s390_handle_option): Update to new hook interface.
13848         * config/score/score.c: Include opts.h.
13849         (score_handle_option): Update to new hook interface.
13850         * config/sh/sh.c: Include opts.h.
13851         (sh_handle_option): Update to new hook interface.
13852         * config/sparc/sparc.c: Include opts.h.
13853         (sparc_handle_option): Update to new hook interface.
13854         * config/v850/v850.c: Include opts.h.
13855         (v850_handle_option): Update to new hook interface.
13856
13857 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13858
13859         * gcc.c (driver_unknown_option_callback): Only permit and save
13860         unknown -Wno- options.
13861         (driver_wrong_lang_callback): Save options directly instead of via
13862         driver_unknown_option_callback.
13863
13864 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
13865
13866         * combine.c (simplify_set): Try harder to find the best CC mode when
13867         simplifying a nested COMPARE on the RHS.
13868
13869 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13870
13871         * config/alpha/gnu.h: Remove.
13872         * config/arc: Remove directory.
13873         * config/arm/netbsd.h: Remove.
13874         * config/arm/t-pe: Remove.
13875         * config/crx: Remove directory.
13876         * config/i386/netbsd.h: Remove.
13877         * config/m68hc11: Remove directory.
13878         * config/m68k/uclinux-oldabi.h: Remove.
13879         * config/mcore/mcore-pe.h: Remove.
13880         * config/mcore/t-mcore-pe: Remove.
13881         * config/netbsd-aout.h: Remove.
13882         * config/rs6000/gnu.h: Remove.
13883         * config/sh/sh-symbian.h: Remove.
13884         * config/sh/symbian-base.c: Remove.
13885         * config/sh/symbian-c.c: Remove.
13886         * config/sh/symbian-cxx.c: Remove.
13887         * config/sh/symbian-post.h: Remove.
13888         * config/sh/symbian-pre.h: Remove.
13889         * config/sh/t-symbian: Remove.
13890         * config/svr3.h: Remove.
13891         * config/vax/netbsd.h: Remove.
13892         * config.build: Don't handle i[34567]86-*-pe.
13893         * config.gcc: Remove handling of deprecations for most deprecated
13894         targets.
13895         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13896         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13897         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13898         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13899         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13900         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13901         Remove cases.
13902         * config.host: Don't handle i[34567]86-*-pe.
13903         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13904         (ASM_SPEC32): Don't handle -mcall-gnu.
13905         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13906         -mcall-gnu.
13907         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13908         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13909         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13910         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13911         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13912         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13913         conditional on SYMBIAN.
13914         * configure.ac: Don't handle powerpc*-*-gnu*.
13915         * configure: Regenerate.
13916         * doc/extend.texi (interrupt attribute): Don't mention CRX.
13917         * doc/install-old.texi (m6811, m6812): Don't mention.
13918         * doc/install.texi (arc-*-elf*): Don't document multilib option.
13919         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13920         (m68k-uclinuxoldabi): Don't mention.
13921         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13922         Remove.
13923         (-mcall-gnu): Remove.
13924         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13925         families): Remove constraint documentation.
13926
13927 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
13928
13929         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13930         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13931         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13932
13933 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
13934
13935         PR target/48226
13936         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13937         vector when peeking at the next token for vector, don't expand the
13938         keywords.
13939
13940 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
13941
13942         * config/avr/avr-protos.h (expand_epilogue): Change prototype
13943         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
13944         * config/avr/avr.c (init_cumulative_args)
13945         (avr_function_arg_advance): Use it.
13946         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
13947         sibcall epilogues.
13948         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
13949         (avr_function_ok_for_sibcall): ...this new function.
13950         (avr_lookup_function_attribute1): New static Function.
13951         (avr_naked_function_p, interrupt_function_p)
13952         (signal_function_p, avr_OS_task_function_p)
13953         (avr_OS_main_function_p): Use it.
13954         * config/avr/avr.md ("sibcall", "sibcall_value")
13955         ("sibcall_epilogue"): New expander.
13956         ("*call_insn", "*call_value_insn"): New insn.
13957         ("call_insn", "call_value_insn"): Remove
13958         ("call", "call_value", "epilogue"): Change expander to handle
13959         sibling calls.
13960
13961 2011-03-21  Nick Clifton  <nickc@redhat.com>
13962
13963         * doc/invoke.texi (Overall Options): Move closing brace to end of
13964         options list.
13965         (Optimization Options): Add missing @gol.
13966         (Directory Options): Likewise.
13967         (i386 and x86-64 Options): Likewise.
13968         (RS6000 and PowerPC Options): Likewise.
13969         (i386 and x86-64 Windows Options): Likewise.
13970         (V850 Options): Add text missing from descriptions.
13971
13972 2011-03-22  Richard Henderson  <rth@redhat.com>
13973
13974         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
13975         (avr_incoming_return_addr_rtx): New.
13976         (emit_push_byte): New.
13977         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
13978         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
13979         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
13980         (emit_pop_byte): New.
13981         (expand_epilogue): Use it.  Pop frame pointer by bytes.
13982         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
13983         (INCOMING_RETURN_ADDR_RTX): New.
13984         (INCOMING_FRAME_SP_OFFSET): New.
13985         (ARG_POINTER_CFA_OFFSET): New.
13986         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
13987         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
13988         (pophi): Remove.
13989
13990         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
13991
13992 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13993
13994         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13995         (FUNCTION_ARG_ADVANCE): Likewise.
13996         * tm.texi.in: Change references to them to hook references.
13997         * tm.texi: Regenerate.
13998         * targhooks.c (default_function_arg): Eliminate check for target
13999         macro.
14000         (default_function_incoming_arg): Likewise.
14001         (default_function_arg_advance): Likewise.
14002         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14003         (function_arg_advance): Likewise.
14004         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14005
14006 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14007
14008         * tree.c (build_call_1): New function.
14009         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14010
14011 2011-03-22  Richard Guenther  <rguenther@suse.de>
14012
14013         PR tree-optimization/48228
14014         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14015         for single-arg PHIs.
14016
14017 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
14018
14019         PR rtl-optimization/48143
14020         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14021         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14022         sse2_cvtps2pd): Likewise.
14023
14024 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14025
14026         * recog.c (canonicalize_change_group): Use validate_unshare_change.
14027
14028 2011-03-22  Richard Guenther  <rguenther@suse.de>
14029
14030         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14031         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14032         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14033         and REALIGN_LOAD_EXPR.
14034         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14035         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14036         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14037         DOT_PROD_EXPR case ...
14038         (expand_expr_real_2): ... here.
14039         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14040         and REALIGN_LOAD_EXPR.
14041         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14042         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14043         (vect_create_epilog_for_reduction): Likewise.
14044         (vectorizable_reduction): Likewise.
14045         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14046         * tree-vect-stmts.c (vectorizable_load): Likewise.
14047
14048 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14049
14050         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14051
14052 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14053
14054         * config/s390/s390.c (s390_delegitimize_address): Fix offset
14055         handling for PLTOFF/GOTOFF.
14056
14057 2011-03-22  Nick Clifton  <nickc@redhat.com>
14058
14059         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14060         trailing backslash from the end of the macro definition.
14061
14062 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14063
14064         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14065         and PLT unspecs.
14066
14067 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
14068
14069         * expr.h (prepare_operand): Move to...
14070         * optabs.h (prepare_operand): ...here and change the insn code
14071         parameter from "int" to "enum insn_code".
14072         (insn_operand_matches): Declare.
14073         * expr.c (init_expr_target): Use insn_operand_matches.
14074         (compress_float_constant): Likewise.
14075         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14076         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14077         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14078         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14079         Likewise.
14080         (gen_cond_trap): Likewise.
14081         (prepare_operand): Likewise.  Change icode to an insn_code.
14082         (insn_operand_matches): New function.
14083         * reload.c (find_reloads_address_1): Use insn_operand_matches.
14084         * reload1.c (gen_reload): Likewise.
14085         * targhooks.c (default_secondary_reload): Likewise.
14086
14087 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14088
14089         * config/alpha/alpha.md (unspec): New define_c_enum.
14090         (unspecv): Ditto.
14091
14092 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14093
14094         PR debug/48214
14095         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14096         between a call and its CALL_ARG_LOCATION note.
14097
14098 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
14099
14100         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14101
14102 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14103
14104         PR c/42544
14105         PR c/48197
14106         * c-common.c (shorten_compare): If primopN is first sign-extended
14107         to opN and then zero-extended to result type, set primopN to opN.
14108
14109 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
14110
14111         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14112         for barrier handlers.
14113
14114 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14115
14116         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14117         UNSPEC constants to be in the unspec enumeration, and redefine
14118         all UNSPECV constants to be in the unspecv enumeration, so that
14119         dumps print which unspec/unspec_volatile this is.
14120         * config/rs6000/vector.md (UNSPEC_*): Ditto.
14121         * config/rs6000/paired.md (UNSPEC_*): Ditto.
14122         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14123         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14124         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14125
14126         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14127         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14128         UNSPECV_LWSYNC, since these are used as unspec_volatile.
14129         * config/rs6000/sync.md (isync, lwsync): Ditto.
14130
14131 2011-03-21  Richard Guenther  <rguenther@suse.de>
14132
14133         * params.def (lto-min-partition): Fix typo.
14134
14135 2011-03-21  Richard Guenther  <rguenther@suse.de>
14136
14137         PR c/47939
14138         * c-decl.c (grokdeclarator): Drop to the main variant only
14139         for array types.  Drop flag_gen_aux_info check.
14140
14141 2011-03-21  Richard Guenther  <rguenther@suse.de>
14142
14143         PR translation/47911
14144         * params.def (lto-partitions): Fix typo.
14145         (lto-min-partition): Fix wording.
14146
14147 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
14148
14149         * config/rs6000/t-freebsd: Remove duplication from file.
14150
14151 2011-03-21  Richard Guenther  <rguenther@suse.de>
14152
14153         PR middle-end/47661
14154         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14155
14156 2011-03-21  Richard Guenther  <rguenther@suse.de>
14157
14158         PR lto/48210
14159         * params.def (lto-partitions): Require at least 1 partition.
14160
14161 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14162
14163         * gthr-solaris.h: Remove.
14164         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14165         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14166         (LIB_SPEC): Likewise.
14167         * config/sol2.opt (threads): Remove.
14168         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14169         (sparc*-*-solaris2*): Likewise.
14170         * configure.ac (enable_threads): Enable solaris support.
14171         * configure: Regenerate.
14172         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14173         * doc/install.texi (Configuration, --enable-threads=lib): Remove
14174         solaris.
14175
14176 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14177
14178         * config.gcc: Obsolete *-*-solaris2.8*.
14179         * doc/install.texi (Specific, *-*-solaris2*): Document it.
14180
14181 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14182
14183         PR bootstrap/48135
14184         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14185         reference.  Solaris 8 perl works.
14186
14187 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14188
14189         PR bootstrap/48135
14190         * doc/install.texi (Prerequisites): Move jar etc. up.
14191         Explain support library version requirements.
14192
14193 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14194
14195         PR bootstrap/48135
14196         * doc/install.texi (Prerequisites): Move Perl to build
14197         requirements.  Always necessary on Solaris 2 with Sun ld.
14198
14199 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14200
14201         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14202         binutils 2.21.
14203         (Specific, i?86-*-solaris2.[89]): Likewise.
14204         (Specific, i?86-*-solaris2.10): Likewise.
14205         (Specific, mips-sgi-irix6): Likewise.
14206         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14207         Update for binutils 2.21.
14208
14209 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14210
14211         * configure.ac (gcc_cv_lto_plugin): Fix typo.
14212         Allow -fuse-linker-plugin for non-default plugin linker.
14213         * configure: Regenerate.
14214
14215 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14216
14217         PR bootstrap/48167
14218         * gengtype.c (files_rules): Added rule for cp/parser.h.
14219
14220 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14221
14222         PR target/48213
14223         * config/s390/s390.c (s390_delegitimize_address): Don't call
14224         lowpart_subreg if orig_x has BLKmode.
14225
14226 2011-03-21  Kai Tietz  <ktietz@redhat.com>
14227
14228         PR target/12171
14229         * doc/plugins.texi: Adjust documentation for plugin register_callback.
14230         * tree.h (attribute_spec): Add new member affects_type_identity.
14231         * attribs.c (empty_attribute_table): Adjust attribute_spec
14232         initializers.
14233         * config/alpha/alpha.c: Likewise.
14234         * config/arc/arc.c: Likewise.
14235         * config/arm/arm.c: Likewise.
14236         * config/avr/avr.c: Likewise.
14237         * config/bfin/bfin.c: Likewise.
14238         * config/crx/crx.c: Likewise.
14239         * config/darwin.h: Likewise.
14240         * config/h8300/h8300.c: Likewise.
14241         * config/i386/cygming.h: Likewise.
14242         * config/i386/i386.c: Likewise.
14243         * config/ia64/ia64.c: Likewise.
14244         * config/m32c/m32c.c: Likewise.
14245         * config/m32r/m32r.c: Likewise.
14246         * config/m68hc11/m68hc11.c: Likewise.
14247         * config/m68k/m68k.c: Likewise.
14248         * config/mcore/mcore.c: Likewise.
14249         * config/mep/mep.c: Likewise.
14250         * config/microblaze/microblaze.c: Likewise.
14251         * config/mips/mips.c: Likewise.
14252         * config/rs6000/rs6000.c: Likewise.
14253         * config/rx/rx.c: Likewise.
14254         * config/sh/sh.c: Likewise.
14255         * config/sol2.h: Likewise.
14256         * config/sparc/sparc.c: Likewise.
14257         * config/spu/spu.c: Likewise.
14258         * config/stormy16/stormy16.c: Likewise.
14259         * config/v850/v850.c: Likewise.
14260
14261 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
14262
14263         * simplify-rtx.c (simplify_binary_operation_1): Handle
14264         (xor (and A B) C) case when B and C are both constants.
14265
14266 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
14267
14268         * tree-dfa.c (add_referenced_var): Fix typo in comment.
14269
14270 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14271
14272         PR bootstrap/48168
14273         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14274
14275 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
14276
14277         PR rtl-optimization/48156
14278         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14279         assume df and df_lr are not NULL.
14280
14281 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14282
14283         PR debug/48023
14284         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14285         between a call and its CALL_ARG_LOCATION note.
14286
14287 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
14288
14289         PR debug/48178
14290         * config/sh/sh.c (find_barrier): Don't emit a constant pool
14291         between a call and its corresponding CALL_ARG_LOCATION note.
14292
14293 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
14294
14295         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14296         instead of loop. Use HARD_REGISTER_NUM_P predicate.
14297         * haifa-sched.c (setup_ref_regs): Ditto.
14298         * caller-save.c (add_used_regs_1): Ditto.
14299         * dse.c (look_for_hardregs): Ditto.
14300         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14301         * sched-rgn.c (check_live_1): Ditto.
14302
14303 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14304
14305         * c-decl.c (diagnose_mismatched_decls): Give an error for
14306         redefining a typedef with variably modified type.
14307
14308 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14309
14310         * c-decl.c (grokfield): Don't allow typedefs for structures or
14311         unions with no tag by default.
14312         * doc/extend.texi (Unnamed Fields): Update.
14313
14314 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
14315
14316         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14317         Rewrite using indirect functions.
14318         (lwp_slwpcb): Ditto.
14319         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14320         (avx_vinsertf128<mode>): Ditto.
14321
14322 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14323
14324         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14325         unspecs.
14326
14327 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14328
14329         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14330         splitting between a call and its corresponding CALL_ARG_LOCATION note.
14331
14332 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14333
14334         PR rtl-optimization/48170
14335         * gcse.c (hoist_code): Remove bogus asserts.
14336
14337 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
14338
14339         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14340         computation for prologue/epilogue.
14341
14342 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14343
14344         * Makefile.in (check-consistency): Remove.
14345
14346 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
14347
14348         PR debug/48176
14349         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14350         arange_table_in_use is 0, but either text_section_used or
14351         cold_text_section_used is true.  Don't call it if
14352         !info_section_emitted.
14353
14354 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
14355
14356         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14357         FUNCTION_VALUE_REGNO_P): Remove.
14358         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14359         Remove.
14360         * config/avr/avr.c (avr_ret_register): Make static inline.
14361         (avr_function_value_regno_p): New function.
14362         (avr_libcall_value): Make static. Add 'func' argument.
14363         (avr_function_value): Make static. Rename 'func' argument to
14364         'fn_decl_or_type', forward it to avr_libcall_value. Call
14365         avr_ret_register function instead of RET_REGISTER macro.
14366         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14367
14368 2011-03-18  Jason Merrill  <jason@redhat.com>
14369
14370         PR c++/23372
14371         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14372
14373 2011-03-18  Richard Guenther  <rguenther@suse.de>
14374
14375         * doc/install.texi (--enable-gold): Remove.
14376         (--with-plugin-ld): Document.
14377         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14378
14379 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
14380
14381         PR middle-end/47790
14382         * expr.c (optimize_bitfield_assignment_op): Revamp to work
14383         again after expansion changes.
14384
14385 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
14386
14387         * combine.c (try_combine): Do simplification only call of
14388         subst() on i2 even when i1 is present. Update comments.
14389
14390 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
14391
14392         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14393         and UNSPEC_PCREL_SYMOFF.
14394
14395 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14396
14397         * config/s390/s390.md: Use define_c_enum for the unspec constant
14398         definitions.
14399
14400 2011-03-18  Richard Henderson  <rth@redhat.com>
14401             Jakub Jelinek  <jakub@redhat.com>
14402
14403         PR bootstrap/48161
14404         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14405         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14406
14407 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14408
14409         PR middle-end/47725
14410         * combine.c (cant_combine_insn_p): Don't check zero/sign
14411         extended hard registers.
14412
14413 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14414
14415         PR middle-end/47725
14416         * combine.c (cant_combine_insn_p): Check zero/sign extended
14417         hard registers.
14418
14419 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
14420
14421         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14422         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14423         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14424         Change return type to bool.
14425         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14426
14427 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14428
14429         PR debug/48163
14430         * var-tracking.c (prepare_call_arguments): If CALL target
14431         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14432         pc instead of looking it up using cselib_lookup and use
14433         Pmode for it if x has VOIDmode.
14434         * dwarf2out.c (gen_subprogram_die): If also both first and
14435         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14436
14437         PR debug/48163
14438         * function.c (assign_parms): For data.passed_pointer parms
14439         use MEM of data.entry_parm instead of data.entry_parm itself
14440         as DECL_INCOMING_RTL.
14441         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14442         also when passed and declared mode is the same, DECL_RTL
14443         is a MEM with pseudo as address and DECL_INCOMING_RTL is
14444         a MEM too.
14445
14446 2011-03-16  Jeff Law  <law@redhat.com>
14447
14448         PR rtl-optimization/37273
14449         * ira-costs.c (scan_one_insn): Detect constants living in memory and
14450         handle them like argument loads from stack slots.  Do not double
14451         count memory for memory constants and argument loads from stack slots.
14452
14453 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14454
14455         PR debug/48160
14456         * var-tracking.c (prepare_call_arguments): Check SUBREG.
14457
14458 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14459
14460         PR target/48171
14461         * config/i386/i386.opt: Add Save to -mavx and -mfma.
14462
14463 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14464
14465         PR bootstrap/48153
14466         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14467         if dwarf_strict.
14468         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14469         Clear call_arg_locations and call_arg_loc_last always.
14470
14471         PR middle-end/48152
14472         * var-tracking.c (prepare_call_arguments): If argument needs to be
14473         passed by reference, adjust argtype and mode.
14474
14475 2011-03-17  Richard Guenther  <rguenther@suse.de>
14476
14477         PR middle-end/48134
14478         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14479         a value make sure to fold the statement.
14480
14481 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
14482
14483         PR target/43872
14484         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14485         return condition with !cfun->calls_alloca.
14486
14487 2011-03-17  Richard Guenther  <rguenther@suse.de>
14488
14489         PR bootstrap/48148
14490         * lto-cgraph.c (input_overwrite_node): Clear the abstract
14491         origin for decls in other ltrans units.
14492         (input_varpool_node): Likewise.
14493
14494 2011-03-17  Richard Guenther  <rguenther@suse.de>
14495
14496         PR middle-end/48165
14497         * tree-object-size.c (compute_object_offset): Properly return
14498         the offset operand of MEM_REFs as sizetype.
14499
14500 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14501
14502         PR rtl-optimization/48141
14503         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14504         * dse.c: Include params.h.
14505         (active_local_stores_len): New variable.
14506         (add_wild_read, dse_step1): Clear it when setting active_local_stores
14507         to NULL.
14508         (record_store, check_mem_read_rtx): Decrease it when removing
14509         from the chain.
14510         (scan_insn): Likewise.  Increase it when adding to chain, if it
14511         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14512         set active_local_stores to NULL before the addition.
14513         * Makefile.in (dse.o): Depend on $(PARAMS_H).
14514
14515         PR rtl-optimization/48141
14516         * dse.c (record_store): If no positions are needed in an insn
14517         that cannot be deleted, at least unchain it from active_local_stores.
14518
14519 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
14520
14521         PR debug/47510
14522         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14523         (lookup_type_die_strip_naming_typedef): ... here.
14524         (get_context_die): Use it.
14525         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14526         the anonymous struct named by the naming typedef.
14527
14528 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
14529
14530         PR target/48154
14531         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14532         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14533
14534 2011-03-16  Jeff Law  <law@redhat.com>
14535
14536         * tree-vrp.c (identify_jump_threads): Slightly simplify type
14537         check for operands of conditional.  Allow type to be a pointer.
14538
14539 2011-03-16  Richard Guenther  <rguenther@suse.de>
14540
14541         PR tree-optimization/48149
14542         * fold-const.c (fold_binary_loc): Fold
14543         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14544
14545 2011-03-16  Richard Guenther  <rguenther@suse.de>
14546
14547         PR tree-optimization/26134
14548         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14549         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14550         (non_rewritable_mem_ref_base): Handle complex type component
14551         accesses, constrain offsets for vector and complex extracts
14552         more properly.
14553
14554 2011-03-16  Richard Guenther  <rguenther@suse.de>
14555
14556         PR tree-optimization/48146
14557         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14558         operands avoiding the need for renaming.
14559
14560 2011-03-16  Richard Guenther  <rguenther@suse.de>
14561
14562         * gimple-fold.c (maybe_fold_reference): Open-code relevant
14563         constant folding.  Move MEM_REF canonicalization first.
14564         Rely on fold_const_aggregate_ref for initializer folding.
14565         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14566
14567 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
14568
14569         PR middle-end/48136
14570         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14571         arg0/arg1 or their arguments are always fold converted to matching
14572         types.
14573
14574         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14575         to nargs.
14576
14577 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14578
14579         PR lto/46944
14580         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14581         Handle in-tree gold.
14582         (ld_vers): Extract binutils version for gold.
14583         (gcc_cv_ld_hidden): Handle gold here.
14584         (gcc_cv_lto_plugin): Determine level of linker plugin support.
14585         * configure: Regenerate.
14586         * config.in: Regenerate.
14587         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14588         -fuse-linker-plugin otherwise.
14589         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
14590         (LINK_COMMAND_SPEC): Use it.
14591         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14592
14593 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
14594
14595         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14596         * calls.c: Remove debug.h include.
14597         (emit_call_1): Don't call virtual_call_token debug hook.
14598         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14599         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14600         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14601         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14602         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14603         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14604         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14605         dwarf2out_virtual_call): Remove.
14606         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14607         copy_call_info and virtual_call hooks.
14608         (dwarf2out_init): Don't initialize vcall_insn_table,
14609         debug_dcall_section and debug_vcall_section.
14610         (prune_unused_types): Don't mark nodes from dcall_table.
14611         (dwarf2out_finish): Don't output dcall or vcall tables.
14612         * final.c (final_scan_insn): Don't call direct_call or
14613         virtual_call debug hooks.
14614         * debug.h (struct gcc_debug_hooks): Remove direct_call,
14615         virtual_call_token, copy_call_info and virtual_call hooks.
14616         (debug_nothing_uid): Remove prototype.
14617         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14618         copy_call_info and virtual_call hooks.
14619         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14620         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14621         * debug.c (do_nothing_debug_hooks): Likewise.
14622         (debug_nothing_uid): Remove.
14623         * doc/invoke.texi (-fenable-icf-debug): Remove.
14624         * common.opt (-fenable-icf-debug): Likewise.
14625
14626         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14627         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14628         call's MEM.  Handle functions returning aggregate through a hidden
14629         first pointer.  For virtual calls add clobbered pc to call arguments
14630         chain.
14631         * dwarf2out.c (gen_subprogram_die): Emit
14632         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14633         can't be emitted.
14634
14635         PR debug/45882
14636         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14637         * rtl.h (ENTRY_VALUE_EXP): Define.
14638         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14639         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14640         * print-rtl.c (print_rtx): Likewise.
14641         * gengtype.c (adjust_field_rtx_def): Likewise.
14642         * var-tracking.c (vt_add_function_parameter): Adjust
14643         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14644         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14645         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14646         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14647         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14648
14649         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14650         Call var_location debug hook even on CALL_INSNs.
14651         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14652         * rtl.def (ENTRY_VALUE): New.
14653         * dwarf2out.c: Include cfglayout.h.
14654         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14655         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14656         (struct call_arg_loc_node): New type.
14657         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14658         tail_call_site_count): New variables.
14659         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14660         DW_TAG_GNU_call_site_parameter.
14661         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14662         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14663         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14664         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14665         and DW_AT_GNU_all_source_call_sites.
14666         (mem_loc_descriptor): Handle ENTRY_VALUE.
14667         (add_src_coords_attributes): Don't add enything if
14668         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14669         (dwarf2out_abstract_function): Save and clear call_arg_location,
14670         call_site_count and tail_call_site_count around dwarf2out_decl call.
14671         (gen_call_site_die): New function.
14672         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14673         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14674         (dwarf2out_function_decl): Clear call_arg_locations,
14675         call_arg_loc_last, set call_site_count and tail_call_site_count
14676         to -1 and free block_map.
14677         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14678         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
14679         followed by any real instructions.
14680         (dwarf2out_begin_function): Set call_site_count and
14681         tail_call_site_count to 0.
14682         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14683         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14684         attempt to force a DIE for it and worst case remove the attribute.
14685         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14686         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14687         the decl itself.
14688         * var-tracking.c: Include tm_p.h.
14689         (vt_stack_adjustments): For calls call note_register_arguments.
14690         (argument_reg_set): New variable.
14691         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14692         ensure the VALUE is resolved.
14693         (call_arguments): New variable.
14694         (prepare_call_arguments): New function.
14695         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14696         (struct expand_loc_callback_data): Add ignore_cur_loc field.
14697         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14698         always use the best expression.
14699         (vt_expand_loc): Add ignore_cur_loc argument.
14700         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14701         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14702         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14703         note for all calls.
14704         (vt_add_function_parameter): Use cselib_lookup_from_insn.
14705         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14706         argument.  Don't call cselib_preserve_only_values and
14707         cselib_reset_table.
14708         (note_register_arguments): New function.
14709         (vt_initialize): Compute argument_reg_set.  Call
14710         vt_add_function_parameters before processing basic blocks instead of
14711         afterwards.  For calls call prepare_call_arguments before calling
14712         cselib_process_insn.
14713         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14714         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14715         (var-tracking.o): Depend on $(TM_P_H).
14716         * cfglayout.h (insn_scope): New prototype.
14717         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14718         * cfglayout.c (insn_scope): No longer static.
14719         * insn-notes.def (CALL_ARG_LOCATION): New.
14720         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14721         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14722         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14723         nothing for DECL_EXTERNAL BLOCK_VARS.
14724
14725 2011-03-16  Alan Modra  <amodra@gmail.com>
14726
14727         PR target/45844
14728         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14729         create invalid offset address for vsx splat insn.
14730         * config/rs6000/predicates.md (splat_input_operand): New.
14731         * config/rs6000/vsx.md (vsx_splat_*): Use it.
14732
14733 2011-03-15  Xinliang David Li  <davidxl@google.com>
14734
14735         PR c/47837
14736         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14737         (normalize_preds): New function.
14738         (is_use_properly_guarded): Normalize def predicates.
14739
14740 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14741
14742         PR target/46788
14743         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14744         in the output template.
14745
14746 2011-03-15  Richard Guenther  <rguenther@suse.de>
14747
14748         PR middle-end/47650
14749         * tree-pretty-print.c (dump_function_declaration): Properly
14750         dump unprototyped and varargs function types.
14751
14752 2011-03-15  Richard Guenther  <rguenther@suse.de>
14753
14754         PR tree-optimization/13954
14755         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14756         and friends.
14757
14758 2011-03-15  Richard Guenther  <rguenther@suse.de>
14759
14760         PR tree-optimization/48037
14761         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14762         selects into BIT_FIELD_REFs.
14763         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14764         vector select.
14765
14766 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
14767
14768         PR tree-optimization/48129
14769         * builtins.c (fold_builtin_snprintf): Convert to type of
14770         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14771         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14772
14773 2011-03-15  Richard Guenther  <rguenther@suse.de>
14774
14775         PR tree-optimization/41490
14776         * tree-ssa-dce.c (propagate_necessity): Handle returns without
14777         value but with VUSE.
14778         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14779         return statements.
14780         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14781         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14782         * tree-tailcall.c (find_tail_calls): Ignore returns.
14783
14784 2011-03-15  Richard Guenther  <rguenther@suse.de>
14785
14786         PR middle-end/48031
14787         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14788         or variable-indexed array accesses when in gimple form.
14789
14790 2011-03-15  Richard Guenther  <rguenther@suse.de>
14791
14792         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14793
14794 2011-03-15  Alan Modra  <amodra@gmail.com>
14795
14796         PR target/48032
14797         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14798         presume symbol_refs without a symbol_ref_decl are suitably
14799         aligned, nor other trees we may see here.  Handle anchor symbols.
14800         (legitimate_constant_pool_address_p): Comment.  Add mode param.
14801         Check cmodel=medium addresses.  Adjust all calls.
14802         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14803         creating cmodel=medium optimized access to locals.
14804         * config/rs6000/constraints.md (R): Pass QImode to
14805         legitimate_constant_pool_address_p.
14806         * config/rs6000/predicates.md (input_operand): Pass mode to
14807         legitimate_constant_pool_address_p.
14808         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14809         Update prototype.
14810
14811 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14812
14813         PR target/48053
14814         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14815         64-bit constants being loaded into registers other than GPRs such
14816         as loading 0 into a VSX register.
14817
14818 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14819
14820         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14821
14822 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
14823
14824         PR middle-end/47917
14825         * builtins.c (fold_builtin_snprintf): New function.
14826         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14827         (fold_builtin_4): Likewise.
14828
14829         PR middle-end/38878
14830         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14831         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
14832         and C - X == X also strip nops from +/-/p+ operand.
14833         When optimizing -X == C, fold C to arg0's type.
14834
14835         PR debug/47946
14836         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14837         emit it as add_AT_int instead of add_AT_unsigned.
14838
14839 2011-03-14  Tom Tromey  <tromey@redhat.com>
14840
14841         * unwind-dw2.c: Include sys/sdt.h if it exists.
14842         (_Unwind_DebugHook): Use STAP_PROBE2.
14843         * config.in, configure: Rebuild.
14844         * configure.ac: Check for sys/sdt.h.
14845
14846 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
14847
14848         * config/i386/i386.md (ROUND_FLOOR): New constant.
14849         (ROUND_CEIL): Ditto.
14850         (ROUND_TRUNC): Ditto.
14851         (ROUND_MXCSR): Ditto.
14852         (ROUND_NO_EXC): Ditto.
14853         (rint<mode>2): Use new defines instead of numerical constants.
14854         (floor<mode>2): Ditto.
14855         (ceil<mode>2): Ditto.
14856         (btrunc<mode>2): Ditto.
14857         * config/i386/i386-builtin-types.def: Define ROUND function type
14858         aliases.
14859         * config/i386/i386.c (enum ix86_builtins): Add
14860         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14861         (struct builtin_description): Add
14862         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14863         (ix86_expand_sse_round): New static function.
14864         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14865         function types.
14866         (ix86_builtin_vectorized_function): Handle
14867         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14868
14869 2011-03-14  Tom Tromey  <tromey@redhat.com>
14870
14871         * c-parser.c (c_parser_asm_string_literal): Clear
14872         warn_overlength_strings.
14873
14874 2011-03-14  Tom Tromey  <tromey@redhat.com>
14875
14876         * c-parser.c (disable_extension_diagnostics): Save
14877         warn_overlength_strings.
14878         (restore_extension_diagnostics): Restore warn_overlength_strings.
14879
14880 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
14881
14882         * BASE-VER: Change to 4.7.0.
14883
14884 2011-03-14  Richard Guenther  <rguenther@suse.de>
14885
14886         PR middle-end/48098
14887         * tree.c (build_vector_from_val): Adjust assert to requirements
14888         and reality.
14889
14890 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
14891
14892         PR bootstrap/48102
14893         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
14894
14895 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
14896
14897         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
14898         terms of target_flags_explicit. Adjust copyright year.
14899
14900         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14901         * config/rs6000/t-freebsd: New file. Add override for
14902         LIB2FUNCS_EXTRA.
14903
14904 2011-03-13  Chris Demetriou  <cgd@google.com>
14905
14906         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14907         (-fno-diagnostics-show-option): this, to reflect current default.
14908         (-Werror=): Update text about -fno-diagnostics-show-option.
14909
14910 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
14911
14912         PR target/48053
14913         * config/rs6000/predicates.md (easy_vector_constant_add_self,
14914         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14915         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14916         mode is not V2DImode or V2DFmode.
14917         (vspltis_constant): Do not handle V2DImode and V2DFmode.
14918         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14919         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14920         registers to 0.
14921         (movdi_internal64): Likewise.
14922
14923 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
14924
14925         PR tree-optimization/47127
14926         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14927         parameter.
14928         (set_cloog_options): Same.
14929         (scop_to_clast): Same.
14930         (print_clast_stmt): Do not call cloog_state_malloc and
14931         cloog_state_free.
14932         (print_generated_program): Same.
14933         (gloog): Same.
14934         * graphite-clast-to-gimple.h (cloog_state): Declared.
14935         (scop_to_clast): Adjust declaration.
14936         * graphite.c (cloog_state): Defined here.
14937         (graphite_initialize): Call cloog_state_malloc.
14938         (graphite_finalize): Call cloog_state_free.
14939
14940 2011-03-11  Jason Merrill  <jason@redhat.com>
14941
14942         * attribs.c (lookup_attribute_spec): Take const_tree.
14943         * tree.h: Adjust.
14944
14945 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
14946
14947         * config/sparc/sparc.c (sparc_option_override): Use
14948         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
14949
14950 2011-03-11  Richard Guenther  <rguenther@suse.de>
14951
14952         PR tree-optimization/48067
14953         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
14954         multiplication result will be only used once on the target
14955         stmt.
14956
14957 2011-03-11  Richard Guenther  <rguenther@suse.de>
14958
14959         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
14960
14961 2011-03-11  Richard Guenther  <rguenther@suse.de>
14962
14963         PR lto/48073
14964         * tree.c (find_decls_types_r): Do not walk types only reachable
14965         from IDENTIFIER_NODEs.
14966
14967 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
14968
14969         PR middle-end/48044
14970         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
14971         all vnode->force_output nodes as needed.
14972
14973 2011-03-11  Jason Merrill  <jason@redhat.com>
14974
14975         PR c++/48069
14976         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
14977         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
14978
14979 2011-03-11  Martin Jambor  <mjambor@suse.cz>
14980
14981         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
14982         cgraph_node.
14983
14984 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
14985
14986         PR tree-optimization/48063
14987         * ipa-inline.c (cgraph_decide_inlining): Don't try to
14988         inline functions called once if !tree_can_inline_p (node->callers).
14989
14990 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
14991
14992         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
14993         extra_objs.
14994         * config/score/score3.c: Delete.
14995         * config/score/score3.h: Delete.
14996         * config/score/mul-div.S: Delete.
14997         * config/score/sfp-machine.h: Add new file.
14998         * config/score/constraints.md: Add new file.
14999         * config/score/t-score-softfp: Add new file.
15000         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15001         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15002         (score7_extra_constraint): Delete.
15003         (score7_option_override): Remove unused code.
15004         * config/score/score.c: Remove score3 and score5 define and code.
15005         * config/score/score.h: Remove score3 and score5 define and code.
15006         * config/score/score.md: Remove score3 template and unusual insn.
15007         * config/score/score.opt: Remove score3 and score5 options.
15008
15009 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15010
15011         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15012         when _HPUX_SOURCE is defined.
15013         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15014
15015 2011-03-10  Jason Merrill  <jason@redhat.com>
15016
15017         PR c++/48029
15018         * stor-layout.c (layout_type): Don't set structural equality
15019         on arrays of incomplete type.
15020         * tree.c (type_hash_eq): Handle comparing them properly.
15021
15022 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
15023
15024         PR debug/48043
15025         * config/s390/s390.c (s390_delegitimize_address): Make sure the
15026         result mode matches original rtl mode.
15027
15028 2011-03-10  Nick Clifton  <nickc@redhat.com>
15029
15030         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15031         (andsi3, andsi3_flags): Fix timings for three operand alternative.
15032
15033 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
15034
15035         PR rtl-optimization/47866
15036         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15037         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15038         if target wasn't scalar.
15039         * function.c (assign_stack_temp_for_type): Assert that neither
15040         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15041         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15042         macro.
15043         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15044
15045 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15046
15047         * config/s390/s390-protos.h (s390_label_align): New prototype.
15048         * config/s390/s390.c (s390_label_align): New function.
15049         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15050
15051 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
15052
15053         PR target/47755
15054         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15055         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
15056         (output_vec_const_move): Ditto.
15057
15058 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
15059
15060         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15061         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15062         * config/mips/mips.c (mips_preferred_reload_class): Make static.
15063         Change 'rclass' argument and result type to reg_class_t.
15064         (TARGET_PREFERRED_RELOAD_CLASS): Define.
15065
15066 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
15067
15068         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15069         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15070         (TARGET_MEMORY_MOVE_COST): Define.
15071         (avr_register_move_cost, avr_memory_move_cost): New Functions.
15072
15073 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
15074
15075         PR debug/47881
15076         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15077         removed anything.
15078
15079         PR tree-optimization/48022
15080         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15081         for EQ/NE_EXPR.
15082
15083 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
15084
15085         PR debug/47991
15086         * var-tracking.c (find_use_val): Return NULL for
15087         cui->sets && cui->store_p BLKmode MEMs.
15088
15089 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
15090
15091         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15092         Remove.
15093         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15094         xstormy16_print_operand_address): Remove.
15095         * config/stormy16/stormy16.c (xstormy16_print_operand,
15096         xstormy16_print_operand_address): Make static.
15097         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15098
15099 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
15100
15101         PR target/47862
15102         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15103         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15104         before definition.
15105
15106 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
15107
15108         PR bootstrap/48000
15109         * cfgloopmanip.c (fix_bb_placements): Return immediately
15110         if FROM is BASE_LOOP's header.
15111
15112 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
15113
15114         * gimplify.c (gimplify_function_tree): Fix building calls
15115         to __builtin_return_address.
15116
15117 2011-03-07  Alan Modra  <amodra@gmail.com>
15118
15119         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15120         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15121         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15122         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15123         return_mode args.
15124         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15125         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15126         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15127         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15128         * config/rs6000/rs6000.c
15129         (rs6000_elf_end_indicate_exec_stack): Rename to..
15130         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
15131         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
15132         (rs6000_file_start): ..here.
15133         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15134         file scope variables.
15135         (call_ABI_of_interest): New function.
15136         (init_cumulative_args): Set above vars when function return value
15137         is a float, vector, or small struct.
15138         (rs6000_function_arg_advance_1): Likewise for function args.
15139         (rs6000_va_start): Set rs6000_passes_float if variable arg function
15140         references float args.
15141
15142 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
15143
15144         * doc/cfg.texi: Remove "See" before @ref.
15145         * doc/invoke.texi: Likewise.
15146
15147 2011-03-05  Jason Merrill  <jason@redhat.com>
15148
15149         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15150
15151 2011-03-05  Anthony Green  <green@moxielogic.com>
15152
15153         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15154
15155 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
15156
15157         PR rtl-optimization/47899
15158         * cfgloopmanip.c (fix_bb_placements): Fix first argument
15159         to flow_loop_nested_p when moving the loop upward.
15160
15161 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
15162
15163         PR target/47719
15164         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
15165
15166 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
15167
15168         PR tree-optimization/47967
15169         * ipa-cp.c (build_const_val): Return NULL instead of creating
15170         VIEW_CONVERT_EXPR for mismatching sizes.
15171         (ipcp_create_replace_map): Return NULL if build_const_val failed.
15172         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15173         give up on versioning.
15174
15175 2011-03-05  Alan Modra  <amodra@gmail.com>
15176
15177         PR target/47986
15178         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15179         full cmodel medium/large lo_sum + high addresses.
15180
15181 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15182
15183         * config/s390/s390.c (s390_decompose_address): Reject non-literal
15184         pool references in UNSPEC_LTREL_OFFSET.
15185
15186 2011-03-04  Jan Hubicka  <jh@suse.cz>
15187
15188         PR lto/47497
15189         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15190         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15191         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15192         Add node pointers.
15193         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15194         cgraph_add_thunk): Add node pointers.
15195         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15196         associated to right node.
15197         (input_node): Update use of cgraph_same_body_alias
15198         and cgraph_add_thunk.
15199
15200 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15201
15202         * config/i386/i386.opt (mprefer-avx128): New flag.
15203         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15204         modes when the flag -mprefer-avx128 is on.
15205
15206 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
15207
15208         * dwarf2out.c (compare_loc_operands): Fix address handling.
15209
15210 2011-03-04  Alan Modra  <amodra@gmail.com>
15211
15212         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15213
15214 2011-03-04  Richard Guenther  <rguenther@suse.de>
15215
15216         PR middle-end/47968
15217         * expmed.c (extract_bit_field_1): Prefer vector modes that
15218         vec_extract patterns can handle.
15219
15220 2011-03-04  Richard Guenther  <rguenther@suse.de>
15221
15222         PR middle-end/47975
15223         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15224
15225 2011-03-04  Richard Henderson  <rth@redhat.com>
15226
15227         * explow.c (emit_stack_save): Remove 'after' parameter.
15228         (emit_stack_restore): Likewise.
15229         * expr.h: Update to match.
15230         * builtins.c, calls.c, stmt.c: Likewise.
15231         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15232         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15233         * function.c (expand_function_end): Insert the emit_stack_save
15234         sequence before parm_birth_insn instead of after.
15235
15236 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
15237
15238         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15239         (ssse3_pmaddubsw128): Ditto.
15240         (ssse3_pmaddubsw): Ditto.
15241
15242 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
15243
15244         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15245
15246 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
15247
15248         PR c/47963
15249         * gimplify.c (omp_add_variable): Only call omp_notice_variable
15250         on TYPE_SIZE_UNIT if it is a DECL.
15251
15252         PR debug/47283
15253         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15254         first operand is not is_gimple_mem_ref_addr, try to fold it.
15255         If the operand still isn't is_gimple_mem_ref_addr, clear
15256         MEM_EXPR on op0.
15257
15258 2011-03-03  Richard Guenther  <rguenther@suse.de>
15259
15260         PR middle-end/47283
15261         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15262         match comment.
15263         (refs_may_alias_p_1): For release branches return true if
15264         we are confused by our input.
15265
15266 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15267
15268         * config/s390/s390.c (s390_function_value): Rename to ...
15269         (s390_function_and_libcall_value): ... this.
15270         (s390_function_value): New function.
15271         (s390_libcall_value): New function.
15272         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15273         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15274         target macro definitions.
15275         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15276
15277 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
15278
15279         * config/i386/freebsd64.h (CC1_SPEC): Define.
15280         * config/i386/linux64.h (CC1_SPEC): Define.
15281         * config/i386/x86-64.h (CC1_SPEC): Don't define.
15282
15283 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
15284
15285         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15286         Remove.
15287         * config/stormy16/stormy16.c: Include reload.h.
15288         (xstormy16_memory_move_cost): New function.
15289         (TARGET_MEMORY_MOVE_COST): Define.
15290
15291 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
15292
15293         PR rtl-optimization/47925
15294         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15295         with side effects.  Remove the more-specific check for volatile asms.
15296
15297 2011-03-02  Alan Modra  <amodra@gmail.com>
15298
15299         PR target/47935
15300         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15301         toc relative addresses for valid offsets.
15302
15303 2011-03-01  Richard Guenther  <rguenther@suse.de>
15304
15305         PR tree-optimization/47890
15306         * tree-vect-loop.c (get_initial_def_for_induction): Set
15307         related stmt properly.
15308
15309 2011-03-01  Richard Guenther  <rguenther@suse.de>
15310
15311         PR lto/47924
15312         * lto-streamer.c (lto_record_common_node): Also register
15313         the canonical type.
15314
15315 2011-03-01  Richard Guenther  <rguenther@suse.de>
15316
15317         PR lto/46911
15318         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15319         Do not stream DECL_ABSTRACT_ORIGIN.
15320         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15321         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15322         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15323         Do not stream DECL_ABSTRACT_ORIGIN.
15324         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15325         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15326
15327 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
15328
15329         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15330         FUNCTION_VALUE_REGNO_P): Remove.
15331         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15332         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15333         Add 'outgoing' argument.
15334         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15335         function.
15336         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15337         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15338
15339 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
15340
15341         PR debug/28047
15342         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15343         (lookup_filename): Likewise.
15344         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15345
15346 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
15347             Jakub Jelinek  <jakub@redhat.com>
15348
15349         PR middle-end/47893
15350         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15351         (assign_stack_local_1): Change last argument type to int.
15352         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15353         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
15354         don't record padding space into frame_space_list nor use those areas.
15355         (assign_stack_local): Adjust caller.
15356         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15357         of assign_stack_local, pass 0 as last argument.
15358         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15359         callers.
15360
15361 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
15362
15363         PR debug/47283
15364         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15365         Use target address_mode and pointer_mode hooks instead of hardcoded
15366         Pmode and ptr_mode.  Handle some simple cases of extending if
15367         POINTERS_EXTEND_UNSIGNED < 0.
15368         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15369         Call convert_debug_memory_address.
15370         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15371         convert_debug_memory_address.
15372
15373         PR middle-end/46790
15374         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15375         * configure: Regenerated.
15376         * config.in: Regenerated.
15377         * varasm.c (default_function_section): Return NULL
15378         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15379
15380 2011-02-28  Martin Jambor  <mjambor@suse.cz>
15381
15382         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15383         the description to match the printed values.
15384
15385 2011-02-28  Richard Guenther  <rguenther@suse.de>
15386
15387         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15388         of the copied scope tree.
15389
15390 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15391
15392         * doc/extend.texi (Function Attributes): Avoid deeply (and
15393         wrongly) nested tables.
15394
15395 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
15396
15397         PR middle-end/47903
15398         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15399         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15400         r isn't op0 nor op1.
15401
15402 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15403
15404         * config/avr/avr.md: Remove magic comment for emacs.
15405
15406 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15407
15408         PR target/45261
15409         * config/avr/avr.c (avr_option_override): Use error on bad options.
15410         (avr_help): New function.
15411         (TARGET_HELP): Define.
15412
15413 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
15414
15415         PR target/42240
15416         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15417         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15418
15419 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
15420
15421         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15422         (ARM Options): Ditto.
15423         (i386 and x86-64 Options): Ditto.
15424         (RX Options): Ditto.
15425         (SPARC Options): Ditto.
15426
15427 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
15428
15429         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15430         FreeBSD 6 and later.  Generally use cpu generic.
15431
15432 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
15433
15434         * doc/cpp.texi: Update copyright years.
15435
15436 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
15437
15438         PR target/46898
15439         * config/lm32/lm32.md (ashrsi3): Added needed variable.
15440
15441 2011-02-25  Jon Beniston  <jon@beniston.com>
15442
15443         PR target/46898
15444         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15445         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15446         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15447         (lm32_block_move_inline): Add type cast to remove warning.
15448         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15449         (gen_int_relational): Move declarations to start of function.
15450
15451 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
15452
15453         PR tree-optimization/45470
15454         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15455         can throw internally only.
15456         * tree-vect-stmts.c (vectorizable_call): Likewise.
15457
15458 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
15459
15460         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15461         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15462         * config/stormy16/stormy16-protos.h
15463         (xstormy16_preferred_reload_class): Remove.
15464         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15465         static. Change 'rclass' argument and return type to reg_class_t.
15466         (TARGET_PREFERRED_RELOAD_CLASS,
15467         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15468
15469 2011-02-24  Richard Guenther  <rguenther@suse.de>
15470
15471         * lto-streamer-in.c (input_bb): Do not find referenced vars
15472         in debug statements.
15473
15474 2011-02-23  Jason Merrill  <jason@redhat.com>
15475
15476         * common.opt (fabi-version): Document v5 and v6.
15477
15478 2011-02-23  Richard Guenther  <rguenther@suse.de>
15479
15480         PR tree-optimization/47849
15481         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15482
15483 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15484
15485         * opts-common.c (decode_cmdline_option): Print empty string
15486         argument as "" in decoded->orig_option_with_args_text.
15487         * gcc.c (execute): Print empty string argument as ""
15488         in the verbose output.
15489         (do_spec_1): Keep empty string argument.
15490
15491 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
15492
15493         * config.gcc: Declare score-* and crx-* obsolete.
15494
15495 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15496
15497         PR rtl-optimization/47763
15498         * web.c (web_main): Ignore naked clobber when replacing register.
15499
15500 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
15501
15502         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15503         Remove.
15504
15505 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15506
15507         PR doc/47848
15508         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15509
15510 2011-02-22  Mike Stump  <mikestump@comcast.net>
15511
15512         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15513         assembler.
15514         * configure: Regenerate.
15515
15516 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
15517
15518         PR rtl-optimization/46002
15519         * ira-color.c (update_copy_costs): Change class intersection
15520         test to reg_class_contents[] test of 'hard_regno'.
15521
15522 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
15523
15524         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15525         than Driver option.
15526         * config/hpux11.opt (mt): Likewise.
15527         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15528         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15529         * config/vax/elf.opt (mno-asm-pic): Likewise.
15530         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15531
15532 2011-02-21  Mike Stump  <mikestump@comcast.net>
15533
15534         PR target/47822
15535         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15536         tree so we can get save the type.
15537         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15538         for CFString instead of trying to use past the end of the builtins.
15539         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15540         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15541         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15542         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15543         Rename to darwin_builtin_cfstring.
15544         (darwin_init_cfstring_builtins): Return the built type.
15545
15546 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
15547
15548         PR target/47840
15549         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15550         (_mm256_insert_epi64): Use _mm_insert_epi64.
15551
15552 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
15553
15554         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15555         * config/stormy16/stormy16-protos.h
15556         (xstormy16_mode_dependent_address_p): Remove.
15557         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15558         Make static. Change return type to bool. Change argument type to
15559         const_rtx. Remove dead code.
15560         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15561
15562 2011-02-21  Richard Guenther  <rguenther@suse.de>
15563
15564         PR lto/47820
15565         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15566         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15567         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15568         TUs context.
15569         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15570         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15571
15572 2011-02-20  Richard Guenther  <rguenther@suse.de>
15573
15574         PR lto/47822
15575         * tree.c (free_lang_data_in_decl): Clean builtins from
15576         the TU decl BLOCK_VARS.
15577
15578 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
15579
15580         PR debug/47620
15581         PR debug/47630
15582         * haifa-sched.c (fix_tick_ready): Skip tick computation
15583         for debug insns.
15584
15585 2011-02-19  Richard Guenther  <rguenther@suse.de>
15586
15587         PR lto/47647
15588         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15589         Remove lazy BLOCK_VARS streaming.
15590         (lto_input_ts_block_tree_pointers): Likewise.
15591         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15592
15593 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
15594
15595         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15596
15597 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
15598
15599         * config/i386/biarch32.h, config/i386/mach.h,
15600         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15601
15602 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
15603
15604         PR target/47800
15605         * config/i386/i386.md (peephole2 for shift and plus): Use
15606         operands[1] original mode in the first insn.
15607
15608 2011-02-18  Mike Stump  <mikestump@comcast.net>
15609
15610         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
15611
15612 2011-02-18  Jan Hubicka  <jh@suse.cz>
15613
15614         PR middle-end/47788
15615         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15616         to zero when the function is not inlinable at all.
15617
15618 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15619
15620         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15621         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15622         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15623         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15624         * config/pa/t-pa64: Likewise.
15625         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15626
15627 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
15628
15629         PR driver/47787
15630         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15631
15632 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15633
15634         PR target/47792
15635         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15636
15637 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
15638
15639         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15640         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15641         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15642         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15643         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15644         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15645         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15646         m32r_load_postinc_p, m32r_store_preinc_predec_p,
15647         m32r_legitimate_address_p): New functions.
15648         * config/m32r/constraints.md (constraint "S"): Don't use
15649         STORE_PREINC_PREDEC_P.
15650         (constraint "U"): Don't use LOAD_POSTINC_P.
15651
15652 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
15653
15654         PR rtl-optimization/46178
15655         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15656         compute ira_hard_regno_cover_class[].
15657
15658 2011-02-18  Richard Guenther  <rguenther@suse.de>
15659
15660         PR lto/47798
15661         * lto-streamer.h (lto_global_var_decls): Declare.
15662         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15663         statics for global var processing.
15664
15665 2011-02-18  Richard Guenther  <rguenther@suse.de>
15666
15667         PR tree-optimization/47737
15668         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15669         edge dominance check.
15670
15671 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
15672
15673         PR debug/47780
15674         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15675         avoid invalid rtx sharing.
15676
15677 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
15678
15679         * doc/cpp.texi (Obsolete Features): Add background on the
15680         origin of assertions.
15681
15682 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
15683
15684         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15685         objc_abi == 2.
15686         * config/darwin.c (output_objc_section_asm_op): Added support for
15687         ABI v1 and v2.
15688         (is_objc_metadata): New.
15689         (darwin_objc2_section): New.
15690         (darwin_objc1_section): New.
15691         (machopic_select_section): Added support for ABI v1 and v2.
15692         (darwin_emit_objc_zeroed): New.
15693         (darwin_output_aligned_bss): Detect objc metadata and treat it
15694         appropriately.
15695         (darwin_asm_output_aligned_decl_common): Same.
15696         (darwin_asm_output_aligned_decl_local): Same.
15697         * config/darwin-sections.def: Updated for ABI v1 and v2.
15698         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15699         compiling Objective-C code for the NeXT runtime, default to using
15700         ABI version 0 for 32-bit, and version 2 for 64-bit.
15701
15702 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15703
15704         * common.opt (optimize_fast): New Variable.
15705         * opts.c (default_options_optimization): Use opts->x_optimize_fast
15706         instead of local variable ofast.
15707
15708 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
15709
15710         * doc/invoke.texi (fobjc-abi-version): Documented.
15711         (fobjc-nilcheck): Documented.
15712         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15713         version.
15714
15715 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15716
15717         PR driver/47390
15718         * common.opt (export-dynamic): New Driver option.
15719         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15720
15721 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15722
15723         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15724
15725 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
15726             Jan Hubicka  <jh@suse.cz>
15727
15728         PR debug/47106
15729         PR debug/47402
15730         * cfgexpand.c (account_used_vars_for_block): Remove.
15731         (estimated_stack_frame_size): Use referenced vars.
15732         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15733         that were referenced in the original function.  Test src_fn
15734         rather than cfun.  Drop redundant get_var_ann.
15735         (setup_one_parameter): Drop redundant get_var_ann.
15736         (declare_return_variable): Likewise.
15737         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15738         (copy_arguments_for_versioning): Drop redundant get_var_ann.
15739         * ipa-inline.c (compute_inline_parameters): Do not compute
15740         disregard_inline_limits here.
15741         (compute_inlinable_for_current, pass_inlinable): New.
15742         (pass_inline_parameters): Require PROP_referenced_vars.
15743         * cgraphunit.c (cgraph_process_new_functions): Don't run
15744         compute_inline_parameters explicitly unless function is in SSA form.
15745         (cgraph_analyze_function): Set .disregard_inline_limits.
15746         * tree-sra.c (convert_callers): Compute inliner parameters
15747         only for functions already in SSA form.
15748
15749 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15750
15751         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15752         -mlittle-endian-data.
15753
15754 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15755
15756         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15757         -mno-fpu, not -fpu and -no-fpu.
15758         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15759         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15760
15761 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
15762
15763         PR target/43653
15764         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15765         input reload with PLUS RTX.
15766
15767 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15768
15769         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15770         of InverseVar(MDMX).
15771
15772 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15773
15774         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15775         --m4-340.
15776
15777 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15778
15779         * config/mn10300/mn10300.opt (mno-crt0): New.
15780
15781 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15782
15783         * config/m68k/uclinux.opt (static-libc): New Driver option.
15784
15785 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15786
15787         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15788
15789 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15790
15791         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15792         %{muser-extend-enabled}.
15793
15794 2011-02-16  Richard Guenther  <rguenther@suse.de>
15795
15796         PR tree-optimization/47738
15797         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15798         the TODO from tree_predictive_commoning.
15799
15800 2011-02-15  Jeff Law  <law@redhat.com>
15801
15802         Revert
15803         2011-01-25  Jeff Law  <law@redhat.com>
15804
15805         PR rtl-optimization/37273
15806         * ira-costs.c (scan_one_insn): Detect constants living in memory and
15807         handle them like argument loads from stack slots.  Do not double
15808         count memory for memory constants and argument loads from stack slots.
15809
15810 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
15811
15812         PR middle-end/47725
15813         * combine.c (cant_combine_insn_p): Revert the last change.
15814
15815 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
15816
15817         PR target/47755
15818         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15819         mode for vector constants.  Remove code that checks for TImode.
15820
15821 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15822
15823         PR debug/47106
15824         PR debug/47402
15825         * cgraph.h (compute_inline_parameters): Return void.
15826         * ipa-inline.c (compute_inline_parameters): Adjust.
15827
15828 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15829
15830         PR debug/47106
15831         PR debug/47402
15832         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15833         rather than decl.
15834         * cfgexpand.c (estimated_stack_frame_size): Likewise.
15835         * ipa-inline.c (compute_inline_parameters): Adjust.
15836
15837 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15838
15839         PR debug/47106
15840         PR debug/47402
15841         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15842         Adjust all users.  Pass FN to...
15843         * tree-flow-inline.h (first_referenced_var): ... this.  Add
15844         fn argument.
15845         * ipa-struct-reorg.c: Adjust.
15846         * tree-dfa.c: Adjust.
15847         * tree-into-ssa.c: Adjust.
15848         * tree-sra.c: Adjust.
15849         * tree-ssa-alias.c: Adjust.
15850         * tree-ssa-live.c: Adjust.
15851         * tree-ssa.c: Adjust.
15852         * tree-ssanames.c: Adjust.
15853         * tree-tailcall.c: Adjust.
15854
15855 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15856
15857         PR debug/47106
15858         PR debug/47402
15859         * tree-flow.h (referenced_var_lookup): Add fn parameter.
15860         Adjust all callers.
15861         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15862         * tree-flow-inline.h: Adjust.
15863         * gimple-pretty-print.c: Adjust.
15864         * tree-into-ssa.c: Adjust.
15865         * tree-ssa.c: Adjust.
15866         * cfgexpand.c: Adjust.
15867
15868 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
15869
15870         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15871         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15872         (EXTRA_CONSTRAINT): Delete.
15873         * config/iq2000/constraints.md: New file.
15874         * config/iq2000/iq2000.md: Include it.
15875         (define_insn ""): Delete.
15876         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15877         unsupported constraint letters from patterns.
15878         (call_value, call_value_internal1): Likewise.
15879         (call_value_multiple_internal1): Likewise.
15880
15881 2011-02-15  Nick Clifton  <nickc@redhat.com>
15882
15883         * config/mn10300/mn10300.c: Include tm-constrs.h.
15884         (struct liw_data): New data structure describing an LIW candidate
15885         instruction.
15886         (extract_bundle): Use struct liw_data.  Allow small integer
15887         operands for some instructions.
15888         (check_liw_constraints): Use struct liw_data.  Remove swapped
15889         parameter.  Add comments describing the checks.  Fix bug when
15890         assigning the source of liw1 to the source of liw2.
15891         (liw_candidate): Delete.  Code moved into extract_bundle.
15892         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
15893         before swapping.
15894         * config/mn10300/predicates.md (liw_operand): New predicate.
15895         Allows registers and small integer constants.
15896         * config/mn10300/constraints.md (O): New constraint.  Accetps
15897         integers in the range -8 to +7 inclusive.
15898         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15899         for moving a small integer into a register.  Give this alternative
15900         LIW attributes.
15901         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15902         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15903         using the J,K,L and M constraints,
15904         (liw): Remove SI mode on second operands to allow for HI and QI
15905         mode values.
15906         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
15907         instruction.
15908
15909 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
15910
15911         PR middle-end/47725
15912         * combine.c (cant_combine_insn_p): Check zero/sign extended
15913         hard registers.
15914
15915 2011-02-15  Richard Guenther  <rguenther@suse.de>
15916
15917         PR tree-optimization/47743
15918         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15919         for a non-type-compatible VN lookup bail out.
15920
15921 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
15922
15923         * config/fr30/constraints.md: New file.
15924         * config/fr30/fr30.md: Include it.
15925         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15926         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15927         (EXTRA_CONSTRAINT): Delete.
15928
15929 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
15930
15931         * config/frv/constraints.md: New file.
15932         * config/frv/predicates.md: Include it.
15933         * config/frv/frv.c (reg_class_from_letter): Delete.
15934         (frv_option_override): Don't initialize it.
15935         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15936         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15937         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15938         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15939         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15940         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15941         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15942         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
15943         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
15944         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
15945         (REG_CLASS_FROM_CONSTRAINT): Delete.
15946
15947 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
15948
15949         PR middle-end/47581
15950         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
15951         if frame size is 0 in a leaf function.
15952
15953 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15954
15955         PR pch/14940
15956         * config/alpha/host-osf.c: New file.
15957         * config/alpha/x-osf: New file.
15958         * config.host (alpha*-dec-osf*): Use it.
15959
15960 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
15961
15962         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15963         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
15964         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
15965         (rx_mode_dependent_address_p): ...this. Make static. Change argument
15966         type to const_rtx.
15967         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15968
15969 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
15970
15971         * config/stormy16/constraints.md: New file.
15972         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
15973         Use satisfies_constraint_Q and satisfies_constraint_R.
15974         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
15975         Delete.
15976         (xstormy16_legitiamte_address_p): Declare.
15977         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
15978         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15979         (EXTRA_CONSTRAINT): Delete.
15980         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15981         Un-staticize.
15982         (xstormy16_extra_constraint_p): Delete.
15983
15984 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
15985
15986         PR tree-optimization/46494
15987         * loop-unroll.c (split_edge_and_insert): Adjust comment.
15988         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
15989         (pass_rtl_loop_done): Add TODO_verify_flow.
15990         * fwprop.c (pass_rtl_fwprop): Likewise.
15991         * modulo-sched.c (pass_sms): Likewise.
15992         * tree-ssa-dom.c (pass_dominator): Likewise.
15993         * tree-ssa-loop-ch.c (pass_ch): Likewise.
15994         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
15995         (pass_tree_loop_done): Likewise.
15996         * tree-ssa-pre.c (execute_pre): Likewise.
15997         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
15998         * tree-ssa-sink.c (pass_sink_code): Likewise.
15999         * tree-vrp.c (pass_vrp): Likewise.
16000
16001 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16002
16003         * config/v850/constraints.md: New file.
16004         * config/v850/v850.md: Include it.
16005         * config/v850/predicates.md (reg_or_0_operand): Use
16006         satisfies_constraint_G.
16007         (special_symbolref_operand): Use satisfies_constraint_K.
16008         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16009         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16010         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16011         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16012         (EXTRA_CONSTRAINT): Delete.
16013         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16014         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16015         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16016
16017 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16018
16019         PR target/47696
16020         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16021         description.
16022
16023 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16024
16025         * config/mcore/constraints.md: New file.
16026         * config/mcore/mcore.md: Include it.
16027         * config/mcore/mcore.c (reg_class_from_letter): Delete.
16028         * config/mcore/mcore.h (reg_class_from_letter): Delete.
16029         (REG_CLASS_FROM_LETTER): Delete.
16030         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16031         insn_const_int_ok_for_constraint.
16032         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16033         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16034         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16035         (EXTRA_CONSTRAINT): Delete.
16036
16037 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16038
16039         PR ada/41929
16040         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16041         (IS_SIGHANDLER): Define.
16042         (sparc64_is_sighandler): New function, split off from
16043         sparc64_fallback_frame_state.
16044         (sparc_is_sighandler): New function, split off from
16045         sparc_fallback_frame_state.
16046         (sparc64_fallback_frame_state): Merge with ...
16047         (sparc_fallback_frame_state): ... this into ...
16048         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16049         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
16050         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
16051         stack instead of hardcoded offsets.
16052
16053 2011-02-14  Andriy Gapon  <avg@freebsd.org>
16054
16055         PR target/45808
16056         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16057
16058 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16059
16060         * configure: Regenerate.
16061
16062 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
16063
16064         PR driver/45731
16065         * gcc.c (asm_options): Correct spec matching --target-help.
16066
16067 2011-02-12  Martin Jambor  <mjambor@suse.cz>
16068
16069         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16070         to gimple call error.
16071
16072 2011-02-12  Mike Stump  <mikestump@comcast.net>
16073
16074         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16075         comments in backslash regions.
16076
16077 2011-02-12  Mike Stump  <mikestump@comcast.net>
16078             Jakub Jelinek  <jakub@redhat.com>
16079             Iain Sandoe  <iains@gcc.gnu.org>
16080
16081         PR target/47324
16082         * dwarf2out.c (output_cfa_loc): When required, apply the
16083         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16084         (output_loc_sequence): Likewise.
16085         (output_loc_operands_raw): Likewise.
16086         (output_loc_sequence_raw): Likewise.
16087         (output_cfa_loc): Likewise.
16088         (output_loc_list): Suppress register number adjustment when
16089         calling output_loc_sequence()
16090         (output_die): Likewise.
16091
16092 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
16093
16094         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16095         Remove macros.
16096         * config/xtensa/xtensa.c (xtensa_register_move_cost,
16097         xtensa_memory_move_cost): New functions.
16098         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16099
16100 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
16101
16102         PR lto/47225
16103         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16104         in the current directory.
16105         * configure: Rebuilt.
16106
16107 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16108
16109         * config/darwin.c (darwin_override_options): Add a hunk missed
16110         from the commit of r168571.  Trim comment line lengths and
16111         correct indents of the preceding block.
16112
16113 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16114
16115         * gcc.c (driver_handle_option): Concatenate the argument to -F with
16116         the switch.
16117
16118 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16119
16120         * common.opt (nostartfiles): New Driver option.
16121
16122 2011-02-11  Xinliang David Li  <davidxl@google.com>
16123
16124         PR tree-optimization/47707
16125         * tree-chrec.c (convert_affine_scev): Keep type precision.
16126
16127 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
16128
16129         PR tree-optimization/47420
16130         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16131
16132 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
16133
16134         PR rtl-optimization/47614
16135         * rtl.h (check_for_inc_dec): Declare.
16136         * dse.c (check_for_inc_dec): Externalize...
16137         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16138         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16139
16140 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16141
16142         PR driver/47678
16143         * gcc.c (main): Do not compile inputs if there were errors in
16144         option handling.
16145         * opts-common.c (read_cmdline_option): Check for wrong language
16146         after other error checks.
16147
16148 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
16149
16150         * cgraph.c: Fix comment typos.
16151         * cgraph.h: Likewise.
16152         * cgraphunit.c: Likewise.
16153         * ipa-cp.c: Likewise.
16154         * ipa-inline.c: Likewise.
16155         * ipa-prop.c: Likewise.
16156         * ipa-pure-const.c: Likewise.
16157         * ipa-ref.c: Likewise.
16158         * ipa-reference.c: Likewise.
16159
16160 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16161
16162         PR debug/47684
16163         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16164
16165 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16166
16167         PR testsuite/47400
16168         * doc/sourcebuild.texi (Require Support): Document
16169         dg-require-ascii-locale.
16170
16171 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
16172
16173         * doc/lto.texi (Write summary): Fix missing parentheses.
16174
16175 2011-02-10  DJ Delorie  <dj@redhat.com>
16176
16177         * config/m32c/m32c.c (m32c_option_override): Disable
16178         -fcombine-stack-adjustments until flag value tracking and compare
16179         optimization can be rewritten.
16180
16181 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
16182
16183         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16184         PROCESSOR_POWER7.
16185         (PROCESSOR_DEFAULT64): Likewise.
16186
16187 2011-02-10  Richard Henderson  <rth@redhat.com>
16188
16189         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16190         change from 2011-02-03.
16191         * config/rx/rx.c (flags_from_code): Likewise.
16192         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16193         is valid, n/pz otherwise.
16194         (rx_select_cc_mode): Return CCmode if Y is not zero.
16195
16196 2011-02-10  Richard Guenther  <rguenther@suse.de>
16197
16198         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16199
16200 2011-02-10  Richard Guenther  <rguenther@suse.de>
16201
16202         PR tree-optimization/47677
16203         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16204
16205 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
16206
16207         PR target/47665
16208         * combine.c (make_compound_operation): Only change shifts into
16209         multiplication for SCALAR_INT_MODE_P.
16210
16211 2011-02-10  Jie Zhang  <jie@codesourcery.com>
16212
16213         PR testsuite/47622
16214         Revert
16215         2011-02-05  Jie Zhang  <jie@codesourcery.com>
16216         PR debug/42631
16217         * web.c (entry_register): Don't clobber the number of the
16218         first uninitialized reference in used[].
16219
16220 2011-02-09  Richard Guenther  <rguenther@suse.de>
16221
16222         PR tree-optimization/47664
16223         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16224         all edges again.
16225
16226 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
16227
16228         PR target/46481
16229         PR target/47032
16230         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16231         PROCESSOR_POWER7.
16232         (PROCESSOR_DEFAULT64): Same.
16233         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16234
16235 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16236
16237         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16238
16239 2011-02-09  Martin Jambor  <mjambor@suse.cz>
16240
16241         PR middle-end/45505
16242         * tree-sra.c (struct access): New flags grp_scalar_read and
16243         grp_scalar_write.  Changed description of assignment read and write
16244         flags.
16245         (dump_access): Dump new flags, reorder all of them.
16246         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16247         to detect multiple scalar reads.
16248         (analyze_access_subtree): Use the new scalar read write flags instead
16249         of the old flags.  Adjusted comments.
16250
16251 2011-02-08  DJ Delorie  <dj@redhat.com>
16252
16253         PR target/47548
16254         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16255         patterns.
16256
16257 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16258
16259         * config/m68k/uclinux.opt: New.
16260         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16261
16262 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16263
16264         * config/cris/elf.opt (sim): New Driver option.
16265
16266 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16267
16268         * config/xtensa/elf.opt: New.
16269         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16270
16271 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16272
16273         * config/vax/elf.opt: New.
16274         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16275
16276 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16277
16278         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16279
16280 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16281
16282         * config/gnu-user.opt: New.
16283         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16284         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16285         *-*-uclinux*): Use gnu-user.opt.
16286
16287 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
16288
16289         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16290         * config/i386/gnu.h (CPP_SPEC): Likewise.
16291
16292 2011-02-08  Ian Lance Taylor  <iant@google.com>
16293
16294         * common.opt (fcx-limited-range): Add SetByCombined flag.
16295         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16296         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16297         (fassociative-math, freciprocal-math): Likewise.
16298         (funsafe-math-optimizations): Likewise.
16299         * opth-gen.awk: Handle SetByCombined.
16300         * optc-gen.awk: Likewise.
16301         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16302         (set_unsafe_math_optimizations_flags): Likewise.
16303         * doc/options.texi (Option properties): Document SetByCombined.
16304
16305 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16306
16307         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16308         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16309         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16310         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16311         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16312
16313 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
16314
16315         PR tree-optimization/46834
16316         PR tree-optimization/46994
16317         PR tree-optimization/46995
16318         * graphite-sese-to-poly.c (used_outside_reduction): New.
16319         (detect_commutative_reduction): Call used_outside_reduction.
16320         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16321         translate_scalar_reduction_to_array only when at least one
16322         loop-phi/close-phi tuple has been detected.
16323
16324 2011-02-08  Richard Guenther  <rguenther@suse.de>
16325
16326         PR middle-end/47639
16327         * tree-vect-generic.c (expand_vector_operations_1): Update
16328         stmts here ...
16329         (expand_vector_operations): ... not here.  Cleanup EH info
16330         and the CFG if required.
16331
16332 2011-02-08  Richard Guenther  <rguenther@suse.de>
16333
16334         PR tree-optimization/47641
16335         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16336         require type compatibility.
16337
16338 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16339
16340         * gimple-low.c (lower_function_body): Don't remove the location of
16341         the return statement here.
16342         (lower_gimple_return): Do it here instead but only if the return
16343         statement is actually used twice.
16344
16345 2011-02-08  Richard Guenther  <rguenther@suse.de>
16346
16347         PR tree-optimization/47632
16348         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16349         unused up_to_stmt parameter, return whether cfg-cleanup is
16350         necessary, remove EH info properly.
16351         (forward_propagate_into_gimple_cond): Adjust caller.
16352         (forward_propagate_into_cond): Likewise.
16353         (forward_propagate_comparison): Likewise.
16354         (tree_ssa_forward_propagate_single_use_vars): Make
16355         forward_propagate_comparison case similar to the two others.
16356
16357 2011-02-08  Nick Clifton  <nickc@redhat.com>
16358
16359         * config/mn10300/mn10300.opt (mliw): New command line option.
16360         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16361         (liw_bundling): New automaton.
16362         (liw): New attribute.
16363         (liw_op): New attribute.
16364         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16365         (movsi_internal): Add LIW attributes.
16366         (andsi3): Likewise.
16367         (iorsi3): Likewise.
16368         (xorsi3): Likewise.
16369         (addsi3): Separate register and immediate alternatives.
16370         Add LIW attributes.
16371         (subsi3): Likewise.
16372         (cmpsi): Likewise.
16373         (aslsi3): Likewise.
16374         (lshrsi3): Likewise.
16375         (ashrsi3): Likewise.
16376         (liw): New pattern.
16377         * config/mn10300/mn10300.c (liw_op_names): New
16378         (mn10300_print_operand): Handle 'W' operand descriptor.
16379         (extract_bundle): New function.
16380         (check_liw_constraints): New function.
16381         (liw_candidate): New function.
16382         (mn10300_bundle_liw): New function.
16383         (mn10300_reorg): New function.
16384         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16385         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16386         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16387         __LIW__ or __NO_LIW__.
16388         * doc/invoke.texi: Describe the -mliw command line option.
16389
16390 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16391
16392         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16393         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16394         pthread_mutex_unlock): Remove.
16395         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16396         * config/pa/t-pa64: Likewise.
16397         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16398         shared libc if not linking against libpthread.
16399         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16400
16401 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
16402
16403         PR target/47558
16404         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16405         on 10.6 and later to ensure that we always use the unwinder from
16406         the system.  Only add -no_compact_unwind when tarteting darwin
16407         10.6 or later.
16408
16409 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
16410
16411         PR target/46997
16412         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16413         (vec_interleave_lowv2sf): Ditto.
16414         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16415         (vec_extract_oddv2sf): Ditto.
16416
16417 2011-02-07  Mike Stump  <mikestump@comcast.net>
16418
16419         PR target/42333
16420         Add __ieee_divdc3 entry point.
16421         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16422         entry point.
16423         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16424         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16425         * config/darwin.c (darwin_rename_builtins): Add.
16426         * config/darwin-protos.h (darwin_rename_builtins): Add.
16427
16428 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
16429
16430         PR target/47636
16431         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16432         for the condition.
16433
16434 2011-02-07  Mike Stump  <mikestump@comcast.net>
16435
16436         * config/darwin.opt (mmacosx-version-min): Update default OS version.
16437
16438 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
16439
16440         PR target/47534
16441         * config/avr/libgcc.S (exit): Move .endfunc
16442
16443 2011-02-07  Richard Guenther  <rguenther@suse.de>
16444
16445         PR tree-optimization/47615
16446         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16447         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16448         (run_scc_vn): Initialize it.
16449         (visit_reference_op_load): Use it.
16450         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16451
16452 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16453
16454         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16455         DImode trapping arithmetic libfuncs.
16456
16457 2011-02-07  Richard Guenther  <rguenther@suse.de>
16458
16459         PR tree-optimization/47621
16460         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16461         two duplicates ...
16462         (execute_update_addresses_taken): ... here.  Make it more
16463         conservative in what we accept.
16464
16465 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16466
16467         * config/sparc/freebsd.h (ASM_SPEC): Define.
16468         * config/sparc/vxworks.h (ASM_SPEC): Define.
16469
16470 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16471
16472         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16473
16474 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
16475
16476         * doc/invoke.texi: Remove reference to compiler internals from
16477         user documentation.
16478
16479         * reg-notes.def: Remove REG_VALUE_PROFILE.
16480         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16481
16482 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
16483
16484         PR middle-end/47610
16485         * varasm.c (default_section_type_flags): If decl is NULL,
16486         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16487
16488 2011-02-05  Jie Zhang  <jie@codesourcery.com>
16489
16490         PR debug/42631
16491         * web.c (entry_register): Don't clobber the number of the
16492         first uninitialized reference in used[].
16493
16494 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
16495
16496         PR tree-optimization/46194
16497         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16498         (build_classic_dist_vector_1): Do not represent classic distance
16499         vectors when the access functions are variating in different loops.
16500
16501 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16502
16503         * config/mips/iris6.opt: New.
16504         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16505
16506 2011-02-04  Richard Henderson  <rth@redhat.com>
16507             Steve Ellcey  <sje@cup.hp.com>
16508
16509         PR target/46997
16510         * config/ia64/predicates.md (mux1_brcst_element): New.
16511         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16512         * config/ia64/ia64.c (ia64_unpack_assemble): New.
16513         (ia64_unpack_sign): New.
16514         (ia64_expand_unpack): Rewrite using new routines.
16515         (ia64_expand_widen_sum): Ditto.
16516         (ia64_expand_dot_prod_v8qi): Ditto.
16517         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16518         routines, add endian check.
16519         (pmpy2_even): Rename from pmpy2_r, add endian check.
16520         (pmpy2_odd): Rename from pmpy2_l, add endian check.
16521         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16522         (vec_widen_smult_hi_v4hi): Ditto.
16523         (vec_widen_umult_lo_v4hi): Ditto.
16524         (vec_widen_umult_hi_v4hi): Ditto.
16525         (mulv2si3): Change endian checks.
16526         (sdot_prodv4hi): Rewrite with new calls.
16527         (udot_prodv4hi): New.
16528         (vec_pack_ssat_v4hi): Add endian check.
16529         (vec_pack_usat_v4hi): Ditto.
16530         (vec_pack_ssat_v2si): Ditto.
16531         (max1_even): Rename from max1_r, add endian check.
16532         (max1_odd): Rename from max1_l, add endian check.
16533         (*mux1_rev): Format change.
16534         (*mux1_mix): Ditto.
16535         (*mux1_shuf): Ditto.
16536         (*mux1_alt): Ditto.
16537         (*mux1_brcst_v8qi): Use new predicate.
16538         (vec_extract_evenv8qi): Remove endian check.
16539         (vec_extract_oddv8qi): Ditto.
16540         (vec_interleave_lowv4hi): Format change.
16541         (vec_interleave_highv4hi): Ditto.
16542         (mix2_even): Rename from mix2_r, add endian check.
16543         (mix2_odd): Rename from mux2_l, add endian check.
16544         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16545         (vec_extract_evenodd_helper): Format change.
16546         (vec_extract_evenv4hi): Remove endian check.
16547         (vec_extract_oddv4hi): Remove endian check.
16548         (vec_interleave_lowv2si): Format change.
16549         (vec_interleave_highv2si): Format change.
16550         (vec_initv2si): Remove endian check.
16551         (vecinit_v2si): Add endian check.
16552         (reduc_splus_v2sf): Add endian check.
16553         (reduc_smax_v2sf): Ditto.
16554         (reduc_smin_v2sf): Ditto.
16555         (vec_initv2sf): Remove endian check.
16556         (fpack): Add endian check.
16557         (fswap): Add endian check.
16558         (vec_interleave_highv2sf): Add endian check.
16559         (vec_interleave_lowv2sf): Add endian check.
16560         (fmix_lr): Add endian check.
16561         (vec_setv2sf): Format change.
16562         (*vec_extractv2sf_0_be): Use shift to extract operand.
16563         (*vec_extractv2sf_1_be): New.
16564         (vec_pack_trunc_v4hi): Add endian check.
16565         (vec_pack_trunc_v2si): Format change.
16566
16567 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
16568
16569         PR inline-asm/23200
16570         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
16571         do bb, locus and block comparison and disallow loads if it is not set.
16572         (stmt_is_replaceable_p): New function.
16573         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16574         callers.
16575         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16576         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16577         SSA_NAME_DEF_STMT.
16578         * tree-flow.h (stmt_is_replaceable_p): New prototype.
16579
16580 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16581
16582         * config/rs6000/xilinx.opt: New.
16583         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16584
16585 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16586
16587         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16588
16589 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
16590
16591         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16592         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16593         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16594         secondary_reload_info, xtensa_secondary_reload): Remove.
16595         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16596         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16597         (xtensa_preferred_reload_class): Make static. Change return and
16598         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16599         Use CONST_DOUBLE_P predicate.
16600         (xtensa_preferred_output_reload_class): New function.
16601         (xtensa_secondary_reload): Make static.
16602
16603 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
16604
16605         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16606         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16607         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16608
16609 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
16610
16611         PR middle-end/31490
16612         * output.h (SECTION_RELRO): Define.
16613         (SECTION_MACH_DEP): Adjust.
16614         (get_variable_section): New prototype.
16615         * varpool.c (varpool_finalize_named_section_flags): New function.
16616         (varpool_assemble_pending_decls): Call it.
16617         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16618         * cgraphunit.c (cgraph_output_in_order): Call
16619         varpool_finalize_named_section_flags.
16620         * varasm.c (get_section): Allow section flags conflicts between
16621         relro and read-only sections if the section hasn't been declared yet.
16622         Set SECTION_OVERRIDE after diagnosing section type conflict.
16623         (get_variable_section): No longer static.
16624         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16625         readonly sections that need relocations.
16626         (decl_readonly_section_1): New function.
16627         (decl_readonly_section): Use it.
16628
16629         Revert:
16630         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
16631                     Steve Ellcey  <sje@cup.hp.com>
16632
16633         PR middle-end/31490
16634         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16635         if section attribute used.
16636
16637 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
16638
16639         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16640         * config/darwin.c (SECTION_NO_ANCHOR): Define.
16641         (darwin_init_sections): Remove assertion.
16642
16643 2011-02-03  Nick Clifton  <nickc@redhat.com>
16644
16645         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16646         lt and ge.
16647         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16648         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16649         instead of "n" and "pz".
16650         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16651         CC_FLAG_S.
16652
16653 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
16654
16655         PR target/47312
16656         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16657         fma, expand FMA_EXPR as fma{,f,l} call.
16658
16659         PR lto/47274
16660         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16661         copy them into a unsigned char variable and pass address of it to
16662         lto_output_data_stream.
16663
16664         PR target/47564
16665         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16666         around backend_init_target and lang_dependent_init_target calls.
16667         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16668         (verify_cgraph_node): Don't call set_cfun here.  Use
16669         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16670         Set error_found for incorrectly represented calls to thunks.
16671
16672 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
16673
16674         PR debug/43092
16675         PR rtl-optimization/43494
16676         * rtl.h (for_each_inc_dec_fn): New type.
16677         (for_each_inc_dec): Declare.
16678         * rtlanal.c (struct for_each_inc_dec_ops): New type.
16679         (for_each_inc_dec_find_inc_dec): New fn.
16680         (for_each_inc_dec_find_mem): New fn.
16681         (for_each_inc_dec): New fn.
16682         * dse.c (struct insn_size): Remove.
16683         (replace_inc_dec, replace_inc_dec_mem): Remove.
16684         (emit_inc_dec_insn_before): New fn.
16685         (check_for_inc_dec): Use it, along with for_each_inc_dec.
16686         (canon_address): Pass mem modes to cselib_lookup.
16687         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
16688         (cselib_lookup_from_insn): Likewise.
16689         (cselib_subst_to_values): Likewise.
16690         * cselib.c (find_slot_memmode): New var.
16691         (cselib_find_slot): New fn.  Use it instead of
16692         htab_find_slot_with_hash everywhere.
16693         (entry_and_rtx_equal_p): Use find_slot_memmode.
16694         (autoinc_split): New fn.
16695         (rtx_equal_for_cselib_p): Rename and implement in terms of...
16696         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
16697         Deal with autoinc.  Special-case recursion into MEMs.
16698         (cselib_hash_rtx): Likewise.
16699         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
16700         address and MEM modes.
16701         (cselib_subst_to_values): Add memmode, pass it on.
16702         Deal with autoinc.
16703         (cselib_lookup): Add memmode argument, pass it on.
16704         (cselib_lookup_from_insn): Add memmode.
16705         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16706         (struct cselib_record_autoinc_data): New.
16707         (cselib_record_autoinc_cb): New fn.
16708         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
16709         mode to cselib_lookup.  Reset autoinced REGs here instead of...
16710         (cselib_process_insn): ... here.
16711         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16712         to cselib_lookup.
16713         (add_uses): Likewise, also to cselib_subst_to_values.
16714         (add_stores): Likewise.
16715         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
16716         cselib_subst_to_values.
16717         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
16718         * gcse.c (do_local_cprop): Adjusted.
16719         * postreload.c (reload_cse_simplify_set): Adjusted.
16720         (reload_cse_simplify_operands): Adjusted.
16721         * sel-sched-dump (debug_mem_addr_value): Pass mode.
16722
16723 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
16724
16725         PR tree-optimization/45122
16726         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16727         unsafe assumptions when there's more than one loop exit.
16728
16729 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16730
16731         PR target/47272
16732         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16733         Document using vector double with the load/store builtins, and
16734         that the load/store builtins always use Altivec instructions.
16735
16736         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16737         to use altivec memory instructions, even on VSX.
16738         (vector_altivec_store_<mode>): Ditto.
16739
16740         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16741         function.
16742
16743         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16744         V2DF, V2DI support to load/store overloaded builtins.
16745
16746         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16747         altivec load/store builtins for V2DF/V2DI types.
16748
16749         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16750         set avoid indexed addresses on power6 if -maltivec.
16751         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16752         vector_altivec_load/vector_altivec_store builtins.
16753         (altivec_expand_st_builtin): Ditto.
16754         (altivec_expand_builtin): Add VSX memory builtins.
16755         (rs6000_init_builtins): Add V2DI types to internal types.
16756         (altivec_init_builtins): Add support for V2DF/V2DI altivec
16757         load/store builtins.
16758         (rs6000_address_for_altivec): Insure memory address is appropriate
16759         for Altivec.
16760
16761         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16762         vec_vsx_ld and vec_vsx_st.
16763         (vsx_store_<mode>): Ditto.
16764
16765         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16766         variables to hold long long types for VSX vector memory builtins.
16767         (RS6000_BTI_unsigned_long_long): Ditto.
16768         (long_long_integer_type_internal_node): Ditti.
16769         (long_long_unsigned_type_internal_node): Ditti.
16770
16771         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16772         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16773         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16774
16775         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16776         short cuts.
16777         (vec_vsx_st): Ditto.
16778
16779 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
16780
16781         * config/pa/pa-hpux10.opt: New.
16782         * config/hpux11.opt (pthread): New Driver option.
16783         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16784         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16785
16786 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
16787
16788         * config/ia64/vms.opt: New.
16789         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16790
16791 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
16792
16793         PR target/47580
16794         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16795         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16796         generator functions.
16797         (vsx_floatuns<VSi><mode>2): Ditto.
16798         (vsx_fix_trunc<mode><VSi>2): Ditto.
16799         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16800
16801 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
16802
16803         * config/i386/djgpp.opt (posix): New Driver option.
16804
16805 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
16806
16807         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16808         Move to the unsupported targets list.
16809
16810 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
16811
16812         PR rtl-optimization/47525
16813         * df-scan.c: Update copyright years.
16814         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16815         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16816
16817 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16818
16819         * config/i386/sysv4.h (TARGET_VERSION): Remove.
16820         (SUBTARGET_RETURN_IN_MEMORY): Remove.
16821         (ASM_OUTPUT_ASCII): Remove.
16822         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16823
16824 2011-02-02  Jeff Law  <law@redhat.com>
16825
16826         PR middle-end/47543
16827         * reload.c (find_reloads_address): Handle reg+d address where both
16828         components are invalid by reloading the entire address.
16829
16830 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
16831             Richard Guenther  <rguenther@suse.de>
16832
16833         PR tree-optimization/40979
16834         PR bootstrap/47044
16835         * passes.c (init_optimization_passes): After LIM call copy_prop
16836         and DCE to clean up.
16837         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16838
16839 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
16840
16841         PR tree-optimization/47576
16842         PR tree-optimization/47555
16843         * doc/invoke.texi (scev-max-expr-complexity): Documented.
16844         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16845         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16846         * tree-scalar-evolution.c (follow_ssa_edge): Use
16847         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16848
16849 2011-02-02  Richard Guenther  <rguenther@suse.de>
16850
16851         PR tree-optimization/47566
16852         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16853
16854 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
16855
16856         PR debug/47106
16857         PR debug/47402
16858         * tree-inline.c (declare_return_variable): Remove unused caller
16859         variable.
16860
16861         PR debug/47106
16862         PR debug/47402
16863         * tree-flow-inline.h (clear_is_used, is_used_p): New.
16864         * cfgexpand.c (account_used_vars_for_block): Use them.
16865         * tree-nrv.c (tree_nrv): Likewise.
16866         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16867         (dump_scope_block): Likewise.
16868         (remove_unused_locals): Likewise.
16869
16870         PR debug/47106
16871         PR debug/47402
16872         * tree-inline.c (declare_return_variable): Add result decl to
16873         local decls only once.
16874         * gimple-low.c (record_vars_into): Mark newly-created variables
16875         as referenced.
16876
16877 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
16878
16879         PR debug/47498
16880         PR debug/47501
16881         PR debug/45136
16882         PR debug/45130
16883         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16884         debug insns.
16885         (no_real_insns_p, schedule_block, set_priorities): Drop special
16886         treatment of boundary debug insns.
16887         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16888         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16889         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16890         (BOUNDARY_DEBUG_INSN_P): Likewise.
16891         (SCHEDULE_DEBUG_INSN_P): Likewise.
16892         * sched-rgn.c (init_ready_list): Drop special treatment of
16893         boundary debug insns.
16894         * final.c (rest_of_clean_state): Clear notes' BB.
16895
16896 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16897
16898         * config/openbsd.opt (assert=): New Driver option.
16899
16900 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16901
16902         * config/i386/nto.opt: New.
16903         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16904
16905 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16906
16907         * config/i386/netware.opt: New.
16908         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16909
16910 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16911
16912         * config/interix.opt (posix): New Driver option.
16913
16914 2011-02-01  DJ Delorie  <dj@redhat.com>
16915
16916         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16917
16918         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16919         class for A0/A1.
16920
16921 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
16922
16923         PR tree-optimization/47561
16924         * toplev.c (process_options): Print the Graphite flags.  Add
16925         flag_loop_flatten to the list of options requiring Graphite.
16926
16927 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16928
16929         * config/i386/cygming.opt (posix): New Driver option.
16930
16931 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16932
16933         * config/arm/vxworks.opt: New.
16934         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16935
16936 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16937
16938         * config/alpha/elf.opt: New.
16939         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16940         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16941
16942 2011-02-01  Richard Guenther  <rguenther@suse.de>
16943
16944         PR tree-optimization/47559
16945         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
16946         store-motion on references that can throw.
16947
16948 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
16949
16950         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
16951         * tree-pass.h (TDF_CSELIB): New macro.
16952         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
16953         cselib_lookup): Check for it rather than for TDF_DETAILS.
16954
16955 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
16956
16957         PR driver/47547
16958         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
16959         is HOST_BIT_BUCKET.
16960
16961         * opts.c (finish_options): Don't add x_aux_base_name if it is
16962         HOST_BIT_BUCKET.
16963
16964 2011-02-01  Richard Guenther  <rguenther@suse.de>
16965
16966         PR tree-optimization/47555
16967         Revert
16968         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
16969
16970         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16971
16972 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
16973
16974         PR gcc/46692
16975         * config/lm32/t-lm32: Add multilib for all CPU options.
16976
16977 2011-02-01  Richard Guenther  <rguenther@suse.de>
16978
16979         PR tree-optimization/47541
16980         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16981         sure to have a field at offset zero.
16982
16983 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
16984
16985         * config/arc/arc.opt (EB, EL): New Driver options.
16986
16987 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
16988
16989         * config/alpha/osf5.opt: New.
16990         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
16991
16992 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
16993
16994         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
16995
16996 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
16997
16998         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
16999         -floop-interchange.
17000         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17001         is an alias of -floop-interchange and that it requires the
17002         Graphite infrastructure.
17003         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17004         flag_loop_interchange based on the value of flag_tree_loop_linear.
17005
17006 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
17007             Richard Guenther  <rguenther@suse.de>
17008
17009         PR tree-optimization/47538
17010         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17011         type instead of r1type, except for comparisons.  For right
17012         shifts and comparisons punt if there are mismatches in
17013         sizetype vs. non-sizetype types.
17014
17015 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17016
17017         * doc/sourcebuild.texi (Effective-Target Keywords): Document
17018         avx_runtime.
17019
17020 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17021
17022         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17023         version number.
17024         * configure: Regenerate.
17025
17026 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17027
17028         * configure.ac (gcc_cv_ld_static_option): Define.
17029         (gcc_cv_ld_dynamic_option): Define.
17030         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17031         instead.
17032         (HAVE_LD_STATIC_DYNAMIC): Update message.
17033         (LD_STATIC_OPTION): Define.
17034         (LD_DYNAMIC_OPTION): Define.
17035         * configure: Regenerate.
17036         * config.in: Regenerate.
17037         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17038         HAVE_LD_STATIC_DYNAMIC]: Use them.
17039
17040 2011-01-31  Nick Clifton  <nickc@redhat.com>
17041
17042         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17043         registers inside interrupt handlers if the handler is not a leaf
17044         function.
17045
17046 2011-01-31  Nick Clifton  <nickc@redhat.com>
17047
17048         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17049         reg_renumber returning an INVALID_REGNUM.
17050
17051 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17052
17053         PR libgcj/44341
17054         * doc/install.texi: Document host options discarded when cross
17055         configuring target libraries.
17056
17057 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17058
17059         Reverted:
17060         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17061         PR debug/45136
17062         PR debug/45130
17063         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17064         debug insns.
17065         (no_real_insns_p, schedule_block, set_priorities): Drop special
17066         treatment of boundary debug insns.
17067         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17068         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17069         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17070         (BOUNDARY_DEBUG_INSN_P): Likewise.
17071         (SCHEDULE_DEBUG_INSN_P): Likewise.
17072         * sched-rgn.c (init_ready_list): Drop special treatment of
17073         boundary debug insns.
17074         * final.c (rest_of_clean-state): Clear notes' BB.
17075
17076 2011-01-31  Alan Modra  <amodra@gmail.com>
17077
17078         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17079         toc relative expressions as we do in print_operand_address.
17080
17081 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
17082
17083         * doc/extend.texi: Follow spelling conventions.
17084         * doc/invoke.texi: Fix a typo.
17085
17086 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
17087
17088         * config/hpux11.opt: New.
17089         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17090         ia64*-*-hpux*): Use hpux11.opt.
17091
17092 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
17093
17094         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17095         to tmake_file.
17096
17097 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17098
17099         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17100         support sites.
17101
17102 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17103
17104         * doc/install.texi (Binaries): Remove outdated reference for
17105         Motorola 68HC11/68HC12 downloads.
17106
17107 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17108
17109         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17110         Drepper's paper.
17111
17112 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
17113
17114         PR bootstrap/47147
17115         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17116         used by NetBSD.
17117
17118 2011-01-28  Ahmad Sharif  <asharif@google.com>
17119
17120         * value-prof.c (check_counter): Corrected error message.
17121
17122 2011-01-29  Jie Zhang  <jie@codesourcery.com>
17123
17124         * config/arm/arm.c (arm_legitimize_reload_address): New.
17125         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17126         arm_legitimize_reload_address.
17127         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17128
17129 2011-01-28  Ian Lance Taylor  <iant@google.com>
17130
17131         * godump.c (go_define): Ignore macros whose definitions include
17132         two adjacent operands.
17133
17134 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
17135
17136         PR target/42894
17137         * varasm.c (force_const_mem): Store copy of x in desc->constant
17138         instead of x itself.
17139         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17140         itself into REG_EQUAL note.
17141
17142 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
17143
17144         * config/freebsd.opt (posix, rdynamic): New Driver options.
17145
17146 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17147
17148         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17149         -Bstatic/-Bdynamic.
17150         * configure: Regenerate.
17151
17152 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
17153
17154         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17155         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17156
17157 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
17158
17159         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17160         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17161         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17162         (s390_preferred_reload_class): Make static. Change return and
17163         'rclass' argument type to reg_class_t.
17164
17165 2011-01-27  Jan Hubicka  <jh@suse.cz>
17166
17167         PR middle-end/46949
17168         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17169         (process_function_and_variable_attributes): Check defined weakrefs.
17170
17171 2011-01-27  Martin Jambor  <mjambor@suse.cz>
17172
17173         PR tree-optimization/47228
17174         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17175         build_ref_for_offset.
17176
17177 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17178
17179         * config/spu/spu-elf.h (ASM_SPEC): Remove.
17180
17181 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
17182
17183         PR rtl-optimization/46856
17184         * postreload.c (reload_combine_recognize_const_pattern): Do not
17185         separate cc0 setter and user on cc0 targets.
17186
17187 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
17188
17189         PR c/43082
17190         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17191         passed a VOID_TYPE expression, immediately emit an error and
17192         return error_mark_node.
17193
17194 2011-01-26  Jeff Law  <law@redhat.com>
17195
17196         PR rtl-optimization/47464
17197         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17198         rather than may_trap_p as needed.
17199
17200 2011-01-26  DJ Delorie  <dj@redhat.com>
17201
17202         PR rtl-optimization/46878
17203         * combine.c (insn_a_feeds_b): Check for the implicit cc0
17204         setter/user dependency as well.
17205
17206 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
17207
17208         PR rtl-optimization/44469
17209         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17210         after removing trivially dead basic blocks.
17211
17212 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17213
17214         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17215         * config/frv/frv.h (LINK_SPEC): Likewise.
17216         * config/i386/netware.h (LINK_SPEC): Likewise.
17217         * config/m68k/linux.h (ASM_SPEC): Likewise.
17218         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17219         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17220         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17221         * config/sparc/linux.h (ASM_SPEC): Likewise.
17222         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17223         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17224
17225 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17226
17227         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17228         * config/frv/frv.h (ASM_SPEC): Likewise.
17229         * config/m68k/linux.h (ASM_SPEC): Likewise.
17230         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17231         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17232         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17233         * config/sparc/linux.h (ASM_SPEC): Likewise.
17234         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17235         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17236
17237 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17238
17239         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17240         * config/frv/frv.h (LINK_SPEC): Likewise.
17241         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17242
17243 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17244
17245         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17246         * config/frv/frv.h (ASM_SPEC): Likewise.
17247         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17248         * config/m68k/linux.h (ASM_SPEC): Likewise.
17249         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17250         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17251         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17252         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17253         * config/sparc/linux.h (ASM_SPEC): Likewise.
17254         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17255         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17256         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17257
17258 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
17259
17260         PR target/46997
17261         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17262         (*mux2): Ditto.
17263         (vec_extract_evenodd_help): Ditto.
17264         (vec_extract_evenv4hi): Ditto.
17265         (vec_extract_oddv4hi): Ditto.
17266         (vec_interleave_lowv2si): Ditto.
17267         (vec_interleave_highv2si): Ditto.
17268         (vec_extract_evenv2si): Ditto.
17269         (vec_extract_oddv2si: Ditto.
17270         (vec_pack_trunc_v2si): Ditto.
17271
17272 2011-01-22  Jan Hubicka  <jh@suse.cz>
17273
17274         PR target/47237
17275         * cgraph.h (cgraph_local_info): New field can_change_signature.
17276         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17277         signature can change.
17278         (ipcp_estimate_growth): Call sequence simplify only if calle signature
17279         can change.
17280         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17281         (cgraph_function_versioning): We can not change signature of functions
17282         that don't allow that.
17283         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17284         (lto_input_node): Likewise.
17285         * ipa-inline.c (compute_inline_parameters): Compute
17286         local.can_change_signature.
17287         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17288         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17289         functions that can not change signature.
17290         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17291         init_cumulative_args): Do not use local calling conventions
17292         for functions that can not change signature.
17293
17294 2011-01-22  Jan Hubicka  <jh@suse.cz>
17295
17296         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17297
17298 2011-01-26  Richard Guenther  <rguenther@suse.de>
17299
17300         PR tree-optimization/47190
17301         * cgraphunit.c (process_common_attributes): New function.
17302         (process_function_and_variable_attributes): Use it.
17303
17304 2011-01-26  Richard Guenther  <rguenther@suse.de>
17305
17306         PR lto/47423
17307         * cgraphbuild.c (record_eh_tables): Record reference to personality
17308         function.
17309
17310 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
17311
17312         PR debug/45454
17313         * sel-sched.c (moveup_expr): Don't let debug insns prevent
17314         non-debug insns from moving up.
17315
17316 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17317
17318         PR target/40125
17319         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17320         t-dlldir{,-x} fragment for build and add it to tmake_file.
17321         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17322         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17323         * config/i386/t-dlldir: New file.
17324         (SHLIB_DLLDIR): Define.
17325         * config/i386/t-dlldir-x: New file.
17326         (SHLIB_DLLDIR): Define.
17327         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17328         (SHLIB_INSTALL): Use it.
17329
17330 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
17331
17332         PR target/47246
17333         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17334         lower bound of the allowed Thumb-2 coprocessor load/store
17335         index range to -256. Add explaining comment.
17336
17337 2011-01-25  Ian Lance Taylor  <iant@google.com>
17338
17339         * godump.c (go_define): Improve lexing of macro expansion to only
17340         accept expressions which match Go spec.
17341
17342 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17343
17344         PR c++/43601
17345         * tree.c (handle_dll_attribute): Handle it.
17346         * doc/extend.texi (@item dllexport): Mention it.
17347         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17348
17349 2011-01-25  Ian Lance Taylor  <iant@google.com>
17350
17351         PR tree-optimization/26854
17352         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17353         (decl_jump_unsafe): Move higher in file, with no other change.
17354         (bind): Set has_jump_unsafe_decl if appropriate.
17355         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17356         (check_earlier_gotos): Likewise.
17357         (c_check_switch_jump_warnings): Likewise.
17358
17359 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
17360
17361         * doc/invoke.texi (Warning Options): Add missing hyphen.
17362         (-fprofile-dir): Minor grammatical fixes.
17363         (-fbranch-probabilities): Likewise.
17364
17365 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17366
17367         PR debug/45136
17368         PR debug/45130
17369         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17370         debug insns.
17371         (no_real_insns_p, schedule_block, set_priorities): Drop special
17372         treatment of boundary debug insns.
17373         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17374         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17375         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17376         (BOUNDARY_DEBUG_INSN_P): Likewise.
17377         (SCHEDULE_DEBUG_INSN_P): Likewise.
17378         * sched-rgn.c (init_ready_list): Drop special treatment of
17379         boundary debug insns.
17380         * final.c (rest_of_clean-state): Clear notes' BB.
17381
17382 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17383
17384         * Makefile.in (LAMBDA_H): Removed.
17385         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17386         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17387         lambda-trans.o, and tree-loop-linear.o.
17388         (lto-symtab.o): Remove dependence on LAMBDA_H.
17389         (tree-loop-linear.o): Remove rule.
17390         (lambda-mat.o): Same.
17391         (lambda-trans.o): Same.
17392         (lambda-code.o): Same.
17393         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17394         (tree-vect-slp.o): Same.
17395         * hwint.h (gcd): Moved here.
17396         (least_common_multiple): Same.
17397         * lambda-code.c: Removed.
17398         * lambda-mat.c: Removed.
17399         * lambda-trans.c: Removed.
17400         * lambda.h: Removed.
17401         * tree-loop-linear.c: Removed.
17402         * lto-symtab.c: Do not include lambda.h.
17403         * omega.c (gcd): Removed.
17404         * passes.c (init_optimization_passes): Remove pass_linear_transform.
17405         * tree-data-ref.c (print_lambda_vector): Moved here.
17406         (lambda_vector_copy): Same.
17407         (lambda_matrix_copy): Same.
17408         (lambda_matrix_id): Same.
17409         (lambda_vector_first_nz): Same.
17410         (lambda_matrix_row_add): Same.
17411         (lambda_matrix_row_exchange): Same.
17412         (lambda_vector_mult_const): Same.
17413         (lambda_vector_negate): Same.
17414         (lambda_matrix_row_negate): Same.
17415         (lambda_vector_equal): Same.
17416         (lambda_matrix_right_hermite): Same.
17417         * tree-data-ref.h: Do not include lambda.h.
17418         (lambda_vector): Moved here.
17419         (lambda_matrix): Same.
17420         (dependence_level): Same.
17421         (lambda_transform_legal_p): Removed declaration.
17422         (lambda_collect_parameters): Same.
17423         (lambda_compute_access_matrices): Same.
17424         (lambda_vector_gcd): Same.
17425         (lambda_vector_new): Same.
17426         (lambda_vector_clear): Same.
17427         (lambda_vector_lexico_pos): Same.
17428         (lambda_vector_zerop): Same.
17429         (lambda_matrix_new): Same.
17430         * tree-flow.h (least_common_multiple): Removed declaration.
17431         * tree-parloops.c (lambda_trans_matrix): Moved here.
17432         (LTM_MATRIX): Same.
17433         (LTM_ROWSIZE): Same.
17434         (LTM_COLSIZE): Same.
17435         (LTM_DENOMINATOR): Same.
17436         (lambda_trans_matrix_new): Same.
17437         (lambda_matrix_vector_mult): Same.
17438         (lambda_transform_legal_p): Same.
17439         * tree-pass.h (pass_linear_transform): Removed declaration.
17440         * tree-ssa-loop.c (tree_linear_transform): Removed.
17441         (gate_tree_linear_transform): Removed.
17442         (pass_linear_transform): Removed.
17443         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17444         flag_loop_interchange.
17445
17446 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17447
17448         PR tree-optimization/47265
17449         PR tree-optimization/47443
17450         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17451         if name still has some uses.
17452
17453 2011-01-25  Martin Jambor  <mjambor@suse.cz>
17454
17455         PR tree-optimization/47382
17456         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17457         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17458
17459 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
17460
17461         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17462         sjlj_except_unwind_info.
17463
17464 2011-01-25  Richard Guenther  <rguenther@suse.de>
17465
17466         PR tree-optimization/47426
17467         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17468         visible functions results escape.
17469
17470 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17471
17472         PR target/45701
17473         * config/arm/arm.c (any_sibcall_uses_r3): New function.
17474         (arm_get_frame_offsets): Use it.
17475
17476 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17477             Jakub Jelinek  <jakub@redhat.com>
17478
17479         PR tree-optimization/47271
17480         * tree-if-conv.c (bb_postdominates_preds): New.
17481         (if_convertible_bb_p): Call bb_postdominates_preds.
17482         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17483         (predicate_scalar_phi): Call bb_postdominates_preds.
17484
17485 2011-01-25  Nick Clifton  <nickc@redhat.com>
17486
17487         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17488         * config/rx/rx.c (rx_function_value): Likewise.
17489         (rx_promote_function_mode): Likewise.
17490         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17491         in order to make it legitimate.
17492         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17493         make sure that the first operand is the same as the result register.
17494         (addsi3_unspec): Delete.
17495         (subdi3): Do not accept immediate operands.
17496         (subdi3_internal): Likewise.
17497
17498 2011-01-25  Jeff Law  <law@redhat.com>
17499
17500         PR rtl-optimization/37273
17501         * ira-costs.c (scan_one_insn): Detect constants living in memory and
17502         handle them like argument loads from stack slots.  Do not double
17503         count memory for memory constants and argument loads from stack slots.
17504
17505 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17506
17507         PR tree-optimization/47427
17508         PR tree-optimization/47428
17509         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17510         coalesce if the new root var would be TREE_READONLY.
17511
17512 2011-01-25  Richard Guenther  <rguenther@suse.de>
17513
17514         PR middle-end/47414
17515         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17516         correct type for TBAA.
17517
17518 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17519
17520         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17521         (close_phi_written_to_memory): Call for_each_index with
17522         dr_indices_valid_in_loop.
17523
17524 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17525
17526         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17527         when it is initialized.
17528
17529 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17530
17531         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17532         call to graphite_find_data_references_in_stmt.
17533         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17534         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
17535         call to graphite_find_data_references_in_stmt.
17536         (analyze_drs_in_stmts): Same.
17537         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17538         in which the scalar analysis of indices is performed.
17539         (create_data_ref): Same.  Update call to dr_analyze_indices.
17540         (find_data_references_in_stmt): Update call to create_data_ref.
17541         (graphite_find_data_references_in_stmt): Same.
17542         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17543         declaration.
17544         (create_data_ref): Same.
17545         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17546         call to create_data_ref.
17547
17548 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17549
17550         * graphite-sese-to-poly.c (build_poly_scop): Move
17551         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17552
17553 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17554
17555         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17556         VAR_DECL, PARM_DECL, and RESULT_DECL.
17557
17558 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17559
17560         * graphite-dependences.c (reduction_dr_1): Allow several reductions
17561         in a reduction PBB.
17562         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17563         that have already been marked as PBB_IS_REDUCTION.
17564
17565 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17566
17567         * graphite-scop-detection.c (same_close_phi_node): New.
17568         (remove_duplicate_close_phi): New.
17569         (make_close_phi_nodes_unique): New.
17570         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17571
17572 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17573
17574         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17575         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17576         of both data references to be the same.
17577
17578 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17579
17580         * graphite-dependences.c (build_lexicographical_constraint): Remove
17581         the gdim parameter.
17582         (build_lexicographical_constraint): Adjust call to
17583         ppl_powerset_is_empty.
17584         (dependence_polyhedron): Same.
17585         (graphite_legal_transform_dr): Same.
17586         (graphite_carried_dependence_level_k): Same.
17587         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17588         parameter.
17589         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17590
17591 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17592
17593         * graphite-sese-to-poly.c
17594         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17595         (close_phi_written_to_memory): New.
17596         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17597         and unshare_expr.
17598
17599 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17600
17601         * doc/install.texi: Update the expected version number of PPL to 0.11.
17602         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17603         #if PPL_VERSION_MINOR < 11.
17604
17605 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17606
17607         * graphite-dependences.c: Include graphite-cloog-util.h.
17608         (new_poly_ddr): Inlined into dependence_polyhedron.
17609         (free_poly_ddr): Moved close by new_poly_ddr.
17610         (dependence_polyhedron_1): Renamed dependence_polyhedron.
17611         Early return NULL when ppl_powerset_is_empty returns true.
17612         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
17613         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
17614         (graphite_legal_transform_dr): Call new_poly_ddr.
17615         (graphite_carried_dependence_level_k): Same.
17616         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
17617         (dot_transformed_deps_stmt_1): Removed.
17618         (dot_deps_stmt_1): Call dot_deps_stmt_2.
17619         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
17620         (dot_deps_1): Call dot_deps_2.
17621         * Makefile.in (graphite-dependences.o): Add missing dependence on
17622         graphite-cloog-util.h.
17623
17624 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17625
17626         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17627         (build_lexicographical_constraint): Same.
17628         (dependence_polyhedron_1): Same.
17629         (graphite_legal_transform_dr): Same.
17630         (graphite_carried_dependence_level_k): Same.
17631         * graphite-ppl.c (ppl_powerset_is_empty): New.
17632         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17633         * tree-data-ref.c (dump_data_reference): Print the basic block index.
17634
17635 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17636
17637         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17638         the "a followed by b" relation and document it.
17639
17640 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17641
17642         * graphite-dependences.c (build_lexicographical_constraint): Stop the
17643         iteration when the bag of constraints is empty.
17644
17645 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17646
17647         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17648
17649 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17650
17651         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17652         nest and two loop depths as parameters.
17653         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17654         lst_perfect_nestify.
17655
17656 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17657
17658         * graphite-dependences.c (print_pddr): Call
17659         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17660
17661 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17662
17663         * graphite-ppl.c (debug_gmp_value): New.
17664         * graphite-ppl.h (debug_gmp_value): Declared.
17665
17666 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
17667
17668         * doc/install.texi: Document availability of cloog-0.16.
17669
17670 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
17671
17672         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17673         invalid postdominance info.
17674
17675 2011-01-24  Jan Hubicka  <jh@suse.cz>
17676
17677         PR c/21659
17678         * doc/extend.texi (weak pragma): Drop claim that it must
17679         appear before definition.
17680         * varasm.c (merge_weak, declare_weak): Only sanity check
17681         that DECL is not output at a time it is declared weak.
17682
17683 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
17684
17685         * machmode.def: Fixed comments.
17686
17687 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
17688
17689         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17690
17691 2011-01-24  Paul Koning  <ni1d@arrl.net>
17692
17693         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17694         WORDS_BIG_ENDIAN.
17695
17696 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
17697
17698         PR target/46519
17699         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17700         (block_info): Add scanned and prev.
17701         (move_or_delete_vzeroupper_2): Return if the basic block
17702         has been scanned and the upper 128bit state is unchanged
17703         from the last scan.
17704         (move_or_delete_vzeroupper_1): Return true if the exit
17705         state is changed.
17706         (move_or_delete_vzeroupper): Visit basic blocks using the
17707         work-list based algorithm based on vt_find_locations in
17708         var-tracking.c.
17709
17710         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17711
17712 2011-01-24  Nick Clifton  <nickc@redhat.com>
17713
17714         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17715         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17716         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
17717         then define __v850e1__.
17718         * doc/invoke.texi: Document -mv850es.
17719
17720 2011-01-24  Richard Henderson  <rth@redhat.com>
17721
17722         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17723         compound unordered comparisons.
17724         * config/rx/rx.c (rx_split_fp_compare): Remove.
17725         * config/rx/rx-protos.h: Update.
17726         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17727         (cbranchsf4): Don't call rx_split_fp_compare.
17728         (*cbranchsf4): Use rx_split_cbranch.
17729         (*cmpsf): Don't accept "i" constraint.
17730         (*conditional_branch): Only valid after reload.
17731         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
17732
17733 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17734
17735         PR target/47385
17736         * config/rs6000/altivec.md (vector constant splitters): Add
17737         support for creating vector single precision constants if -mvsx is
17738         used and we would create the constant using Altivec primitives.
17739
17740 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
17741             Richard Sandiford  <rdsandiford@googlemail.com>
17742
17743         PR rtl-optimization/47166
17744         * reload1.c (emit_reload_insns): Disable the spill_reg_store
17745         mechanism for PRE_MODIFY and POST_MODIFY.
17746         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17747         reloadreg.
17748
17749 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
17750
17751         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17752
17753 2011-01-22  Jan Hubicka  <jh@suse.cz>
17754
17755         PR lto/47333
17756         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17757
17758 2011-01-22  Jan Hubicka  <jh@suse.cz>
17759
17760         PR tree-optimization/43884
17761         PR lto/44334
17762         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17763         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17764
17765 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
17766
17767         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17768         * config/s390/s390.c (s390_register_move_cost,
17769         s390_memory_move_cost): New.
17770         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17771
17772 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17773
17774         PR middle-end/47401
17775         * except.c (sjlj_assign_call_site_values): Move setting the
17776         crtl->uses_eh_lsda flag to ...
17777         (sjlj_mark_call_sites): ... here.
17778         (sjlj_emit_function_enter): Support NULL dispatch label.
17779         (sjlj_build_landing_pads): In a function with no landing pads
17780         that still has must-not-throw regions, generate code to register
17781         a personality function with empty LSDA.
17782
17783 2011-01-21  Richard Henderson  <rth@redhat.com>
17784
17785         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17786
17787         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17788
17789         * compare-elim.c: New file.
17790         * Makefile.in (OBJS-common): Add it.
17791         (compare-elim.o): New.
17792         * common.opt (fcompare-elim): New.
17793         * opts.c (default_options_table): Add OPT_fcompare_elim.
17794         * tree-pass.h (pass_compare_elim_after_reload): New.
17795         * passes.c (init_optimization_passes): Add it.
17796         * recog.h: Protect against re-inclusion.
17797         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17798         * doc/invoke.texi (-fcompare-elim): Document it.
17799         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17800         * doc/tm.texi: Rebuild.
17801
17802 2011-01-22  Nick Clifton  <nickc@redhat.com>
17803
17804         * config/rx/rx.md (cstoresf4): Pass comparison operator to
17805         rx_split_fp_compare.
17806
17807 2011-01-22  Nick Clifton  <nickc@redhat.com>
17808
17809         * config/rx/rx.md (UNSPEC_CONST): New.
17810         (deallocate_and_return): Wrap the amount popped off the stack in
17811         an UNSPEC_CONST in order to stop it being rejected by
17812         -mmax-constant-size.
17813         (pop_and_return): Add a "(return)" rtx.
17814         (call): Drop the immediate operand.
17815         (call_internal): Likewise.
17816         (call_value): Likewise.
17817         (call_value_internal): Likewise.
17818         (sibcall_internal): Likewise.
17819         (sibcall_value_internal): Likewise.
17820         (sibcall): Likewise.  Generate an explicit call using
17821         sibcall_internal.
17822         (sibcall_value): Likewise.
17823         (mov<>): FAIL if a constant operand is not legitimate.
17824         (addsi3_unpsec): New pattern.
17825
17826         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17827         (ok_for_max_constant): New function.
17828         (gen_safe_add): New function.
17829         (rx_expand_prologue): Use gen_safe_add.
17830         (rx_expand_epilogue): Likewise.
17831         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
17832         UNSPEC CONSTs.
17833
17834 2011-01-21  Jeff Law  <law@redhat.com>
17835
17836         PR tree-optimization/47053
17837         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17838         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17839         statements are deleted.
17840         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
17841         is nonempty, then purge dead edges and cleanup the CFG.
17842
17843 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
17844
17845         PR debug/47402
17846         Temporarily revert:
17847         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
17848         PR debug/47106
17849         * tree-dfa.c (create_var_ann): Mark variable as used.
17850
17851 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
17852
17853         PR middle-end/45566
17854         * except.c (convert_to_eh_region_ranges): Emit queued no-region
17855         notes from other section in hot/cold partitioning even if
17856         last_action is -3.  Increment call_site_base.
17857
17858         PR rtl-optimization/47366
17859         * fwprop.c (forward_propagate_into): Return bool.  If
17860         any changes are made, -fnon-call-exceptions is used and
17861         REG_EH_REGION note is present, call purge_dead_edges
17862         and return true if it purged anything.
17863         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17864         any EH edges were purged.
17865
17866 2011-01-21  Jeff Law  <law@redhat.com>
17867
17868         PR rtl-optimization/41619
17869         * caller-save.c (setup_save_areas): Break out code to determine
17870         which hard regs are live across calls by examining the reload chains
17871         so that it is always used.
17872         Eliminate code which checked REG_N_CALLS_CROSSED.
17873
17874 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
17875
17876         PR tree-optimization/47355
17877         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17878         NOP has non-debug uses beyond PHIs in new_bb.
17879
17880 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
17881
17882         PR debug/47106
17883         * cfgexpand.c (account_used_vars_for_block): Only account vars
17884         that are annotated as used.
17885         (estimated_stack_frame_size): Don't set TREE_USED.
17886         * tree-dfa.c (create_var_ann): Mark variable as used.
17887
17888 2011-01-21  Richard Guenther  <rguenther@suse.de>
17889
17890         PR middle-end/47395
17891         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17892
17893 2011-01-21  Richard Guenther  <rguenther@suse.de>
17894
17895         PR tree-optimization/47365
17896         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17897         (vn_reference_lookup_pieces): Adjust.
17898         (vn_reference_lookup): Likewise.
17899         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17900         (vn_reference_lookup_3): Only look through kills if in
17901         VN_WALKREWRITE mode.
17902         (vn_reference_lookup_pieces): Adjust.
17903         (vn_reference_lookup): Likewise.
17904         (visit_reference_op_load): Likewise.
17905         (visit_reference_op_store): Likewise.
17906         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17907         (compute_avail): Likewise.
17908         (eliminate): Likewise.
17909
17910 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
17911
17912         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17913         DECL_IGNORED_P non-reg vars if they are used.
17914
17915         PR tree-optimization/47391
17916         * varpool.c (const_value_known_p): Return false if
17917         decl is volatile.
17918
17919 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
17920
17921         PR bootstrap/47215
17922         * config/i386/i386.c (ix86_local_alignment): Handle
17923         case for va_list_type_node is nil.
17924         (ix86_canonical_va_list_type): Likewise.
17925
17926 2011-01-21  Alan Modra  <amodra@gmail.com>
17927
17928         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17929         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17930
17931 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17932
17933         * config/arm/arm.md (define_attr type): Rename f_load
17934         and f_store to f_fpa_load and f_fpa_store. Update.
17935         (write_conflict): Deal with rename fallout.
17936         (*push_fp_multi): Likewise.
17937         * config/arm/fpa.md (f_load): Use f_fpa_load.
17938         (f_store): Use f_fpa_store.
17939         (*movsf_fpa): Likewise.
17940         (*movdf_fpa): Likewise.
17941         (*movxf_fpa): Likewise.
17942         (*thumb2_movsf_fpa): Likewise.
17943         (*thumb2_movdf_fpa): Likewise.
17944         (*thumb2_movxf_fpa): Likewise.
17945         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
17946         f_loadd and f_stored.
17947         (*thumb2_movdi_vfp): Likewise.
17948         (*thumb2_movsf_vfp): Fix attribute to f_loads.
17949         (*thumb2_movsi_vfp): Likewise.
17950         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
17951         Use f_loads instead of f_load.
17952         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
17953
17954 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
17955
17956         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17957         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
17958         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17959         (xtensa_mode_dependent_address_p): New function.
17960         (constantpool_address_p): Make static. Change return type to bool.
17961         Change argument type to const_rtx. Use CONST_INT_P predicate.
17962
17963 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
17964
17965         PR debug/46583
17966         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
17967
17968 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
17969
17970         PR debug/47283
17971         * cfgexpand.c (expand_debug_expr): Instead of generating
17972         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
17973         etc. handling.
17974
17975 2011-01-20  Richard Guenther  <rguenther@suse.de>
17976
17977         PR middle-end/47370
17978         * tree-inline.c (remap_gimple_op_r): Recurse manually for
17979         the pointer operand of MEM_REFs.
17980
17981 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
17982
17983         PR tree-optimization/46130
17984         * ipa-split.c (consider_split): If return_bb contains non-virtual
17985         PHIs other than for retval or if split_function would not adjust it,
17986         refuse to split.
17987
17988 2011-01-20  Richard Guenther  <rguenther@suse.de>
17989
17990         PR tree-optimization/47167
17991         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17992         Revert previous change, only avoid enumeral type changes.
17993
17994 2011-01-19  Mike Stump  <mikestump@comcast.net>
17995
17996         * doc/tm.texi.in (BRANCH_COST): Englishify.
17997         * doc/tm.texi (BRANCH_COST): Likewise.
17998
17999 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
18000
18001         PR c++/47291
18002         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18003         (gen_scheduled_generic_parms_dies): New functions.
18004         (gen_struct_or_union_type_die): Schedule template parameters DIEs
18005         generation for the end of CU compilation.
18006         (dwarf2out_finish): Generate template parameters DIEs here.
18007
18008 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18009
18010         PR debug/46240
18011         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18012         debug bind stmt on merge edges.
18013
18014 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18015
18016         PR debug/47079
18017         PR debug/46724
18018         * function.c (instantiate_expr): Instantiate incoming rtl of
18019         implicit arguments, and recurse on VALUE_EXPRs.
18020         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18021         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18022
18023 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18024
18025         * c-parser.c (c_parser_for_statement): Initialize
18026         collection_expression.
18027
18028 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18029
18030         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18031
18032 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18033
18034         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18035         (LINK_SHLIB_SPEC): Don't use %(link_path).
18036         (SUBTARGET_EXTRA_SPECS): Remove link_path.
18037
18038 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18039
18040         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18041         (NO_SHARED_LIB_SUPPORT): Remove.
18042         (LINK_SHLIB_SPEC): Remove one conditional definition.
18043
18044 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18045
18046         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18047         %{call_shared}.
18048         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18049         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18050         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18051         %{call_shared} and conditionals on these options not being passed.
18052         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18053         %{call_shared}.
18054
18055 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18056
18057         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18058         simplify.
18059
18060         * ipa-split.c: Spelling fixes.
18061
18062 2011-01-19  Richard Henderson  <rth@redhat.com>
18063
18064         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18065         (*mulsi3): Likewise.
18066
18067         * longlong.h [__mn10300__] (count_leading_zeros): New.
18068         [__mn10300__] (umul_ppmm, smul_ppmm): New.
18069         [__mn10300__] (add_ssaaaa, subddmmss): New.
18070         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18071         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18072
18073 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18074
18075         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18076
18077 2011-01-19  Richard Henderson  <rth@redhat.com>
18078
18079         * config/mn10300/mn10300.md (addsi3_flags): New.
18080         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18081         (subsi3_flags, subc_internal, subdi3): New.
18082         (subdi3_internal, *subdi3_degenerate): New.
18083         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18084
18085         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18086         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18087         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
18088         * config/mn10300/mn10300-protos.h: Update.
18089         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18090         (return_ret): Likewise.  Rename from return_internal_regs.
18091         (return_internal): Remove.
18092
18093         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18094         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18095         (mn10300_legitimate_constant_p): Likewise.
18096         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18097         (mn10300_frame_size): New.
18098         (mn10300_expand_prologue): Use it.
18099         (mn10300_expand_epilogue): Likewise.
18100         (mn10300_initial_offset): Likewise.
18101         * config/mn10300/mn10300-protos.h: Update.
18102         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18103         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18104         (prologue, epilogue, return_internal): Tidy output code.
18105         (mn10300_store_multiple_operation, return): Likewise.
18106         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18107         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18108         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18109         (load_pic, am33_load_pic): New.
18110         (mn10300_load_pic0, mn10300_load_pic1): New.
18111
18112         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18113         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18114         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18115         (cc_flags_for_mode, cc_flags_for_code): New.
18116         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18117         overflow flag is not valid.  Validate that the flags we need
18118         for the comparison are valid.
18119         (mn10300_output_cmp): Remove.
18120         (mn10300_output_add): New.
18121         (mn10300_select_cc_mode): Use cc_flags_for_code.
18122         (mn10300_split_cbranch): New.
18123         (mn10300_match_ccmode): New.
18124         (mn10300_split_and_operand_count): New.
18125         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18126         to the function.
18127         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18128         (addsi3): ... here.  Use mn10300_output_add.
18129         (*addsi3_flags): New.
18130         (*am33_subsi3, *mn10300_subsi3): Merge...
18131         (subsi3): ... here.  Use attribute isa.
18132         (*subsi3_flags): New.
18133         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
18134         when possible.
18135         (*am33_andsi3, *mn10300_andsi3): Merge...
18136         (andsi3): ... here.
18137         (*andsi3_flags): New.
18138         (andsi3 splitters): New.
18139         (*am33_iorsi3, *mn10300_iorsi3): Merge...
18140         (iorsi3): ... here.
18141         (*iorsi3_flags): New.
18142         (*am33_xorsi3, *mn10300_xorsi3): Merge...
18143         (xorsi3): ... here.
18144         (*xorsi3_flags): New.
18145         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18146         (one_cmplsi2): ... here.
18147         (*one_cmplsi2_flags): New.
18148         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
18149         instead of "dax" in constraints.  Use mn10300_split_cbranch.
18150         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
18151         use matching constraints to eliminate a self-comparison.
18152         (*integer_conditional_branch): Rename from integer_conditional_branch.
18153         Use int_mode_flags to match CC_REG.
18154         (*cbranchsi4_btst, *btstsi): New.
18155         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
18156         mn10300_split_cbranch.
18157         (*am33_cmpsf): Rename from am33_cmpsf.
18158         (*float_conditional_branch): Rename from float_conditional_branch.
18159         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18160         (zero_extendqisi2): ... here.
18161         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18162         (zero_extendhisi2): ... here.
18163         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18164         (extendqisi2): ... here.
18165         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18166         (extendhisi2): ... here.
18167         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18168         (ashlsi3): ... here.
18169         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18170         (lshrsi3): ... here.
18171         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18172         (ashrsi3): ... here.
18173         (consecutive add peephole): Remove.
18174         * config/mn10300/predicates.md (label_ref_operand): New.
18175         (int_mode_flags): New.
18176         (CCZN_comparison_operator): New.
18177
18178         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18179         (throughput_42_latency_43): New reservation.
18180         (mulsidi3, umulsidi3): New expanders.
18181         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
18182         the MDR register to allocation; separately allocate the low and
18183         high parts of the DImode result.
18184         (umulsidi3_internal): Similarly.
18185         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18186         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
18187         (udivsi3, umodsi3): Remove.
18188         (udivmodsi4, divmodsi4): New expanders.
18189         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
18190         (*divmodsi4): Simiarly.
18191         (ext_internal): New.
18192
18193         * config/mn10300/constraints.md ("z"): New constraint.
18194         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18195         (FIXED_REGISTERS): Don't fix MDR.
18196         (CALL_USED_REGSITERS): Reformat nicely.
18197         (REG_ALLOC_ORDER): Add MDR.
18198         (enum regclass): Add MDR_REGS.
18199         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18200         (IRA_COVER_CLASSES): Add MDR_REGS.
18201         (REGNO_REG_CLASS): Handle MDR_REG.
18202         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18203         (mn10300_register_move_cost): Likewise.
18204         * config/mn10300/mn10300.md (MDR_REG): New.
18205         (*movsi_internal): Handle moves to/from MDR_REGS.
18206
18207         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18208         POST_MODIFY.
18209         (mn10300_secondary_reload): Tidy combination reload classes.
18210         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18211         addresses for AM33.  Allow symbolic offsets for reg+imm.
18212         (mn10300_regno_in_class_p): New.
18213         (mn10300_legitimize_reload_address): New.
18214         * config/mn10300/mn10300.h (enum reg_class): Remove
18215         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18216         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
18217         SP_OR_GENERAL_REGS.
18218         (REG_CLASS_NAMES): Update to match.
18219         (REG_CLASS_CONTENTS): Likewise.
18220         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18221         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18222         (REGNO_IN_RANGE_P): Remove.
18223         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18224         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18225         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18226         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18227         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18228         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18229         (REGNO_GENERAL_P): New.
18230         (HAVE_POST_MODIFY_DISP): New.
18231         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18232         (LEGITIMIZE_RELOAD_ADDRESS): New.
18233         * config/mn10300/mn10300-protos.h: Update.
18234
18235         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18236         DATA_REGS for AM33 stack-pointer destination.
18237         (mn10300_preferred_output_reload_class): Likewise.
18238         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18239         into a form appropriate for ...
18240         (TARGET_SECONDARY_RELOAD): New.
18241         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18242         * config/mn10300/mn10300-protos.h: Update.
18243         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18244         reload_insi; use the "A" constraint for the scratch; handle AM33
18245         moves of sp to non-address registers.
18246
18247         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18248         (*movqi_internal): ... here.
18249         (*am33_movhi, *mn10300_movhi): Merge into...
18250         (*movhi_internal): ... here.
18251         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
18252         as the source/destination of moves from/to SP.
18253         (movsf): Only allow for AM33-2.
18254         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18255         any integer constant constraint.  Only allow for AM33-2.  Tidy
18256         all of the alternative outputs.
18257         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18258         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
18259         for MN103.
18260         (udivsi3, umodsi3): New patterns for MN103 only.
18261
18262 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
18263
18264         * doc/tm.texi.in: Spell out that a lack of register class unions
18265         can lead to ICEs.
18266         * doc/tm.texi: Regenerate.
18267
18268 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18269
18270         PR rtl-optimization/47337
18271         * dce.c (check_argument_store): New function.
18272         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
18273
18274         PR tree-optimization/47290
18275         * tree-eh.c (infinite_empty_loop_p): New function.
18276         (cleanup_empty_eh): Use it.
18277
18278 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
18279
18280         PR target/46997
18281         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18282         (a64_expand_widen_sum): Ditto.
18283         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18284         (vec_extract_evenodd_help): Ditto.
18285         (vec_extract_evenv4hi): Ditto.
18286         (vec_extract_oddv4hi): Ditto.
18287         (vec_extract_evenv2si): Ditto.
18288         (vec_extract_oddv2si): Ditto.
18289         (vec_extract_evenv2sf): Ditto.
18290         (vec_extract_oddv2sf): Ditto.
18291         (vec_pack_trunc_v4hi: Ditto.
18292         (vec_pack_trunc_v2si): Ditto.
18293         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18294         (vec_interleave_highv8qi): Ditto.
18295         (mix1_r): Ditto.
18296         (vec_extract_oddv8qi): Ditto.
18297         (vec_interleave_lowv4hi): Ditto.
18298         (vec_interleave_highv4hi): Ditto.
18299         (vec_interleave_lowv2si): Ditto.
18300         (vec_interleave_highv2si): Ditto.
18301
18302 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18303
18304         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18305         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18306         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
18307         (pa_c_mode_for_suffix): New.
18308         (TARGET_EXPAND_BUILTIN): Define.
18309         (TARGET_C_MODE_FOR_SUFFIX): Define.
18310         (pa_builtins): Define.
18311         (pa_init_builtins): Register __float128 type and init new support
18312         builtins.
18313         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18314         * config/pa/quadlib.c (_U_Qfcopysign): New.
18315
18316 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
18317
18318         PR middle-end/46894
18319         * explow.c (allocate_dynamic_stack_space): Do not assume more than
18320         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18321         are defined.
18322
18323 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18324
18325         PR tree-optimization/47179
18326         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18327         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18328
18329 2011-01-18  Richard Guenther  <rguenther@suse.de>
18330
18331         PR rtl-optimization/47216
18332         * emit-rtl.c: Include tree-flow.h.
18333         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18334         of replicating it with different semantics.
18335         * Makefile.in (emit-rtl.o): Adjust.
18336
18337 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18338
18339         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18340         (cortex_a9_dp): Handle neon types correctly.
18341
18342 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
18343
18344         PR rtl-optimization/47299
18345         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18346         subtarget.  Use normal multiplication if both operands are constants.
18347         * expmed.c (expand_widening_mult): Don't try to optimize constant
18348         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
18349         before using it.
18350
18351 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18352
18353         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
18354         spacing after 'e.g.', typos, comma, hyphenation.
18355
18356 2011-01-17  Richard Henderson  <rth@redhat.com>
18357
18358         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18359         (rx_restricted_mem_operand): New.
18360         (rx_shift_operand): Use register_operand.
18361         (rx_source_operand, rx_compare_operand): Likewise.
18362         * config/rx/rx.md (addsi3_flags): New expander.
18363         (adddi3): Rewrite as expander.
18364         (adc_internal, *adc_flags, adddi3_internal): New patterns.
18365         (subsi3_flags): New expander.
18366         (subdi3): Rewrite as expander.
18367         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18368
18369         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18370         (rx_init_builtins): Remove sat builtin.
18371         (rx_expand_builtin): Likewise.
18372         * config/rx/rx.md (ssaddsi3): New.
18373         (*sat): Rename from sat.  Represent the CC_REG input.
18374
18375         * config/rx/predicates.md (rshift_operator): New.
18376         * config/rx/rx.c (rx_expand_insv): Remove.
18377         * config/rx/rx-protos.h: Update.
18378         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
18379         operand to the canonical position.
18380         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18381         (*bitclr, *bitclr_in_memory): Similarly.
18382         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18383         (insv): Retain the zero_extract in the expansion.
18384
18385         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18386         (bswaphi2, bitinvert, revw): Likewise.
18387
18388         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18389         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18390         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18391         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18392         (bitset, bitset_in_memory): Likewise.
18393         (bitinvert, bitinvert_in_memory): Likewise.
18394         (bitclr, bitclr_in_memory): Likewise.
18395         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18396         (rx_strend, rx_cmpstrn): Likewise.
18397         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
18398         (bitop peep2 patterns): Remove.
18399
18400         * config/rx/rx.c (rx_match_ccmode): New.
18401         * config/rx/rx-protos.h: Update.
18402         * config/rx/rx.md (abssi2): Clobber, don't set flags.
18403         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18404         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18405         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18406         (fix_truncsfsi2, floatsisf2): Likewise.
18407         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18408         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18409         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18410         (*subsi3_flags, *xorsi3_flags): New.
18411
18412         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18413
18414         * config/rx/rx.c (rx_print_operand): Remove workaround for
18415         unsplit comparison operations.
18416
18417         * config/rx/rx.md (movsicc): Split after reload.
18418         (*movsicc): Merge *movsieq and *movsine via match_operator.
18419         (*stcc): New pattern.
18420
18421         * config/rx/rx.c (rx_float_compare_mode): Remove.
18422         * config/rx/rx.h (rx_float_compare_mode): Remove.
18423         * config/rx/rx.md (cstoresi4): Split after reload.
18424         (*sccc): New pattern.
18425
18426         * config/rx/predicates.md (label_ref_operand): New.
18427         (rx_z_comparison_operator): New.
18428         (rx_zs_comparison_operator): New.
18429         (rx_fp_comparison_operator): New.
18430         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18431         Validate that the flags are set properly for the comparison.
18432         (rx_gen_cond_branch_template): Remove.
18433         (rx_cc_modes_compatible): Remove.
18434         (mode_from_flags): New.
18435         (flags_from_code): Rename from flags_needed_for_conditional.
18436         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18437         (rx_select_cc_mode): Likewise.
18438         (rx_split_fp_compare): New.
18439         (rx_split_cbranch): New.
18440         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18441         (*cbranchsi4): Use match_operator and rx_split_cbranch.
18442         (*cbranchsf4): Similarly.
18443         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
18444         match_operator and rx_split_cbranch.
18445         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18446         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
18447         (*cmpsi): Rename from cmpsi.
18448         (*tstsi): Rename from tstsi.
18449         (*cmpsf): Rename from cmpsf; use CC_Fmode.
18450         (*conditional_branch): Rename from conditional_branch.
18451         (*reveresed_conditional_branch): Remove.
18452         (b<code>): Remove expander.
18453         * config/rx/rx-protos.h: Update.
18454
18455         * config/rx/rx.c (rx_compare_redundant): Remove.
18456         * config/rx/rx.md (cmpsi): Don't use it.
18457         * config/rx/rx-protos.h: Update.
18458
18459         * config/rx/rx-modes.def (CC_F): New mode.
18460         * config/rx/rx.c (rx_select_cc_mode): New.
18461         * config/rx/rx.h (SELECT_CC_MODE): Use it.
18462         * config/rx/rx-protos.h: Update.
18463
18464 2011-01-17  Richard Henderson  <rth@redhat.com>
18465
18466         * except.c (dump_eh_tree): Fix stray ; after for statement.
18467
18468 2011-01-17  Richard Guenther  <rguenther@suse.de>
18469
18470         PR tree-optimization/47313
18471         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18472         handling before copying the body.  Properly deal with
18473         by-reference result in SSA form.
18474
18475 2011-01-17  Ian Lance Taylor  <iant@google.com>
18476
18477         PR target/47219
18478         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18479         (struct_value_alias_set): Don't define.
18480         (sparc_option_override): Don't set sparc_sr_alias_set and
18481         struct_value_alias_set.
18482         (save_or_restore_regs): Use gen_frame_mem rather than calling
18483         set_mem_alias_set.
18484         (sparc_struct_value_rtx): Likewise.
18485
18486 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18487
18488         PR target/47318
18489         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18490         (_mm_maskstore_pd): Likewise.
18491         (_mm_maskload_ps): Likewise.
18492         (_mm_maskstore_ps): Likewise.
18493         (_mm256_maskload_pd): Change mask to __m256i.
18494         (_mm256_maskstore_pd): Likewise.
18495         (_mm256_maskload_ps): Likewise.
18496         (_mm256_maskstore_ps): Likewise.
18497
18498         * config/i386/i386-builtin-types.def: Updated.
18499         (ix86_expand_special_args_builtin): Likewise.
18500
18501         * config/i386/i386.c (bdesc_special_args): Update
18502         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18503         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18504         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18505         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18506
18507         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18508         Use <avxpermvecmode> on mask register.
18509         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18510
18511 2011-01-17  Olivier Hainque  <hainque@adacore.com>
18512             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18513             Eric Botcazou  <ebotcazou@adacore.com>
18514
18515         PR target/46655
18516         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18517         if <= USHRT_MAX in 32-bit mode.
18518
18519 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18520
18521         * doc/install.texi (Configuration, Specific): Wrap long
18522         lines in examples.  Allow line wrapping in long options
18523         and URLs where beneficial for PDF output.
18524
18525 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
18526
18527         * config/mips/mips.c (mips_classify_symbol): Don't return
18528         SYMBOL_PC_RELATIVE for nonlocal labels.
18529
18530 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
18531
18532         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18533
18534 2011-01-15  Jan Hubicka  <jh@suse.cz>
18535
18536         PR tree-optimization/47276
18537         * ipa.c (function_and_variable_visibility): Do not try to mark alias
18538         declarations as needed.
18539
18540 2011-01-15  Martin Jambor  <mjambor@suse.cz>
18541
18542         * common.opt (fdevirtualize): New flag.
18543         * doc/invoke.texi (Option Summary): Document it.
18544         * opts.c (default_options_table): Add devirtualize flag.
18545         * ipa-prop.c (detect_type_change): Return immediately if
18546         devirtualize flag is not set.
18547         (detect_type_change_ssa): Likewise.
18548         (compute_known_type_jump_func): Likewise.
18549         (ipa_analyze_virtual_call_uses): Likewise.
18550
18551 2011-01-14  Martin Jambor  <mjambor@suse.cz>
18552
18553         PR tree-optimization/45934
18554         PR tree-optimization/46302
18555         * ipa-prop.c (type_change_info): New type.
18556         (stmt_may_be_vtbl_ptr_store): New function.
18557         (check_stmt_for_type_change): Likewise.
18558         (detect_type_change): Likewise.
18559         (detect_type_change_ssa): Likewise.
18560         (compute_complex_assign_jump_func): Check for dynamic type change.
18561         (compute_complex_ancestor_jump_func): Likewise.
18562         (compute_known_type_jump_func): Likewise.
18563         (compute_scalar_jump_functions): Likewise.
18564         (ipa_analyze_virtual_call_uses): Likewise.
18565         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18566
18567 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18568
18569         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18570         * config/i386/i386.opt (msse5): New Alias.
18571
18572 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18573
18574         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18575         * config/sparc/linux64.h (CC1_SPEC): Likewise.
18576         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18577         * config/sparc/sparc.h (CC1_SPEC): Likewise.
18578
18579 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18580
18581         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18582         -mcpu options.
18583         * config/sparc/linux64.h (CC1_SPEC): Likewise.
18584         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18585         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18586         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18587         Likewise.
18588         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18589
18590 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18591
18592         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18593
18594 2011-01-14  Mike Stump  <mikestump@comcast.net>
18595
18596         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18597         * config/fr30/fr30.md: Likweise
18598         (movsi_push): Likewise.
18599         (movsi_pop): Likewise.
18600         (enter_func): Likewise.
18601         * config/moxie/moxie.md (movsi_push): Likewise.
18602         (movsi_pop): Likewise.
18603
18604 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18605
18606         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18607         %{no_archive} %{exact_version}.
18608         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18609         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18610         %{no_archive} %{exact_version}.
18611         * config/mips/openbsd.h (LINK_SPEC): Likewise.
18612         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18613         * config/mips/vxworks.h: Likewise.
18614
18615 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18616
18617         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
18618
18619 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18620
18621         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18622         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18623
18624 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18625
18626         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18627         -nodefaultlib.
18628
18629 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18630
18631         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18632         for mcpu not cpu.
18633         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18634         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18635         not cpu.
18636         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18637         Don't handle -shlib.
18638
18639 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18640
18641         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18642         (CC1_SPEC): Don't handle -profile.
18643
18644 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18645
18646         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18647         * config/mips/mips.h (CC1_SPEC): Likewise.
18648
18649 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18650
18651         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18652         * config/mips/mips.h (CC1_SPEC): Likewise.
18653
18654 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18655
18656         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18657         * config/m32r/linux.h (LINK_SPEC): Likewise.
18658         * config/mips/linux.h (LINK_SPEC): Likewise.
18659         * config/mips/linux64.h (LINK_SPEC): Likewise.
18660         * config/sparc/linux.h (LINK_SPEC): Likewise.
18661         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18662         LINK_SPEC): Likewise.
18663         * config/xtensa/linux.h (LINK_SPEC): Likewise.
18664
18665 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18666
18667         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18668         %{version:-v}.
18669         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18670
18671 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18672
18673         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18674         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18675
18676 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18677
18678         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18679
18680 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18681
18682         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18683         supports -Bstatic/-Bdynamic.
18684         * configure: Regenerate.
18685
18686 2011-01-14  Jan Hubicka  <jh@suse.cz>
18687             Jack Howarth  <howarth@bromo.med.uc.edu>
18688
18689         PR target/46037
18690         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18691         when checking debug_info_level. Test write_symbols instead of
18692         debug_hooks->var_location when setting flag_var_tracking_uninit.
18693
18694 2011-01-14  Richard Guenther  <rguenther@suse.de>
18695
18696         PR tree-optimization/47179
18697         * target.def (ref_may_alias_errno): New target hook.
18698         * targhooks.h (default_ref_may_alias_errno): Declare.
18699         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18700         (default_ref_may_alias_errno): New function.
18701         * target.h (struct ao_ref_s): Declare.
18702         * tree-ssa-alias.c: Include target.h.
18703         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18704         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18705         (targhooks.o): Likewise.
18706         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18707         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18708
18709 2011-01-14  Richard Guenther  <rguenther@suse.de>
18710
18711         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
18712
18713 2011-01-14  Richard Guenther  <rguenther@suse.de>
18714
18715         PR tree-optimization/47280
18716         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18717         return CFG changes.
18718         (tree_ssa_forward_propagate_single_use_vars): Deal with
18719         CFG changes from associate_plusminus.
18720
18721 2011-01-14  Richard Guenther  <rguenther@suse.de>
18722
18723         PR middle-end/47281
18724         Revert
18725         2011-01-11  Richard Guenther  <rguenther@suse.de>
18726
18727         PR tree-optimization/46076
18728         * tree-ssa.c (useless_type_conversion_p): Conversions from
18729         unprototyped to empty argument list function types are useless.
18730
18731 2011-01-14  Richard Guenther  <rguenther@suse.de>
18732
18733         PR tree-optimization/47286
18734         * tree-ssa-structalias.c (new_var_info): Register variables are global.
18735
18736 2011-01-14  Martin Jambor  <mjambor@suse.cz>
18737
18738         PR middle-end/46823
18739         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18740
18741 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
18742
18743         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18744         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18745         * config/xtensa/xtensa.c (xtensa_libcall_value,
18746         xtensa_function_value_regno_p): New functions.
18747         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18748
18749 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
18750
18751         PR c++/47213
18752         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18753         PE specific hook.
18754         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18755         New function prototype.
18756         * config/i386/winnt.c (i386_pe_assemble_visibility):
18757         Warn only if attribute was specified by user.
18758
18759 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18760
18761         PR target/47251
18762         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18763         floating point.
18764         (floatunsdidf2_fcfidu): Ditto.
18765
18766 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18767
18768         * config/s390/s390.c (print_operand_address): Replace 'error' with
18769         'output_operand_lossage'.
18770         (print_operand): Likewise.
18771
18772 2011-01-13  Jeff Law  <law@redhat.com>
18773
18774         PR rtl-optimization/39077
18775         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18776         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18777         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18778         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18779         * gcse.c (prune_insertions_deletions): New function.
18780         (compute_pre_data): Use it.
18781
18782 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
18783
18784         PR debug/PR46973
18785         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18786         static function.
18787         (prune_unused_types_mark): Use it.
18788
18789 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
18790
18791         PR rtl-optimization/45352
18792         * sel-sched.c: Update copyright years.
18793         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18794         in the advancing loop when we have issued issue_rate insns.
18795
18796 2011-01-12  Richard Henderson  <rth@redhat.com>
18797
18798         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18799         (TARGET_MD_ASM_CLOBBERS): New.
18800
18801         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18802         (TARGET_DELEGITIMIZE_ADDRESS): New.
18803
18804         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18805         (clzsi2, *bsch): New patterns.
18806
18807         * config/mn10300/mn10300.md (INT): New mode iterator.
18808         (*mov<INT>_clr): New pattern, and peep2 to generate it.
18809
18810         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18811         flag_split_wide_types.
18812
18813         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18814         (mn10300_trampoline_init): Rewrite without a template, an immediate
18815         load and a direct branch.
18816         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18817
18818 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
18819
18820         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18821         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18822         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18823         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18824
18825 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
18826
18827         PR debug/47209
18828         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18829         of type.
18830
18831 2011-01-12  Jan Hubicka  <jh@suse.cz>
18832
18833         PR driver/47244
18834         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18835         (PLUGIN_COND_CLOSE): New macro.
18836         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18837
18838 2011-01-12  Richard Guenther  <rguenther@suse.de>
18839
18840         PR lto/47259
18841         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18842         register variables in a MEM_REF.
18843
18844 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
18845
18846         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18847         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18848         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18849         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18850         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18851         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18852         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18853         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18854         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18855         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18856         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18857         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18858         * config/gnu-user.h: New.  Copied from linux.h.
18859         (LINUX_TARGET_STARTFILE_SPEC): Rename to
18860         GNU_USER_TARGET_STARTFILE_SPEC.
18861         (LINUX_TARGET_ENDFILE_SPEC): Rename to
18862         GNU_USER_TARGET_ENDFILE_SPEC.
18863         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18864         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18865         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18866         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18867         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18868         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18869         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18870         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18871         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18872         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18873         * config/arm/linux-eabi.h (CC1_SPEC): Use
18874         GNU_USER_TARGET_CC1_SPEC.
18875         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18876         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18877         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18878         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18879         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18880         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18881         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18882         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18883
18884 2011-01-12  Richard Guenther  <rguenther@suse.de>
18885
18886         PR other/46946
18887         * doc/invoke.texi (ffast-math): Document it is turned on
18888         with -Ofast.
18889
18890 2011-01-12  Jan Hubicka  <jh@suse.cz>
18891
18892         PR tree-optimization/47233
18893         * opts.c (common_handle_option): Disable ipa-reference with profile
18894         feedback.
18895
18896 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18897
18898         * c-parser.c (c_parser_objc_at_property_declaration): Improved
18899         error message.
18900
18901 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18902
18903         * c-parser.c (c_lex_one_token): Updated and reindented some
18904         comments.  No changes in code.
18905
18906 2011-01-11  Ian Lance Taylor  <iant@google.com>
18907
18908         * godump.c (go_output_var): Don't output the variable if there is
18909         already a type with the same name.
18910
18911 2011-01-11  Ian Lance Taylor  <iant@google.com>
18912
18913         * godump.c (go_format_type): Don't generate float80.
18914
18915 2011-01-11  Richard Henderson  <rth@redhat.com>
18916
18917         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18918         declaration.  Rewrite for both speed and size.
18919         (mn10300_address_cost_1): Remove.
18920         (mn10300_register_move_cost): New.
18921         (mn10300_memory_move_cost): New.
18922         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
18923         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
18924         extensions, shifts, BSWAP, CLZ.
18925         (mn10300_wide_const_load_uses_clr): Remove.
18926         (TARGET_REGISTER_MOVE_COST): New.
18927         (TARGET_MEMORY_MOVE_COST): New.
18928         * config/mn10300/mn10300-protos.h: Update.
18929         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18930
18931         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18932         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18933         * config/mn10300/mn10300-protos.h: Update.
18934         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18935         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18936         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18937         (*test_int_bitfield, *test_byte_bitfield): Remove.
18938         (*bit_test, *subreg_bit_test): Remove.
18939         * config/mn10300/predicates.md (const_8bit_operand): Remove.
18940
18941         * config/mn10300/constraints.md ("c"): Rename from "A".
18942         ("A", "D"): New constraint letters.
18943         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
18944         (fmssf4, fnmasf4, fnmssf4): Likewise.
18945
18946         * config/mn10300/mn10300.md (isa): New attribute.
18947         (enabled): New attribute.
18948
18949         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
18950         (abssf2, negsf2): Define only for hardware fp.
18951         (sqrtsf2): Reformat.
18952         (addsf3, subsf3, mulsf3): Merge expander and insn.
18953
18954         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
18955         (DEBUGGER_AUTO_OFFSET): Remove.
18956         (DEBUGGER_ARG_OFFSET): Remove.
18957
18958         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
18959         Emit register stores with the same offsets as the hardware.
18960         (mn10300_store_multiple_operation): Don't check that the register
18961         save offsets are monotonic.
18962         * config/mn10300/mn10300-protos.h: Update.
18963
18964         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
18965
18966         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
18967         in terms of the value on the stack, not the MDR register.
18968
18969 2011-01-11  Jan Hubicka  <jh@suse.cz>
18970
18971         PR lto/45721
18972         PR lto/45375
18973         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
18974         (symbol_alias_set_destroy, symbol_alias_set_contains,
18975         propagate_aliases_backward): Declare.
18976         * lto-streamer-out.c (struct sets): New sturcture.
18977         (trivally_defined_alias): New function.
18978         (output_alias_pair_p): Rewrite.
18979         (output_unreferenced_globals): Fix output of alias pairs.
18980         (produce_symtab): Likewise.
18981         * ipa.c (function_and_variable_visibility): Set weak alias destination
18982         as needed in lto.
18983         * varasm.c (symbol_alias_set_t): Remove.
18984         (symbol_alias_set_destroy): Export.
18985         (propagate_aliases_forward, propagate_aliases_backward): New functions
18986         based on ...
18987         (compute_visible_aliases): ... this one; remove.
18988         (trivially_visible_alias): New
18989         (trivially_defined_alias): New.
18990         (remove_unreachable_alias_pairs): Rewrite.
18991         (finish_aliases_1): Reorganize code checking if alias is defined.
18992         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
18993         in LTO mode.
18994
18995 2011-01-11  Richard Guenther  <rguenther@suse.de>
18996
18997         PR tree-optimization/46076
18998         * tree-ssa.c (useless_type_conversion_p): Conversions from
18999         unprototyped to empty argument list function types are useless.
19000
19001 2011-01-11  Richard Guenther  <rguenther@suse.de>
19002
19003         PR middle-end/45235
19004         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19005         volatile MEMs as MEM_READONLY_P.
19006
19007 2011-01-11  Richard Guenther  <rguenther@suse.de>
19008
19009         PR tree-optimization/47239
19010         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19011
19012 2011-01-11  Jeff Law  <law@redhat.com>
19013
19014         PR tree-optimization/47086
19015         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19016         IVs from statements that might throw.
19017
19018 2011-01-10  Jan Hubicka  <jh@suse.cz>
19019
19020         PR lto/45375
19021         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19022
19023 2011-01-10  Jan Hubicka  <jh@suse.cz>
19024
19025         PR lto/45375
19026         * profile.c (read_profile_edge_counts): Ignore profile inconistency
19027         when correcting profile.
19028
19029 2011-01-10  Jan Hubicka  <jh@suse.cz>
19030
19031         PR lto/46083
19032         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19033         DECL_FINI_PRIORITY.
19034         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19035         Restore DECL_FINI_PRIORITY.
19036
19037 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19038
19039         * doc/gimple.texi: Fix quoting of multi-word return values in
19040         @deftypefn statements.  Ensure presence of return value.  Wrap
19041         overlong @deftypefn lines.
19042         (is_gimple_operand, is_gimple_min_invariant_address): Remove
19043         descriptions of removed functions.
19044         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19045         of multi-word return value in @deftypefn statement.
19046
19047 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19048
19049         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19050         (Conditional Expressions, Logical Operators)
19051         (Statement and operand traversals): Do not indent smallexample
19052         code.  Fix duplicate function argument in example.
19053
19054 2011-01-10  Jeff Law  <law@redhat.com>
19055
19056         PR tree-optimization/47141
19057         * ipa-split.c (split_function): Handle case where we are
19058         returning a value and the return block has a virtual operand phi.
19059
19060 2011-01-10  Jan Hubicka  <jh@suse.cz>
19061
19062         PR tree-optimization/47234
19063         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19064         (pass_feedback_split_functions): Declare.
19065         * passes.c (init_optimization_passes): Add ipa-split as subpass of
19066         tree-profile.
19067         * ipa-split.c (gate_split_functions): Update comments; disable
19068         split-functions for profile_arc_flag and branch_probabilities.
19069         (gate_feedback_split_functions): New function.
19070         (execute_feedback_split_functions): New function.
19071         (pass_feedback_split_functions): New global var.
19072
19073 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
19074
19075         PR lto/46760
19076         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19077         calling gimple_call_set_cannot_inline.
19078
19079 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
19080
19081         * config/darwin-sections.def: Remove unused section.
19082
19083 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
19084
19085         PR c++/47218
19086         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19087
19088 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
19089
19090         PR objc/47232
19091         * c-parser.c (c_parser_declaration_or_fndef): Improved
19092         error message.
19093
19094 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
19095
19096         * config/i386/winnt.c (i386_pe_start_function): Make sure
19097         to switch back to function's section.
19098
19099 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
19100
19101         PR gcc/46902
19102         PR testsuite/46912
19103         * plugin.c: Move include of dlfcn.h from here...
19104         * system.h: ... to here.
19105
19106 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19107
19108         * doc/cpp.texi (C++ Named Operators): Fix markup for header
19109         file name.
19110         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19111         two extra empty pages in PDF output.
19112
19113 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
19114
19115         PR objc/47078
19116         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19117         for error recovery purposes behave as if it was not specified so
19118         that the default type is usd.
19119
19120 2011-01-07  Jan Hubicka  <jh@suse.cz>
19121
19122         PR tree-optmization/46469
19123         * ipa.c (function_and_variable_visibility): Clear needed flags on
19124         nodes with external decls; handle weakrefs merging correctly.
19125
19126 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
19127
19128         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19129         not false.
19130
19131 2011-01-07  Jan Hubicka  <jh@suse.cz>
19132
19133         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19134         and no longer claim that gold is required for linker plugin.
19135         * configure: Regenerate.
19136         * gcc.c (PLUGIN_COND): New macro.
19137         (LINK_COMMAND_SPEC): Use it.
19138         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19139         * config.in (HAVE_LTO_PLUGIN): New.
19140         * configure.ac (--with-lto-plugin): New parameter; autodetect
19141         HAVE_LTO_PLUGIN.
19142
19143 2011-01-07  Jan Hubicka  <jh@suse.cz>
19144
19145         PR tree-optimization/46367
19146         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19147         when we can update original.
19148         (cgraph_mark_inline_edge): Sanity check.
19149         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19150
19151 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19152
19153         * config/spu/spu.h (ASM_COMMENT_START): Define.
19154
19155 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19156
19157         PR driver/42445
19158         * gcc.c (%>S): New.
19159         (SWITCH_KEEP_FOR_GCC): Likewise.
19160         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19161         (do_spec_1): Handle "%>".
19162
19163         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19164
19165 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
19166
19167         PR target/47201
19168         * config/i386/i386.c (ix86_delegitimize_address): If
19169         simplify_gen_subreg fails, return orig_x.
19170
19171         PR bootstrap/47187
19172         * value-prof.c (gimple_stringop_fixed_value): Handle
19173         lhs of the call properly.
19174
19175 2011-01-07  Jan Hubicka  <jh@suse.cz>
19176
19177         PR lto/45375
19178         * lto-opt.c (lto_reissue_options): Set flag_shlib.
19179
19180 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19181
19182         * target.def (function_switched_text_sections): New hook.
19183         * doc/tm.texi: Regenerated.
19184         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19185         * final.c (default_function_switched_text_sections): New.
19186         (final_scan_insn): Call function_switched_text_sections when a
19187         mid-function section change occurs.
19188         * output.h (default_function_switched_text_sections): Declare.
19189         * config/darwin-protos.h (darwin_function_switched_text_sections):
19190         Likewise.
19191         * config/darwin.c (darwin_function_switched_text_sections): New.
19192         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19193
19194 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19195
19196         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
19197         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
19198         the secondary code fragment when outputting for DWARF == 2.
19199
19200 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
19201
19202         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19203         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19204         Remove.
19205         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19206         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19207
19208 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
19209
19210         PR debug/46704
19211         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19212         when it is not empty.
19213
19214 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
19215
19216         Bobcat Enablement
19217         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19218         (case ${target}): Add btver1.
19219         * config/i386/driver-i386.c (host_detect_local_cpu): Let
19220         -march=native recognize btver1 processors.
19221         * config/i386/i386-c.c (ix86_target_macros_internal): Add
19222         btver1 def_and_undef
19223         * config/i386/i386.c (struct processor_costs btver1_cost): New
19224         btver1 cost table.
19225         (m_BTVER1): New definition.
19226         (m_AMD_MULTIPLE): Includes m_BTVER1.
19227         (initial_ix86_tune_features): Add btver1 tune.
19228         (processor_target_table): Add btver1 entry.
19229         (static const char *const cpu_names): Add btver1 entry.
19230         (software_prefetching_beneficial_p): Add btver1.
19231         (ix86_option_override_internal): Add btver1 instruction sets.
19232         (ix86_issue_rate): Add btver1.
19233         (ix86_adjust_cost): Add btver1.
19234         * config/i386/i386.h (TARGET_BTVER1): New definition.
19235         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19236         (enum processor_type): Add PROCESSOR_BTVER1.
19237         * config/i386/i386.md (define_attr "cpu"): Add btver1.
19238
19239 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19240
19241         PR target/43309
19242         * config/i386/i386.c (legitimize_tls_address)
19243         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19244         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19245         (tls_initial_exec_64_sun): New pattern.
19246
19247 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
19248
19249         * doc/invoke.texi (Overall Options): Improve wording and markup
19250         of the description of -wrapper.
19251
19252 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19253
19254         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19255         rdynamic, threads): New Driver options.
19256
19257 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19258
19259         PR target/38118
19260         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19261         if coming from .tdata.
19262         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19263
19264 2011-01-06  Jan Hubicka  <jh@suse.cz>
19265
19266         PR lto/47188
19267         * collect2.c (main): Do not enable LTOmode when plugin is active.
19268
19269 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19270
19271         PR other/45915
19272         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19273         --version output if supported.
19274         * configure: Regenerate.
19275
19276 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19277
19278         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19279         Driver options.
19280
19281 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
19282
19283         PR c/47150
19284         * c-convert.c (convert): When converting a complex expression
19285         other than COMPLEX_EXPR to a different complex type, ensure
19286         c_save_expr is called instead of save_expr, unless in_late_binary_op.
19287         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19288         when converting COMPLEX_TYPE.
19289
19290 2011-01-06  Ira Rosen  <irar@il.ibm.com>
19291
19292         PR tree-optimization/47139
19293         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19294         only the last reduction value is used outside the loop.  Update
19295         documentation.
19296
19297 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
19298
19299         * config/rtems.opt: New.
19300         * config.gcc (*-*-rtems*): Use rtems.opt.
19301
19302 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
19303
19304         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19305         processors do not support 3DNow instructions.
19306
19307 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19308
19309         * config/spu/spu.c (spu_option_override): Set parameter
19310         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19311
19312 2011-01-05  Jan Hubicka  <jh@suse.cz>
19313
19314         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19315         at the command line.
19316
19317 2011-01-05  Martin Jambor  <mjambor@suse.cz>
19318
19319         PR lto/47162
19320         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19321         deltas on streamed outgoing edges.
19322         (output_node_opt_summary): Output info for outgoing edges only when
19323         the node is in new parameter set.
19324         (output_cgraph_opt_summary): New parameter set, passed to the two
19325         aforementioned functions.  Update its forward declaration and its
19326         callee too.
19327
19328 2011-01-05  Tom Tromey  <tromey@redhat.com>
19329
19330         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19331         operator to c_finish_omp_atomic.
19332         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19333         (build_unary_op): Update.
19334         (build_modify_expr): Update.
19335         (build_asm_expr): Update.
19336
19337 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19338
19339         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19340         newly inserted insns.
19341         (pad_bb): Likewise.
19342         (spu_emit_branch_hint): Likewise.
19343         (insert_hbrp_for_ilb_runout): Likewise.
19344         (spu_machine_dependent_reorg): Call df_finish_pass after
19345         schedule_insns returns.
19346
19347 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19348
19349         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19350
19351 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
19352
19353         PR tree-optimization/47005
19354         * tree-sra.c (struct access): Add 'non_addressable' bit.
19355         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19356         (decide_one_param_reduction): Return 0 if the parameter is passed by
19357         reference and one of the accesses in the group is non_addressable.
19358
19359 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19360
19361         PR tree-optimization/47056
19362         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19363         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
19364         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
19365
19366 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19367
19368         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19369         initializer.  Skip view conversions from aggregate types.
19370
19371 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
19372
19373         PR bootstrap/47055
19374         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19375
19376 2011-01-04  Philipp Thomas  <pth@suse.de>
19377
19378         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19379         obvious typo.
19380
19381 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19382
19383         * function.c (thread_prologue_and_epilogue_insns): Do not crash
19384         on empty epilogue sequences.
19385
19386 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
19387
19388         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19389         non-static): New Driver options.
19390
19391 2011-01-04  Jie Zhang  <jie@codesourcery.com>
19392
19393         PR driver/47137
19394         * gcc.c (default_compilers[]): Set combinable field to 0
19395         for all assembly languages.
19396
19397 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
19398
19399         * config/mips/loongson3a.md: New file.
19400         * config/mips/mips.md: Include loongson3a.md.
19401         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19402         TUNE_LOONGSON_3A.
19403
19404 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
19405
19406         PR middle-end/47017
19407         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19408         instead of convert_memory_address_addr_space on the base expression.
19409
19410 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19411
19412         * config/spu/spu.c (spu_option_override): Update error text
19413         for bad -march= / -mtune= values.
19414
19415 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19416
19417         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19418         if branch-hint optimization will be performed.
19419
19420 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19421
19422         PR tree-optimization/47148
19423         * ipa-split.c (split_function): Convert arguments to
19424         DECL_ARG_TYPE if possible.
19425
19426         PR tree-optimization/47155
19427         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19428         when computing uns.
19429
19430         PR rtl-optimization/47157
19431         * combine.c (try_combine): If undobuf.other_insn becomes
19432         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19433         and set *new_direct_jump_p too.
19434
19435 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
19436
19437         PR tree-optimization/47021
19438         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19439
19440 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19441
19442         * gcc.c (process_command): Update copyright notice dates.
19443         * gcov.c (print_version): Likewise.
19444         * gcov-dump.c (print_version): Likewise.
19445         * mips-tfile.c (main): Likewise.
19446         * mips-tdump.c (main): Likewise.
19447
19448 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19449
19450         PR tree-optimization/46801
19451         * tree-sra.c (type_internals_preclude_sra_p): Check whether
19452         aggregate fields start at byte boundary instead of the bit-field flag.
19453
19454 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19455
19456         PR driver/47137
19457         * gcc.c (main): Revert revision 168407.
19458
19459 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19460
19461         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19462
19463 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19464
19465         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19466         vector optab to expand vector/scalar shift, update gimple to vector.
19467
19468 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19469
19470         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19471         a thunk.
19472
19473 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19474
19475         PR tree-optimization/46984
19476         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19477         HOST_WIDE_INT.
19478         (cgraph_create_indirect_edge): Fixed line length.
19479         (cgraph_indirect_call_info): Declare.
19480         (cgraph_make_edge_direct) Update declaration.
19481         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19482         (cgraph_create_indirect_edge): Use it.
19483         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
19484         callees.
19485         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19486         the new thunk_delta representation.
19487         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19488         HOST_WIDE_INT.
19489         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19490         (ipa_read_indirect_edge_info): Likewise.
19491         * lto-cgraph.c (output_edge_opt_summary): New function.
19492         (output_node_opt_summary): Call it on all outgoing edges.
19493         (input_edge_opt_summary): New function.
19494         (input_node_opt_summary): Call it on all outgoing edges.
19495
19496 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
19497
19498         PR driver/47137
19499         * gcc.c (main): Don't check have_o when settting combine_inputs.
19500
19501 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
19502
19503         * regrename.c: Add general comment describing the pass.
19504         (struct du_head): Remove 'length' field.
19505         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19506         (regrename_optimize): Do not sort chains.  Rework comments, add others.
19507         Force renaming to the preferred class (if any) in the first pass and do
19508         not consider registers that belong to it in the second pass.
19509         (create_new_chain): Do not set 'length' field.
19510         (scan_rtx_reg): Likewise.
19511
19512 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
19513
19514         PR tree-optimization/47140
19515         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19516         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19517         to bit_value_binop.
19518
19519         PR rtl-optimization/47028
19520         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19521         parm_birth_insn instead of at the beginning of first bb.
19522
19523 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
19524
19525         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19526         Remove the word "see" before "@pxref".
19527         * doc/rtl.texi: Remove the word "see" before "@pxref".
19528
19529 2011-01-01  Jan Hubicka  <jh@suse.cz>
19530
19531         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19532         memory.
19533
19534 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
19535
19536         PR target/38662
19537         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19538
19539 \f
19540 Copyright (C) 2011 Free Software Foundation, Inc.
19541
19542 Copying and distribution of this file, with or without modification,
19543 are permitted in any medium without royalty provided the copyright
19544 notice and this notice are preserved.