OSDN Git Service

241a1f4b14939a77cdad26c3d2dc378be0e6463e
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
2
3         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
4
5         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
6         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
7         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
8         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
9         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
10         (evaluate_stmt, execute_fold_all_builtins): Handle
11         BUILT_IN_ASSUME_ALIGNED.
12         * tree-ssa-dce.c (propagate_necessity): Likewise.
13         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14         call_may_clobber_ref_p_1): Likewise.
15         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
16         (expand_builtin_assume_aligned): New function.
17         * doc/extend.texi (__builtin_assume_aligned): Document.
18
19         PR debug/49544
20         * cselib.c (promote_debug_loc): If cselib_preserve_constants
21         and l has two DEBUG_INSN owned locs instead of just one, adjust
22         the second location's setting_insn too.
23
24 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25
26         PR libmudflap/38738
27         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
28
29 2011-06-27  Nick Clifton  <nickc@redhat.com>
30
31         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
32         convert bit position of highest bit set into a count of the high
33         zero bits.
34
35 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
36
37         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
38
39 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
40
41         PR lto/48492
42         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
43         to a NULL parent.
44
45 2011-06-27  Richard Guenther  <rguenther@suse.de>
46
47         PR tree-optimization/49394
48         * passes.c (execute_one_pass): Restore current_pass after
49         applying IPA transforms.
50
51 2011-06-27  Kai Tietz  <ktietz@redhat.com>
52
53         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
54         out of type precision after operation.
55         (find_bswap): Take for limit value the integer auto-
56         promotion into account.
57
58 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
59
60         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
61         forward scan as well.
62
63 2011-06-27  Tristan Gingold  <gingold@adacore.com>
64
65         PR target/44241
66         * config/vms/vms-protos.h: New file.
67         * config/vms/vms-crtlmap.map: New file.
68         * config/vms/vms.c: New file.
69         * config/vms/make-crtlmap.awk: New file.
70         * config/vms/vms-crtl.h: File removed.
71         * config/vms/vms-crtl-64.h: File removed.
72         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
73         * config/alpha/vms64.h: Do not include vms-crtl-64.h
74         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
75         clear some builtins on VMS.  Calls vms_patch_builtins.
76         (avms_asm_output_external): Remove.
77         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
78         (struct crtl_name_spec): Remove
79         (DO_CTRL_NAMES): Remove.
80         * config/ia64/vms.h (struct crtl_name_spec): Remove
81         (DO_CTRL_NAMES): Remove.
82         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
83         clear some builtins on VMS.  Calls vms_patch_builtins.
84         (ia64_asm_output_external): Remove DO_CRTL_NAME.
85         * config/ia64/vms64.h: Do not include vms-crtl-64.h
86         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
87         tm_p_file.
88
89 2011-06-27  Tristan Gingold  <gingold@adacore.com>
90
91         * config/alpha/alpha.c (alpha_end_function): Always generate .end
92         directive on VMS.
93
94 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
95
96         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
97         the function receives nonlocal gotos.
98
99 2011-06-27  Richard Guenther  <rguenther@suse.de>
100
101         PR tree-optimization/49536
102         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
103         For non-scalar inner types use a scalar type according to
104         the scalar inner mode.
105
106 2011-06-27  Richard Guenther  <rguenther@suse.de>
107
108         PR tree-optimization/49365
109         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
110
111 2011-06-27  Richard Guenther  <rguenther@suse.de>
112
113         PR tree-optimization/49169
114         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
115         the alignment of function decls.
116
117 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
118
119         PR target/47997
120         * config/darwin.c (darwin_mergeable_string_section): Place string
121         constants in '.cstring' rather than '.const' when CF/NSStrings are
122         active.
123
124 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
125
126         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
127         (emit_save_register_window): Likewise.
128         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
129         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
130         Swap back %o7/%i7 in register naming.
131
132 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
133
134         PR driver/49371
135         * config/darwin.c (darwin_override_options): Improve warning when
136         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
137         is given with fpie/fPIE.
138         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
139         * config/darwin9.h (PIE_SPEC): New.
140
141 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
142
143         * timevar.c (timevar_print): Increase width for display of timevar
144         name.
145
146 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
147
148         PR c++/46400
149         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
150         instead of TYPE_CHAIN for chain_next for types.
151
152 2011-06-24  Richard Henderson  <rth@redhat.com>
153
154         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
155         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
156         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
157         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
158         (sparc_flat_expand_prologue): Emit individual instructions
159         instead of one of the above.
160
161 2011-06-24  Easwaran Raman  <eraman@google.com>
162
163         PR rtl-optimization/49429
164         PR target/49454
165         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
166         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
167         used to copy y into x.
168         * calls.c (initialize_argument_information): Mark
169         an argument addressable if it is passed by invisible reference.
170         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
171         if it is passed by reference.
172
173 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
174
175         PR rtl-optimization/49504
176         * rtlanal.c (nonzero_bits1): Properly handle addition or
177         subtraction of a pointer in Pmode if pointers extend unsigned.
178         (num_sign_bit_copies1): Likewise.
179
180 2011-06-24  Martin Jambor  <mjambor@suse.cz>
181
182         PR tree-optimizations/49516
183         * tree-sra.c (sra_modify_assign): Choose the safe path for
184         aggregate copies if we also did scalar replacements.
185
186 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
187
188         PR target/49335
189         * config/arm/predicates.md (add_operator): New.
190         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
191         in Thumb2.
192
193 2011-06-24  Andi Kleen  <ak@linux.intel.com>
194
195         * tree-sra.c (type_internals_preclude_sra_p): Add msg
196         parameter. Split up ifs and report reason in *msg.
197         (reject): Add.
198         (find_var_candiate): Add msg variable.
199         Split up ifs and report reason to reject.
200         (find_param_candidates): Add msg variable.
201         Pass msg to type_internals_preclude_sra_p.
202
203 2011-06-23  Jeff Law  <law@redhat.com>
204
205         PR middle-end/48770
206         * reload.h (reload): Change to return a bool.
207         * ira.c (ira): If requested by reload, run a fast DCE pass after
208         reload has completed.  Fix comment typo.
209         * reload1.c (need_dce): New file scoped static.
210         (reload): Set reload_completed here.  Return whether or not a DCE
211         pass after reload is needed.
212         (delete_dead_insn): Set need_dce as needed.
213
214         PR middle-end/49465
215         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
216         to detect threading through joiner block.  If there was already
217         an edge to the new target, then do not change the PHI nodes.
218
219 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
220
221         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
222         get_pointer_alignment to see if base isn't sufficiently aligned.
223
224 2011-06-23  Jan Hubicka  <jh@suse.cz>
225
226         PR tree-optimize/49373
227         * tree-pass.h (all_late_ipa_passes): Declare.
228         * cgraphunit.c (init_lowered_empty_function): Fix properties.
229         (cgraph_optimize): Execute late passes; remove unreachable funcions after
230         materialization.
231         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or LTOing.
232         * passes.c (all_late_ipa_passes): Declare.
233         (dump_passes, register_pass): Handle late ipa passes.
234         (init_optimization_passes): Move ipa_pta to late passes; schedule fixup_cfg
235         at beggining of all_passes.
236         (apply_ipa_transforms): New function.
237         (execute_one_pass): When doing simple ipa pass, apply all transforms.
238
239 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
240
241         * params.c: Include common/common-target.h.  Don't include tm.h.
242         (lang_independent_params): Move from toplev.c.
243         (global_init_params): New.
244         * params.h (global_init_params): Declare.
245         * target.def (default_params): Move to common-target.def.
246         * toplev.c (lang_independent_options): Remove.
247         (lang_independent_params): Move to params.c.
248         (general_init): Use global_init_params.
249         * common/common-target.def (option_default_params): Move from
250         target.def.
251         * common/config/ia64/ia64-common.c: Include params.h.
252         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
253         from ia64.c.
254         * common/config/rs6000/rs6000-common.c: Include params.h.
255         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
256         from rs6000.c.
257         * common/config/sh/sh-common.c: Include params.h.
258         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
259         from sh.c.
260         * common/config/spu/spu-common.c: Include params.h.
261         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
262         from spu.c.
263         * config/ia64/ia64.c (ia64_option_default_params,
264         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
265         * config/rs6000/rs6000.c (rs6000_option_default_params,
266         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
267         * config/sh/sh.c (sh_option_default_params,
268         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
269         * config/spu/spu.c (spu_option_default_params,
270         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
271         * Makefile.in (OBJS): Remove params.o.
272         (OBJS-libcommon-target): Add params.o.
273         (params.o, $(common_out_object_file)): Update dependencies.
274         * doc/tm.texi: Regenerate.
275
276 2011-06-23  Alan Modra  <amodra@gmail.com>
277
278         PR bootstrap/49383
279         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
280         invocation for 2011-06-09 changes.
281
282 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
283
284         PR libgomp/49490
285         * omp-low.c (expand_omp_for_static_nochunk): Only
286         use n ceil/ nthreads size for the first
287         n % nthreads threads in the team instead of
288         all threads except for the last few ones which
289         get less work or none at all.
290
291         PR debug/49496
292         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
293         uses.
294
295 2011-06-22  Richard Guenther  <rguenther@suse.de>
296
297         PR tree-optimization/49493
298         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
299         Refer to the alias target of variables.
300         (associate_varinfo_to_alias_1): Remove.
301         (ipa_pta_execute): Do not associate aliases with anything.
302         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
303         (cgraph_function_node): Likewise.
304         (cgraph_function_or_thunk_node): Likewise.
305         (varpool_variable_node): Likewise.
306
307 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
308
309         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
310         typo.
311         * config.gcc (arm*-*-linux*): Default to gnu tls.
312         (arm*-*-*): Add --with-tls option.
313         (all_defaults): Add 'tls'.
314
315 2011-06-22  Richard Henderson  <rth@redhat.com>
316
317         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
318         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
319         (dwarf2out_frame_debug_cfa_window_save): Rename from
320         dwarf2out_window_save; make static.
321         * tree.h (dwarf2out_window_save): Don't declare.
322
323         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
324         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
325         (emit_save_register_window): Rename from gen_save_register_window;
326         emit the insn and add REG_CFA_* notes.
327         (sparc_expand_prologue): Update to match.
328         * config/sparc/sparc.md (save_register_window_1): Simplify from
329         save_register_window<P:mode>.
330
331 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
332
333         PR target/49497
334         * config/i386/i386.md (*lea_general_2): Always allow SImode.
335         (*lea_general_2_zext): Likewise.
336         (imul to lea peepholes): Use const359_operand and check
337         TARGET_PARTIAL_REG_STALL.
338
339         * config/i386/predicates.md (const359_operand): New.
340
341 2011-06-22  Michael Matz  <matz@suse.de>
342
343         * cgraphunit.c (assemble_thunk): Use correct return type.
344
345 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
346         Dmitry Melnik  <dm@ispras.ru>
347
348         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
349         (neon_output_shift_immediate): Ditto.
350         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
351         prototype.
352         (neon_output_shift_immediate): Ditto.
353         * config/arm/neon.md (vashl<mode>3): Modified constraint.
354         (vashr<mode>3_imm): New insn pattern.
355         (vlshr<mode>3_imm): Ditto.
356         (vashr<mode>3): Modified constraint.
357         (vlshr<mode>3): Ditto.
358         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
359         predicate.
360         (imm_for_neon_rshift_operand): Ditto.
361         (imm_lshift_or_reg_neon): Ditto.
362         (imm_rshift_or_reg_neon): Ditto.
363
364         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
365
366 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
367
368         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
369         builtin calls even if likelyvalue is not CONSTANT.
370         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
371         Return get_value_for_expr of first operand
372         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
373         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
374         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
375         their non-checking counterparts.
376         (call_may_clobber_ref_p_1): Likewise.
377         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
378         like their non-checking counterparts.
379         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
380         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
381         like their non-checking counterparts.
382         (find_func_clobbers): Likewise.
383         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
384         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
385
386         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
387         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
388         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
389         of base type reference as argument.
390         (resolve_addr_in_expr): Likewise.  Fix keep computation.
391         (convert_descriptor_to_signed): Renamed to...
392         (convert_descriptor_to_mode): ... this.  For wider types convert
393         to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
394         untyped.
395         (typed_binop): New function.
396         (scompare_loc_descriptor, ucompare_loc_descriptor,
397         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
398         default to unsigned type instead of signed.
399
400         PR debug/47858
401         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
402         (gimple_build_debug_source_bind_stat): New prototype.
403         (gimple_build_debug_source_bind): Define.
404         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
405         gimple_debug_source_bind_get_value,
406         gimple_debug_source_bind_get_value_ptr,
407         gimple_debug_source_bind_set_var,
408         gimple_debug_source_bind_set_value): New inlines.
409         * gimple.c (gimple_build_debug_source_bind_stat): New function.
410         * gimple-pretty-print.c (dump_gimple_debug): Handle
411         GIMPLE_DEBUG_SOURCE_BIND.
412         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
413         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
414         * tree-parloops.c (eliminate_local_variables,
415         separate_decls_in_region): Likewise.
416         (separate_decls_in_region_debug): Renamed from
417         separate_decls_in_region_debug_bind.  Handle
418         gimple_debug_source_bind_p.
419         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
420         prototypes.
421         (DECL_HAS_DEBUG_ARGS_P): Define.
422         (struct tree_function_decl): Add has_debug_args_flag field.
423         * tree.c (debug_args_for_decl): New variable.
424         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
425         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
426         (rewrite_debug_stmt_uses): New function.
427         (rewrite_stmt): Use it to rewrite debug stmt uses.
428         * rtl.def (DEBUG_PARAMETER_REF): New.
429         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
430         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
431         DEBUG_PARAMETER_REF.
432         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
433         * print-rtl.c (print_rtx): Likewise.
434         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
435         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
436         debug stmts in the first bb.
437         * tree-inline.c (remap_ssa_name): If remapping default def
438         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
439         a source bind debug stmt.
440         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
441         (maybe_move_debug_stmts_to_successors): Likewise.
442         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
443         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
444         debug args vector from old_decl to new_decl.
445         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
446         or modified parameters, add debug bind stmts before call
447         setting DEBUG_EXPR_DECL which is remembered in debug args
448         vector.
449         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
450         on DECL_DEBUG_EXPRs from debug args vector.
451         (expand_debug_source_expr): New function.
452         (expand_debug_locations): Use it for source bind insns.
453         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
454         * var-tracking.c (prepare_call_arguments): Add debug args
455         to call_arguments if any.
456         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
457         output_loc_operands, output_loc_operands_raw,
458         resolve_addr_in_expr, compare_loc_operands): Handle
459         DW_OP_GNU_parameter_ref.
460         (get_ref_die_offset, parameter_ref_descriptor): New functions.
461         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
462         (gen_subprogram_die): Handle parameters identified by
463         DEBUG_PARAMETER_REF.
464
465 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
466
467         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
468         * doc/install.texi (Configuration): Document --with-tls.
469         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
470         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
471         (arm_tls_descseq_addr): New.
472         (legitimize_tls_address): Add tlsdesc support.
473         (arm_cannot_copy_insn_p): Check for tlscall.
474         (arm_emit_tls_decoration): Likewise.
475         * config/arm/arm.h (TARGET_GNU2_TLS): New.
476         (OPTION_DEFAULT_SPECS): Add with-tls support.
477         * config/arm/arm.md (R1_REGNUM): Define.
478         (tlscall): New.
479         * config/arm/arm.opt (tls_type): New enumeration type and values.
480         (mtls-dialect): New switch.
481         * config/arm/arm-opts.h (enum tls_type): New.
482
483 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
484
485         * attribs.c (register_attribute): Added assert to check that all
486         attribute specs are registered with a name that is not empty and
487         does not start with '_'.
488         (decl_attributes): Avoid the lookup of the "naked" attribute spec
489         if the function has no attributes.
490         * tree.c (is_attribute_with_length_p): Removed.
491         (is_attribute_p): Removed.
492         (private_is_attribute_p): New.  
493         (private_lookup_attribute): New.
494         (lookup_attribute): Removed.
495         (lookup_ident_attribute): New.
496         (remove_attribute): Require the first argument to be in the form
497         'text', not '__text__'.  Updated asserts.
498         (merge_attributes): Use lookup_ident_attributes instead of
499         lookup_attribute.
500         (merge_dllimport_decl_attributes): Use remove_attribute.
501         (attribute_list_contained): Likewise.
502         (attribute_list_equal): Immediately return 1 if the arguments are
503         identical pointers.
504         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
505         'int'.  Require the first argument to be in the form 'text', not
506         '__text__'.  Require the second argument to be an identifier.
507         (lookup_attribute): Made inline.  Require the first argument to be
508         in the form 'text', not '__text__'.
509         (private_is_attribute_p, private_lookup_attribute): New.
510         Updated comments.
511         
512 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
513
514         * builtins.c: Add sync_ or SYNC__ to builtin names.
515         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
516         * omp-low.c: Add sync_ or SYNC__ to builtin names.
517
518 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
519
520         PR target/33049
521         * config/avr/avr.md (extzv): New expander.
522         (*extzv): New insn.
523         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
524         * config/avr/constraints.md (C04): New constraint.
525         * doc/md.texi (Machine Constraints): Document it.
526
527 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
528
529         PR middle-end/49489
530         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
531         unsignedp argument instead of 1 for clrsb_optab.
532         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
533         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
534         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
535         * optabs.c (widen_leading): Call widen_operand and expand_unop
536         with 0 as unsignedp argument instead of 1 for clrsb_optab.
537         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
538
539 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
540
541         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
542
543 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
544
545         * gensupport.c (add_define_attr): New static function.
546         (is_predicable): Allow multi-alternative lists for the "predicable"
547         attribute.
548         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
549         (process_one_cond_exec): Call alter_attrs_for_insn.
550         * doc/md.texi (Defining Attributes): Mention some standard names.
551         (Conditional Execution): Update documentation for "predicable".
552
553         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
554         __builtin_clrsbll): Document.
555         * doc/rtl.texi (clrsb): New entry.
556         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
557         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
558         (expand_unop): Handle clrsb_optab.
559         (init_optabs): Initialize it.
560         * optabs.h (enum optab_index): New entry OTI_clrsb.
561         (clrsb_optab): Define.
562         * genopinit.c (optabs): Add an entry for it.
563         * builtins.c (expand_builtin): Handle clrsb builtin functions.
564         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
565         BUILT_IN_CLRSBLL): New.
566         * rtl.def (CLRSB): New code.
567         * dwarf2out.c (mem_loc_descriptor): Handle it.
568         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
569         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
570         and popcount.
571         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
572         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
573         (__ctzDI2): Move declaration.
574         * config/bfin/bfin.md (clrsbsi2): New expander.
575         (signbitssi2): Use the CLRSB rtx.
576         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
577         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
578
579 2011-06-21  Richard Guenther  <rguenther@suse.de>
580
581         * ipa-inline-transform.c (inline_transform): Fix previous change.
582
583 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
584
585         PR tree-optimization/49478
586         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
587         with constant operand.
588
589 2011-06-21  Richard Guenther  <rguenther@suse.de>
590
591         * ipa-inline-transform.c (inline_transform): Fix typo.
592
593 2011-06-21  Richard Guenther  <rguenther@suse.de>
594
595         PR tree-optimization/49483
596         * tree-vect-stmts.c (vectorizable_assignment): Also handle
597         VIEW_CONVERT_EXPR conversions.
598
599 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
600
601         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
602         * config/avr/avr-tables.opt: New file (generated).
603         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
604         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
605         avr-mcus.def.
606         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
607         (avr_option_override): Don't process -mmcu= argument here.  Set
608         avr_current_device using avr_mcu_index.
609         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
610         * config/avr/avr.opt (mmcu=): Use Enum.
611         * config/avr/t-avr (avr-devices.o): Update dependencies.
612         ($(srcdir)/config/avr/avr-tables.opt): New.
613         * target.def (help): Remove.
614         * doc/tm.texi.in (TARGET_HELP): Remove.
615         * doc/tm.texi: Regenerate.
616         * opts.c: Don't include target.h.
617         (common_handle_option): Don't call targetm.help.
618         * system.h (TARGET_HELP): Poison.
619         * Makefile.in (opts.o): Update dependencies.
620
621 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
622
623         * config/usegld.h: New file.
624         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
625         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
626         (LIB_SPEC): Likewise.  Search /lib.
627         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
628         (RDYNAMIC_SPEC): Handle GNU ld.
629         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
630         Define.
631         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
632         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
633         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
634         (STACK_CHECK_STATIC_BUILTIN): Define.
635         * config/sol2.opt (compat-bsd): Remove.
636         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
637         * config/sol2-bi.h: New file.
638         * config/sol2-gld.h: Remove.
639         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
640         (NO_DBX_BNSYM_ENSYM): Remove.
641         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
642         (STACK_CHECK_STATIC_BUILTIN): Remove.
643         Test USE_GLD instead of TARGET_GNU_LD.
644         * config/i386/sol2-10.h: Rename to ...
645         * config/i386/sol2-bi.h .. this.
646         (SUBTARGET_EXTRA_SPECS): Redefine.
647         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
648         (MULTILIB_DEFAULTS): Remove.
649         (DEFAULT_ARCH32_P): Define.
650         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
651         (ARCH64_SUBDIR): Define.
652         Test USE_GLD instead of TARGET_GNU_LD.
653         (I386_EMULATION): Rename to ...
654         (ARCH32_EMULATION): ... this.
655         (X86_64_EMULATION): Rename to ...
656         (ARCH64_EMULATION): ... this.
657         (TARGET_LD_EMULATION): Remove.
658         (LINK_ARCH_SPEC): Remove.
659         * config/i386/sol2-gas.h: Remove.
660         * config/i386/t-sol2-10: Rename to ...
661         * config/i386/t-sol2-64: ... this.
662         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
663         (AS_SPARC64_FLAG): Define.
664         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
665         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
666         depending on TARGET_CPU_DEFAULT.
667         (CPP_CPU_SPEC): Redefine.
668         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
669         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
670         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
671         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
672         ASM_ARCH_DEFAULT_SPEC): Redefine.
673         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
674         LINK_ARCH_DEFAULT_SPEC.
675         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
676         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
677         (ARCH64_SUBDIR): Define.
678         (LINK_ARCH64_SPEC): Redefine.
679         (CC1_SPEC): Redefine.
680         (OPTION_DEFAULT_SPECS): Redefine.
681         (MULTILIB_DEFAULTS): Define.
682         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
683         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
684         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
685         (NO_DBX_BNSYM_ENSYM): Remove.
686         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
687         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
688         (TARGET_ASM_NAMED_SECTION): Likewise.
689         (STACK_CHECK_STATIC_BUILTIN): Remove.
690         * config/sparc/sol2-bi.h: Remove.
691         * config/sparc/sol2-gas-bi.h: Remove.
692         * config/sparc/sol2-gas.h: Remove.
693         * config/sparc/sol2-gld-bi.h: Remove.
694         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
695         common parts ...
696         (*-*-solaris2*): ... here.
697
698 2011-06-21  Christian Bruel  <christian.bruel@st.com>
699
700         PR other/43564
701         * ipa-inline.c (can_inline_edge_p): Check
702         !DECL_DISREGARD_INLINE_LIMITS.
703
704 2011-06-21  Christian Bruel  <christian.bruel@st.com>
705
706         PR middle-end/49139
707         * cgraphunit.c (process_function_and_variable_attributes): warn when
708         always_inline functions that are not inline.
709         * ipa-inline-transform.c (inline_transform): Always call
710         optimize_inline.
711         * tree-inline.c (tree_inlinable_function_p): Use error instead
712         of sorry.
713         (expand_call_inline): Likewise.
714
715 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
716
717         * Makefile.in (dg_target_exps): Set.
718         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
719         instead of 7, try to divide it more evenly.
720
721 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
722
723         PR i386/49089
724         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
725         (avx256_split_unaligned_store): New definition.
726         (ix86_option_override_internal): Enable avx256 unaligned load/store
727         splitting only when avx256_split_unaligned_load/store is set.
728
729 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
730
731         * regrename.c (scan_rtx_reg): Handle the case where we write to an
732         open chain in a smaller mode without failing the entire block.
733
734 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
735
736         PR middle-end/47725
737         * combine.c (cant_combine_insn_p): Don't check zero/sign
738         extended hard registers.
739
740 2011-06-21  Alan Modra  <amodra@gmail.com>
741
742         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
743         CONST high part large-toc address.
744         (rs6000_tls_referenced_p): Make static.
745         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
746
747 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
748
749         PR middle-end/47725
750         * combine.c (cant_combine_insn_p): Check zero/sign extended
751         hard registers.
752
753 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
754
755         PR target/49385
756         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
757         one of the operands is a register.
758
759 2011-06-20  Kai Tietz  <ktietz@redhat.com>
760
761         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
762         operations in combination with binary and.
763
764 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
765
766         * regrename.c (do_replace): Don't update notes.
767
768 2011-06-20  Alan Modra  <amodra@gmail.com>
769
770         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
771         of toc-relative address in CONST.
772         (rs6000_delegitimize_address): Recognize changed address.
773         (rs6000_legitimize_reload_address): Likewise.
774         (rs6000_emit_move): Don't force these constants to memory.
775         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
776         toc-relative address in CONST.
777         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
778         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
779
780 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
781
782         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
783         (count_trailing_zeros): Likewise.
784
785 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
786
787         PR other/49325
788         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
789         .init_array can be used with .ctors on targets.
790         * configure: Regenerated.
791
792 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
793
794         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
795         if the element type is volatile.
796
797 2011-06-18  Jan Hubicka  <jh@suse.cz>
798
799         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
800         extra name aliases.
801         (lto_symtab_resolve_can_prevail_p): Likewise.
802         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
803         * cgraphbuild.c (record_reference): Remove extra body alias code.
804         (mark_load): Likewise.
805         (mark_store): Likewise.
806         * cgraph.h (varpool_node): Remove extra_name filed;
807         add alias_of and extraname_alias.
808         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
809         (varpool_alias_aliased_node): New inline function.
810         (varpool_variable_node): New function.
811         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
812         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
813         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
814         (input_varpool_node): Likewise.
815         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
816         (varpool_externally_visible_p): Remove extra body alias code.
817         (function_and_variable_visibility): Likewise.
818         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
819         (ipa_pta_execute): Use it.
820         * varpool.c (varpool_remove_node): Remove extra name alias code.
821         (varpool_mark_needed_node): Likewise.
822         (varpool_analyze_pending_decls): Analyze aliases.
823         (assemble_aliases): New functoin.
824         (varpool_assemble_decl): Use it.
825         (varpool_create_variable_alias): New function.
826         (varpool_extra_name_alias): Rewrite.
827         (varpool_for_node_and_aliases): New function.
828
829 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
830
831         PR target/49411
832         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
833         last_arg_constant and last argument doesn't match its predicate,
834         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
835         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
836         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
837         spelling of error message.
838         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
839         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
840         const_0_to_255_operand instead of const_int_operand.
841
842         Revert:
843         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
844
845         * config/i386/sse.md (blendbits): Remove mode attribute.
846         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
847         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
848         Check integer value of operand 3 in insn constraint.
849
850 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
851
852         PR rtl-optimization/48542
853         * reload.c (find_equiv_reg): Stop looking when finding a
854         setjmp-type call.
855         * reload1.c (reload_as_needed): Invalidate all reload
856         registers when crossing a setjmp-type call.
857
858 2011-06-16  Jeff Law  <law@redhat.com>
859
860         * tree-ssa-threadupdate.c (struct redirection_data): New field
861         intermediate_edge.
862         (THREAD_TARGET2): Define.
863         (redirection_data_eq): Also check that the intermediate edge is equal.
864         (lookup_redirection_data): Drop useless argument.  Extract the
865         outgoing_edge and intermediate edge from E.  Callers updated.
866         (copy_phi_args, update_destination_phis): New functions.
867         (fix_duplicate_block_edges): Likewise.
868         (create_edge_and_update_destination_phis): Duplicate all the edges
869         hung off e->aux.  Use copy_phi_args.
870         (create_duplicates): Use fix_duplicate_block_edges.
871         (fixup_template_block): Likewise.
872         (redirect_edges): If necessary, redirect the joiner block's incoming
873         edge to the duplicate of the joiner block.
874         (thread_block): Don't muck up loops when threading through a joiner
875         block.
876         (thread_through_loop_header): Handle threading through a joiner block.
877         (mark_threaded_blocks, register_jump_thread): Likewise.
878         * tree-flow.h (register_jump_thread): Add new argument.  Callers
879         updated.
880         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
881         (thread_across_edge): Handle threading through a joiner block.
882
883 2011-06-16  Martin Jambor  <mjambor@suse.cz>
884
885         PR tree-optimization/49343
886         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
887         calculate offset, provide 2nd operand for the new COMPONENT_REF.
888
889 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
890
891         * config/darwin-protos.h (machopic_select_rtx_section): Move to
892         inside RTX_CODE ifdef.
893
894 2011-06-16  Tom de Vries  <tom@codesourcery.com>
895
896         PR target/45098
897         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
898         Disallow NULL pointer for pointer arithmetic.
899
900 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
901
902         PR target/49398
903         Revert.
904         2011-06-10  Wei Guozhi  <carrot@google.com>
905
906         PR target/45335
907         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
908         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
909         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
910         related peephole2.
911         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
912         related peephole2.
913         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
914         (arm_legitimate_ldrd_p): New prototype.
915         (arm_output_ldrd): New prototype.
916         * config/arm/arm.c (arm_check_ldrd_operands): New function.
917         (arm_legitimate_ldrd_p): New function.
918         (arm_output_ldrd): New function.
919
920 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
921
922         PR middle-end/46500
923         * doc/tm.texi.in: Update Copyright date.
924         * doc/tm.texi: Regenerate.
925         * targhooks.c (default_setup_incoming_varargs): Replace
926         CUMULATIVE_ARGS* argument type with cumulative_args_t.
927         (default_pretend_outgoing_varargs_named): Likewise.
928         (hook_pass_by_reference_must_pass_in_stack): Likewise.
929         (hook_callee_copies_named): Likewise.
930         (default_function_arg_advance): Likewise.
931         (default_function_arg): Likewise.
932         (default_function_incoming_arg): Likewise.
933         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
934         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
935         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
936         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
937         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
938         * targhooks.h (default_setup_incoming_varargs): Likewise.
939         (default_pretend_outgoing_varargs_named): Likewise.
940         (hook_pass_by_reference_must_pass_in_stack): Likewise.
941         (hook_callee_copies_named): Likewise.
942         (default_function_arg_advance): Likewise.
943         (default_function_arg): Likewise.
944         (default_function_incoming_arg): Likewise.
945         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
946         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
947         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
948         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
949         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
950         * target.def (pass_by_reference): Likewise.
951         (setup_incoming_varargs, strict_argument_naming): Likewise.
952         (pretend_outgoing_varargs_named, callee_copies): Likewise.
953         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
954         (function_incoming_arg): Likewise.
955         * target.h: Don't include "tm.h" .
956         (cumulative_args_t): New typedef.
957         [GCC_TM_H] (get_cumulative_args): New static inline function.
958         [GCC_TM_H] (pack_cumulative_args): Likewise.
959         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
960         argument type with cumulative_args_t.
961         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
962         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
963         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
964         (frv_arg_partial_bytes, frv_function_arg): Likewise.
965         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
966         (frv_function_arg_1): Likewise.
967         * config/s390/s390.c (s390_pass_by_reference): Likewise.
968         (s390_function_arg_advance, s390_function_arg): Likewise.
969         * config/m32c/m32c.c (m32c_function_arg): Likewise.
970         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
971         (m32c_strict_argument_naming): Likewise.
972         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
973         (spu_function_arg_advance): Likewise.
974         (spu_setup_incoming_varargs): Likewise.  Make static.
975         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
976         Remove prototype.
977         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
978         CUMULATIVE_ARGS* argument type with cumulative_args_t.
979         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
980         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
981         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
982         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
983         (mep_pass_by_reference, mep_function_arg): Likewise.
984         (mep_function_arg_advance): Likewise.
985         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
986         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
987         (m32r_function_arg, m32r_function_arg_advance): Likewise.
988         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
989         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
990         (ix86_function_arg, ix86_pass_by_reference): Likewise.
991         (ix86_setup_incoming_varargs): Likewise.
992         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
993         (sh_strict_argument_naming): Likewise.
994         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
995         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
996         (sh_function_arg_advance, sh_function_arg): Likewise.
997         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
998         (pdp11_function_arg_advance): Likewise.
999         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1000         Likewise.
1001         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1002         * config/avr/avr.c (avr_function_arg): Likewise.
1003         (avr_function_arg_advance): Likewise.
1004         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1005         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1006         (xtensa_function_arg_1): Likewise.
1007         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1008         Likewise.
1009         (xstormy16_function_arg): Likewise.
1010         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1011         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1012         (fr30_function_arg_advance): Likewise.
1013         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1014         (lm32_function_arg, lm32_function_arg_advance): Likewise.
1015         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1016         (moxie_function_arg, moxie_function_arg_advance): Likewise.
1017         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1018         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1019         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1020         (cris_function_arg, cris_function_incoming_arg): Likewise.
1021         (cris_function_arg_advance, cris_function_arg_1): Likewise.
1022         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1023         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1024         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1025         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1026         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1027         (mn10300_arg_partial_bytes): Likewise.
1028         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1029         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1030         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1031         (ia64_function_arg_1): Likewise.
1032         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1033         (m68k_function_arg): Likewise.
1034         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1035         (rs6000_function_arg, setup_incoming_varargs): Likewise.
1036         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1037         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1038         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1039         (picochip_arg_advance): Likewise.
1040         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1041         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1042         (mcore_function_arg_advance): Likewise.
1043         * config/score/score.c (score_pass_by_reference): Likewise.
1044         (score_function_arg_advance): Likewise.
1045         (score_arg_partial_bytes): Likewise.  Make static.
1046         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1047         * config/arm/arm.c (arm_arg_partial_bytes): Replace
1048         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1049         (arm_function_arg, arm_function_arg_advance): Likewise.
1050         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1051         * config/pa/pa.c (pa_pass_by_reference): Likewise.
1052         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1053         (pa_function_arg): Likewise.
1054         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1055         (mips_function_arg, mips_function_arg_advance): Likewise.
1056         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1057         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1058         * config/vax/vax.c (vax_function_arg): Likewise.
1059         (vax_function_arg_advance): Likewise.
1060         * config/h8300/h8300.c (h8300_function_arg): Likewise.
1061         (h8300_function_arg_advance): Likewise.
1062         * config/v850/v850.c (v850_pass_by_reference): Likewise.
1063         (v850_strict_argument_naming, v850_function_arg): Likewise.
1064         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1065         (v850_setup_incoming_varargs): Likewise.
1066         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1067         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1068         (mmix_function_arg, mmix_pass_by_reference): Likewise.
1069         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1070         with const void *.
1071         * config/bfin/bfin.c (setup_incoming_varargs): Replace
1072         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1073         (bfin_function_arg_advance, bfin_function_arg): Likewise.
1074         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1075         * calls.c (emit_call_1): Change type of args_so_far to
1076         cumulative_args_t.  Changed all callers.
1077         (initialize_argument_information): Likewise.
1078         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1079         * dse.c (get_call_args): Likewise.
1080         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1081         * function.c (pass_by_reference, reference_callee_copied): Likewise.
1082         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1083         New member args_so_far_v.  Changed all users.
1084         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1085         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1086         * config/mips/mips.c (mips_output_args_xfer): Likewise.
1087         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1088         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1089         * config/microblaze/microblaze.c (microblaze_expand_prologue):
1090         Likewise.
1091         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1092         m32r_pass_by_reference.
1093
1094 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
1095
1096         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1097         argument to be a VEC of statements.
1098         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1099         assert that pattern statements have to have their vector type set.
1100         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1101         Change the first argument to be a VEC of statements.  Update
1102         documentation.
1103         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1104         (vect_handle_widen_mult_by_const): New function.
1105         (vect_recog_widen_mult_pattern):  Change the first argument to be a
1106         VEC of statements.  Update documentation.  Check that the constant is
1107         INTEGER_CST.  Support multiplication by a constant that fits an
1108         intermediate type - call vect_handle_widen_mult_by_const.
1109         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1110         call.  Handle additional pattern statements if necessary.
1111
1112 2011-06-16  Nick Clifton  <nickc@redhat.com>
1113
1114         PR target/49427
1115         * config.gcc: Set cpu_type to v850 for any V850 architecture.
1116         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1117         md_file, extra_modes, out_file and extra_options are these are all
1118         deduced from cpu_type.
1119
1120 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1121
1122         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1123         truncation mask to 63.
1124
1125 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1126
1127         PR target/49313
1128         PR target/29524
1129         * longlong.h: Add AVR support:
1130         (count_leading_zeros): New macro.
1131         (count_trailing_zeros): New macro.
1132         (COUNT_LEADING_ZEROS_0): New macro.
1133         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1134         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1135         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1136         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1137         (LIB2FUNCS_EXCLUDE): Add _clz.
1138         * config/avr/libgcc.S (XCALL): Move up in file.
1139         (XJMP): New C Macro.
1140         (DEFUN): New asm macro.
1141         (ENDF): New asm macro.
1142         (__ffssi2): New function.
1143         (__ffshi2): New function.
1144         (__loop_ffsqi2): New function.
1145         (__ctzsi2): New function.
1146         (__ctzhi2): New function.
1147         (__clzdi2): New function.
1148         (__clzsi2): New function.
1149         (__clzhi2): New function.
1150         (__paritydi2): New function.
1151         (__paritysi2): New function.
1152         (__parityhi2): New function.
1153         (__parityqi2): New function.
1154         (__popcounthi2): New function.
1155         (__popcountsi2): New function.
1156         (__popcountdi2): New function.
1157         (__popcountqi2): New function.
1158         (__bswapsi2): New function.
1159         (__bswapdi2): New function.
1160         (__ashldi3): New function.
1161         (__ashrdi3): New function.
1162         (__lshrdi3): New function.
1163         Fix suspicous lines.
1164
1165 2011-06-16  Richard Guenther  <rguenther@suse.de>
1166
1167         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1168         the same as x != 0.
1169         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1170         to (bool) X & 1.
1171         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1172         equality compares against zero for the lower bit.
1173
1174 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
1175
1176         PR tree-optimization/49419
1177         * tree-vrp.c (execute_vrp): Call init_range_assertions
1178         before estimate_numbers_of_iterations, call
1179         free_number_of_iterations_estimates before calling
1180         remove_range_assertions.
1181
1182 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1183
1184         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1185         (struct partial_schedule): Add rows_length field.
1186         (verify_partial_schedule): Check rows_length.
1187         (ps_insert_empty_row): Handle rows_length.
1188         (create_partial_schedule): Likewise.
1189         (free_partial_schedule): Likewise.
1190         (reset_partial_schedule): Likewise.
1191         (create_ps_insn): Remove rest_count argument.
1192         (remove_node_from_ps): Update rows_length.
1193         (add_node_to_ps): Update rows_length and call create_ps_insn
1194         without passing row_rest_count.
1195         (rotate_partial_schedule): Update rows_length.
1196
1197 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1198
1199         * ddg.c (add_intra_loop_mem_dep): New function.
1200         (build_intra_loop_deps): Call it.
1201
1202 2011-06-13  Jeff Law  <law@redhat.com>
1203
1204         * df-problems.c (df_lr_local_compute): Manually CSE
1205         PIC_OFFSET_TABLE_REGNUM.
1206         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1207         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1208
1209 2011-06-13  Jan Hubicka  <jh@suse.cz>
1210
1211         * cgraphunit.c (handle_alias_pairs): New function.
1212         (cgraph_finalize_compilation_unit): Use it.
1213         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1214         as externally visible.
1215
1216 2011-06-15  Richard Guenther  <rguenther@suse.de>
1217
1218         * expr.c (expand_expr_real_2): Reduce all integral types to
1219         bitfield precision.
1220         (expand_expr_real_1): Likewise.
1221
1222 2011-06-15  Martin Jambor  <mjambor@suse.cz>
1223
1224         PR tree-optimization/48613
1225         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1226         ipa_node_params_vector is NULL.
1227
1228 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
1229
1230         PR debug/49382
1231         * dwarf2out.c (dw_loc_list_node): Add force field.
1232         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1233         location in the list, even if it is modified before first real insn.
1234         (output_loc_list): Emit empty ranges with force flag set.
1235         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1236
1237 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
1238
1239         PR target/49349
1240         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1241         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
1242         above a fence.  Update comments.
1243         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1244         placed just above it.  Do not allow NULL place_to_insert.
1245
1246 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
1247
1248         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1249         (slpeel_tree_peel_loop_to_edge): Don't call
1250         remove_dead_stmts_from_loop.
1251         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1252         remove irrelevant pattern statements.  For irrelevant statements
1253         check if it is the last statement of a detected pattern, use
1254         corresponding pattern statement instead.
1255         (destroy_loop_vec_info): No need to remove pattern statements,
1256         only free stmt_vec_info.
1257         (vect_transform_loop): For irrelevant statements check if it is
1258         the last statement of a detected pattern, use corresponding
1259         pattern statement instead.
1260         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1261         pattern statements.  Set basic block for the new statement.
1262         (vect_pattern_recog): Update documentation.
1263         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1264         operands of pattern statements.
1265         (vectorizable_call): Fix printing.  In case of a pattern statement
1266         use the lhs of the original statement when creating a dummy
1267         statement to replace the original call.
1268         (vect_analyze_stmt): For irrelevant statements check if it is
1269         the last statement of a detected pattern, use corresponding
1270         pattern statement instead.
1271         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1272         statements use gsi of the original statement.
1273
1274 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1275
1276         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1277         common/common-target-def.h.
1278         * target.def (default_target_flags, handle_option,
1279         supports_split_stack, optimization_table, init_struct,
1280         except_unwind_info, unwind_tables_default, have_named_sections):
1281         Move to common/common-target.def.
1282         * target.h (enum opt_levels, struct default_options): Move to
1283         common/common-target.h.
1284         * targhooks.c (default_except_unwind_info,
1285         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1286         default_target_handle_option, empty_optimization_table): Move to
1287         common/common-targhooks.c.
1288         * targhooks.h (default_except_unwind_info,
1289         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1290         default_target_handle_option, empty_optimization_table): Move to
1291         common/common-targhooks.h.
1292         * common/common-target-def.h: Include common/common-targhooks.h.
1293         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1294         defined.
1295         * common/common-target.def (handle_option, option_init_struct,
1296         option_optimization_table, default_target_flags,
1297         except_unwind_info, supports_split_stack, unwind_tables_default,
1298         have_named_sections): Move from target.def.
1299         (HOOK_PREFIX): Undefine at end of file.
1300         * common/common-target.h: Include input.h.
1301         (enum opt_levels, struct default_options): Move from target.h.
1302         * common/common-targhooks.c, common/common-targhooks.h: New.
1303         * config.gcc (target_has_targetm_common): Default to yes.
1304         (moxie*): Set target_has_targetm_common=no.
1305         (hppa*-*-*): Don't set target_has_targetm_common=yes.
1306         * doc/tm.texi: Regenerate.
1307         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1308         (C_TARGET_DEF_H): Add common/common-targhooks.h.
1309         (GCC_OBJS): Remove vec.o.
1310         (OBJS): Remove hooks.o and vec.o.
1311         (OBJS-libcommon-target): Add vec.o, hooks.o and
1312         common/common-targhooks.o.
1313         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1314         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1315         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1316         cfglayout.o, $(out_object_file), $(common_out_object_file)):
1317         Update dependencies.
1318         (common/common-targhooks.o): New.
1319         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
1320         * common/config/pa/pa-common.c: Include more headers.  Take
1321         copyright dates from pa.c.
1322         (pa_option_optimization_table, pa_handle_option,
1323         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1324         TARGET_HANDLE_OPTION): Move from pa.c.
1325         * common/config/alpha/alpha-common.c,
1326         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1327         common/config/bfin/bfin-common.c,
1328         common/config/cris/cris-common.c,
1329         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1330         common/config/h8300/h8300-common.c,
1331         common/config/i386/i386-common.c,
1332         common/config/ia64/ia64-common.c,
1333         common/config/iq2000/iq2000-common.c,
1334         common/config/lm32/lm32-common.c,
1335         common/config/m32c/m32c-common.c,
1336         common/config/m32r/m32r-common.c,
1337         common/config/m68k/m68k-common.c,
1338         common/config/mcore/mcore-common.c,
1339         common/config/mep/mep-common.c,
1340         common/config/microblaze/microblaze-common.c,
1341         common/config/mips/mips-common.c,
1342         common/config/mmix/mmix-common.c,
1343         common/config/mn10300/mn10300-common.c,
1344         common/config/pdp11/pdp11-common.c,
1345         common/config/picochip/picochip-common.c,
1346         common/config/rs6000/rs6000-common.c,
1347         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1348         common/config/score/score-common.c, common/config/sh/sh-common.c,
1349         common/config/sparc/sparc-common.c,
1350         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1351         common/config/vax/vax-common.c,
1352         common/config/xstormy16/xstormy16-common.c,
1353         common/config/xtensa/xtensa-common.c: New.
1354         * config/alpha/alpha.c: Include common/common-target.h.
1355         (alpha_option_optimization_table, alpha_handle_option,
1356         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1357         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1358         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1359         * config/arm/arm.c (arm_option_optimization_table,
1360         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1361         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1362         arm-common.c.
1363         * config/avr/avr.c (avr_option_optimization_table,
1364         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1365         to avr-common.c.
1366         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1367         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1368         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1369         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1370         * config/cris/cris.c (cris_option_optimization_table,
1371         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1372         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1373         cris-common.c.
1374         * config/fr30/fr30.c (fr30_option_optimization_table,
1375         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1376         to fr30-common.c.
1377         * config/frv/frv.c (frv_option_optimization_table,
1378         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1379         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1380         * config/h8300/h8300.c (h8300_option_optimization_table,
1381         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1382         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1383         * config/i386/i386-protos.h (ix86_handle_option): Declare.
1384         * config/i386/i386.c: Include common/common-target.h.
1385         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1386         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1387         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1388         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1389         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1390         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1391         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1392         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1393         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1394         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1395         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1396         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1397         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1398         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1399         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1400         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1401         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1402         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1403         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1404         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1405         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1406         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1407         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1408         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1409         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1410         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1411         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1412         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1413         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1414         ix86_option_optimization_table, ix86_option_init_struct,
1415         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1416         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1417         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1418         i386-common.c.
1419         * config/i386/t-i386 (i386.o): Update dependencies.
1420         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1421         * config/ia64/ia64.c (ia64_option_optimization_table,
1422         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1423         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1424         ia64_handle_option): Move to ia64-common.c.
1425         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1426         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1427         * config/lm32/lm32.c (lm32_option_optimization_table,
1428         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1429         to lm32-common.c.
1430         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1431         m32c-common.c.
1432         * config/m32r/m32r.c (m32r_option_optimization_table,
1433         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1434         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1435         m32r_handle_option): Move to m32r-common.c.
1436         (m32r_memory_move_cost): Remove comment referring to
1437         TARGET_HANDLE_OPTION.
1438         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1439         Move to m68k-common.c.
1440         * config/mcore/mcore.c (mcore_option_optimization_table,
1441         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1442         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1443         * config/mep/mep.c (mep_option_optimization_table,
1444         mep_handle_option, TARGET_HANDLE_OPTION,
1445         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1446         Move to mep-common.c.
1447         * config/microblaze/microblaze.c
1448         (microblaze_option_optimization_table,
1449         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1450         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1451         * config/mips/mips.c (mips_handle_option,
1452         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1453         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1454         mips-common.c.
1455         * config/mmix/mmix.c (mmix_option_optimization_table,
1456         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1457         Move to mmix-common.c.
1458         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1459         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1460         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1461         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1462         * config/pa/pa.c: Include common/common-target.h.
1463         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1464         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1465         pa_handle_option): Move to pa-common.c.
1466         (pa_option_override): Use targetm_common.except_unwind_info.
1467         (pa_asm_output_mi_thunk, pa_function_section): Use
1468         targetm_common.have_named_sections.
1469         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1470         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1471         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1472         pdp11_handle_option, pdp11_option_init_struct): Move to
1473         pdp11-common.c.
1474         * config/picochip/picochip.c (picochip_option_optimization_table,
1475         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1476         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1477         * config/rs6000/rs6000.c: Include common/common-target.h.
1478         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1479         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1480         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1481         rs6000_handle_option): Move to rs6000-common.c.
1482         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1483         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1484         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1485         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1486         * config/s390/s390.c (processor_flags_table,
1487         s390_option_optimization_table, s390_option_init_struct,
1488         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1489         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1490         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1491         * config/s390/s390.h (processor_flags_table): Declare.
1492         * config/score/score.c (score_option_optimization_table,
1493         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1494         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1495         score_handle_option): Move to score-common.c.
1496         * config/sh/sh.c (sh_option_optimization_table,
1497         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1498         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1499         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1500         * config/sparc/sparc.c: Include common/common-target.h.
1501         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1502         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1503         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1504         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1505         spu_option_init_struct): Move to spu-common.c.
1506         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1507         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1508         * config/v850/v850.c (small_memory_physical_max,
1509         v850_handle_memory_optionn v850_handle_option,
1510         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1511         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1512         v850-common.c.
1513         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1514         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1515         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1516         Move to xtensa-common.c.
1517         * cfglayout.c: Include common/common-target.h.
1518         (fixup_reorder_chain): Use targetm_common.have_named_sections.
1519         * cfgrtl.c: Include common/common-target.h.
1520         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1521         targetm_common.have_named_sections.
1522         * dbxout.c: Include common/common-target.h.
1523         (dbxout_function_end): Use targetm_common.have_named_sections.
1524         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1525         targetm_common.except_unwind_info.
1526         * dwarf2out.c: Include common/common-target.h.
1527         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1528         dwarf2out_begin_prologue, dwarf2out_frame_init,
1529         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1530         targetm_common.except_unwind_info.
1531         * except.c: Include common/common-target.h.
1532         (init_eh, finish_eh_generation,
1533         output_one_function_exception_table): Use
1534         targetm_common.except_unwind_info.
1535         (switch_to_exception_section): Use targetm_common.have_named_sections.
1536         * explow.c: Include common/common-target.h.
1537         * expr.c: Include common/common-target.h.
1538         (build_personality_function): Use targetm_common.except_unwind_info.
1539         * function.c: Include common/common-target.h.
1540         (expand_function_end): Use targetm_common.except_unwind_info.
1541         * haifa-sched.c: Include common/common-target.h.
1542         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1543         * lto-opts.c: Include common/common-target.h instead of target.h.
1544         (lto_reissue_options): Use targetm_common.handle_option.
1545         * opts.c: Include common/common-target.h.
1546         (target_handle_option): Use targetm_common.handle_option.
1547         (init_options_struct): Update comment referring to
1548         targetm.target_option.optimization.  Use
1549         targetm_common.default_target_flags,
1550         targetm_common.unwind_tables_default and
1551         targetm_common.option_init_struct.
1552         (default_options_optimization): Use
1553         targetm_common.option_optimization_table.
1554         (finish_options): Use targetm_common.except_unwind_info,
1555         targetm_common.unwind_tables_default,
1556         targetm_common.have_named_sections and
1557         targetm_common.supports_split_stack.
1558         * toplev.c: Include common/common-target.h.
1559         (process_options): Use targetm_common.have_named_sections.
1560         * tree-tailcall.c: Include common/common-target.h.
1561         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
1562         * tree.c: Include common/common-target.h.
1563         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
1564         * varasm.c: Include common/common-target.h.
1565         (resolve_unique_section, hot_function_section,
1566         default_function_section): Use targetm_common.have_named_sections.
1567
1568 2011-06-14  Easwaran Raman  <eraman@google.com>
1569
1570         PR rtl-optimization/44194
1571         * dse.c: Include tree-flow.h
1572         (insn_info): Add new field non_frame_wild_read.
1573         (group_info): Add new fields escaped_n and escaped_p.
1574         (kill_on_calls): New variable.
1575         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1576         (dse_step0): Initialize kill_on_calls.
1577         (can_escape): New function.
1578         (set_usage_bits): Add additional parameter; record information
1579         about escaped locations.
1580         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
1581         (dse_step2_nospill): Set kill_on_calls based on
1582         group->escaped_n and group->escaped_n.
1583         (add_wild_read): Refactor into...
1584         (reset_active_stores): ... New function, and
1585         (free_read_records): ... New function.
1586         (add_non_frame_wild_read): New function.
1587         (scan_insn): Call add_non_frame_wild_read on non-const calls.
1588         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
1589         (dse_step5_nospill): Call scan_reads_nospill for instructions
1590         marked as non_frame_wild_read.
1591         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
1592
1593 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1594
1595         * common/common-target-def.h, common/common-target.def,
1596         common/common-target.h, common/config/default-common.c,
1597         common/config/pa/pa-common.c: New files.
1598         * Makefile.in (common_out_file, common_out_object_file,
1599         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1600         (OBJS-libcommon-target): Include $(common_out_object_file).
1601         (prefix.o): Update dependencies.
1602         ($(common_out_object_file), common/common-target-hooks-def.h,
1603         s-common-target-hooks-def-h): New.
1604         (s-tm-texi): Also check timestamp on common-target.def.
1605         (build/genhooks.o): Update dependencies.
1606         * config.gcc (common_out_file, target_has_targetm_common): Define.
1607         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1608         TARGET_ALWAYS_STRIP_DOTDOT.
1609         * configure.ac (common_out_object_file): Define.
1610         (common_out_file, common_out_object_file): Substitute.
1611         (common): Create directory.
1612         * configure: Regenerate.
1613         * doc/tm.texi.in (targetm_common): Document.
1614         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1615         * doc/tm.texi: Regenerate.
1616         * genhooks.c (hook_array): Also include common/common-target.def.
1617         * prefix.c (tm.h): Don't include.
1618         (common/common-target.h): Include.
1619         (ALWAYS_STRIP_DOTDOT): Don't define.
1620         (update_path): Use targetm_common.always_strip_dotdot instead of
1621         ALWAYS_STRIP_DOTDOT.
1622         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1623
1624 2011-06-14  David Li  <davidxl@google.com>
1625
1626         * passes.c (execute_function_todo): Remove TODO_dump_func.
1627         (execute_one_pass): Remove TODO_dump_func.
1628         (execute_function_dump): New function.
1629         * tree-vrp.c: Remove TODO_dump_func.
1630         * regrename.c: Remove TODO_dump_func.
1631         * fwprop.c: Remove TODO_dump_func.
1632         * tree-into-ssa.c: Remove TODO_dump_func.
1633         * tree-complex.c: Remove TODO_dump_func.
1634         * tracer.c: Remove TODO_dump_func.
1635         * tree-loop-distribution.c: Remove TODO_dump_func.
1636         * postreload-gcse.c: Remove TODO_dump_func.
1637         * postreload.c: Remove TODO_dump_func.
1638         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1639         * tree-tailcall.c: Remove TODO_dump_func.
1640         * ipa-cp.c: Remove TODO_dump_func.
1641         * final.c: Remove TODO_dump_func.
1642         * tree-emutls.c: Remove TODO_dump_func.
1643         * omp-low.c: Remove TODO_dump_func.
1644         * tree-ssa-dse.c: Remove TODO_dump_func.
1645         * tree-ssa-uncprop.c: Remove TODO_dump_func.
1646         * auto-inc-dec.c: Remove TODO_dump_func.
1647         * reorg.c: Remove TODO_dump_func.
1648         * tree-ssa-copyrename.c: Remove TODO_dump_func.
1649         * tree-ssa-ccp.c: Remove TODO_dump_func.
1650         * compare-elim.c: Remove TODO_dump_func.
1651         * mode-switching.c: Remove TODO_dump_func.
1652         * modulo-sched.c: Remove TODO_dump_func.
1653         * tree-call-cdce.c: Remove TODO_dump_func.
1654         * cse.c: Remove TODO_dump_func.
1655         * web.c: Remove TODO_dump_func.
1656         * tree-stdarg.c: Remove TODO_dump_func.
1657         * lto-streamer-out.c: Remove TODO_dump_func.
1658         * tree-ssa-math-opts.c: Remove TODO_dump_func.
1659         * tree-ssa-dom.c: Remove TODO_dump_func.
1660         * tree-nrv.c: Remove TODO_dump_func.
1661         * loop-init.c: Remove TODO_dump_func.
1662         * gimple-low.c: Remove TODO_dump_func.
1663         * ipa-inline.c: Remove TODO_dump_func.
1664         * tree-ssa-sink.c: Remove TODO_dump_func.
1665         * jump.c: Remove TODO_dump_func.
1666         * ifcvt.c: Remove TODO_dump_func.
1667         * tree-ssa-loop.c: Remove TODO_dump_func.
1668         * recog.c: Remove TODO_dump_func.
1669         * dse.c: Remove TODO_dump_func.
1670         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1671         * matrix-reorg.c: Remove TODO_dump_func.
1672         * tree-eh.c: Remove TODO_dump_func.
1673         * regmove.c: Remove TODO_dump_func.
1674         * function.c: Remove TODO_dump_func.
1675         * tree-vectorizer.c: Remove TODO_dump_func.
1676         * ipa-split.c: Remove TODO_dump_func.
1677         * gcse.c: Remove TODO_dump_func.
1678         * tree-if-conv.c: Remove TODO_dump_func.
1679         * init-regs.c: Remove TODO_dump_func.
1680         * tree-ssa-phiopt.c: Remove TODO_dump_func.
1681         * implicit-zee.c: Remove TODO_dump_func.
1682         * lower-subreg.c: Remove TODO_dump_func.
1683         * bt-load.c: Remove TODO_dump_func.
1684         * tree-dfa.c: Remove TODO_dump_func.
1685         * except.c: Remove TODO_dump_func.
1686         * emit-rtl.c: Remove TODO_dump_func.
1687         * store-motion.c: Remove TODO_dump_func.
1688         * cfgexpand.c: Remove TODO_dump_func.
1689         * tree-cfgcleanup.c: Remove TODO_dump_func.
1690         * cfgcleanup.c: Remove TODO_dump_func.
1691         * tree-ssa-pre.c: Remove TODO_dump_func.
1692         * tree-sra.c: Remove TODO_dump_func.
1693         * tree-mudflap.c: Remove TODO_dump_func.
1694         * tree-ssa-copy.c: Remove TODO_dump_func.
1695         * cfglayout.c: Remove TODO_dump_func.
1696         * tree-ssa-forwprop.c: Remove TODO_dump_func.
1697         * tree-ssa-dce.c: Remove TODO_dump_func.
1698         * ira.c: Remove TODO_dump_func.
1699         * tree-ssa.c: Remove TODO_dump_func.
1700         * integrate.c: Remove TODO_dump_func.
1701         * tree-optimize.c: Remove TODO_dump_func.
1702         * tree-ssa-phiprop.c: Remove TODO_dump_func.
1703         * tree-object-size.c: Remove TODO_dump_func.
1704         * combine.c: Remove TODO_dump_func.
1705         * bb-reorder.c: Remove TODO_dump_func.
1706         * cprop.c: Remove TODO_dump_func.
1707         * var-tracking.c: Remove TODO_dump_func.
1708         * tree-profile.c: Remove TODO_dump_func.
1709         * tree-vect-generic.c: Remove TODO_dump_func.
1710         * reg-stack.c: Remove TODO_dump_func.
1711         * sched-rgn.c: Remove TODO_dump_func.
1712         * tree-ssa-structalias.c: Remove TODO_dump_func.
1713         * tree-switch-conversion.c: Remove TODO_dump_func.
1714         * tree-cfg.c: Remove TODO_dump_func.
1715         * tree-ssa-reassoc.c: Remove TODO_dump_func.
1716         * combine-stack-adj.c: Remove TODO_dump_func.
1717         * dce.c: Remove TODO_dump_func.
1718         * tree-ssanames.c: Remove TODO_dump_func.
1719         * regcprop.c: Remove TODO_dump_func.
1720
1721 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1722
1723         PR middle-end/47364
1724         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1725         and properly handle result not in Pmode.
1726
1727 2011-06-14  Robert Millan  <rmh@gnu.org>
1728
1729         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1730         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1731         `config/linux.h'.
1732
1733         * config/i386/kfreebsd-gnu64.h: New file.
1734         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1735         with `i386/kfreebsd-gnu64.h'.
1736
1737         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1738         (GNU_USER_LINK_EMULATION64): New macros.
1739         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1740         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1741         of hardcoding `elf_i386' and `elf_x86_64'.
1742
1743 2011-06-14  Nick Clifton  <nickc@redhat.com>
1744
1745         PR target/49403
1746         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1747
1748         PR target/49402
1749         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1750
1751 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
1752
1753         PR fortran/49103
1754         * tree.h (DECL_NONSHAREABLE): Define.
1755         (struct tree_decl_common): Change decl_common_unused to
1756         decl_nonshareable_flag.
1757         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1758         Ignore vars with DECL_NONSHAREABLE bit set.
1759         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1760         on stores to automatic aggregate vars.
1761
1762         PR rtl-optimization/49390
1763         Revert:
1764         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
1765
1766         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1767         MEM_ALIAS_SET.
1768
1769 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
1770             Tom de Vries  <tom@codesourcery.com>
1771
1772         PR target/45098
1773         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1774         Document changed semantics.
1775         (max_stmt_executions, max_stmt_executions_int): Declare.
1776         * tree-data-ref.c (estimated_loop_iterations)
1777         (estimated_loop_iterations_int): Move functions...
1778         * tree-ssa-loop-niter.c (estimated_loop_iterations)
1779         (estimated_loop_iterations_int): here.
1780         (record_estimate): Change nb_iterations_upper_bound and
1781         nb_iterations_estimate semantics.
1782         (max_stmt_executions, max_stmt_executions_int): New function.
1783         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1784         (max_stmt_executions_tree): this.
1785         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1786         estimated_loop_iterations_tree.
1787         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1788         max_stmt_executions_int instead of estimated_loop_iterations_int.
1789         * predict.c (predict_loops): Idem.
1790         * tree-parloops.c (parallelize_loops): Idem.
1791         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1792         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1793         (init_omega_for_ddr_1): Idem.
1794         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1795         (loop_prefetch_arrays): Idem
1796         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1797         max_stmt_executions instead of estimated_loop_iterations.
1798         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1799         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1800         instead of nb_iterations_upper_bound.
1801
1802 2011-06-13  Jan Hubicka  <jh@suse.cz>
1803
1804         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1805
1806 2011-06-14  Richard Henderson  <rth@redhat.com>
1807
1808         PR debug/48459
1809         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1810         (based_loc_descr): Assert it's true.
1811         (compute_frame_pointer_to_fb_displacement): Set it, rather than
1812         aborting immediately.
1813
1814 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
1815             Mingfeng Wu  <mingfeng@faraday-tech.com>
1816
1817         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1818
1819 2011-06-13  Jan Hubicka  <jh@suse.cz>
1820
1821         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1822
1823 2011-06-13  Jan Hubicka  <jh@suse.cz>
1824
1825         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1826         similarly to DECL_COMDAT.
1827         * cgraphunit.c (cgraph_analyze_function): Likewise.
1828         * ipa.c (function_and_variable_visibility): Likewise.
1829
1830 2011-06-13  Jan Hubicka  <jh@suse.cz>
1831
1832         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1833         BINFO_VIRTUALS when streaming for ltrans unit.
1834
1835 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
1836
1837         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1838         (movdi_internal64): Same.
1839
1840 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
1841
1842         PR target/44618
1843         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1844         a set of similar patterns, where the MATCH_OPERAND for the function
1845         argument is replaced with individual references to hardware registers.
1846         (save_fpregs_<mode>): Ditto
1847         (restore_gpregs_<mode>): Ditto
1848         (return_and_restore_gpregs_<mode>): Ditto
1849         (return_and_restore_fpregs_<mode>): Ditto
1850         (return_and_restore_fpregs_aix_<mode>): Ditto
1851
1852 2011-06-13  Jan Hubicka  <jh@suse.cz>
1853
1854         * ipa-utils.c (postorder_stack): New structure.
1855         (ipa_reverse_postorder): Handle aliases.
1856
1857 2011-06-13  Jan Hubicka  <jh@suse.cz>
1858
1859         * ipa-inline.c (reset_edge_caches): Walk aliases.
1860         (update_caller_keys): Do not test inlinability of aliases.
1861         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1862         (do_estimate_growth): Fix typo.
1863
1864 2011-06-13  Jan Hubicka  <jh@suse.cz>
1865
1866         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1867         (can_remove_node_now_p): ... here; handle same comdat groups.
1868         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1869         (inline_call): Update use of can_remove_node_now_p.
1870
1871 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1872
1873         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1874         condition to disallow non-identical memory locations.
1875         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1876         preference to bit manipulation instructions.
1877
1878 2011-06-13  Jan Hubicka  <jh@suse.cz>
1879
1880         * cgraph.c (cgraph_for_node_thunks_and_aliases,
1881         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1882         (nonremovable_p): New function.
1883         (cgraph_can_remove_if_no_direct_calls_p): New function.
1884         (used_from_object_file_p): New functoin.
1885         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1886         references from aliases.
1887         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1888         * ipa-inline.c (check_caller_edge): New function.
1889         (want_inline_function_called_once_p): Use it; accept aliases called
1890         once, too.
1891         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1892
1893 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1894
1895         PR target/48454
1896         * config/arm/neon.md (vec_pack_trunc): Set the lengths
1897         correctly for the case with Quad vectors.
1898
1899 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
1900            Ira Rosen  <ira.rosen@linaro.org>
1901
1902         PR tree-optimization/49352
1903         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1904         all, make sure loop_use_stmt after the loop is a def stmt of a used
1905         SSA_NAME that is the only one defined inside of the loop.  Don't
1906         check for COND_EXPR and GIMPLE_BINARY_RHS.
1907         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1908         check_reduction is true.
1909
1910 2011-06-11  Jan Hubicka  <jh@suse.cz>
1911
1912         PR middle-end/49373
1913         * ipa.c (cgraph_externally_visible_p): Check resolution info.
1914
1915 2011-06-11  Jan Hubicka  <jh@suse.cz>
1916
1917         PR middle-end/48836
1918         * ipa-inline-transform.c: Include tree-pass.h
1919         (inline_transform): Set TODO_update_ssa_only_virtuals.
1920         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1921
1922 2011-06-11  Jan Hubicka  <jh@suse.cz>
1923
1924         PR middle-end/49378
1925         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1926         aliases and thunks.
1927
1928 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
1929
1930         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1931         Take number of iterations to peel into account for equally frequent
1932         misalignment values.
1933
1934 2011-06-11  Jan Hubicka  <jh@suse.cz>
1935
1936         * lto-streamer-out.c (produce_symtab): Stream out the newly
1937         represented aliases.
1938
1939 2011-06-11  Jan Hubicka  <jh@suse.cz>
1940
1941         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
1942         varying args.
1943         (ipa_update_after_lto_read): Likewise.
1944         (ipa_write_node_info): Do not sream call_with_var_arguments.
1945         (ipa_read_node_info): Likewise.
1946
1947 2011-06-11  Jan Hubicka  <jh@suse.cz>
1948
1949         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1950
1951 2011-06-11  Jan Hubicka  <jh@suse.cz>
1952
1953         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1954         (lto_symtab_resolve_can_prevail_p): Likewise.
1955         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1956         * cgraph.c (same_body_aliases_done): New global var.
1957         (cgraph_same_body_alias_1): Rename to ...
1958         (cgraph_create_function_alias): ... this one; reorg to new
1959         representation.
1960         (cgraph_same_body_alias): Use cgraph_create_function_alias;
1961         record references when asked to.
1962         (cgraph_add_thunk): Fix formating.
1963         (cgraph_get_node): Kill same body alias code.
1964         (cgraph_node_for_asm): Likewise.
1965         (cgraph_remove_same_body_alias): Remove.
1966         (cgraph_remove_node): Kill same body alias code.
1967         (cgraph_mark_address_taken_node): Mark also the aliased function
1968         as having address taken.
1969         (dump_cgraph_node): Dump same body aliases.
1970         (cgraph_for_node_thunks_and_aliases): Update for new alias
1971         representation.
1972         (cgraph_for_node_and_aliases): Likewise.
1973         * cgraph.h (same_body): Kll pointer.
1974         (same_body_alias): Update comment.
1975         (same_body_aliases_done): Declare.
1976         (cgraph_remove_same_body_alias): Remove declaration.
1977         (cgraph_create_function_alias): Declare.
1978         (cgraph_process_same_body_aliases): Declare.
1979         (cgraph_function_with_gimple_body_p): Check for alias.
1980         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1981         (cgraph_alias_aliased_node): New function.
1982         (cgraph_function_node): Update for new aliases.
1983         (cgraph_function_or_thunk_node): Likewise.
1984         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1985         (inline_call): Remove dead aliases.
1986         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1987         name hack for same body aliases.
1988         (clone_of_p): Look through aliases.
1989         (verify_cgraph_node): Verify aliases.
1990         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1991         (cgraph_process_same_body_aliases): New function.
1992         (process_function_and_variable_attributes): Disable weakref warning on
1993         alias.
1994         (cgraph_analyze_functions): Handle aliases.
1995         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1996         (assemble_thunks): Rename to ...
1997         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1998         (cgraph_expand_function): Remove alias output code.
1999         (cgraph_output_in_order): Skip aliases.
2000         (cgraph_preserve_function_body_p): Aliases don't need preserving.
2001         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2002         (ipa_record_reference): Do not assert on alias references.
2003         (ipa_ref_has_aliases_p): New function.
2004         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2005         (ipa_ref_has_aliases_p): Declare.
2006         * lto-cgraph.c (lto_output_node): Handle aliases.
2007         (input_node): Likewise.
2008         * lto-streamer-out.c (lto_output): Skip aliases.
2009         (produce_symtab): Kill same_body_alias code.
2010         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2011         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2012         * ipa-inline.c (update_caller_keys): Walk aliases.
2013         (inline_small_functions): Fix thinko in previous patch.
2014         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2015         (function_and_variable_visibility): Do not walk same body aliases.
2016         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2017         (ipa_pta_execute): Use it.
2018
2019 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2020
2021         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2022         (*vec_dupv2df): Rename from vec_dupv2df.
2023         (vec_dupv2df): New expander.
2024
2025 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2026
2027         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2028
2029 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2030
2031         * config/i386/i386.md: Use default value in "isa" attribute.
2032         * config/i386/sse.md: Ditto.
2033         * config/i386/mmx.md: Ditto.
2034
2035 2011-06-10  Wei Guozhi  <carrot@google.com>
2036
2037         PR target/45335
2038         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2039         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2040         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2041         related peephole2.
2042         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2043         related peephole2.
2044         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2045         (arm_legitimate_ldrd_p): New prototype.
2046         (arm_output_ldrd): New prototype.
2047         * config/arm/arm.c (arm_check_ldrd_operands): New function.
2048         (arm_legitimate_ldrd_p): New function.
2049         (arm_output_ldrd): New function.
2050
2051 2011-06-10  David Li  <davidxl@google.com>
2052
2053         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2054         * passes.c (passr_eq): New function.
2055         (create_pass_tab): New function.
2056         (pass_traverse): New function.
2057         (dump_one_pass): New function.
2058         (dump_pass_list): New function.
2059         (dump_passes): New function.
2060
2061 2011-06-10  Jan Hubicka  <jh@suse.cz>
2062
2063         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2064         setting the nothrow flag.
2065         * ipa-reference.c (propagate): Skip aliases.
2066         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2067         (propagate_nothrow): Skip aliases; do not update cgraph.
2068         (local_pure_const): Do not update cgraph.
2069         * tree-profile.c (tree_profiling): Do fixup_cfg.
2070
2071 2011-06-10  Jan Hubicka  <jh@suse.cz>
2072
2073         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2074         (cgraph_local_node_p): ... here; handle aliases.
2075         (has_addr_references_p): Break out from ...;
2076         (cgraph_remove_unreachable_nodes) ... here.
2077
2078 2011-06-10  Jan Hubicka  <jh@suse.cz>
2079
2080         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2081         * common.opt (flag_inline_functions_called_once): Do not
2082         initialize to 1.
2083
2084 2011-06-10  Jan Hubicka  <jh@suse.cz>
2085
2086         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2087         (ipcp_initialize_node_lattices): Do not deal with aliases;
2088         Do not try to propagate through thunks.
2089         (ipcp_change_tops_to_bottom): Do not deal with aliases.
2090
2091 2011-06-10  Jan Hubicka  <jh@suse.cz>
2092
2093         * ipa-prop.c (ipa_write_node_info): Stream jump functions
2094         for indirect calls.
2095         (ipa_read_node_info): Likewise.
2096
2097 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2098
2099         PR lto/49302
2100         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2101         (build_and_insert_call): Likewise.
2102         (build_and_insert_ref): New.
2103         (gimple_expand_builtin_pow): Minor cleanup.
2104         (gimple_expand_builtin_cabs): New.
2105         (execute_cse_sincos): Add case for BUILT_IN_CABS.
2106
2107 2011-06-10  Jan Hubicka  <jh@suse.cz>
2108
2109         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2110         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2111         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2112         (ipcp_propagate_stage): Skip aliases when propagating.
2113         (ipcp_need_redirect_p): Skip aliases.
2114         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2115         collect_callers_of_node.
2116         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2117         for aliases.
2118         (ipa_compute_jump_functions): Look through aliases.
2119
2120 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2121
2122         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2123
2124 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2125
2126         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2127         Adjust comments.
2128         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2129
2130 2011-06-10  Jan Hubicka  <jh@suse.cz>
2131
2132         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2133         Update call of gimple_get_virt_method_for_binfo.
2134         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2135         refuse_thunks parameter.
2136         (gimple_fold_call): Update.
2137         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2138
2139 2011-06-10  Jan Hubicka  <jh@suse.cz>
2140
2141         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2142         (not_all_callers_have_enough_arguments_p): ... this one; turn into
2143         worker for cgraph_for_node_and_aliases.
2144         (convert_callers_for_node): Break out from ...
2145         (convert_callers): ... here.
2146         (modify_function): Use collect_callers_of_node.
2147         (ipa_early_sra): Use cgraph_for_node_and_aliases.
2148
2149 2011-06-10  Richard Guenther  <rguenther@suse.de>
2150
2151         PR tree-optimization/49361
2152         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2153         when not already in gimple form.
2154
2155 2011-06-10  Richard Guenther  <rguenther@suse.de>
2156
2157         PR bootstrap/49344
2158         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2159         FOR_EACH_PHI_OR_STMT_USE.
2160
2161 2011-06-10  Jan Hubicka  <jh@suse.cz>
2162
2163         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2164         (clone_inlined_nodes): ... here.
2165         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2166         to real destination prior inlining.
2167         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2168         can_early_inline_edge_p, want_early_inline_function_p,
2169         want_early_inline_function_p, want_inline_small_function_p,
2170         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2171         edge_badness, update_all_callee_keys, lookup_recursive_calls,
2172         add_new_edges_to_heap, inline_small_functions, flatten_function,
2173         inline_always_inline_functions, early_inline_small_functions): Use
2174         cgraph_function_or_thunk_node.
2175         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2176         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2177         (do_estimate_edge_growth_1): Break out from ...
2178         (do_estimate_growth) ... here; walk aliases.
2179         (inline_generate_summary): Skip aliases.
2180
2181 2011-06-10  Richard Guenther  <rguenther@suse.de>
2182
2183         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2184         forward when combining, visit inserted stmts when a stmt was changed.
2185
2186 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
2187
2188         * tree.h (error_operand_p): Add.
2189         * dbxout.c (dbxout_type_fields): Use the latter.
2190         * c-decl.c (add_stmt): Likewise.
2191         * gimplify.c (omp_add_variable, omp_notice_variable,
2192         gimplify_scan_omp_clauses): Likewise.
2193
2194 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
2195
2196         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2197         when a value is actually passed in regs.
2198
2199 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
2200             Laurent Rougé  <laurent.rouge@menta.fr>
2201
2202         * doc/invoke.texi (SPARC options): Add -mflat.
2203         * config/sparc/sparc.opt: Likewise.
2204         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2205         (sparc_flat_expand_prologue): Declare.
2206         (sparc_flat_expand_epilogue): Likewise.
2207         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2208         (CPP_ENDIAN_SPEC): Replace with...
2209         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
2210         (CPP_SPEC): Adjust to above change.
2211         (EXTRA_SPECS): Likewise.
2212         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2213         (INCOMING_REGNO): Likewise.
2214         (OUTGOING_REGNO): Likewise.
2215         (LOCAL_REGNO): Likewise.
2216         (SETUP_FRAME_ADDRESSES): Likewise.
2217         (FIXED_REGISTERS): Set 0 for %fp.
2218         (CALL_USED_REGISTERS): Likewise.
2219         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2220         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2221         (RETURN_ADDR_REGNUM): Define.
2222         (RETURN_ADDR_RTX): Use it.
2223         (INCOMING_RETURN_ADDR_REGNUM): Define.
2224         (INCOMING_RETURN_ADDR_RTX): Use it.
2225         (DWARF_FRAME_RETURN_COLUMN): Likewise.
2226         (EH_RETURN_REGNUM): Define.
2227         (EH_RETURN_STACKADJ_RTX): Use it.
2228         (EH_RETURN_HANDLER_RTX): Delete.
2229         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2230         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2231         Delete.
2232         (struct machine_function): Add frame_size, apparent_frame_size,
2233         frame_base_reg, frame_base_offset, n_global_fp_regs and
2234         save_local_in_regs_p fields.
2235         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2236         sparc_frame_base_offset, sparc_n_global_fp_regs,
2237         sparc_save_local_in_regs_p): New macros.
2238         (sparc_option_override): Error out if -fcall-saved-REG is specified
2239         for Out registers.
2240         (eligible_for_restore_insn): Fix formatting.
2241         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
2242         (eligible_for_sibcall_delay): Likewise.
2243         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2244         (sparc_legitimate_address_p): Adjust to above change.
2245         (save_global_or_fp_reg_p): New predicate.
2246         (return_addr_reg_needed_p): Likewise.
2247         (save_local_or_in_reg_p): Likewise.
2248         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
2249         (SORR_SAVE, SORR_RESTORE): Delete.
2250         (sorr_pred_t): New typedef.
2251         (sorr_act_t): New enum.
2252         (save_or_restore_regs): Rename to...
2253         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
2254         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2255         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
2256         mechanism.  Add CFI information for double-word saves in 32-bit mode.
2257         (emit_adjust_base_to_offset): New function extracted from...
2258         (emit_save_or_restore_regs): ...this.  Rename the rest to...
2259         (emit_save_or_restore_regs_global_fp_regs): ...this.
2260         (emit_save_or_restore_regs_local_in_regs): New function.
2261         (gen_create_flat_frame_[123]): New functions.
2262         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
2263         (sparc_flat_expand_prologue): New function.
2264         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2265         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
2266         (sparc_flat_expand_epilogue): New function.
2267         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2268         (output_return): Likewise.
2269         (output_sibcall): Likewise.
2270         (sparc_output_mi_thunk): Likewise.
2271         (sparc_frame_pointer_required): Likewise.
2272         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2273         function optimization.
2274         * config/sparc/sparc.md (flat): New attribute.
2275         (prologue): Add TARGET_FLAT handling.
2276         (save_register_window): Disable if TARGET_FLAT.
2277         (create_flat_frame_[123]): New patterns.
2278         (epilogue): Add TARGET_FLAT handling.
2279         (sibcall_epilogue): Likewise.
2280         (eh_return): New expander.
2281         (eh_return_internal): New insn and splitter.
2282         (return_internal): Add TARGET_FLAT handling.
2283         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2284         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2285         (nonlocal_goto): Add TARGET_FLAT handling.
2286         * config/sparc/t-elf: Add -mflat multilib.
2287         * config/sparc/t-leon: Likewise.
2288
2289 2011-06-10  Jan Hubicka  <jh@suse.cz>
2290
2291         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2292         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2293         (self_recursive_p): Use cgraph_function_node.
2294         (propagate_pure_const): Likewise.
2295         (propagate_nothrow): Likewise.
2296         * ipa-reference.c (ipa_reference_get_not_read_global): Use
2297         cgraph_function_node.
2298         (propagate_bits): Likewise.
2299         (propagate): Likewise.
2300
2301 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2302             Richard Earnshaw  <rearnsha@arm.com>
2303
2304         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2305         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2306         (*thumb2_movdi_vfp): Delete.
2307         (*arm_movdi_vfp_cortexa8): Delete.
2308         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2309         (*movdi_vfp_cortexa8): Likewise.
2310
2311 2011-06-10  Richard Guenther  <rguenther@suse.de>
2312
2313         * stor-layout.c (initialize_sizetypes): Give names to all
2314         sizetype kinds.
2315
2316 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
2317
2318         PR tree-optimization/49318
2319         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2320         irrelevant pattern statements.
2321
2322 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2323
2324         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2325
2326         PR bootstrap/49354
2327         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2328         to last assignment.
2329
2330 2011-06-09  Jan Hubicka  <jh@suse.cz>
2331
2332         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2333         do not recompute reachable flag.
2334         (cgraph_finalize_function, cgraph_analyze_functions): Set
2335         redefined_extern_inline here.
2336
2337 2011-06-09  Jan Hubicka  <jh@suse.cz>
2338
2339         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2340         (cgraph_only_called_directly_p): ... this one; bring offline.
2341         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2342         varpool_used_from_object_file_p): Drop names from the declaratoin.
2343         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2344         collect_callers_of_node): New.
2345         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2346         (cgraph_edge_recursive_p): Use cgraph_function_node.
2347         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2348         (cgraph_node_cannot_be_local_p_1): Break out from ...
2349         (cgraph_node_can_be_local_p): ... here; walk aliases.
2350         (cgraph_for_node_thunks_and_aliases): New function.
2351         (cgraph_for_node_and_aliases): New function.
2352         (cgraph_make_node_local_1): Break out from ...
2353         (cgraph_make_node_local) ... here; use
2354         cgraph_for_node_thunks_and_aliases.
2355         (cgraph_set_nothrow_flag_1): Break out from ...
2356         (cgraph_set_nothrow_flag) ... here;
2357         use cgraph_for_node_thunks_and_aliases.
2358         (cgraph_set_const_flag_1): Break out from ...
2359         (cgraph_set_const_flag) ... here;
2360         use cgraph_for_node_thunks_and_aliases.
2361         (cgraph_set_pure_flag_1): Break out from ...
2362         (cgraph_set_pure_flag) ... here;
2363         use cgraph_for_node_thunks_and_aliases.
2364         (cgraph_propagate_frequency_1): Break out from ...
2365         (cgraph_propagate_frequency) ... here; use
2366         cgraph_for_node_thunks_and_aliases.
2367         (cgraph_used_from_object_file_p): Do not care about aliases.
2368         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2369         New functions.
2370         (collect_callers_of_node_1, collect_callers_of_node): New functions.
2371
2372 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2373
2374         PR rtl-optimization/49154
2375         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2376         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2377         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2378         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2379         * config/cris/cris.h (cris_register_move_cost): Remove
2380         !TARGET_V32 code.  Tweak comments.
2381
2382 2011-06-09  Jan Hubicka  <jh@suse.cz>
2383
2384         * cgraphbuild.c (record_eh_tables): Mark personality function as having
2385         address taken.
2386
2387 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2388
2389         PR rtl-optimization/49154
2390         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2391         is a matching slot in the hashtable, assign it to classes_ptr.
2392
2393         PR rtl-optimization/49154
2394         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2395         register classes.
2396         * doc/tm.texi: Regenerate.
2397
2398 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2399
2400         PR target/49307
2401         * config/sh/sh.md (UNSPEC_CHKADD): New.
2402         (chk_guard_add): New define_insn_and_split.
2403         (symGOT_load): Use chk_guard_add instead of blockage.
2404
2405 2011-06-09  Kai Tietz  <ktietz@redhat.com>
2406
2407         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2408
2409 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2410
2411         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2412
2413 2011-06-09  Wei Guozhi  <carrot@google.com>
2414
2415         PR target/46975
2416         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2417         (peephole2 for conditional move): Generate 16 bit instructions.
2418
2419 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
2420
2421         * config/i386/i386.md (*movdi_internal_rex64): Merge
2422         alternatives 6 and 8.
2423
2424 2011-06-09  David Li  <davidxl@google.com>
2425
2426         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2427         * passes.c (passr_eq): New function.
2428         (create_pass_tab): New function.
2429         (pass_traverse): New function.
2430         (dump_one_pass): New function.
2431         (dump_pass_list): New function.
2432         (dump_passes): New function.
2433
2434 2011-06-09  David Li  <davidxl@google.com>
2435
2436         * tree-complex.c (tree_lower_complex): Gate cleanup.
2437         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2438         (execute_optimize_stdarg): Ditto.
2439         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2440         (execute_cleanup_eh_1): Ditto.
2441         (execute_cleanup_eh): Ditto.
2442         * gcse.c (gate_rtl_pre): Ditto.
2443         (execute_rtl_pre): Ditto.
2444         * except.c (finish_eh_generation): Ditto.
2445         (convert_to_eh_region_ranges): Ditto.
2446         * cprop.c (one_cprop_pass): Ditto.
2447
2448 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
2449
2450         PR target/48673
2451         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2452         in all basic blocks.
2453
2454 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2455
2456         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2457         (HAVE_ENABLE_EXECUTE_STACK): Define.
2458         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2459         (HAVE_ENABLE_EXECUTE_STACK): Define.
2460         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2461         (HAVE_ENABLE_EXECUTE_STACK): Define.
2462         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2463         (ENABLE_EXECUTE_STACK): Remove.
2464         (HAVE_ENABLE_EXECUTE_STACK): Define.
2465         [IN_LIBGCC2]: Don't include <windows.h>.
2466         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2467         (HAVE_ENABLE_EXECUTE_STACK): Define.
2468         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2469         (HAVE_ENABLE_EXECUTE_STACK): Define.
2470         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2471         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2472         (HAVE_ENABLE_EXECUTE_STACK): Define.
2473         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2474         (HAVE_ENABLE_EXECUTE_STACK): Define.
2475         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2476         (HAVE_ENABLE_EXECUTE_STACK): Define.
2477         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2478         (HAVE_ENABLE_EXECUTE_STACK): Define.
2479         * config/alpha/alpha.c (alpha_trampoline_init): Test
2480         HAVE_ENABLE_EXECUTE_STACK.
2481         * config/i386/i386.c (ix86_trampoline_init): Likewise.
2482         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2483         (sparc64_initialize_trampoline): Likewise.
2484         * libgcc2.c [L_enable_execute_stack]: Remove.
2485         * system.h (ENABLE_EXECUTE_STACK): Poison.
2486         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2487         * doc/tm.texi: Regenerate.
2488         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2489
2490 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
2491
2492         PR middle-end/49308
2493         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2494         variable.  After resetting and rescanning insn continue with previous
2495         statement.
2496
2497 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2498
2499         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2500         (gcc_cv_ld_hidden): Likewise.
2501         * configure: Regenerate.
2502         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2503         (ix86_stack_protect_fail): Mark unused.
2504         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2505         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2506         [TARGET_MACHO]: Don't define.
2507         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2508         (TARGET_STACK_PROTECT_FAIL): Likewise.
2509         (rs6000_stack_protect_fail): Mark unused.
2510         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2511         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
2512
2513 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2514
2515         * varasm.c (get_section): Print location of other conflict
2516         for section conflicts.
2517
2518 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2519
2520         * config/i386/driver-i386.c (host_detect_local_cpu):
2521         Add model 0x2d Intel CPU.
2522
2523 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2524
2525         * reginfo.c (global_regs_decl): Add.
2526         (globalize_reg): Add decl parameter. Compute location.  Pass location
2527         to warnings and add inform. Store decl in global_regs_decl.
2528         * rtl.h (globalize_reg): Update prototype.
2529         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2530
2531 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
2532
2533         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2534
2535 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2536
2537         PR target/49305
2538         * config/sh/predicates.md (general_movsrc_operand): Check
2539         mode for memory with indexed address for QI and HImode.
2540         (general_movdst_operand): Likewise.
2541
2542 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
2543
2544         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2545
2546 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
2547
2548         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2549         (num_ssa_operands): Likewise.
2550         (op_iter_init_phiuse): Forward-declare.
2551         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2552
2553 2011-06-08  Nick Clifton  <nickc@redhat.com>
2554
2555         * doc/invoke.texi (ARM Options): Update description of
2556         -mthumb-interwork.
2557
2558 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
2559
2560         * config/i386/driver-i386.c (host_detect_local_cpu): Support
2561         unknown Intel family 0x6 CPUs.
2562
2563 2011-06-08  Martin Jambor  <mjambor@suse.cz>
2564
2565         * tree-sra.c (mark_rw_status): Removed.
2566         (analyze_access_subtree): New parameter parent instead of
2567         mark_read and mark_write, propagate from that.
2568
2569 2011-06-08  Julian Brown  <julian@codesourcery.com>
2570
2571         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2572         for double-precision helper functions in hard-float mode if only
2573         single-precision arithmetic is supported in hardware.
2574
2575 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
2576
2577         PR rtl-optimization/49303
2578         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
2579         code_motion_path_driver returned 0 or 1.
2580         (sel_region_finish): Clear h_d_i_d.
2581
2582 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2583
2584         * config/sh/sh.c (prepare_move_operands): Set pic register
2585         appropriately for global and local dynamic tls models even
2586         if flag_pic is unset.
2587
2588 2011-06-07  Jason Merrill  <jason@redhat.com>
2589
2590         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2591
2592 2011-06-07  Xinliang David Li  <davidxl@google.com>
2593         * passes.c (enable_disable_pass): Handle assembler name.
2594         (is_pass_explicitly_enabled_or_disabled): Ditto.
2595
2596 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2597
2598         PR tree-optimization/48497
2599         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2600
2601 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2602
2603         PR tree-optimization/46728
2604         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2605         to use gimple_val_nonnegative_real_p.
2606         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2607         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2608
2609 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
2610
2611         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2612
2613 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
2614
2615         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2616         constant vectors.
2617
2618 2011-06-07  Richard Guenther  <rguenther@suse.de>
2619
2620         * stor-layout.c (initialize_sizetypes): Initialize all
2621         sizetypes based on target definitions.
2622         (set_sizetype): Remove.
2623         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2624         * tree.h (set_sizetype): Remove.
2625
2626 2011-06-07  Nick Clifton  <nickc@redhat.com>
2627
2628         * config.gcc: Unify V850 architecture options and add support for
2629         newer V850 architectures.
2630         * config/v850/t-v850e: Delete.
2631
2632 2011-06-07  Richard Guenther  <rguenther@suse.de>
2633
2634         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2635         Call set_sizetype from here.
2636
2637 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
2638
2639         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2640         (*maddhisi4tb, *maddhisi4tt): New define_insns.
2641
2642 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
2643             Andrew Stubbs  <ams@codesourcery.com>
2644
2645         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2646         multiplies.
2647         * doc/md.texi (Canonicalization of Instructions): Document widening
2648         multiply canonicalization.
2649
2650 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
2651
2652         PR gcov-profile/49299
2653         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2654
2655 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
2656
2657         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2658         a pointer.
2659         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2660         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2661         vect_recog_pow_pattern): Likewise.
2662         (vect_pattern_recog_1): Remove declaration.
2663         (widened_name_p): Remove declaration.  Add new argument to specify
2664         whether to check that both types are either signed or unsigned.
2665         (vect_recog_widen_mult_pattern): Update documentation.  Handle
2666         unsigned patterns and multiplication by constants.
2667         (vect_pattern_recog_1): Update vect_recog_func references.  Use
2668         statement information from the statement returned from pattern
2669         detection functions.
2670         (vect_pattern_recog): Update vect_recog_func reference.
2671         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2672         multiplication by a constant use the type of the other operand.
2673
2674 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
2675
2676         PR rtl-optimization/49145
2677         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2678
2679 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
2680
2681         PR debug/49262
2682         * dwarf2out.c (native_encode_initializer): Decrement count in each
2683         iteration.
2684
2685         PR debug/49294
2686         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2687         non-MODE_INT modes.
2688
2689         PR c++/49264
2690         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2691         if stmt folded into nothing.
2692         * tree-inline.c (fold_marked_statements): If a builtin at the end of
2693         a bb folded into nothing, just update cgraph edges and move to next bb.
2694         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2695         to be NULL.  Don't compute count and frequency if new_call is NULL.
2696
2697 2011-06-04  Diego Novillo  <dnovillo@google.com>
2698
2699         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2700         (cgraph.o): Likewise.
2701         (cgraphunit.o): Likewise.
2702         * cgraphunit.c: Include lto-streamer.h
2703         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2704         if LTO is enabled.
2705         * lto-streamer-in.c (unpack_value_fields): Call
2706         streamer_hooks.unpack_value_fields if set.
2707         (lto_materialize_tree): For unhandled nodes, first try to
2708         call lto_streamer_hooks.alloc_tree, if it exists.
2709         (lto_input_ts_decl_common_tree_pointers): Move reading of
2710         DECL_INITIAL to lto_streamer_read_tree.
2711         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2712         (lto_streamer_read_tree): New.
2713         (lto_reader_init): Rename from lto_init_reader.
2714         Move initialization code to lto/lto.c.
2715         * lto-streamer-out.c (pack_value_fields): Call
2716         streamer_hooks.pack_value_fields if set.
2717         (lto_output_tree_ref): For tree nodes that are not normally indexable,
2718         call streamer_hooks.indexable_with_decls_p before giving up.
2719         (lto_output_ts_decl_common_tree_pointers): Move handling
2720         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2721         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2722         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
2723         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2724         (lto_streamer_write_tree): New.
2725         (lto_output): Call lto_streamer_init directly.
2726         (lto_writer_init): Remove.
2727         * lto-streamer.c (streamer_hooks): New.
2728         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2729         instead of lto_preload_common_nodes.
2730         (lto_is_streamable): Move from lto-streamer.h
2731         (lto_streamer_hooks_init): New.
2732         (streamer_hooks): New.
2733         (streamer_hooks_init): New.
2734         * lto-streamer.h (struct output_block): Forward declare.
2735         (struct lto_input_block): Likewise.
2736         (struct data_in): Likewise.
2737         (struct bitpack_d): Likewise.
2738         (struct streamer_hooks): Declare.
2739         (streamer_hooks): Declare.
2740         (lto_streamer_hooks_init): Declare.
2741         (lto_streamer_write_tree): Declare.
2742         (lto_streamer_read_tree): Declare.
2743         (streamer_hooks_init): Declare.
2744         (lto_is_streamable): Move to lto-streamer.c
2745
2746 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2747
2748         * longlong.h (smul_ppmm): The resulting register pair contains the
2749         higher order word first.
2750
2751 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2752
2753         PR tree-optimization/46728
2754         * builtins.c (powi_table): Remove.
2755         (powi_lookup_cost): Remove.
2756         (powi_cost): Remove.
2757         (expand_powi_1): Remove.
2758         (expand_powi): Remove.
2759         (expand_builtin_pow_root): Remove.
2760         (expand_builtin_pow): Remove.
2761         (expand_builtin_powi): Eliminate handling of constant exponent.
2762         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2763
2764 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2765
2766         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2767
2768 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2769
2770         * dce.c (reset_unmarked_insns_debug_uses): New.
2771         (delete_unmarked_insns): Skip debug insns.
2772         (prescan_insns_for_dce): Likewise.
2773         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2774         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2775         active reg can be found.
2776         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
2777         (convert_regs_1): Use it.
2778
2779 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2780
2781         * tree-pretty-print.c (dump_function_header): Add flags.
2782         Don't dump decl_uid with nouid.
2783         * tree-pretty-print.h (dump_function_header): Adjust.
2784         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2785         * passes.c (pass_init_dump_file): Pass dump_flags on.
2786         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2787
2788 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2789
2790         PR bootstrap/49270
2791         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2792
2793 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
2794
2795         PR tree-optimization/49243
2796         * calls.c (setjmp_call_p): Also check if fndecl has the
2797         returns_twice attribute.
2798
2799 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2800
2801         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2802         -ffast-math etc.
2803
2804 2011-06-06  Richard Henderson  <rth@redhat.com>
2805             Georg-Johann Lay  <avr@gjlay.de>
2806
2807         PR target/42210
2808         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2809         New predicates.
2810         * config/avr/avr.md ("insv"): New insn expander.
2811         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2812         "*insv.not.io", "*insv.reg"): New insns.
2813
2814 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
2815
2816         PR target/49285
2817         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2818         to nonimmediate_operand from memory_operand for the operand that is to
2819         be forced to memory by the expander.  Lose the constraints.
2820
2821 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
2822
2823         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2824         EH return when delayed branches are disabled.
2825
2826 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
2827
2828         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2829         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
2830         calculation.
2831         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2832         Simplify MODE_V1DF and MODE_V2SF handling.
2833         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2834         Simplify MODE_SF handling.
2835
2836 2011-06-04  Jan Hubicka  <jh@suse.cz>
2837
2838         PR tree-optimization/48893
2839         PR tree-optimization/49091
2840         PR tree-optimization/49179
2841         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2842         Bounds check.
2843
2844 2011-06-04  Jan Hubicka  <jh@suse.cz>
2845
2846         PR lto/48954
2847         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2848         bitmaps.
2849
2850 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
2851
2852         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2853
2854 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
2855
2856         PR target/49281
2857         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2858         to be strictly smaller than 1 << shiftcount.
2859
2860 2011-06-04  Jan Hubicka  <jh@suse.cz>
2861
2862         PR tree-optimize/48929
2863         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2864         of empty predicate.
2865
2866 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
2867
2868         PR debug/48333
2869         * calls.c (emit_call_1): Prefer the __builtin declaration of
2870         builtin functions.
2871
2872 2011-06-03   Diego Novillo  <dnovillo@google.com>
2873
2874         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2875         (lto_input_tree_pointers): Likewise.
2876         * lto-streamer-out.c (pack_value_fields): Likewise.
2877         (lto_output_tree_pointers): Likewise.
2878         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2879         and OPTIMIZATION_NODE.
2880
2881 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2882
2883         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2884         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2885         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2886         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2887         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2888         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2889         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2890         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2891         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2892         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2893         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2894         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2895         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2896         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2897         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2898         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2899         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2900         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2901         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2902         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2903         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2904         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2905         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2906         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2907         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2908         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2909         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2910         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2911         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2912         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2913         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2914         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2915         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2916         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2917         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2918         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2919         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2920         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2921         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2922         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2923         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2924         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2925         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2926         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2927         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2928         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2929         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2930         * system.h (MD_UNWIND_SUPPORT): Poison.
2931         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2932         * doc/tm.texi: Regenerate.
2933         * unwind-dw2.c: Include md-unwind-support.h instead of
2934         MD_UNWIND_SUPPORT.
2935         * config/ia64/unwind-ia64.c: Likewise.
2936         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2937
2938 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
2939
2940         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2941
2942 2011-06-03  Richard Henderson  <rth@redhat.com>
2943             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2944
2945         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2946         (sigill_hdlr): Correct insn, insn size.
2947         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2948
2949 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2950
2951         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2952         t-slibgcc-dummy.
2953         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2954         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2955         * config/mips/t-iris: Remove.
2956         * config/mips/t-irix6: New file.
2957         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2958
2959 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2960
2961         * Makefile.in (LIB2ADDEHDEP): Remove.
2962         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2963         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2964         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2965         * config/t-darwin (LIB2ADDEHDEP): Remove.
2966         * config/t-freebsd (LIB2ADDEHDEP): Remove.
2967         * config/t-linux (LIB2ADDEHDEP): Remove.
2968
2969 2011-06-03  Diego Novillo  <dnovillo@google.com>
2970
2971         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2972         (lto_register_var_decl_in_symtab): Likewise.
2973         (lto_register_function_decl_in_symtab): Likewise.
2974         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
2975         logic to uniquify_nodes.
2976
2977 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2978
2979         * config/alpha/t-osf5: Remove.
2980         * config/alpha/t-osf-pthread: Remove.
2981         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2982         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2983
2984 2011-06-03  Julian Brown  <julian@codesourcery.com>
2985
2986         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2987         (strongarm1110): Use strongarm tuning.
2988         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
2989         * config/arm/arm.c (arm_strongarm_tune): New.
2990         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2991         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2992         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2993         setting, using previous defaults or 1 for Cortex-A5.
2994         (arm_option_override): Set max_insns_skipped from current tuning.
2995
2996 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
2997
2998         * doc/install.texi (Options specification): Document --with-specs.
2999
3000 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3001
3002         * config/arm/neon.md (orndi3_neon): Actually split it.
3003
3004 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3005
3006         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3007         * var-tracking.c (reverse_op): Limite recurse depth to 5.
3008
3009 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3010
3011         PR debug/47590
3012         * target.def (delay_sched2, delay_vartrack): New.
3013         * doc/tm.texi.in: Update.
3014         * doc/tm.texi: Rebuild.
3015         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3016         * var-tracking.c (gate_handle_var_tracking): Likewise.
3017         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3018         (bfin_flag_var_tracking): Drop.
3019         (output_file_start): Don't save and override flag_var_tracking.
3020         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3021         (bfin_reorg): Test original variables.
3022         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3023         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3024         (ia64_flag_var_tracking): Drop.
3025         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3026         (ia64_file_start): Don't save and override flag_var_tracking.
3027         (ia64_override_options_after_change): Ditto
3028         flag_schedule_insns_after_reload.
3029         (ia64_reorg): Test original variables.
3030         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3031         (picochip_flag_var_tracking): Drop.
3032         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3033         (picochip_option_override): Don't save and override
3034         flag_schedule_insns_after_reload.
3035         (picochip_asm_file_start): Ditto flag_var_tracking.
3036         (picochip_reorg): Test original variables.
3037         * config/spu/spu.c (spu_flag_var_tracking): Drop.
3038         (TARGET_DELAY_VARTRACK): Define.
3039         (spu_var_tracking): New.
3040         (spu_machine_dependent_reorg): Call it.
3041         (asm_file_start): Don't save and override flag_var_tracking.
3042
3043 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
3044
3045         PR target/49163
3046         * config/sh/predicates.md (general_movsrc_operand): Return 0
3047         for memory and memory subreg of which address is an invalid
3048         indexed address for QI and HImode.
3049         (general_movdst_operand): Likewise.
3050
3051 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3052
3053         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3054         edges only, when there is a non-local label in the function.
3055         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3056
3057 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3058
3059         * config/i386/constraints.md (Y3): New register constraint.
3060         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3061         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3062         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3063         *sse2_interleave_lowv2df.
3064
3065 2011-06-02  Julian Brown  <julian@codesourcery.com>
3066
3067         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3068         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3069         (arm_cortex_a5_tune): New.
3070
3071 2011-06-02  Julian Brown  <julian@codesourcery.com>
3072
3073         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3074         * config/arm/arm.c (arm_default_branch_cost): New.
3075         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3076         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3077         (arm_fa726_tune): Set branch_cost field using
3078         arm_default_branch_cost.
3079         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3080         current_tune structure.
3081         * dojump.c (tm_p.h): Include file.
3082
3083 2011-06-02  Julian Brown  <julian@codesourcery.com>
3084
3085         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3086         tuning.
3087         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3088         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3089         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3090         field.
3091         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3092         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3093         (arm_fa726te_tune): Add prefer_constant_pool setting.
3094         (arm_v6t2_tune, arm_cortex_tune): New.
3095         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3096         prefer_constant_pool setting.
3097
3098 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3099
3100         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3101         switch statement.
3102         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3103         (*movdf_internal) <case 6,7,8>: Ditto.
3104
3105         * config/i386/constraints.md (Y4): New register constraint.
3106         * config/i386/sse.md (vec_set<mode>_0): Merge with
3107         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3108         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3109         *vec_extractv2di_1_sse.
3110         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3111         and *vec_concatv2di_rex64_sse.
3112
3113 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
3114
3115         PR target/48807
3116         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3117         of cgraph_local_info for null before attempting to use it.
3118
3119 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3120
3121         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3122         (current_function_dynamic_alloc_count): Delete.
3123         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3124         (expand_builtin_nonlocal_goto): Remove obsolete comment.
3125         (expand_builtin_update_setjmp_buf): Remove dead code.
3126         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3127         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3128         support.
3129         * function.c (instantiate_virtual_regs): Likewise.
3130         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3131         for a block with a single abnormal incoming edge.
3132         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3133         (SETJMP_VIA_SAVE_AREA): Delete.
3134         * config/sparc/sparc-protos.h (load_got_register): Declare.
3135         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3136         (load_got_register): Make global.
3137         (sparc_frame_pointer_required): Add 'static'.
3138         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
3139         (sparc_builtin_setjmp_frame_value): New function.
3140         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3141         (save_stack_nonlocal): New expander.
3142         (restore_stack_nonlocal): Likewise.
3143         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3144         (nonlocal_goto_internal): New insn.
3145         (goto_handler_and_restore): Delete.
3146         (builtin_setjmp_setup): Likewise.
3147         (do_builtin_setjmp_setup): Likewise.
3148         (setjmp): Likewise.
3149         (builtin_setjmp_receiver): New expander.
3150
3151 2011-06-01  David Li  <davidxl@google.com>
3152
3153         PR middle-end/49261
3154         * tree-pretty-print.c (dump_function_header): Format cleanup.
3155
3156 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
3157
3158         PR target/49238
3159         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3160         needed when original operands are used for msw_skip comparison.
3161
3162 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3163
3164         PR debug/49250
3165         * var-tracking.c (add_uses, add_stores): Don't call
3166         cselib_subst_to_values on ENTRY_VALUE.
3167
3168 2011-06-01  Diego Novillo  <dnovillo@google.com>
3169
3170         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3171         output_record_start with LTO_null instead of output_zero.
3172         (lto_output_ts_binfo_tree_pointers): Likewise.
3173         (lto_output_tree): Likewise.
3174         (output_eh_try_list): Likewise.
3175         (output_eh_region): Likewise.
3176         (output_eh_lp): Likewise.
3177         (output_eh_regions): Likewise.
3178         (output_bb): Likewise.
3179         (output_function): Likewise.
3180         (output_unreferenced_globals): Likewise.
3181         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3182         instead of NUM_TREE_CODES.
3183         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3184         (lto_output_int_in_range): Change << to >> when shifting VAL.
3185
3186 2011-06-01  Diego Novillo  <dnovillo@google.com>
3187
3188         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3189         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3190
3191 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3192
3193         PR target/45074
3194         * optabs.h (valid_multiword_target_p): Declare.
3195         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3196         doing multi-word operations.
3197         * optabs.c (expand_binop): Likewise.
3198         (expand_doubleword_bswap): Likewise.
3199         (expand_absneg_bit): Likewise.
3200         (expand_unop): Likewise.
3201         (expand_copysign_bit): Likewise.
3202         (multiword_target_p): New function.
3203
3204 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3205
3206         PR rtl-optimization/48830
3207         PR rtl-optimization/48808
3208         PR rtl-optimization/48792
3209         * reload.c (push_reload): Check contains_reg_of_mode.
3210         * reload1.c (strip_paradoxical_subreg): New function.
3211         (gen_reload_chain_without_interm_reg_p): Use it to handle
3212         paradoxical subregs.
3213         (emit_output_reload_insns, gen_reload): Likewise.
3214
3215 2011-06-01  David Li  <davidxl@google.com>
3216
3217         * predict.c : Change pass name
3218         * ipa.c: Ditto.
3219         * dce.c: Ditto.
3220         * tree-profile.c: Ditto.
3221         * except.c: Ditto.
3222
3223 2011-06-01  David Li  <davidxl@google.com>
3224
3225         * tree-pretty-print.c (dump_function_header): New function.
3226         * final.c (rest_of_clean_state): Use header dumper.
3227         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3228         * passes.c (pass_init_dump_file): Use header dumper.
3229
3230 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3231
3232         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3233         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3234         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3235         New functions.
3236         (mem_loc_descriptor): Use them.
3237
3238         * var-tracking.c (create_entry_value): New function.
3239         (vt_add_function_parameter): Use it.
3240
3241 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3242
3243         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3244         Include <signal.h>, <ucontext.h>.
3245         (sigill_caught): Define.
3246         (sigill_hdlr): New function.
3247         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3248         insns can be executed.
3249         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3250         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3251
3252 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3253
3254         * config/t-slibgcc-darwin: Move to ...
3255         * config/t-slibgcc-dummy: ... this.  Clarify comments.
3256         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3257         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3258         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3259         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
3260         Remove i386/t-crtstuff from tmake_file.
3261         (i[34567]86-*-solaris2*): Remove t-svr4,
3262         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3263         t-slibgcc-dummy.
3264         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3265         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3266         sparc/t-crtfm from tmake_file.
3267         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3268         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3269         Remove extra_parts.
3270         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3271         * config/i386/t-nwld (SHLIB_LINK): Remove.
3272         * config/i386/t-rtems-i386: Rename to ...
3273         * config/i386/t-rtems: ... this.
3274         ($(T)crti.o, $(T)crtn.o): Remove.
3275         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3276         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3277         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3278         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3279         EXTRA_MULTILIB_PARTS): Remove.
3280         * config/sparc/t-sol2-64: Likewise.
3281         * config/sparc/t-sol2: Remove.
3282         * config/sparc/t-crtin: Remove.
3283         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3284         * config/i386/gmon-sol2.c: Remove.
3285         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3286         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3287         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3288         * config/i386/sol2-gc1.asm: Remove.
3289         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3290         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3291         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3292         * config/t-slibgcc-sld: Remove.
3293
3294 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3295
3296         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3297         base_type_for_mode with op_mode instead of mode.
3298
3299 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
3300
3301         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
3302         Cortex-A15.
3303         * config/arm/arm-tune.md: Regenerate.
3304         * config/arm/arm-tables.opt: Regenerate.
3305         * config/arm/arm.c (FL_DIV): Rename...
3306         (FL_THUMB_DIV): ... to this.
3307         (FL_ARM_DIV): Define.
3308         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3309         (arm_arch_hwdiv): Remove.
3310         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3311         (arm_issue_rate): Add cortexr5.
3312         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3313         __ARM_ARCH_EXT_IDIV__.
3314         (TARGET_IDIV): Define.
3315         (arm_arch_hwdiv): Remove.
3316         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3317         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3318         (divsi3, udivsi3): New patterns.
3319         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3320         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3321
3322 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3323
3324         * ipa-utils.c (ipa_dfs_info): New field scc_no.
3325         * ipa-utils.c (searchc): Set scc_no.
3326
3327 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3328
3329         * ipa-utils.c (searchc_env): New field allow_overwritable.
3330         (searchc): do not ignore edges to overwritable nodes if indicated
3331         by env->allow_overwritable.
3332         (ipa_reduced_postorder): Set env.allow_overwritable.
3333
3334 2011-06-01  Richard Guenther  <rguenther@suse.de>
3335
3336         * tree.c (free_lang_data): Do not reset boolean_type_node nor
3337         char_type_node.
3338         * lto-streamer.c (lto_record_common_node): Take node pointer,
3339         do not register types.
3340         (lto_preload_common_nodes): Explicitly skip preloading nodes
3341         that differ between frontends.
3342
3343 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3344
3345         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3346         NON_FLOAT_REGS.
3347
3348 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3349
3350         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3351         parameter value for dump. Dump cost on outermost call only.
3352         (rs6000_memory_move_cost): Dump cost on outermost call only.
3353
3354 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3355
3356         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3357         DW_OP_GNU_convert ops.
3358
3359         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3360         cselib_preserve_constants.
3361         (cselib_lookup_1): If cselib_preserve_constants,
3362         a new VALUE is being created for REG and there is a VALUE for the
3363         same register in wider mode, add another loc with lowpart SUBREG of
3364         the wider VALUE.
3365         (cselib_subst_to_values): Handle ENTRY_VALUE.
3366         * var-tracking.c  (replace_expr_with_values): Return NULL for
3367         ENTRY_VALUE too.
3368         * dwarf2out.c (convert_descriptor_to_signed): New function.
3369         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3370         instead of two shifts.
3371         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3372         the right mode if needed.
3373         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3374         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3375         convert_descriptor_to_signed.
3376         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3377         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3378
3379         PR target/48688
3380         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3381
3382 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3383
3384         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3385         of X87MODEI12 and SWI48x instead of SSEMODEI24.
3386         (SWI248x): New mode iterator, rename from X87MODEI.
3387         (X87MODEI): Remove mode iterator.
3388         (X87MODEI12): Ditto.
3389         (SSEMODEI24): Ditto.
3390
3391 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3392
3393         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3394         * doc/invoke.texi: Document max-vartrack-expr-depth.
3395         * var-tracking.c (EXPR_DEPTH): New.
3396         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3397
3398 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3399
3400         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3401         * config/i386/sse.md: Add n to negated FMA pattern names.
3402
3403 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3404
3405         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3406
3407 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3408
3409         * gengtype-state.c (read_state_params_structs): Initialize previous.
3410
3411 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3412
3413         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3414         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3415
3416 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3417
3418         * config/i386/i386.md (*movtf_internal): Avoid allocating general
3419         registers.  Penalize F*r->o alternative to prevent partial memory
3420         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
3421         CONST_DOUBLE immediates when optimizing function for size.  Do not move
3422         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3423         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3424         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3425         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3426         alternatives.
3427         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3428
3429         (fp_register_operand splitters): Use fp_register_operand
3430         constraint.  Do not use FP_REG_P in insn condition.
3431         (any_fp_register_operand splitters): Use any_fp_register_operand
3432         constraint.  Do not use ANY_FP_REG_P in insn condition.
3433
3434 2011-05-31  Jan Hubicka  <jh@suse.cz>
3435
3436         * cgraph.h (cgraph_inline_failed_t): Give enum a name
3437         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3438         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3439         (lto_output_edge): Use output_enum and var_len_unsigned.
3440         (lto_output_varpool_node): Likewise.
3441         (input_overwrite_node): Do not take resolution parameter;
3442         extract it from a bitpack.
3443         (input_node): Do not read resolution; use input_enum and
3444         var_len_unsigned.
3445         (input_varpool_node): Likewise.
3446         (input_edge): Likewise.
3447         (input_cgraph_1): Likewise.
3448
3449 2011-05-31  Richard Guenther  <rguenther@suse.de>
3450
3451         * gimple.c (gimple_register_canonical_type): Do not register
3452         any types via gimple_register_type.
3453
3454 2011-05-31  Jan Hubicka  <jh@suse.cz>
3455
3456         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3457         of thunks.
3458
3459 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3460
3461         PR rtl-optimization/49235
3462         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3463         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3464
3465 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
3466
3467         PR tree-optimization/49093
3468         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3469         data references.
3470
3471 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
3472
3473         PR debug/49047
3474         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3475         for concrete functions containing the code of cloned functions.
3476
3477 2011-05-31  Richard Guenther  <rguenther@suse.de>
3478
3479         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3480         to ...
3481         (forward_propagate_into_comparison_1): ... this.
3482         (forward_propagate_comparison): Rename to ...
3483         (forward_propagate_into_comparison): ... this.  Split out
3484         real forward propagation code to ...
3485         (forward_propagate_comparison): ... this.
3486         (forward_propagate_into_gimple_cond): Remove looping.
3487         (forward_propagate_into_cond): Likewise.
3488         (simplify_not_neg_expr): Return whether we have done something.
3489         (simplify_gimple_switch): Likewise.
3490         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3491         (ssa_forward_propagate_and_combine): ... this.  Re-structure
3492         to do a forward forward-propagation walk on BBs and a backward
3493         stmt combining walk on BBs.  Consistently re-scan changed statements.
3494         (pass_forwprop): Adjust.
3495
3496 2011-05-30  Ian Lance Taylor  <iant@google.com>
3497
3498         * godump.c (go_format_type): Correct length of name added to
3499         obstack for anonymous field.
3500
3501 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
3502
3503         PR target/49186
3504         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3505         part of the second operand is 0.
3506
3507 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
3508
3509         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3510         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
3511         to memory for !TARGET_MEMORY_MISMATCH_STALL.
3512         (*movdf_internal_rex64): Do not penalize F->r alternative.
3513         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3514         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
3515         when optimizing function for size.  Do not move CONST_DOUBLEs
3516         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3517         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
3518         SUBREGs.  Do not check for MEM_P operands in the insn condition,
3519         check for ANY_FP_REGNO_P instead.
3520         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3521         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3522         function for speed.
3523         * config/i386/i386.c (ix86_option_override_internal): Do not
3524         set TARGET_INTEGER_DFMODE_MOVES here.
3525
3526 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3527
3528         PR target/49168
3529         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3530
3531 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
3532
3533         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3534         DW_TAG_rvalue_reference_type even for
3535         -gdwarf-4 -fno-debug-types-section.
3536
3537 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3538
3539         PR tree-optimization/46728
3540         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3541         (build_and_insert_binop): New.
3542         (gimple_expand_builtin_pow): Reorder args for
3543         build_and_insert_call; use build_and_insert_binop; add more
3544         optimizations for fractional exponents.
3545
3546 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3547
3548         PR bootstrap/49190
3549
3550         Revert:
3551         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3552
3553         * tree.h (struct tree_identifier): Inherit from tree_typed, not
3554         tree_common.
3555         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3556         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3557         TS_BASE instead of TS_COMMON.
3558         * varasm.c (assemble_name): Remove assert.
3559
3560 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
3561
3562         * config.gcc: Keep obselete list sorted.
3563
3564 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
3565             Eric Botcazou  <ebotcazou@adacore.com>
3566
3567         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3568         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3569         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3570         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3571         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3572
3573 2011-05-30  Richard Guenther  <rguenther@suse.de>
3574
3575         * gimple.c (gimple_types_compatible_p_1): Compare record
3576         and union type members properly.
3577
3578 2011-05-30  Richard Guenther  <rguenther@suse.de>
3579
3580         PR tree-optimization/49210
3581         * ipa-split.c (split_function): Care for the case where the call
3582         result is not trivially convertible to the result holding variable.
3583
3584 2011-05-30  Richard Guenther  <rguenther@suse.de>
3585
3586         PR tree-optimization/49218
3587         * tree-vrp.c (adjust_range_with_scev): Properly check whether
3588         overflow occured.
3589
3590 2011-05-30  Richard Guenther  <rguenther@suse.de>
3591
3592         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3593         New function split out from ...
3594         (forward_propagate_into_gimple_cond): ... here.  Adjust.
3595         (forward_propagate_into_cond): Likewise.
3596         (forward_propagate_comparison): Also propagate into
3597         comparisons on assignment RHS.  Change return value to
3598         behave similar to forward_propagate_into_cond.
3599         (tree_ssa_forward_propagate_single_use_vars): Handle
3600         strict-overflow warnings properly for forward_propagate_comparison.
3601
3602 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3603
3604         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3605         from plugin linker.
3606         * configure: Regenerate.
3607
3608 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
3609
3610         PR tree-optimization/49199
3611         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3612         non-reduction operands are either defined in the loop or by induction.
3613
3614 2011-05-29  Xinliang David Li  <davidxl@google.com>
3615
3616         * opts-global.c (handle_common_deferred_options): Handle new options.
3617         * passes.c (register_one_dump_file): Call register_pass_name.
3618         (execute_one_pass): Check explicit enable/disable flag.
3619         (passr_hash): New function.
3620         (passr_eq): Ditto.
3621         (register_pass_name): Ditto.
3622         (get_pass_by_name): Ditto.
3623         (pass_hash): Ditto.
3624         (pass_eq): Ditto.
3625         (enable_pass): Ditto.
3626         (disable_pass): Ditto.
3627         (is_pass_explicitly_enabled_or_disabled): Ditto.
3628
3629 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
3630
3631         * config/i386/i386.md (*movoi_internal_avx): Use
3632         standard_sse_constant_opcode for alternative 0.
3633         (*movti_internal_sse): Ditto.
3634         (*movti_internal_rex64): Use standard_sse_constant_opcode for
3635         alternative 2.
3636         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3637         sselog1 type moves.
3638         (*movsi_internal): Ditto.
3639         (*movdi_internal): Ditto.  Add ssecvt type moves.
3640
3641 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
3642
3643         PR target/48830
3644         * rtlanal.c (simplify_subreg_regno): Adjust comment.
3645
3646 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
3647
3648         PR rtl-optimization/49095
3649         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3650         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3651
3652 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
3653
3654         PR target/43995
3655         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3656         recurse_p argument.  Only follow register copies if it is set,
3657         and prevent mips_find_pic_call_symbol from recursing.
3658         (mips_find_pic_call_symbol): Add a recurse_p argument.
3659         Pass it to mips_pic_call_symbol_from_set.
3660         (mips_annotate_pic_calls): Update accordingly.
3661
3662 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
3663
3664         * emit-rtl.c (try_split): Use a loop to search for
3665         NOTE_INSN_CALL_ARG_LOCATIONs.
3666
3667 2011-05-29  Richard Guenther  <rguenther@suse.de>
3668
3669         PR tree-optimization/49217
3670         * ipa-pure-const.c (propagate_pure_const): Fix typos.
3671
3672 2011-05-28  Jan Hubicka  <jh@suse.cz>
3673
3674         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3675         length.
3676         (string_slot_free): Remove
3677         (create_output_block): Initialize obstack.
3678         (destroy_output_block): Free obstack.
3679         (lto_string_index): Add PERSISTENT parameter; do not duplicate
3680         the string unless it needs to be added into the hash.
3681         (lto_output_string_with_length): Add persistent attribute;
3682         handle NULL strings.
3683         (lto_output_string): Add PERSISTENT parameter.
3684         (output_string_cst, output_identifier): Simplify.
3685         (lto_output_location_bitpack): Update.
3686         (lto_output_builtin_tree): Update.
3687         * lto-streamer.h (struct output_block): Add obstack.
3688         (lto_output_string, lto_output_string_with_length): Remove
3689         declarations; functions are static now.
3690
3691 2011-05-28  Jan Hubicka  <jh@suse.cz>
3692
3693         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3694         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3695         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3696         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3697         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3698         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3699         unpack_ts_decl_with_vis_value_fields,
3700         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3701         lto_get_builtin_tree): Use enum and variable length i/o.
3702         * basic-block.h (profile_status_d): Add PROFILE_LAST.
3703         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3704         New functions.
3705         (bp_pack_enum, bp_unpack_enum): New macros.
3706
3707 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
3708
3709         * genrecog.c: Remove redundant forward declarations.
3710
3711 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
3712
3713         * config.gcc: Deprecate mips*-*-openbsd*.
3714
3715 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
3716
3717         PR bootstrap/49195
3718         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3719         for match_op_dup.
3720
3721 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
3722
3723         PR middle-end/48981
3724         * gengtype.c (vec_prefix_type): New function.
3725         (note_def_vec): Use vec_prefix_type and change the length
3726         attribute to be based on the prefix.
3727         * vec.c: Include coretypes.h before vec.h.
3728         (struct vec_prefix): Remove.
3729         (vec_gc_p_reserve): Change the offsetof to sizeof.
3730         (vec_gc_p_reserve_exact): Likewise.
3731         (vec_heap_p_reserve): Likewise.
3732         (vec_heap_p_reserve_exact): Likewise.
3733         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3734         (vec_stack_p_reserve): Change the offsetof to sizeof.
3735         (vec_stack_p_reserve_exact): Likewise.
3736         * vec.h (struct vec_prefix): New struct definition.
3737         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3738         (VEC_T_GTY(T,B)): Likewise.
3739         (DEF_VEC_FUNC_P(T)): Use prefix field.
3740         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3741         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3742
3743 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3744
3745         PR tree-optimization/46728
3746         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3747         (powi_as_mults): Add gimple_set_location.
3748         (build_and_insert_call): New.
3749         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3750         0.5, 0.25, 0.75, 1./3., or 1./6.
3751
3752 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
3753
3754         * doc/contrib.texi: Update copyright years.
3755         (Contributors): Add Zdenek Sojka.
3756
3757 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3758
3759         * c-decl.c (c_push_function_context): Copy the current statement
3760         list stack.
3761         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3762         (finish_struct): Call building_stmt_list_p instead of checking
3763         cur_stmt_list.
3764         * c-parser.c (c_parser_postfix_expression): Likewise.
3765         * c-typeck.c (c_end_compound_stmt): Likewise.
3766         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3767         * tree-iterator.c (stmt_list_cache): Change to a VEC.
3768         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3769         (free_stmt_list): Likewise.
3770         * tree.h (struct tree_statement_list): Include typed_tree instead
3771         of tree_common.
3772         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3773         as TS_TYPED instead of TS_COMMON.
3774
3775 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3776             Uros Bizjak  <ubizjak@gmail.com>
3777
3778         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3779         (HAVE_AS_IX86_TLSGDPTL): Define.
3780         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3781         (HAVE_AS_IX86_TLSLDMPLT): Define.
3782         * configure: Regenerate.
3783         * config.in: Regenerate.
3784         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3785         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3786         TARGET_SUN_TLS, use @tlsgdplt or @plt.
3787         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3788         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3789         @tlsldmplt or @plt.
3790         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3791
3792 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
3793
3794         * sched-int.h (struct _haifa_deps_insn_data): New members cond
3795         and reverse_cond.
3796         (INSN_COND, INSN_REVERSE_COND): New macros.
3797         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3798         once.
3799         (sched_get_condition_with_rev): Cache the results, and look them up
3800         if possible.
3801         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3802         are clobbered by the current insn.
3803         * target.def (exposed_pipline): New sched data hook.
3804         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3805         * doc/tm.texi: Regenerate.
3806
3807 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3808
3809         PR tree-optimization/49170
3810         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
3811         sincos or cexp.
3812
3813 2011-05-27  Richard Guenther  <rguenther@suse.de>
3814
3815         PR middle-end/49189
3816         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3817         of comparisons.
3818
3819 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
3820
3821         * haifa-sched.c (sched_scan_info): Remove.
3822         (schedule_block): Call sched_extend_luids rather than sched_init_luids
3823         with NULL args.
3824         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3825         Remove functions.
3826         (sched_scan): Remove.
3827         (sched_extend_luids): Renamed from luids_extend_insn and no longer
3828         static.  All callers changed.
3829         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3830         static.  All callers changed.
3831         (sched_init_luids): Remove all arguments except the first.  All
3832         callers changed.  Don't use sched_scan.
3833         (haifa_init_h_i_d): Likewise.
3834         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3835         manually rather than using sched_init_luids.  Likewise with
3836         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3837         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3838         rather than sched_init_luids with NULL args.
3839         * sel-sched-ir.c (new_insns): Remove variable.
3840         (sched_scan): New static function, previously in haifa-sched.c.  Remove
3841         all arguments but the first two; all callers changed.
3842         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3843         rather than sched_init_luids.
3844         (sel_init_bbs): Remove second argument.  All callers changed.
3845         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3846         with NULL arguments.
3847         (create_insn_rtx_from_pattern): Likewise.
3848         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3849         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3850         (sched_init_insn_luid, sched_extend_luids): Declare.
3851         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3852         declarations.
3853
3854 2011-05-27  Richard Guenther  <rguenther@suse.de>
3855
3856         PR middle-end/49177
3857         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3858         A CMP B ? (T) true : (T) false for non-integral types T again.
3859
3860 2011-05-27  Jan Hubicka  <jh@suse.cz>
3861
3862         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3863         so 0 means NULL string.
3864         (lto_output_string_with_length): ... here.
3865         (lto_output_string, output_string_cst, output_identifier): Update
3866         handling of NULL strings.
3867         (lto_output_location_bitpack): New function.
3868         (lto_output_location): Use it.
3869         (lto_output_tree_ref): Use output_record_start.
3870         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3871         len values.
3872         * lto-streamer-in.c (string_for_index): Break out from ...; offset
3873         values by 1.
3874         (input_string_internal): ... here;
3875         (input_string_cst, input_identifier, lto_input_string): Update handling
3876         of NULL strings.
3877         (lto_input_location_bitpack): New function
3878         (lto_input_location): Use it.
3879         (unpack_ts_type_common_value_fields): Pack align & alias in var len
3880         values.
3881         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3882         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3883         (bp_pack_value): Sanity check the value range.
3884         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3885         New functions.
3886         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3887         New functions.
3888
3889 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
3890
3891         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3892         call_arg_location instructions down the floor.
3893
3894 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
3895
3896         PR rtl-optimization/49154
3897         * ira.c (setup_pressure_classes): Process class without sublcasses
3898         as a candidate for pressure classes.
3899
3900 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
3901
3902         PR rtl-optimization/48575
3903         * genrecog.c (position_type): New enum.
3904         (position): New structure.
3905         (decision): Use position structure instead of a string.
3906         (root_pos, peep2_insn_pos_list): New variables.
3907         (next_position, compare_positions): New functions.
3908         (new_decision): Use position structures instead of strings.
3909         (maybe_both_true): Likewise.
3910         (change_state): Likewise.
3911         (write_tree): Likewise.
3912         (make_insn_sequence): Likewise.
3913
3914 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3915
3916         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3917         TS_BASE instead of TS_COMMON.
3918         (find_decls_types_r): Check for TS_TYPED structure before looking at
3919         TREE_TYPE.
3920         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3921         Add chain field.
3922         (BLOCK_CHAIN): Use new chain field.
3923
3924 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
3925
3926         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3927         moves expensive on Power7 also.
3928
3929 2011-05-26  Richard Guenther  <rguenther@suse.de>
3930
3931         * fold-const.c (fold_unary_loc): Remove bogus code.
3932
3933 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3934
3935         * tree.h (struct tree_identifier): Inherit from tree_typed, not
3936         tree_common.
3937         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3938         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3939         TS_BASE instead of TS_COMMON.
3940         * varasm.c (assemble_name): Remove assert.
3941
3942 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
3943
3944         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3945         substituted first.
3946         * libgcc-std.ver: Delete file.
3947
3948 2011-05-26  Richard Guenther  <rguenther@suse.de>
3949
3950         PR tree-optimization/48702
3951         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3952         only when we know the base address is within bounds.
3953         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3954         assume the base address of TARGET_MEM_REFs is in bounds.
3955
3956 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3957
3958         PR target/49099
3959         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3960         declaration in TARGET_SOLARIS.
3961
3962 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
3963
3964         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
3965         The instruction is then expanded explicitly.
3966         (supported_compare): Callable instruction.
3967         (compare): Likewise.
3968
3969 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
3970
3971         PR c++/49165
3972         * gimplify.c (shortcut_cond_r): Don't special case
3973         COND_EXPRs if they have void type on one of their arms.
3974
3975 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
3976
3977         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3978         to reduce duplication, and to achieve a slightly more logical order
3979         of operations.
3980
3981 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
3982
3983         PR tree-optimization/49161
3984         * tree-vrp.c (struct case_info): New type.
3985         (compare_case_labels): Sort case_info structs instead of
3986         trees, and not primarily by CASE_LABEL uids but by
3987         label_for_block indexes.
3988         (find_switch_asserts): Put case labels into struct case_info
3989         array instead of TREE_VEC, adjust sorting, compare label_for_block
3990         values instead of CASE_LABELs.
3991
3992 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3993
3994         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3995         ("orndi3_neon"): Likewise.
3996         ("bic<mode>3_neon"): Likewise.
3997
3998 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
3999
4000         PR tree-optimization/49038
4001         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4002         Ensure at least one epilogue iteration if required by data
4003         accesses with gaps.
4004         * tree-vectorizer.h (struct _loop_vec_info): Add new field
4005         to mark loops that require peeling for gaps.
4006         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4007         (vect_get_known_peeling_cost): Take peeling for gaps into
4008         account.
4009         (vect_transform_loop): Generate epilogue if required by data
4010         access with gaps.
4011         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4012         loop as requiring an epilogue if there are gaps in the end of
4013         the strided group.
4014
4015 2011-05-25  Ian Lance Taylor  <iant@google.com>
4016
4017         * godump.c (go_format_type): Output the first field with a usable
4018         Go type, if any.
4019
4020 2011-05-25  Ian Lance Taylor  <iant@google.com>
4021
4022         * godump.c (go_format_type): Check for invalid type names, pointer
4023         target types, and struct field types.
4024
4025 2011-05-25  Jason Merrill  <jason@redhat.com>
4026
4027         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4028
4029 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
4030
4031         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4032
4033 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4034
4035         * config/i386/i386.md (*movqi_extv_1)): Put back
4036         "register_operand" check in "type" calculation.
4037         (*movqi_extzv_2): Likewise.
4038
4039 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4040
4041         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4042
4043 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4044
4045         PR bootstrap/49160
4046         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4047         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4048         __divxc3, __divtc3): Wrap definitions in #ifndef.
4049
4050 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4051
4052         PR target/49142
4053         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4054         "register_operand" check and replace q_regs_operand with
4055         QIreg_operand in "type" calculation.
4056         (*movqi_extv_1): Likewise.
4057         (*movqi_extzv_2_rex64): Likewise.
4058         (*movqi_extzv_2): Likewise.
4059
4060         * config/i386/predicates.md (QIreg_operand): New.
4061
4062 2011-05-25  Richard Guenther  <rguenther@suse.de>
4063
4064         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4065         type-based offset disambiguation, streamline MEM_REF and
4066         TARGET_MEM_REF handling.
4067
4068 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4069
4070         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4071         (bdesc_special_args): Add pause intrinsic.
4072
4073         * config/i386/i386.md (UNSPEC_PAUSE): New.
4074         (pause): Likewise.
4075         (*pause): Likewise.
4076         * config/i386/ia32intrin.h (__pause): Likewise.
4077
4078         * doc/extend.texi (X86 Built-in Functions): Add documentation for
4079         pause intrinsic.
4080
4081 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4082
4083         PR tree-optimization/46728
4084         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4085         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4086
4087 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
4088
4089         * tree.h (struct tree_exp): Inherit from struct tree_typed.
4090         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4091         instead of TS_COMMON.
4092
4093 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4094
4095         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4096         LIBGCC2_GNU_PREFIX is defined.
4097         (__N): New macro.
4098         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4099         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4100         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4101         __clz_tab): Define using __N.
4102         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4103         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4104         * target.def (libfunc_gnu_prefix): New hook.
4105         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4106         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4107         * doc/tm.texi: Regenerate.
4108         * system.h (LIBGCC2_GNU_PREFIX): Poison.
4109         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4110         account.
4111         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4112         (init_optabs): Likewise for the bswap libfuncs.
4113         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4114         and divide.
4115         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4116         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4117         * libgcc-std.ver: Remove.
4118         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4119         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4120         libgcc-std.ver.
4121         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4122         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4123         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4124         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4125         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4126         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4127         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4128         * config/fixed-bit.h (FIXED_OP): Define differently depending on
4129         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4130         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4131
4132 2011-05-25  Jan Hubicka  <jh@suse.cz>
4133
4134         * lto-streamer-out.c (output_record_start): Use lto_output_enum
4135         (lto_output_tree): Use output_record_start.
4136         * lto-streamer-in.c (input_record_start): Use lto_input_enum
4137         (lto_get_pickled_tree): Use input_record_start.
4138         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4139         (lto_value_range_error): New function.
4140         * lto-streamer.h (lto_value_range_error): Declare.
4141         (lto_output_int_in_range, lto_input_int_in_range): New functions.
4142         (lto_output_enum, lto_input_enum): New macros.
4143
4144 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4145
4146         * common.opt (flag_stack_usage_info): New variable.
4147         (-Wstack-usage): New option.
4148         * doc/invoke.texi (Warning options): Document -Wstack-usage.
4149         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4150         <OPT_fstack_usage>: Likewise.
4151         * toplev.c (output_stack_usage): Handle -Wstack-usage.
4152         * calls.c (expand_call): Test flag_stack_usage_info variable instead
4153         of flag_stack_usage.
4154         (emit_library_call_value_1): Likewise.
4155         * explow.c (allocate_dynamic_stack_space): Likewise.
4156         * function.c (instantiate_virtual_regs ): Likewise.
4157         (prepare_function_start): Likewise.
4158         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4159         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4160         * config/arm/arm.c (arm_expand_prologue): Likewise.
4161         (thumb1_expand_prologue): Likewise.
4162         * config/avr/avr.c (expand_prologue): Likewise.
4163         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4164         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4165         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4166         * config/mips/mips.c (mips_expand_prologue): Likewise.
4167         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4168         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4169         * config/s390/s390.c (s390_emit_prologue): Likewise.
4170         * config/sh/sh.c (sh_expand_prologue): Likewise.
4171         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4172         * config/spu/spu.c (spu_expand_prologue): Likewise.
4173
4174 2011-05-25  Richard Guenther  <rguenther@suse.de>
4175
4176         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4177         (gimple_canonical_types_compatible_p): Likewise.
4178
4179 2011-05-25  Jan Hubicka  <jh@suse.cz>
4180
4181         PR middle-end/49062
4182         * ipa.c (function_and_variable_visibility): Only add to same
4183         comdat group list if DECL_ONE_ONLY.
4184
4185 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
4186
4187         PR rtl-optimization/49014
4188         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4189
4190 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
4191
4192         PR target/49128
4193         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4194
4195 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4196
4197         PR rtl-optimization/48757
4198         * ira-build.c (loop_with_eh_edge_p): Rename to
4199         loop_with_complex_edge_p, check edges on complexity, make function
4200         conditional.
4201         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4202         conditional.
4203
4204 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4205
4206         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4207         force flag_ira_share_save_slots to 0.
4208
4209 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4210
4211         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4212         (vt_initialize): Set PROLOGUE_BB unconditionally.
4213         Add block comment about CFA_BASE_RTX machinery.
4214         Reset FP_CFA_OFFSET to -1 on all invalid paths.
4215         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4216
4217 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
4218
4219         PR objc/48187
4220         * c-parser.c (c_parser_objc_class_instance_variables): More robust
4221         parsing of syntax error in ObjC instance variable lists.  In
4222         particular, avoid an infinite loop if there is a stray ']'.
4223         Updated error message.
4224
4225 2011-05-24  Ian Lance Taylor  <iant@google.com>
4226
4227         * godump.c (go_define): Don't accept a string immediately after
4228         another operand.
4229
4230 2011-05-24  Ian Lance Taylor  <iant@google.com>
4231
4232         * godump.c (struct godump_container): Add invalid_hash field.
4233         (go_format_type): Return false if type is found in invalid_hash.
4234         (go_output_typedef): Add invalid type to invalid_hash.
4235         (go_finish): Create and delete invalid_hash.
4236
4237 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4238
4239         PR tree-optimization/46728
4240         * tree-ssa-math-opts.c (powi_table): New.
4241         (powi_lookup_cost): New.
4242         (powi_cost): New.
4243         (powi_as_mults_1): New.
4244         (powi_as_mults): New.
4245         (gimple_expand_builtin_powi): New.
4246         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4247         (gate_cse_sincos): Remove sincos/cexp restriction.
4248
4249 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4250
4251         PR target/3746
4252         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4253         mips-tdump native.
4254         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4255         * mips-tdump.c: Likewise.
4256
4257 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4258
4259         PR target/49128
4260         * config/i386/driver-i386.c (host_detect_local_cpu): Always
4261         add -mno-XXX.  Handle FMA.
4262
4263 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4264
4265         PR rtl-optimization/48633
4266         * ira-build.c (loop_with_eh_edge_p): New function.
4267         (mark_loops_for_removal): Use it.
4268
4269 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4270
4271         PR rtl-optimization/48971
4272         * ira.c (setup_pressure_classes): Don't check register move cost
4273         for classes with one registers.  Don't add pressure class if there
4274         is a pressure class with the same available hard registers.
4275         Check contains_reg_of_mode.  Fix a typo in collecting
4276         temp_hard_regset.  Ignore hard registers not belonging to a class.
4277
4278 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
4279
4280         PR target/49133
4281         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4282
4283 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4284             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4285
4286         PR gcov-profile/48845
4287         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4288
4289 2011-05-24  Richard Guenther  <rguenther@suse.de>
4290
4291         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4292         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4293         (gimple_types_compatible_p_1): Adjust.
4294         (iterative_hash_canonical_type): Do not bother about complete vs.
4295         incomplete types.
4296         (gimple_canonical_types_compatible_p): Likewise.
4297
4298 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4299
4300         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4301
4302 2011-05-24  Richard Guenther  <rguenther@suse.de>
4303
4304         PR bootstrap/49078
4305         * gimple.c (gimple_register_canonical_type): Revert
4306         previous change.
4307         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4308         does not for a tree for the case where it matters.  Cache
4309         pointer-type alias-sets.
4310
4311 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
4312
4313         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4314         (OBJS): Remove options.o, opts-common.o and prefix.o.
4315         (OBJS-libcommon-target): New.
4316         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4317         (BACKEND): Include libcommon-target.a.
4318         (MOSTLYCLEANFILES): Include libcommon-target.a.
4319         (libcommon-target.a): New.
4320         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4321         prefix.o.
4322
4323 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
4324
4325         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
4326         parts of output shared with the driver.
4327         * optc-gen.awk: Don't generate parts of output not shared with the
4328         driver.
4329         * opth-gen.awk: Remove GCC_DRIVER conditionals.
4330         * doc/options.texi (SourcerInclude): Mention options-save.c.
4331         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4332         (OBJS): Add options-save.o.
4333         (options-save.c, options-save.o): New.
4334         (options.o): Update dependencies.
4335         (gcc-options.o): Remove.
4336         (mostlyclean): Remove options-save.c.
4337
4338 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4339
4340         PR debug/49032
4341         * dbxout.c: Include cgraph.h.
4342         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4343         and without value expr, return NULL if no varpool node exists for
4344         it or if it is not needed.
4345         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4346
4347         PR c/49120
4348         * c-decl.c (start_decl): Convert expr to void_type_node.
4349
4350 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
4351
4352         PR rtl-optimization/48826
4353         * emit-rtl.c (try_split): When splitting a call that is followed
4354         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4355
4356 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4357
4358         * cfgexpand.c (expand_debug_expr): For unused non-addressable
4359         parameters passed in memory prefer using DECL_INCOMING_RTL over
4360         the pseudos it will be copied into.
4361
4362 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4363
4364         PR target/47315
4365         * config/i386/i386.c (ix86_option_override_internal): Save the
4366         initial options after checking vzeroupper.
4367
4368 2011-05-23  David Li  <davidxl@google.com>
4369
4370         PR tree-optimization/48988
4371         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4372         Initialize has_valid_pred for each pred chain.
4373
4374 2011-05-23  Richard Guenther  <rguenther@suse.de>
4375
4376         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4377         (iterative_hash_gimple_type): Always hash type names.
4378
4379 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
4380
4381         * c-typeck.c (build_function_call_vec): Tweak call to
4382         check_function_arguments.
4383
4384 2011-05-23  Richard Guenther  <rguenther@suse.de>
4385
4386         PR tree-optimization/49115
4387         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4388         is not necessarily carried out, do not claim it kills the ref.
4389         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4390
4391 2011-05-23  Richard Guenther  <rguenther@suse.de>
4392
4393         PR middle-end/15419
4394         * builtins.c (fold_builtin_memory_op): Be less restrictive about
4395         what pointer types we accept for folding.
4396
4397 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4398
4399         * gthr-gnat.c: Remove.
4400         * gthr-gnat.h: Remove.
4401         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4402         * config/t-freebsd (LIB2ADDEH): Likewise.
4403         * config/t-linux (LIB2ADDEH): Likewise.
4404         * config/t-sol2 (LIB2ADDEH): Likewise.
4405         * config/ia64/t-vms (LIB2ADDEH): Likewise.
4406         * configure.ac (target_thread_file): Remove gnat handling.
4407         * configure: Regenerate.
4408         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4409
4410 2011-05-23  Tristan Gingold  <gingold@adacore.com>
4411             Eric Botcazou  <ebotcazou@adacore.com>
4412
4413         * gcov.c (create_file_names): If no object directory is specified,
4414         keep the directory of the file.
4415
4416 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4417
4418         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4419         * configure: Regenerate.
4420
4421 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4422
4423         PR middle-end/48973
4424         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4425         failed and the comparison has a single bit signed type, use
4426         constm1_rtx instead of const1_rtx for true value.
4427         (do_store_flag): If ops->type is single bit signed type, disable
4428         signel bit test optimization and pass -1 instead of 1 as last
4429         parameter to emit_store_flag_force.
4430
4431 2011-05-23  Tom de Vries  <tom@codesourcery.com>
4432
4433         PR target/45098
4434         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4435         function.
4436         (infer_loop_bounds_from_undefined): Use new function.
4437
4438 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4439
4440         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4441         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
4442         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4443         and -O0 otherwise.
4444         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4445
4446 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4447
4448         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4449         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4450         returns true.
4451
4452 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4453
4454         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4455
4456 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4457
4458         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4459         UNSPEC_MOVE_PIC pattern.
4460
4461 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4462
4463         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4464         (sparc-*-rtems*): Likewise.
4465         (sparc64-*-elf*): Likewise.
4466         (sparc64-*-rtems*): Likewise.
4467         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
4468         * config/sparc/t-crtin: New file.
4469         * config/sparc/t-sol2 (crti.o): Delete rule.
4470         (crtn.o): Likewise.
4471         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4472         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4473         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4474         (ENDFILE_SPEC): Add crtn.o.
4475
4476 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4477
4478         PR middle-end/48689
4479         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4480         CODE_CONTAINS_STRUCT (TS_COMMON).
4481
4482 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
4483
4484         PR middle-end/49029
4485         * expmed.c (extract_fixed_bit_field): Test whether target can be used
4486         only after deciding which mode to use.
4487
4488 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4489
4490         PR target/45098
4491         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4492         for call to get_shiftadd_cost.
4493
4494 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
4495
4496         PR target/49104
4497         * config/i386/cpuid.h (bit_MMXEXT): New define.
4498
4499 2011-05-22  Nick Clifton  <nickc@redhat.com>
4500
4501         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4502         initialisation of non-existant args[2] element.  Use args[] array
4503         not arg[] array to pass arguments to build_function_type_list.
4504
4505 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
4506
4507         PR tree-optimization/49087
4508         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4509
4510 2011-05-21  Jason Merrill  <jason@redhat.com>
4511
4512         PR c++/49092
4513         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4514         static storage duration.
4515
4516 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4517
4518         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4519         frame pointer.
4520
4521 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4522
4523         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4524         false if there are call-saved registers here...
4525         (sparc_can_use_return_insn_p): ...but here instead.
4526         (save_or_restore_regs): Fix thinko.
4527         (sparc_expand_prologue): Use current_function_is_leaf.
4528         (sparc_frame_pointer_required): Likewise.
4529
4530 2011-05-21  Nick Clifton  <nickc@redhat.com>
4531
4532         PR target/49098
4533         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4534
4535 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4536
4537         * gengtype.c (walk_type): Implemented "atomic" GTY option.
4538         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4539
4540 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
4541
4542         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
4543         * optc-gen.awk: Move common code to opt-read.awk.
4544         * opth-gen.awk: Likewise.
4545         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4546
4547 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
4548
4549         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4550
4551 2011-05-20  Tom de Vries  <tom@codesourcery.com>
4552
4553         PR target/45098
4554         * tree-ssa-loop-ivopts.c: Include expmed.h.
4555         (get_shiftadd_cost): New function.
4556         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
4557
4558 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
4559
4560         PR bootstrap/49086
4561         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4562         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4563
4564 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
4565
4566         * Makefile.in: Update comment referring to $(OBJS-common).
4567
4568 2011-05-20  Ian Lance Taylor  <iant@google.com>
4569
4570         * godump.c (go_output_typedef): Put enum constants in the macro
4571         hash table to avoid duplicate Go const definitions.
4572
4573 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
4574
4575         * Makefile.in (LIBDEPS): Add libcommon.a.
4576         (LIBS): Likewise.
4577         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4578         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4579         pretty-print.o and version.o.
4580         (OBJS-libcommon): New.
4581         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4582         (BACKEND): Add libcommon.a.
4583         (MOSTLYCLEANFILES): Likewise.
4584         (libcommon.a): New.
4585         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4586         (cpp$(exeext)): Likewise.
4587         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4588         pretty-print.o and input.o.
4589         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4590         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4591         (errors.o): Remove.
4592         (mips-tfile): Don't explicitly use version.o.
4593         (mips-tdump): Likewise.
4594         (gcov.o): Depend on $(DIAGNOSTIC_H).
4595         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4596         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4597         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4598         * gcov-dump.c: Include intl.h and diagnostic.h.
4599         (main): Initialize diagnostics.
4600         * gcov.c: Include diagnostic.h.
4601         (fnotice): Remove.
4602         (main): Initialize diagnostics.
4603         * lto-wrapper.c: Include diagnostic.h.
4604         (main): Initialize diagnostics.
4605
4606 2011-05-20  Michael Matz  <matz@suse.de>
4607
4608         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4609
4610 2011-05-20  Michael Matz  <matz@suse.de>
4611             Richard Guenther  <rguenther@suse.de>
4612
4613         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4614         use lto_streamer_cache_append directly instead of returning a VEC.
4615         (preload_common_node): Remove.
4616         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4617         track seen nodes.
4618         (lto_streamer_cache_create): Call lto_preload_common_nodes.
4619
4620 2011-05-20  Richard Guenther  <rguenther@suse.de>
4621
4622         PR tree-optimization/49079
4623         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4624         MEM_REFs correctly for the trailing array access detection.
4625         Special case constants the same way as decls for overall size
4626         constraining.
4627
4628 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
4629
4630         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4631         argument expansion.
4632
4633 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
4634
4635         PR tree-optimization/49073
4636         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4637         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4638         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4639
4640 2011-05-20  Richard Guenther  <rguenther@suse.de>
4641
4642         PR middle-end/48849
4643         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4644         of pointer types the same way the middle-end does.
4645
4646 2011-05-20  Richard Guenther  <rguenther@suse.de>
4647
4648         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4649         or pointer-to chains.  Delay all fixup to uniquify_nodes.
4650
4651 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
4652
4653         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4654         (fma4_fmaddsub): Likewise
4655
4656 2011-05-19  Jan Hubicka  <jh@suse.cz>
4657
4658         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4659         (GIMPLE_TYPE_PAIR_SIZE): New macro.
4660         (type_pair_cache): New static var.
4661         (lookup_type_pair): Use fixed sized custom hash; make inline.
4662         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4663         calls of lookup_type_pair.
4664         (print_gimple_types_stats): Remove cache stats.
4665         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4666         and gtc_ob.
4667
4668 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
4669
4670         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4671         when TARGET_RDRND is active.
4672         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4673         Generate dummy SImode target register when target is NULL.
4674
4675 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
4676
4677         * config/arm/arm-fpus.def: New.
4678         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4679         arm-fpus.def.
4680         * config/arm/arm-tables.opt: Regenerate.
4681         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4682         (arm_option_override): Don't decode FPU name to string here.
4683         * config/arm/arm.opt (mfpu=): Use Enum.
4684         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4685         Update dependencies.
4686
4687 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
4688
4689         * collect2.c: Include diagnostic.h.
4690         (fatal_perror, fatal, error, fancy_abort): Remove.
4691         (main): Set progname.  Call xmalloc_set_program_name and
4692         diagnostic_initialize.
4693         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4694         scan_libraries, resolve_lib_name): Call fatal_error instead of
4695         fatal and fatal_perror.
4696         * collect2.h (error, fatal, fatal_perror): Don't declare.
4697         * tlink.c: Include diagnostic-core.h.
4698         (recompile_files): Call fatal_error instead of fatal_perror.
4699         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4700         pretty-print.o and input.o.
4701         (collect2.o, tlink.o): Update dependencies.
4702
4703 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4704
4705         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4706
4707 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4708
4709         PR target/40483
4710         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4711         COMDAT group syntax, both SPARC and x86 variants.
4712         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4713         * configure: Regenerate.
4714         * config/sol2.h (TARGET_SOLARIS): Define.
4715         (PUSHSECTION_FORMAT): Remove.
4716         (SECTION_NAME_FORMAT): Define.
4717         * config/sol2.c: Include hashtab.h.
4718         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4719         expansion, using SECTION_NAME_FORMAT.
4720         (solaris_comdat_htab): New variable.
4721         (struct comdat_entry): Define.
4722         (comdat_hash): New function.
4723         (comdat_eq): New function.
4724         (solaris_elf_asm_comdat_section): New function.
4725         (solaris_define_comdat_signature): New function.
4726         (solaris_code_end): New function.
4727         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4728         (solaris_code_end): Declare.
4729         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4730         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4731         solaris_code_end.
4732         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4733         Remove ATTRIBUTE_UNUSED.
4734         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4735         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4736         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4737         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4738         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4739         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4740         (PUSHSECTION_FORMAT): Remove.
4741         (SECTION_NAME_FORMAT): Redefine.
4742
4743 2011-05-19  Kai Tietz  <ktietz@redhat.com>
4744
4745         * tree-cfg.c (verify_gimple_assign_binary): Barf on
4746         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4747         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4748
4749 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
4750             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4751
4752         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4753
4754 2011-05-19  Richard Guenther  <rguenther@suse.de>
4755
4756         PR middle-end/48985
4757         * tree-object-size.c (addr_object_size): If the pointed-to
4758         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4759
4760 2011-05-19  Richard Guenther  <rguenther@suse.de>
4761
4762         * gimple.c (gimple_types_compatible_p_1): Compare names of
4763         the types themselves.
4764         (iterative_hash_gimple_type): And hash them that way.
4765         (gimple_register_type_1): If we register a main variant properly
4766         initialize the leader to ourselves.
4767
4768 2011-05-19  Tom de Vries  <tom@codesourcery.com>
4769
4770         PR target/45098
4771         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4772         get_loop_invariant_expr_id.
4773         (get_loop_invariant_expr_id): Use get_expr_id.
4774         (parm_decl_cost): New function.
4775         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4776         Improve bound cost estimation.  Use different inv_expr_id for elim and
4777         express cases.
4778
4779 2011-05-19  Tom de Vries  <tom@codesourcery.com>
4780
4781         PR target/45098
4782         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4783         cost_base.cost == 0.
4784
4785 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4786
4787         PR target/49002
4788         * config/i386/sse.md
4789         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4790         load cast.
4791
4792 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
4793
4794         PR tree-optimization/49039
4795         * tree-vrp.c (extract_range_from_binary_expr): For
4796         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4797         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4798
4799 2011-05-18  Tom de Vries  <tom@codesourcery.com>
4800
4801         PR target/45098
4802         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4803
4804 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
4805
4806         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4807         (*tls_global_dynamic_64): Ditto.
4808         (*tls_local_dynamic_base_32_gnu): Ditto.
4809         (*tls_local_dynamic_base_64): Ditto.
4810         (tls_initial_exec_64_sun): Ditto.
4811
4812 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
4813
4814         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4815         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4816         bf592-none.
4817         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4818         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4819         * config/bfin/bfin.c (bfin_cpus): Add bf592.
4820         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4821         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4822         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4823         * config/bfin/elf.h (LIB_SPEC): Add bf592.
4824
4825 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
4826
4827         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4828         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4829         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4830         target_thread_pointer, arm_structure_size_boundary, struct
4831         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4832         struct abi_name, arm_all_abis): Remove.
4833         (arm_option_override) Don't process most enumerated option values here.
4834         Don't process target_fpe_name here.  Work with integer not string for
4835         structure size boundary; use separate diagnostics for each case.
4836         * config/arm/arm.h (enum float_abi_type, enum
4837         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4838         to arm-opts.h.
4839         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4840         arm_structure_size_boundary): Remove.
4841         * config/arm/arm.opt (mabi=): Use Enum and Init.
4842         (arm_abi_type): New Enum and EnumValue entries.
4843         (mfloat-abi=): Use Enum and Init.
4844         (float_abi_type): New Enum and EnumValue entries.
4845         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4846         (mfp16-format=): Use Enum and Init.
4847         (arm_fp16_format_type): New Enum and EnumValue entries.
4848         (mstructure-size-boundary=): Use UInteger and Init.
4849         (mtp=): Use Enum and Init.
4850         (arm_tp_type): New Enum and EnumValue entries.
4851
4852 2011-05-18  Richard Guenther  <rguenther@suse.de>
4853
4854         PR tree-optimization/49018
4855         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4856         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4857         gimple_has_side_effects.
4858
4859 2011-05-18  Richard Guenther  <rguenther@suse.de>
4860
4861         * gimple.c (gimple_register_type_1): New function, split out from ...
4862         (gimple_register_type): ... here.  Avoid infinite recursion.
4863
4864 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
4865
4866         PR tree-optimization/41881
4867         * tree-vectorizer.h (struct _loop_vec_info): Add new field
4868         reduction_chains along with a macro for its access.
4869         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4870         (destroy_loop_vec_info): Free reduction chains.
4871         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4872         (vect_is_slp_reduction): New function.
4873         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4874         (vect_create_epilog_for_reduction): Support SLP reduction chains.
4875         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4876         definition types for reduction chains.
4877         (vect_supported_load_permutation_p): Don't allow permutations for
4878         reduction chains.
4879         (vect_analyze_slp_instance): Support reduction chains.
4880         (vect_analyze_slp): Try to build SLP instance from reduction chains.
4881         (vect_get_constant_vectors):  Handle reduction chains.
4882         (vect_schedule_slp_instance): Mark the first statement of the
4883         reduction chain as reduction.
4884
4885 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
4886
4887         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4888         names for group elements access.
4889         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4890         reduction chains as well.  Remove data reference and interleaving
4891         related words from the fields names.
4892         * tree-vect-loop.c (vect_transform_loop): Use new names for group
4893         elements access.
4894         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4895         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4896         vect_update_interleaving_chain, vect_same_range_drs,
4897         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4898         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4899         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4900         vect_analyze_group_access, vect_analyze_data_ref_access,
4901         vect_create_data_ref_ptr, vect_transform_strided_load,
4902         vect_record_strided_load_vectors): Likewise.
4903         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4904         vect_model_load_cost, vectorizable_store, vectorizable_load,
4905         vect_remove_stores, new_stmt_vec_info): Likewise.
4906         * tree-vect-slp.c (vect_build_slp_tree,
4907         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4908
4909 2011-05-18  Richard Guenther  <rguenther@suse.de>
4910
4911         PR middle-end/48989
4912         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4913         operand verification.
4914         (verify_gimple_assign_binary): Likewise.
4915         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4916         to non-1-precision BOOLEAN_TYPEs.
4917
4918 2011-05-18  Tom de Vries  <tom@codesourcery.com>
4919
4920         PR target/45098
4921         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4922
4923 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
4924
4925         PR tree-optimization/49000
4926         * tree-ssa.c (execute_update_addresses_taken): Call
4927         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
4928         be rewritten and decl has been marked for renaming, reset
4929         the debug stmt.
4930
4931 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
4932
4933         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4934         enum_opts_set when testing if attributes have set -mfpmath=.
4935
4936 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
4937
4938         * config/mips/mips.c (mips_handle_option): Remove unused variable.
4939
4940 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
4941
4942         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4943         info->entry with 0
4944         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
4945         id.transform_lang_insert_block with NULL.
4946
4947 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
4948
4949         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4950         (output_fp_compare): Change args 3 and 4 to bool.
4951         (ix86_expand_call): Change arg 6 to bool.
4952         (ix86_attr_length_immediate_default): Change arg 2 to bool.
4953         (ix86_attr_length_vex_default): Change arg 3 to bool.
4954         * config/i386/i386.md: Update all uses.
4955         * config/i386/i386.c: Ditto.
4956         (ix86_flags_dependent): Change return type to bool.
4957
4958 2011-05-17  Richard Guenther  <rguenther@suse.de>
4959
4960         * gimple.c (type_hash_pair_compare): Fix comparison.
4961
4962 2011-05-17  Richard Guenther  <rguenther@suse.de>
4963
4964         * gimple.c (iterative_hash_gimple_type): Simplify singleton
4965         case some more, fix final hash value of the non-singleton case.
4966
4967 2011-05-17  Richard Guenther  <rguenther@suse.de>
4968
4969         PR bootstrap/49013
4970         Revert
4971         2011-05-16  Richard Guenther  <rguenther@suse.de>
4972
4973         * gimple.c (gimple_types_compatible_p_1): Use names of the
4974         type itself, not its main variant.
4975         (iterative_hash_gimple_type): Likewise.
4976
4977 2011-05-17  Richard Guenther  <rguenther@suse.de>
4978
4979         * gimple.c (gimple_register_canonical_type): Use the main-variant
4980         leader for computing the canonical type.
4981
4982 2011-05-17  Nick Clifton  <nickc@redhat.com>
4983
4984         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4985         moves.
4986
4987         * config/rx/rx.md: Add peephole to remove redundant extensions
4988         after loads.
4989         (bitset_in_memory): Use rx_restricted_mem_operand.
4990         (bitinvert_in_memory): Likewise.
4991         (bitclr_in_memory): Likewise.
4992
4993 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
4994             Nick Clifton  <nickc@redhat.com>
4995
4996         * config/rx/rx.md: Add peepholes to match a register move followed
4997         by a comparison of the moved register.  Replace these with an
4998         addition of zero that does both actions in one instruction.
4999
5000 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
5001
5002         PR target/48986
5003         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5004         predicate to allow CONST_INT.
5005         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5006
5007 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5008
5009         * opts-common.c (opt_enum_arg_to_value): New.
5010         * opts.h (opt_enum_arg_to_value): Declare.
5011         * config/i386/i386.opt (fpmath): Remove.
5012         (mfpmath=): Use Enum, Init and Save.
5013         (fpmath_unit): New Enum and EnumValue entries.
5014         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5015         name for function fpmath state.
5016         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5017         * config/i386/i386.c: Include diagnostic.h.
5018         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5019         (ix86_target_string): Take enum fpmath_unit value instead of string.
5020         (ix86_debug_options): Update call to ix86_target_string.
5021         (ix86_option_override_internal): Don't process fpmath strings here.
5022         (x86_function_specific_save, ix86_function_specific_restore):
5023         Don't handle fpmath state specially.
5024         (ix86_function_specific_print): Pass fpmath state to
5025         ix86_target_string instead of printing in this function.
5026         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5027         Handle enum attributes.
5028         (IX86_ATTR_ENUM, ix86_opt_enum): New.
5029         (ix86_valid_target_attribute_tree): Update option_strings
5030         handling.  Handle fpmath as enum option.
5031         (ix86_can_inline_p): Update field names for function fpmath state.
5032         (ix86_expand_builtin): Update call to ix86_target_string.
5033         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5034         (ix86_fpmath): Remove.
5035         * config/i386/t-i386 (i386.o): Update dependencies.
5036
5037 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5038
5039         PR preprocessor/48677
5040         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5041         from decoded_options[0], not from itself.
5042
5043 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
5044
5045         * config/i386/constraints.md (z): New constraint.
5046         * config/i386/i386.c (c): New mode attribute.
5047         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5048         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5049         constraint for operand 0.
5050         (*call_vzeroupper): Ditto.
5051         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
5052         (*call_rex64_ms_sysv_vzeroupper): Ditto.
5053         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5054         Use "lzm" constraint for operand 0.
5055         (*call_pop_vzeroupper): Ditto.
5056         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5057         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
5058         constraint for operand 0.
5059         (*sibcall_vzeroupper): Ditto.
5060         (*sibcall_rex64_ms_sysv): Ditto.
5061         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5062         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5063         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
5064         (*sibcall_pop_vzeroupper): Ditto.
5065         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5066         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5067         mode iterator.  Use "<c>zm" constraint for operand 1.
5068         (*call_value_vzeroupper): Ditto.
5069         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
5070         for operand 1.
5071         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5072         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5073         *call_value_pop_1.  Use "lzm" constraint for operand 1.
5074         (*call_value_pop_vzeroupper): Ditto.
5075         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5076         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5077         mode iterator.  Use "Uz" constraint for operand 1.
5078         (*sibcall_value_vzeroupper): Ditto.
5079         (*sibcall_value_rex64_ms_sysv): Ditto.
5080         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5081         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
5082         constraint for operand 1.
5083         (*sibcall_value_pop_vzeroupper): Ditto.
5084         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5085         and "z" constraint for operand 2.
5086         (*tls_global_dynamic_32_gnu): Ditto.
5087         (*tls_local_dynamic_base_32_gnu): Ditto.
5088         (*tls_local_dynamic_base_64): Ditto.
5089         (*tls_local_dynamic_32_once): Ditto.
5090         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5091         Update all callers.
5092         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5093
5094 2011-05-16  Richard Guenther  <rguenther@suse.de>
5095
5096         * gimple.c (gimple_types_compatible_p_1): Use names of the
5097         type itself, not its main variant.
5098         (iterative_hash_gimple_type): Likewise.
5099
5100 2011-05-16  Richard Guenther  <rguenther@suse.de>
5101
5102         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5103         always visit pointer target and function result and argument types.
5104
5105 2011-05-16  Jason Merrill  <jason@redhat.com>
5106
5107         PR c++/48999
5108         * tree-inline.c (copy_statement_list): Put back recursion.
5109
5110 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5111
5112         PR target/27663
5113         PR target/41076
5114         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5115         * config/avr/avr.md ("*ior<mode>qi.byte0",
5116         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5117
5118 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5119
5120         PR target/45099
5121         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5122         register is needed for a function argument.
5123
5124 2011-05-16  Richard Guenther  <rguenther@suse.de>
5125
5126         * gimple.c (struct type_hash_pair): New type.
5127         (type_hash_pair_compare): New function.
5128         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5129
5130 2011-05-16  Revital Eres  <revital.eres@linaro.org>
5131
5132         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5133
5134 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5135
5136         * config/i386/i386.md (floating point move splitters): Fix
5137         usage of standard_80387_constant_p.
5138         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5139
5140 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5141
5142         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5143
5144 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5145
5146         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5147         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5148         (tree_ssa_lim_finalize): Likewise.
5149
5150 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
5151
5152         * config/i386/constraint.md (Yd, Yx): New register constraints.
5153         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
5154         Yd conditional register constraint.
5155         (*movtf_internal): Use standard_sse_constant_opcode.
5156         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
5157         Yx conditional register constraint.
5158         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
5159         Yd conditional register constraint.  Use standard_sse_constant_p to
5160         check for valid SSE constants and call standard_sse_constant_opcode to
5161         output SSE insn.
5162         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5163         constants and call standard_sse_constant_opcode to output SSE insn.
5164         * config/i386/i386.c (ix86_option_ovverride_internal): Set
5165         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
5166         optimize_size is set.
5167         (standard_sse_constant_opcode): Output conditional AVX insn templates.
5168
5169 2011-05-14  Tobias Burnus  <burnus@net-b.de>
5170
5171         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5172
5173 2011-05-13  Martin Jambor  <mjambor@suse.cz>
5174
5175         * ipa-prop.c (ipa_cst_from_jfunc): New function.
5176         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5177         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5178         (evaluate_conditions_for_ipcp_clone): Removed.
5179         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5180         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5181         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5182
5183 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
5184
5185         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5186         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5187         lieu of MAY_HAVE_DEBUG_STMTS.
5188         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5189         debug statements if !MAY_HAVE_DEBUG_STMTS.
5190
5191 2011-05-13  Martin Thuresson  <martint@google.com>
5192
5193         PR gcov-profile/47793
5194         * libgcov.c (gcov_exit): Support relative profile paths.
5195         * doc/invoke.texi (-fprofile-dir): Update for above change.
5196
5197 2011-05-13  Richard Guenther  <rguenther@suse.de>
5198
5199         * gimple.c (gimple_canonical_types_compatible_p): Do not use
5200         type-pair caching, do not compare hashes.
5201
5202 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
5203
5204         PR middle-end/48965
5205         * tree-cfg.c (edge_to_cases_cleanup): Return true.
5206         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5207
5208 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5209
5210         * gimplify.c (gimplify_expr): Make sure operand is boolified.
5211         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5212         compatible type for TRUTH_NOT_EXPR.
5213
5214 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5215
5216         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5217         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
5218         can_create_pseudo_p ().
5219
5220 2011-05-13  Richard Guenther  <rguenther@suse.de>
5221
5222         PR lto/48978
5223         * gimple.c (iterative_hash_gimple_type): Revert change in
5224         pointer target and function result and argument hashing.
5225
5226 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
5227
5228         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5229         (*movxf_internal_nointeger): Ditto.
5230         (*movdf_internal_rex64): Ditto.
5231         (*movdf_internal): Ditto.
5232         (*movdf_internal_nointeger): Ditto.
5233         (*movsf_internal): Ditto.
5234         (sincos splitters): Use can_create_pseudo ().
5235
5236 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
5237
5238         * config/i386/i386-opts.h: New.
5239         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5240         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5241         ix86_section_threshold): Remove.
5242         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
5243         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5244         OPT_mbranch_cost_.
5245         (ix86_option_override_internal): Don't decode strings for options
5246         other than -march=, -mtune= and -mfpmath=.  Don't allow for
5247         __attribute__ uses in remaining diagnostics for options with
5248         string arguments.  Don't check for integer arguments being negative.
5249         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5250         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5251         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5252         ix86_branch_cost, ix86_section_threshold): Remove.
5253         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5254         HeaderInclude.
5255         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5256         but not Var.
5257         (masm=): Use Enum and Init.
5258         (asm_dialect): New Enum and EnumValue entries.
5259         (mbranch-cost=): Use UInteger.
5260         (mlarge-data-threshold=): Use UInteger and Init.
5261         (mcmodel=): Use Enum and Init.
5262         (cmodel): New Enum and EnumValue entries.
5263         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5264         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5265         mregparm=): Use UInteger.
5266         (mstringop-strategy=): Use Enum and Init.
5267         (stringop_alg): New Enum and EnumValue entries.
5268         (mtls-dialect=): Use Enum and Init.
5269         (tls_dialect): New Enum and EnumValue entries.
5270         (mabi=): Use Enum and Init.
5271         (calling_abi): New Enum and EnumValue entries.
5272         (mveclibabi=): Use Enum and Init.
5273         (ix86_veclibabi): New Enum and EnumValue entries.
5274
5275 2011-05-13  Nick Clifton  <nickc@redhat.com>
5276
5277         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5278         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5279
5280 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5281
5282         PR middle-end/48984
5283         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5284         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5285         (gimple_boolify): Check for cast for boolean_type_node instead for
5286         BOOLEAN_TYPE.
5287
5288 2011-05-13  Richard Guenther  <rguenther@suse.de>
5289
5290         PR tree-optimization/48172
5291         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5292         multiplying by number of iterations for equal step.
5293         (vect_create_cond_for_alias_checks): Likewise.
5294
5295 2011-05-13  Andreas Schwab  <schwab@redhat.com>
5296
5297         * configure.ac: Use AS_HELP_STRING throughout.
5298         * configure: Regenerate.
5299
5300 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5301
5302         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5303         (ix86_emit_restore_regs_using_mov): Likewise.
5304         (ix86_emit_restore_sse_regs_using_mov): Likewise.
5305
5306 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
5307
5308         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5309         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5310         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5311         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5312         RTX_OK_FOR_OLO10_P): ...here.
5313         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5314         SYMBOLIC_CONST.
5315
5316 2011-05-12  Kai Tietz  <ktietz@redhat.com>
5317
5318         * gimplify.c (gimple_boolify): Re-boolify expression
5319         arguments even if expression type is of kind BOOLEAN_TYPE.
5320         (gimplify_boolean_expr): Removed.
5321         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5322         and XOR. Additional take care that we keep expression's type.
5323         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5324         of TRUTH_AND|OR|XOR_EXPR.
5325
5326 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5327
5328         PR tree-optimization/48975
5329         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5330         on all bbs here and free and clear ifc_bbs at the end.
5331
5332 2011-05-12  Richard Guenther  <rguenther@suse.de>
5333
5334         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5335         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
5336         until after simple checks.
5337         (gimple_types_compatible_p): Likewise.
5338         (iterative_hash_gimple_type): Always hash pointer targets
5339         and function return and argument types.
5340         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5341         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
5342         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5343         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
5344         completely in the simple compare section.
5345         (gimple_register_canonical_type): Query the cache again after
5346         registering.
5347
5348 2011-05-12  Richard Guenther  <rguenther@suse.de>
5349
5350         PR tree-optimization/48172
5351         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5352         the number of iterations from the segment size calculation.
5353         (vect_create_cond_for_alias_checks): Adjust.
5354
5355 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5356
5357         PR debug/48967
5358         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5359         if validate_subreg fails.
5360
5361 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
5362
5363         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5364         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5365         early.
5366
5367 2011-05-12  DJ Delorie  <dj@redhat.com>
5368
5369         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5370         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5371         created builtin into rx_builtins array.
5372         (rx_builtin_decl): New function.
5373         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
5374
5375 2011-05-12  DJ Delorie  <dj@redhat.com>
5376             Nick Clifton  <nickc@redhat.com>
5377
5378         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5379         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5380         (rx_is_legitimate_address): Add pre-decrement and post-increment
5381         addressing in HImode and QImode.  Fix test for out of range
5382         REG+INT addressing.
5383         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5384         (rx_align_for_label): Test label before extracting its usage count.
5385         (rx_adjust_insn_lengths): Fix selection of insn codes.
5386         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5387
5388 2011-05-11  Jason Merrill  <jason@redhat.com>
5389
5390         * tree.c (type_hash_canon): Use struct tree_type_non_common.
5391
5392 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5393
5394         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5395         reindent the subsequent block.
5396
5397 2011-05-11  Satoru Takabayashi  <satorux@google.com>
5398             Paul Pluzhnikov  <ppluzhnikov@google.com>
5399
5400         * doc/install.texi (Configuration): Document --with-linker-hash-style.
5401         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5402         * config.in: Add LINKER_HASH_STYLE.
5403         * configure.ac: Add --with-linker-hash-style.
5404         * configure: Regenerate.
5405
5406 2011-05-11  Richard Guenther  <rguenther@suse.de>
5407
5408         PR middle-end/48964
5409         * gimple.c (iterative_hash_canonical_type): Fix typo.
5410
5411 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
5412
5413         * config/i386/i386.c (legitimize_tls_address)
5414         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5415         expanders directly for TARGET_GNU2_TLS.  Determine pic and
5416         __tls_get_addr symbol reference here.  Update call to
5417         gen_tls_global_dynamic_{32,64} for added arguments.
5418         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5419         expanders directly for TARGET_GNU2_TLS.  Determine
5420         __tls_get_addr symbol reference here.  Update call to
5421         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
5422         unique UNSPEC REG_EQUIV to libcall block.
5423         (ix86_tls_get_addr): Declare static.
5424         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5425         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5426         Do not determine pic and __tls_get_addr symbol reference here. Do not
5427         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5428         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5429         (tls_global_dynamic_64): Add operand 2.  Do not determine
5430         __tls_get_addr symbol reference here.  Do not call
5431         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5432         (tls_local_dynamic_base64): Ditto for operand 1.
5433
5434 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5435
5436         * function.c (expand_function_start): Initialize stack_check_probe_note
5437         only if the generic stack checking mechanism is used.
5438
5439 2011-05-11  Richard Guenther  <rguenther@suse.de>
5440
5441         PR tree-optimization/15256
5442         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5443         (A & B) | C, combine (A op CST1) op CST2.
5444         (tree_ssa_forward_propagate_single_use_vars): Only bother to
5445         visit assigns that have uses.
5446
5447 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
5448
5449         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5450         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5451         (unpack_ts_type_common_value_fields): ...this.  Update comment.
5452         (unpack_value_fields): Adjust for renaming.
5453         (lto_input_ts_type_tree_pointers): Split into...
5454         (lto_input_ts_type_common_tree_pointer): ...this and...
5455         (lto_input_ts_type_non_common_tree_pointers): ...this.
5456         (lto_input_tree_pointers): Adjust for above split.
5457         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5458         (pack_ts_type_common_value_fields): ...this.  Update comment.
5459         (lto_output_ts_type_tree_pointers): Split into...
5460         (lto_output_ts_type_common_tree_pointers): ...this and...
5461         (lto_output_ts_type_non_common_tree_pointers): ...this.
5462         (lto_output_tree_pointers): Adjust for above split.
5463         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5464         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5465         * stor-layout.c (vector_type_mode): Adjust location of mode field.
5466         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5467         Define.
5468         (struct tree_type): Split into...
5469         (struct tree_type_common: ...this and...
5470         (struct tree_type_with_lang_specific): ...this and...
5471         (struct tree_type_non_common): ...this.  Adjust accessor macros
5472         accordingly.
5473         (TYPE_VALUES_RAW): Define.
5474         (union tree_node): Update for above changes.
5475         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5476         TS_TYPE_NON_COMMON.
5477         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5478         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5479         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5480         * treestructu.def (TS_TYPE): Remove.
5481         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5482         Define.
5483
5484 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
5485
5486         PR debug/48159
5487         * tree-ssa.c (reset_debug_uses): New function.
5488         * tree-flow.h (reset_debug_uses): New prototype.
5489         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5490         * tree-loop-distribution.c (generate_loops_for_partition): Call
5491         reset_debug_uses on the stmts that will be removed.  Keep around
5492         all debug stmts, don't count them as bits in partition bitmap.
5493         (generate_builtin): Don't count debug stmts or labels as bits in
5494         partition bitmap.
5495
5496 2011-05-11  Richard Guenther  <rguenther@suse.de>
5497
5498         * gimple.c (gimple_type_hash_1): Merge with ...
5499         (gimple_type_hash): ... this.
5500         (gtc_visit): Remove mode parameter and simplify accordingly.
5501         (gimple_types_compatible_p_1): Likewise.
5502         (gimple_types_compatible_p): Likewise.
5503         (iterative_hash_gimple_type): Likewise.
5504         (visit): Likewise.
5505         (gimple_type_eq): Adjust.
5506
5507 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5508
5509         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5510         enters the branch create an anti edge in the opposite direction
5511         to prevent the creation of reg-moves.
5512         * modulo-sched.c: Adjust comment to reflect the fact we are
5513         scheduling closing branch.
5514         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5515         (stage_count): New field in struct partial_schedule.
5516         (calculate_stage_count): New function.
5517         (normalize_sched_times): Rename to reset_sched_times and handle
5518         incrementing the sched time of the nodes by a constant value
5519         passed as parameter.
5520         (duplicate_insns_of_cycles): Skip closing branch.
5521         (sms_schedule_by_order): Schedule closing branch.
5522         (ps_insn_find_column): Handle closing branch.
5523         (sms_schedule): Call reset_sched_times and adjust the code to
5524         support scheduling of the closing branch.
5525         (ps_insert_empty_row): Update calls to normalize_sched_times
5526         and rotate_partial_schedule functions.
5527
5528 2011-05-11  Richard Guenther  <rguenther@suse.de>
5529
5530         PR middle-end/48953
5531         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5532
5533 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
5534
5535         * opts.c (finish_options): Move warning settings from process_options.
5536         * toplev.c (process_options): Move warning settings to finish_options.
5537
5538 2011-05-11  Richard Guenther  <rguenther@suse.de>
5539
5540         PR tree-optimization/18041
5541         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5542         (simplify_bitwise_binary): ... this.  Handle operand conversions
5543         by applying them to the result instead.
5544         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
5545
5546 2011-05-11  Richard Guenther  <rguenther@suse.de>
5547
5548         * gimple.c (gimple_canonical_types_compatible_p): Split out
5549         from gimple_types_compatible_p and friends.  Do not recurse
5550         to pointed-to types.
5551         (gimple_canonical_type_eq): Use it.
5552         (iterative_hash_canonical_type): Split out from
5553         iterative_hash_gimple_type and friends.  Do not recurse
5554         to pointed-to types.
5555         (gimple_canonical_type_hash): Use it, allocate the hash here.
5556
5557 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5558
5559         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5560         recognizing doloop.
5561
5562 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5563
5564         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5565         instead of PREV_INSN.
5566
5567 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5568
5569         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5570         * loop-doloop.c (doloop_condition_get): Likewise.
5571         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5572         (doloop_end): New.
5573         * config/arm/arm.md (*addsi3_compare0): Remove "*".
5574
5575 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
5576
5577         * tree.def (CASE_LABEL_EXPR): Add an operand.
5578         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5579
5580 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5581
5582         * c-decl.c (c_override_global_bindings_to_false): Remove.
5583         (global_bindings_p): Don't check
5584         c_override_global_bindings_to_false.
5585         * c-tree.h (c_override_global_bindings_to_false): Remove.
5586         * c-typeck.c (composite_type): Don't set
5587         c_override_global_bindings_to_false.
5588
5589 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5590
5591         PR target/48857, 48495
5592         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5593         (VSX_MODE): Ditto.
5594         (VSX_MOVE_MODE): Ditto.
5595         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5596         VSX vector types.  Add V2DImode.
5597         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5598         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5599         (MODES_TIEABLE_P): Ditto.
5600
5601         * config/rs6000/rs6000.c (rs6000_emit_move): Use
5602         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5603         VSX_VECTOR_MODE.
5604         (init_cumulative_args): Ditto.
5605         (rs6000_function_arg_boundary): Ditto.
5606         (rs6000_function_arg_advance_1): Ditto.
5607         (rs6000_function_arg): Ditto.
5608         (rs6000_function_ok_for_sibcall): Ditto.
5609         (emit_frame_save): Ditto.
5610         (rs6000_function_value): Ditto.
5611         (rs6000_libcall_value): Ditto.
5612
5613 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5614
5615         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5616         i386/darwin-lib.h to $libgcc_tm_file.
5617         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5618
5619 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5620
5621         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5622
5623 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5624
5625         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5626         * config/rs6000/rs6000-tables.opt: New file (generated).
5627         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5628         rs6000/rs6000-tables.opt to extra_options.
5629         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5630         * config/rs6000/rs6000.c (rs6000_select): Remove.
5631         (processor_target_table): Move contents to rs6000-cpus.def.
5632         (darwin_rs6000_override_options): Check
5633         global_options_set.x_rs6000_cpu_index instead of
5634         rs6000_select[1].string.
5635         (rs6000_option_override_internal): Likewise.
5636         (rs6000_handle_option): Don't assert that global structures are in
5637         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
5638         (rs6000_default_cpu): New variable.
5639         (rs6000_file_start): Set it instead of local default_cpu.  Check
5640         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5641         global_options_set.x_rs6000_tune_index instead of rs6000_select.
5642         (rs6000_darwin_file_start): Check rs6000_default_cpu and
5643         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5644         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5645         rs6000_select): Remove.
5646         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5647         Remove.
5648         (mcpu=, mtune=): Use Var, Init, Enum and Save.
5649         * config/rs6000/t-rs6000
5650         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5651         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5652         global_options_set.x_rs6000_cpu_index instead of
5653         rs6000_select[1].string.
5654         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5655         global_options_set.x_rs6000_cpu_index instead of
5656         rs6000_select[1].string.
5657
5658 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5659
5660         * config.gcc (libgcc_tm_file): Define instead of including files
5661         from ../../libgcc/config/ in tm_file.
5662         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
5663         * configure: Regenerate.
5664         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5665         libgcc_tm.h, cs-libgcc_tm.h): New.
5666         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5667         (clean): Remove libgcc_tm.h.
5668         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5669         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5670         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5671
5672 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
5673
5674         PR target/48896
5675         * config/avr/avr.c (avr_ret_register): Return unsigned int
5676         instead of int.
5677         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5678         it to avr_libcall_value.
5679         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5680         expand_expr.
5681         (avr_expand_binop_builtin): Ditto.
5682         (avr_expand_unop_builtin): Ditto.
5683
5684 2011-05-10  DJ Delorie  <dj@redhat.com>
5685
5686         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5687         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5688         * config/rx/rx.c (rx_align_for_label): Add label and
5689         uses_threshold parameters.  Do not align when the label is not
5690         used enough.
5691         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5692
5693 2011-05-10  Richard Guenther  <rguenther@suse.de>
5694
5695         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5696         a series of conversions and apply foldings similar to what
5697         fold-const does.
5698         (tree_ssa_forward_propagate_single_use_vars): Call it.
5699
5700 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
5701
5702         PR tree-optimization/48611
5703         PR tree-optimization/48794
5704         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5705         referenced from RESX or EH_DISPATCH arguments.
5706
5707         PR debug/48928
5708         * dfp.c (decimal_to_decnumber): Handle conversion from
5709         dconst{1,2,m1,half}.
5710
5711 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5712
5713         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5714         for !flag_prefer_avx128.
5715         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5716
5717 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
5718
5719         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5720         (fold_ternary_loc): Use expr_location_or.
5721
5722 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5723
5724         PR debug/48853
5725         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5726         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5727         Pmode and mem_mode is not VOIDmode.
5728
5729 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
5730
5731         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5732         TYPE_QUAL_RESTRICT): Convert to enum.
5733
5734 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5735
5736         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5737         (const_pow2_1_to_8_operand): Ditto.
5738         (const_pow2_1_to_128_operand): Ditto.
5739         (const_pow2_1_to_32768_operand): Ditto.
5740         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5741         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
5742         in insn constraint to check integer value of operand 3.
5743         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5744
5745         (PINSR_MODE): New mode iterator.
5746         (sse2p4_1): New mode attribute.
5747         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5748         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5749         iterator.  Use const_int_operand instead of
5750         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
5751         exact_log2 in insn constraint to check integer value of operand 3.
5752
5753 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5754
5755         * config/i386/sse.md (blendbits): Remove mode attribute.
5756         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5757         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5758         Check integer value of operand 3 in insn constraint.
5759
5760 2011-05-09  Richard Guenther  <rguenther@suse.de>
5761
5762         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5763         for diagnostics.
5764         (lto_symtab_merge): Likewise.  Do not register types here.
5765         (lto_symtab_merge_decls_2): Likewise.
5766         (lto_symtab_merge_decls_1): Likewise.
5767         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5768         * gimple.c (enum gtc_mode): Declare.
5769         (gimple_types_compatible_p): Make static.
5770
5771 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5772
5773         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5774         temporary register to match Pmode.
5775
5776 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5777
5778         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5779         and *vec_concatv4si_1_avx.
5780
5781 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5782
5783         PR rtl-optimization/48927
5784         * ira-conflicts.c (commutative_constraint_p): Use
5785         recog_data.alternative_enabled_p to disable alternatives where
5786         "enabled" attribute is false.
5787         (get_dup_num): Ditto.
5788         * ira-lives.c (single_reg_class): Ditto.
5789         (ira_implicitly_set_insn_hard_regs): Ditto.
5790
5791 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
5792
5793         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5794         (dataflow_set_preserve_mem_locs): Likewise.
5795
5796 2011-05-09  Philipp Thomas  <pth@suse.de>
5797
5798         * config/mep/mep.c (mep_validate_vliw): Syntax description
5799         should not be translated.
5800
5801 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
5802
5803         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5804         * config/mips/mips-tables.opt: New file (generated).
5805         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5806         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5807         MIPS_ARCH_OPTION_NATIVE): Define.
5808         * config/mips/mips.c (mips_cpu_info_table): Move contents to
5809         mips-cpus.def.
5810         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5811         mips_parse_cpu): Remove.
5812         (mips_cpu_info_from_opt, mips_default_arch): New.
5813         (mips_handle_option): Don't assert that global structures are in
5814         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5815         (mips_option_override): Use new variables and functions to set
5816         state of these options.  Use strcmp to check for individual CPU names.
5817         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5818         definition.
5819         * config/mips/mips.opt (march=): Use ToLower and Enum.
5820         (mips): Use ToLower, Enum and Var.
5821         (mtune=): Use ToLower and Enum.
5822         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5823
5824 2011-05-08  Jan Hubicka  <jh@suse.cz>
5825
5826         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5827         Arrange type pairs to be UID ordered.
5828         (gimple_lookup_type_leader): Make inline.
5829
5830 2011-05-09  Nick Clifton  <nickc@redhat.com>
5831
5832         PR target/48899
5833         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5834         PROCESSOR_DEFAULT.
5835
5836         PR target/48897
5837         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5838         variable 's'.
5839
5840 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
5841
5842         * combine.c (simplify_comparison): Abstract out parts into...
5843         (simplify_compare_const): ... new function.
5844         (try_combine): Generalize parallel arithmetic/compare combining
5845         to call simplify_compare_const() and CANONICALIZE_COMPARE().
5846
5847 2011-05-08  Jan Hubicka  <jh@suse.cz>
5848
5849         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5850         (cgraph_create_virtual_clone): Call hooks once virtual clone
5851         is finished.
5852         * cgraph.h (cgraph_clone_node): Update prototype.
5853         * ipa-cp.c (ipcp_estimate_growth): Use
5854         estimate_ipcp_clone_size_and_time.
5855         * ipa-inline-transform.c (clone_inlined_nodes): Update.
5856         * lto-cgraph.c (input_node): Update.
5857         * ipa-inline.c (recursive_inlining): Update.
5858         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5859         (evaluate_conditions_for_known_args): Break out from ...
5860         (evaluate_conditions_for_edge): ... here.
5861         (evaluate_conditions_for_ipcp_clone): New function.
5862         (inline_node_duplication_hook): Update clone summary based
5863         on parameter map.
5864         (estimate_callee_size_and_time): Rename to ...
5865         (estimate_node_size_and_time): take NODE instead of EDGE;
5866         take POSSIBLE_TRUTHS as argument.
5867         (estimate_callee_size_and_time): Update.
5868         (estimate_ipcp_clone_size_and_time): New function.
5869         (do_estimate_edge_time): Update.
5870
5871 2011-05-08  Richard Guenther  <rguenther@suse.de>
5872
5873         PR middle-end/48908
5874         PR middle-end/48905
5875         * expmed.c (expand_shift_1): Compute adjusted constant shift
5876         amount manually.
5877
5878 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
5879
5880         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5881
5882 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
5883
5884         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5885
5886 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
5887
5888         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5889
5890 2011-05-07  Jan Hubicka  <jh@suse.cz>
5891
5892         * ipa-inline-transform.c (inline_call): Account when program size
5893         decreases.
5894         * ipa-inline.c (relative_time_benefit): New function.
5895         (edge_badness): Reorganize to be power 2 based; fix thinko when
5896         computing badness for negative growth; update comments to match
5897         reality; better dumps.
5898
5899 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
5900
5901         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5902         type to bool and adjust comment.
5903         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5904         (fold_mathfn_compare): Remove calls to global_bindings_p.
5905         (fold_inf_compare): Likewise.
5906         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5907         * c-tree.h (global_bindings_p): Adjust prototype.
5908         * c-decl.c (global_bindings_p): Return bool and simplify.
5909
5910 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
5911
5912         PR tree-optimization/48837
5913         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5914         when accumulator transformation is performed.
5915
5916 2011-05-06  Jan Hubicka  <jh@suse.cz>
5917
5918         * i386.h (ix86_tune_indices): Add
5919         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
5920         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
5921         * i386.c (initial_ix86_tune_features): Add
5922         X86_SOFTARE_PREFETCHING_BENEFICIAL.
5923         (software_prefetching_beneficial_p): Remove predicate.
5924         (ix86_option_override_internal): Use new macro.
5925
5926 2011-05-06  Jan Hubicka  <jh@suse.cz>
5927
5928         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5929
5930 2011-05-06  Jan Hubicka  <jh@suse.cz>
5931
5932         * cgraph.c (cgraph_add_thunk): Create real function node instead
5933         of alias node; finalize it and mark needed/reachale; arrange visibility
5934         to be right and add it into the corresponding same comdat group list.
5935         (dump_cgraph_node): Dump thunks.
5936         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
5937         cgraph_function_with_gimple_body_p,
5938         cgraph_first_function_with_gimple_body,
5939         cgraph_next_function_with_gimple_body): New functions.
5940         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5941         New macros.
5942         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5943         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5944         * cgraphunit.c (cgraph_finalize_function): Only look into possible
5945         devirtualization when optimizing.
5946         (verify_cgraph_node): Verify thunks.
5947         (cgraph_analyze_function): Analyze thunks.
5948         (cgraph_mark_functions_to_output): Output thunks only in combination
5949         with function they are assigned to.
5950         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5951         alias into normal node.
5952         (assemble_thunks): New functoin.
5953         (cgraph_expand_function): Use it.
5954         * lto-cgraph.c (lto_output_node): Stream thunks.
5955         (input_overwrite_node): Stream in thunks.
5956         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5957         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5958         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5959         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5960         (inline_analyze_function): Do not care about thunk jump functions.
5961         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
5962         * ipa-prop.c (ipa_prop_write_jump_functions): Use
5963         cgraph_function_with_gimple_body_p.
5964         * passes.c (do_per_function_toporder): Use
5965         cgraph_function_with_gimple_body_p.
5966         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5967         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5968         (function_called_by_processed_nodes_p): Likewise.
5969
5970 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
5971
5972         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5973         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5974         entries.
5975         (mabi=): Replace with separate entries for mabi=altivec,
5976         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5977         mabi=ieeelongdouble and mabi=ibmlongdouble.
5978         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5979         check for -mabi=spe without SPE ABI support here.
5980         (rs6000_handle_option): Replace OPT_mabi_ handling with
5981         OPT_mabi_altivec and OPT_mabi_spe handling.
5982
5983 2011-05-06  Cary Coutant  <ccoutant@google.com>
5984
5985         * dwarf2out.c (contains_subprogram_definition): New function.
5986         (should_move_die_to_comdat): Call it.
5987
5988 2011-05-06  Jeff Law  <law@redhat.com>
5989
5990         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5991         remove_ctrl_stmt_and_useless_edges.
5992         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5993         (fixup_template_block, thread_single_edge): Likewise.
5994         (mark_threaded_blocks): Use THREAD_TARGET.
5995
5996 2011-05-06  Alan Modra  <amodra@gmail.com>
5997
5998         PR target/48900
5999         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6000         const0_rtx as the arg to the dummy __tls_get_addr libcall.
6001
6002 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6003
6004         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6005         constraint modifier to "r".
6006
6007 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6008
6009         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6010         fall through for OPT_mcmodel_.
6011
6012 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6013
6014         * config/s390/s390.c (s390_asm_trampoline_template): Comment
6015         instruction sizes.
6016         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6017
6018 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6019
6020         PR target/47930
6021         * config/arm/arm.opt (marm): Document it.
6022         (mthumb): Reject negative variant.
6023
6024 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6025
6026         PR target/48898
6027         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6028         Fix typo in "ccvt" variable name.
6029
6030 2011-05-06  Tristan Gingold  <gingold@adacore.com>
6031
6032         PR target/48895
6033         * config/vms/vms-ar.c (main): Remove cwd variable.
6034
6035 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
6036
6037         PR debug/48902
6038         * var-tracking.c (prepare_call_arguments): Move else before #endif.
6039
6040 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
6041
6042         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6043         * gimplify.c (gimplify_switch_expr): Likewise.
6044         * omp-low.c (expand_omp_sections): Likewise.
6045         * tree-eh.c (lower_try_finally_switch): Likewise.
6046         (lower_eh_dispatch): Likewise.
6047         * tree.h (build_case_label): Declare.
6048         * tree.c (build_case_label): Define.
6049
6050 2011-05-05  Jason Merrill  <jason@redhat.com>
6051
6052         PR c++/40975
6053         * tree-inline.c (copy_tree_r): Use copy_statement_list.
6054         (copy_statement_list): Don't recurse.
6055         * stor-layout.c (copy_self_referential_tree_r): Don't allow
6056         STATEMENT_LIST.
6057
6058 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6059
6060         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6061         through from -mfpu= handling.
6062         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6063
6064 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
6065
6066         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6067         POST_MODIFY.
6068
6069 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
6070
6071         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6072         for 11.31.
6073         (hppa[12]*-*-hpux11*): Ditto.
6074         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6075         * config/ia64/hpux-unix2003.h: New.
6076         * config/pa/pa-hpux1131.opt: New.
6077         * config/pa/pa-hpux1131.h: New.
6078         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6079         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6080         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6081
6082 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6083
6084         PR debug/48853
6085         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6086         instead of mode as 3rd argument to recursive call.
6087         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6088         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6089         VOIDmode.
6090         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6091         don't give up if mode is Pmode and mem_mode is not VOIDmode.
6092         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6093         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6094
6095 2011-05-05  Julian Brown  <julian@codesourcery.com>
6096
6097         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6098         parenthesis in D-register case.
6099
6100 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6101
6102         * opt-functions.awk (var_type_struct): Handle Enum options.
6103         * optc-gen.awk: Don't check range of variables of character type.
6104         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6105         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6106         rs6000_sdata_name, rs6000_explicit_options): Remove.
6107         (rs6000_option_override_internal): Check for -malign-power here.
6108         Use global_options_set instead of rs6000_explicit_options.
6109         (rs6000_parse_fpu_option): Remove.
6110         (rs6000_handle_option): Access variables via opts and opts_set
6111         pointers.  Use error_at and warning_at.  Add fall-through
6112         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6113         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6114         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6115         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6116         here.  Don't use rs6000_parse_fpu_option.
6117         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6118         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6119         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6120         (mrecip=): Use Var.
6121         (mspe): Use Var and Save.
6122         (mtraceback=): Use Enum and Var.
6123         (rs6000_traceback_type): New Enum and EnumValue entries.
6124         (mfloat-gprs=): Use Enum, Var and Save.
6125         (rs6000_float_gprs): New Enum and EnumValue entries.
6126         (mlong-double-): use Var and Save.
6127         (msched-costly-dep=, minsert-sched-nops=): Use Var.
6128         (malign-): Use Enum and Var.
6129         (rs6000_alignment_flags): New Enum and EnumValue entries.
6130         (mfpu=): Use Enum.
6131         (fpu_type_t): New Enum and EnumValue entries.
6132         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6133         global_options_set instead of rs6000_explicit_options.
6134         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6135         global_options_set instead of rs6000_explicit_options.
6136         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6137         global_options_set instead of rs6000_explicit_options.
6138         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6139         global_options_set instead of rs6000_explicit_options.
6140         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6141         global_options_set instead of rs6000_explicit_options.
6142         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6143         global_options_set instead of rs6000_explicit_options.
6144         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6145         definition.
6146         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6147         global_options_set instead of rs6000_explicit_options.
6148         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6149         (rs6000_cmodel): New Enum and EnumValue entries.
6150         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6151         global_options_set instead of rs6000_explicit_options.
6152         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6153         (mtls-size=): Use Enum and Var.
6154         (rs6000_tls_size): New Enum and EnumValue entries.
6155
6156 2011-05-05  Michael Matz  <matz@suse.de>
6157
6158         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6159         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6160         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6161         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6162         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6163         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6164         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6165         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6166         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6167         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6168         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6169         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6170         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6171         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6172         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6173         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6174
6175 2011-05-05  Richard Guenther  <rguenther@suse.de>
6176
6177         * expmed.c (expand_variable_shift): Rename to ...
6178         (expand_shift_1): ... this.  Take an expanded shift amount.
6179         For rotates recurse directly not building trees for the shift amount.
6180         (expand_variable_shift): Wrap around expand_shift_1.
6181         (expand_shift): Adjust.
6182
6183 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6184
6185         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6186
6187 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
6188
6189         * tree.h (get_pending_sizes): Remove prototype.
6190         (put_pending_size): Likewise.
6191         (put_pending_sizes): Likewise.
6192         * stor-layout.c (pending_sizes): Delete.
6193         (get_pending_sizes): Likewise.
6194         (put_pending_size): Likewise.
6195         (put_pending_sizes): Likewise.
6196         (variable_size): Do not call put_pending_size and tidy up.
6197         * function.h (struct function): Remove dont_save_pending_sizes_p.
6198         * lto-streamer-in.c (input_function): Do not stream it.
6199         * lto-streamer-out.c (output_function): Likewise.
6200         * tree-inline.c (initialize_cfun): Do not copy it.
6201         * c-decl.c (store_parm_decls): Do not set it.
6202         * omp-low.c (create_task_copyfn): Likewise.
6203         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6204
6205 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
6206
6207         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6208         conditions.
6209         (*movdf_internal): Ditto.
6210         (*movdf_internal_nointeger): Ditto.
6211         (*movsf_internal): Ditto.
6212
6213 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6214
6215         * c-decl.c (finish_decl): Don't call get_pending_sizes.
6216         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
6217         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
6218         (c_variable_size): Remove.
6219         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
6220         call put_pending_sizes.
6221         (get_parm_info): Add parameter expr.  Use it to set
6222         arg_info->pending_sizes.
6223         (store_parm_decls): Use arg_info->pending_sizes instead or calling
6224         get_pending_sizes.
6225         * c-parser.c (c_parser_parms_declarator): Update call to
6226         c_parser_parms_list_declarator.
6227         (c_parser_parms_list_declarator): Take parameter expr.  Update
6228         call to push_parm_decl.  Update recursive call.  Don't call
6229         get_pending_sizes.  Update calls to get_parm_info.
6230         (c_parser_objc_method_definition): Update calls to
6231         c_parser_objc_method_decl and objc_start_method_definition.
6232         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6233         (c_parser_objc_method_decl): Add parameter expr.  Update call to
6234         grokparm.
6235         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6236         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6237         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6238
6239 2011-05-05  Michael Hope  <michael.hope@linaro.org>
6240
6241         PR pch/45979
6242         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6243         __ARM_EABI__ hosts.
6244
6245 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6246
6247         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6248         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6249         (spu_output_mi_thunk): New function.
6250
6251 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6252
6253         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6254         targetm.asm_out.print_operand.
6255         * config/sol2.c: Include target.h.
6256
6257 2011-05-04  Jan Hubicka  <jh@suse.cz>
6258
6259         * ipa-inline.c (reset_edge_caches): New function.
6260         (update_caller_keys): Add check_inlinablity_for; do not
6261         reset edge caches; remove now unnecesary loop.
6262         (update_callee_keys): Add comments; reset node_growth_cache of callee.
6263         (update_all_callee_keys): Likewise.
6264         (inline_small_functions): Sanity check cache; update code
6265         recomputing it.
6266
6267 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
6268
6269         PR rtl-optimization/47612
6270         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6271         as the last insn of the sequence to be moved.
6272
6273 2011-05-04  Tobias Burnus  <burnus@net-b.de>
6274
6275         PR fortran/48864
6276         * doc/invoke.texi (Ofast): Document that it
6277         enables Fortran's -fno-protect-parens.
6278
6279 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6280
6281         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6282
6283 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
6284
6285         * stor-layout.c (variable_size): Do not issue errors.
6286
6287 2011-05-04  Richard Guenther  <rguenther@suse.de>
6288
6289         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6290         for array-ref indices.
6291         (tree_coverage_counter_addr): Likewise.
6292         (build_fn_info_type): Use size_int for index types.
6293         (build_gcov_info): Likewise.
6294
6295 2011-05-04  Richard Guenther  <rguenther@suse.de>
6296
6297         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6298         to build_int_cst.
6299         * c-typeck.c (really_start_incremental_init): Use bitsize_int
6300         for constructor indices.
6301         (push_init_level): Likewise.
6302
6303 2011-05-04  Richard Guenther  <rguenther@suse.de>
6304
6305         * explow.c (promote_mode): Move variable declarations before code.
6306
6307 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
6308
6309         * tree.h (build_function_type_array): Declare.
6310         (build_varargs_function_type_array): Declare.
6311         (build_function_type_vec, build_varargs_function_type_vec): Define.
6312         * tree.c (build_function_type_array_1): New function.
6313         (build_function_type_array): New function.
6314         (build_varargs_function_type_array): New function.
6315
6316 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
6317
6318         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6319         before setting STMT_VINFO_TYPE.
6320
6321 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6322
6323         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6324         instead of spu_pass_by_reference.
6325
6326 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6327
6328         * calls.c (emit_library_call_value_1): Invoke
6329         promote_function_mode hook on libcall arguments.
6330         * explow.c (promote_function_mode, promote_mode): Handle TYPE
6331         argument being NULL.
6332         * targhooks.c (default_promote_function_mode): Lisewise.
6333         * config/s390/s390.c (s390_promote_function_mode): Likewise.
6334         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6335
6336         * doc/tm.texi: Document that TYPE argument might be NULL.
6337
6338 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6339
6340         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6341
6342 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6343
6344         From Bernd Schmidt
6345         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6346
6347 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6348
6349         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6350         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6351         Move ...
6352         * mips-tfile.c: ... here.
6353         Don't include coretypes.h, tm.h, filenames.h.
6354         (saber_stop): Remove definition and all calls.
6355         [__SABER__]: Remove.
6356         (__LINE__): Remove default.
6357         (Size_t, Ptrdiff_t): Remove definitions.
6358         Replace by size_t, ptrdiff_t.
6359         [!MIPS_DEBUGGING_INFO]: Remove.
6360         (SHASH_SIZE, THASH_SIZE): Remove defaults.
6361         (progname): Add const.
6362         (STATIC): Remove.
6363         Replace all uses by static.
6364         (ALIGN_SYMTABLE_OFFSET): Remove default.
6365         * mips-tdump.c: Don't include coretypes.h, tm.h.
6366         Remove !MIPS_IS_STAB guard.
6367         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6368         $(TM_H), filenames.h dependencies.
6369         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6370
6371 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6372
6373         From Jie Zhang
6374         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6375         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6376
6377 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6378
6379         From Bernd Schmidt
6380         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6381         account and save/restore RETS.
6382         (PROFILE_BEFORE_PROLOGUE): Define.
6383         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
6384         the push insn to use predecrement.
6385
6386 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6387
6388         From Jie Zhang
6389         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6390
6391 2011-05-04  Nick Clifton  <nickc@redhat.com>
6392
6393         * config/mn10300/mn10300.c: Include cfgloop.h.
6394         (DUMP): New macro.
6395         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
6396         Lcc or a FLcc insn into the instruction stream.
6397         (mn10300_block_contains_call): New function.  Returns true if the
6398         given basic block contains a CALL insn.
6399         (mn10300_loop_contains_call_insn): New function.  Returns true if
6400         the given loop contains a CALL insn.
6401         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
6402         to use the SETLB and Lcc or FLcc insns.
6403         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6404         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6405         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
6406         disable the SETLB optimization.
6407         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6408         __SETLB__ or __NO_SETLB__.
6409         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6410         (movsf_internal): Handle MDR register.
6411         (cmpsi): Make visible.
6412         (setlb): New pattern.
6413         (Lcc): New pattern.
6414         (FLcc): New pattern.
6415
6416 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6417
6418         PR target/48860
6419         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6420         for reg<->xmm moves.
6421         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6422         (vec_concatv2di_rex64_sse): Ditto.
6423         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6424         (*vec_extractv2di_1_rex64): Ditto.
6425
6426         Revert:
6427         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6428
6429         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6430         reg<->xmm moves.
6431         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6432
6433 2011-05-04  Richard Guenther  <rguenther@suse.de>
6434
6435         * tree.h (int_const_binop): Remove notrunc argument.
6436         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
6437         create integer constants that are properly truncated.
6438         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6439         (const_binop): Remove zero notrunc argument to int_const_binop.
6440         (size_binop_loc): Likewise.
6441         (fold_div_compare): Likewise.
6442         (maybe_canonicalize_comparison_1): Likewise.
6443         (fold_comparison): Likewise.
6444         (fold_binary_loc): Likewise.
6445         (multiple_of_p): Likewise.
6446         * expr.c (store_constructor): Likewise.
6447         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6448         (maybe_fold_stmt_addition): Likewise.
6449         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6450         * stor-layout.c (layout_type): Likewise.
6451         * tree-data-ref.c (tree_fold_divides_p): Likewise.
6452         * tree-sra.c (build_ref_for_offset): Likewise.
6453         (build_user_friendly_ref_for_offset): Likewise.
6454         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6455         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6456         * tree-ssa-loop-niter.c (inverse): Likewise.
6457         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6458         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6459         * tree-switch-conversion.c (check_range): Likewise.
6460         (build_constructors): Likewise.
6461         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6462         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6463         (extract_range_from_assert): Likewise.
6464         (vrp_int_const_binop): Likewise.
6465         (extract_range_from_binary_expr): Likewise.
6466         (extract_range_from_unary_expr): Likewise.
6467         (check_array_ref): Likewise.
6468         (find_case_label_range): Likewise.
6469         (simplify_div_or_mod_using_ranges): Likewise.
6470         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6471         comparing case labels for merging.
6472
6473 2011-05-03  Mark Wielaard  <mjw@redhat.com>
6474
6475         * dwarf2out.c (debug_str_hash_forced): Removed.
6476         (gen_label_for_indirect_string): Removed.
6477         (get_debug_string_label): Removed.
6478         (AT_string_form): Generate label directly.
6479         (output_indirect_string): Test indirect_string_node for
6480         DW_FORM_strp instead of checking label and refcount.
6481         (prune_indirect_string): Removed.
6482         (prune_unused_types): Don't check debug_str_hash_forced or
6483         call prune_indirect_string.
6484
6485 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6486
6487         PR other/48093
6488         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6489
6490 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6491
6492         PR debug/47994
6493         PR debug/47919
6494         * combine.c (try_combine): Skip debug insns at m_split tests.
6495
6496 2011-04-26  Mark Wielaard  <mjw@redhat.com>
6497
6498         PR42288
6499         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6500         when info_section_emitted.
6501
6502 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
6503
6504         * config/mips/mips-opts.h: New.
6505         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6506         to mips-opts.h.
6507         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6508         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6509         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
6510         via opts pointer.
6511         * config/mips/mips.h (enum mips_code_readable_setting): Move to
6512         mips-opts.h.
6513         (mips_abi, mips_code_readable): Don't declare.
6514         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6515         (mabi=): Use Enum and Var.
6516         (mips_abi): New Enum and EnumValue entries.
6517         (mcode-readable=): Use Enum and Var.
6518         (mips_code_readable_setting): New Enum and EnumValue entries.
6519         (mr10k-cache-barrier=): Use Enum and Var.
6520         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6521
6522 2011-05-03  Jan Hubicka  <jh@suse.cz>
6523
6524         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6525         replace hash by pointer map.
6526         (cgraph_node_set_element_def, cgraph_node_set_element,
6527         const_cgraph_node_set_element, varpool_node_set_element_def,
6528         varpool_node_set_element, const_varpool_node_set_element): Remove.
6529         (free_cgraph_node_set, free_varpool_node_set): New function.
6530         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6531         * tree-emutls.c: Free varpool node set.
6532         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6533         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6534         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6535         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6536         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6537         Move here from ipa.c; implement using pointer_map
6538         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6539         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6540         debug_cgraph_node_set, varpool_node_set_new,
6541         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6542         dump_varpool_node_set, debug_varpool_node_set):
6543         Move to ipa-uitls.c.
6544         * passes.c (ipa_write_summaries): Update.
6545
6546 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6547
6548         From Mike Frysinger:
6549         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6550         bf542/bf544/bf547/bf548/bf549.
6551
6552 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
6553
6554         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6555
6556 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6557
6558         From Bernd Schmidt:
6559         * config/bfin/bfin.md (MOVCC): New mode_macro.
6560         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6561         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
6562         comments from generated assembly.
6563
6564 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6565
6566         From Bernd Schmidt
6567         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6568         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6569         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6570         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6571         * config/bfin/lib1funcs.asm (___muldi3): New function.
6572
6573 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6574
6575         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6576         build_function_type_list instead of build_function_type.
6577         Rearrange initialization of `args' to do so.
6578
6579 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6580
6581         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6582         instead of build_function_type.
6583
6584 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6585
6586         * config/rs6000/rs6000.c (spe_init_builtins): Call
6587         build_function_type_list instead of build_function_type.
6588         (paired_init_builtins, altivec_init_builtins): Likewise.
6589         (builtin_function_type): Likewise.
6590
6591 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6592
6593         * config/sh/sh.c (sh_media_init_builtins): Call
6594         build_function_type_list instead of build_function_type.
6595
6596 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6597
6598         * config/sparc/sparc.c (sparc_file_end): Call
6599         build_function_type_list instead of build_function_type.
6600
6601 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6602
6603         * config/alpha/alpha.c (alpha_init_builtins): Call
6604         build_function_type_list instead of build_function_type.
6605
6606 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6607
6608         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6609         build_function_type_list instead of build_function_type.
6610
6611 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6612
6613         * config/iq2000/i2000.c (iq2000_init_builtins): Call
6614         build_function_type_list instead of build_function_type.
6615         Delete `endlink' variable.
6616
6617 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6618
6619         * config/avr/avr.c (avr_init_builtins): Call
6620         build_function_type_list instead of build_function_type.
6621
6622 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6623
6624         * config/picochip/picochip.c (picochip_init_builtins): Call
6625         build_function_type_list instead of build_function_type.
6626         Delete `endlink' variable.
6627
6628 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6629
6630         * config/bfin/bfin.c (bfin_init_builtins): Call
6631         build_function_type_list instead of build_function_type.
6632
6633 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6634
6635         From Bernd Schmidt
6636         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6637         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
6638
6639 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6640
6641         From Jie Zhang:
6642         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6643         libbffastfp overrides libgcc when -mfast-fp.
6644
6645 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6646
6647         Originally from Bernd Schmidt
6648         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6649         * config/bfin/bfin.c (override_options): Test it and error if
6650         TARGET_FDPIC.
6651
6652 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6653
6654         Originally From Bernd Schmidt
6655         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6656         FD-PIC.
6657
6658 2011-05-03  Jeff Law  <law@redhat.com>
6659
6660         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6661         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6662         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6663         than accessing AUX field directly.  Free the AUX field before
6664         clearing it.
6665         (thread_block, thread_through_loop_header): Likewise.
6666         (thread_single_edge, mark_threaded_blocks): Likewise.
6667         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
6668         (register_jump_thread): Do not attempt to thread to a NULL edge.
6669
6670 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
6671
6672         * function.c (init_function_start): Call decide_function_section.
6673         * varasm.c (decide_function_section): New function.
6674         (assemble_start_function): When not using
6675         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6676         or first_function_block_is_cold.
6677         * rtl.h (decide_function_section): Declare.
6678
6679 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
6680             Jakub Jelinek  <jakub@redhat.com>
6681
6682         PR target/48774
6683         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6684         only succeed if req_mode is the same as set_mode.
6685
6686 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
6687
6688         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6689         * genemit.c (gen_exp): Handle RETURN.
6690         * emit-rtl.c (verify_rtx_sharing): Likewise.
6691         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6692         * rtl.c (copy_rtx): RETURN is shared.
6693         * rtl.h (enum global_rtl_index): Add GR_RETURN.
6694         (ret_rtx): New.
6695         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6696         * config/s390/s390.c (s390_emit_epilogue): Likewise.
6697         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6698         * config/cris/cris.c (cris_expand_return): Likewise.
6699         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6700         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6701         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6702         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6703         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6704         Likewise.
6705         * config/v850/v850.c (expand_epilogue): Likewise.
6706         * config/bfin/bfin.c (bfin_expand_call): Likewise.
6707         * config/arm/arm.md (epilogue): Likewise.
6708         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6709         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6710         variable to ret_reg.
6711
6712 2011-05-03  Richard Guenther  <rguenther@suse.de>
6713
6714         PR lto/48846
6715         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6716         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6717         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6718
6719 2011-05-03  Richard Guenther  <rguenther@suse.de>
6720
6721         * c-decl.c (grokdeclarator): Instead of looking at
6722         TREE_OVERFLOW check if the constant fits in the index type.
6723
6724 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6725
6726         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6727         (vec_store_lanes<mode><mode>): Likewise.
6728
6729 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6730
6731         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6732         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6733         convert_optab_index values.
6734         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6735         * genopinit.c (optabs): Initialize the new optabs.
6736         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6737         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6738         (expand_STORE_LANES): New functions.
6739         * tree.h (build_array_type_nelts): Declare.
6740         * tree.c (build_array_type_nelts): New function.
6741         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6742         (vect_model_load_cost): Likewise.
6743         (vect_store_lanes_supported, vect_load_lanes_supported)
6744         (vect_record_strided_load_vectors): Declare.
6745         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6746         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6747         (vect_transform_strided_load): Split out statement recording into...
6748         (vect_record_strided_load_vectors): ...this new function.
6749         * tree-vect-stmts.c (create_vector_array, read_vector_array)
6750         (write_vector_array, create_array_ref): New functions.
6751         (vect_model_store_cost): Add store_lanes_p argument.
6752         (vect_model_load_cost): Add load_lanes_p argument.
6753         (vectorizable_store): Try to use store-lanes functions for
6754         interleaved stores.
6755         (vectorizable_load): Likewise load-lanes and loads.
6756         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6757         to vect_model_store_cost.
6758         (vect_build_slp_tree): Likewise vect_model_load_cost.
6759
6760 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6761
6762         * hooks.h (hook_bool_mode_uhwi_false): Declare.
6763         * hooks.c (hook_bool_mode_uhwi_false): New function.
6764         * target.def (array_mode_supported_p): New hook.
6765         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6766         * doc/tm.texi: Regenerate.
6767         * stor-layout.c (mode_for_array): New function.
6768         (layout_type): Use it.
6769         * config/arm/arm.c (arm_array_mode_supported_p): New function.
6770         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6771
6772 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
6773
6774         PR target/48723
6775         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6776         for -fstack-check if the size to allocate is negative.
6777
6778 2011-05-02  Lawrence Crowl  <crowl@google.com>
6779
6780         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6781         (timevar_cond_start): New for starting a timer only when it is not
6782         already running.
6783         (timevar_cond_stop): New for stopping a timer when it was not already
6784         running.
6785
6786         * timevar.c (timevar_stop): Enable start/stop timers to start again.
6787         (timevar_cond_start): New as above.
6788         (timevar_cond_stop): New as above.
6789
6790         * timevar.def: Add start/stop timers for compiler phases,
6791         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6792         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6793         and TV_PHASE_FINALIZE.
6794         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6795         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6796         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6797         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6798         Make unused TV_OVERLOAD into a start/stop timer.
6799
6800         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6801         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6802         to indicate that they are start/stop timers.
6803
6804         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6805         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6806         Move initialization to do_compile.
6807         (do_compile): Add initialization from above.
6808         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6809
6810         * c-decl.c (c_write_global_declarations): Add start/stop of
6811         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6812
6813         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6814         or TV_PARSE_INLINE, as appropriate.
6815         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6816         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6817
6818 2011-05-02  Jason Merrill  <jason@redhat.com>
6819
6820         PR c++/40975
6821         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6822
6823 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
6824
6825         PR c/35445
6826         * c-decl.c (finish_decl): Only create a composite if the types are
6827         compatible.
6828
6829 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
6830
6831         * config/fr30/fr30-protos.h (Mmode): Don't define.
6832         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
6833         definition where used.
6834         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6835         define.  Expand definitions where used.
6836         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6837         Expand definitions where used.
6838         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6839         rx_function_arg, rx_function_arg_advance,
6840         rx_function_arg_boundary): Expand definitions of those macros.
6841         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
6842         definition where used.
6843
6844 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6845
6846         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6847         reg<->xmm moves.
6848         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6849         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
6850         with *movv2sf_internal_rex64_avx.
6851         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6852         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6853         Use %v prefix in insn mnemonic to handle TARGET_AVX.
6854         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
6855         "vex" in "prefix" attribute calculation.
6856         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
6857
6858 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
6859
6860         PR target/47951
6861         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6862         inputs match the output.
6863
6864 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
6865
6866         PR target/47955
6867         * config/m68k/m68k.c (m68k_expand_prologue): Set
6868         current_function_static_stack_size.
6869
6870 2011-05-02   Jan Hubicka  <jh@suse.cz>
6871
6872         * lto-streamer.c (lto_streamer_cache_insert_1,
6873         lto_streamer_cache_lookup, lto_streamer_cache_create,
6874         lto_streamer_cache_delete): Use pointer map instead of hashtable.
6875         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6876
6877 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
6878
6879         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6880         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6881         config/m68k/t-opts: New files.
6882         * config/m68k/m68k-tables.opt: New file (generated).
6883         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6884         extra_options and m68k/t-opts to tmake_file.
6885         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6886         (all_isas): Initialize using m68k-isas.def.
6887         (all_microarchs): Initialize using m68k-microarchs.def.
6888         (m68k_find_selection): Remove.
6889         (m68k_handle_option): Don't assert that global structures are in
6890         use.  Use error_at.  Access variables via opts pointer.  Don't
6891         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
6892         directly for -m68020-40 and -m68020-60.
6893         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6894         m68k_tune_entry here.
6895         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6896         to m68k-opts.h.
6897         (m68k_library_id_string): Remove declaration.
6898         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6899         (m68k_library_id_string): New Variable.
6900         (march=, mcpu=, mtune=): Use Enum and Var.
6901
6902 2011-05-02  Richard Guenther  <rguenther@suse.de>
6903
6904         * varasm.c (output_constructor_regular_field): Compute zero-based
6905         index with double-ints.  Make sure to ICE instead of producing
6906         wrong code.
6907         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6908         in asserts.  Properly use a signed type.
6909
6910 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6911
6912         * config/i386/sse.md (V): New mode iterator.
6913         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
6914         TARGET_SSE2.
6915         (V_256): Rename from AVX256MODE.
6916         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
6917         condition to all users.
6918         (VF1): Ditto.
6919         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
6920         condition to all users.
6921         (VF_128): Make V4SF mode unconditional.
6922         (VF_256): Rename from AVX256MODEF2P.
6923         (VI4F_128): Rename from SSEMODE4S.
6924         (VI8F_128): Rename from SSEMODE2D.
6925         (VI4F_256): Rename from AVX256MODE8P.
6926         (VI8F_256): Rename from AVX256MODE4P.
6927         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6928         (ssescalarmodesuffix): Remove SF and DF modes.
6929         (SSEMODE124): Remove.
6930         (SSEMODE1248): Ditto.
6931         (SSEMODEF2P): Ditto.
6932         (AVXMODEF2P): Ditto.
6933         (AVXMODEFDP): Ditto.
6934         (AVXMODEFSP): Ditto.
6935         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6936         unconditional.
6937         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
6938         unconditional.
6939         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6940         xop_pcmov_<mode>256.  Use V mode iterator.
6941
6942         Adjust RTX patterns globally for renamed mode attributes.
6943
6944 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6945
6946         * haifa-sched.c (sched_emit_insn): Emit insn before first
6947         non-scheduled insn.  Inform back-end about new insn.  Add
6948         new insn to scheduled_insns list.
6949
6950 2011-05-02  Richard Guenther  <rguenther@suse.de>
6951
6952         PR tree-optimization/48822
6953         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6954         (process_scc): Indicate which iteration we start.
6955
6956 2011-05-02  Jan Hubicka  <jh@suse.cz>
6957
6958         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6959         (lto_section_overrun): New.
6960         * lto-section-out.c (append_block): Rename to ...
6961         (lto_append_block): ... this one; export.
6962         (lto_output_1_stream): Move lto lto-streamer.h
6963         (lto_output_data_stream): Update.
6964         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6965         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6966         functions.
6967
6968 2011-05-02  Richard Guenther  <rguenther@suse.de>
6969
6970         * tree.c (tree_code_counts): New global array.
6971         (record_node_allocation_statistics): Count individual tree codes.
6972         (dump_tree_statistics): Dump individual code stats.
6973
6974 2011-05-01  Jan Hubicka  <jh@suse.cz>
6975
6976         * ipa-inline.c (caller_growth_limits): Fix thinko when
6977         looking for largest stack frame.
6978         * ipa-inline.h (dump_inline_summary): Declare.
6979         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6980         on stack usage.
6981         (dump_inline_summary): Export.
6982         (debug_inline_summary): Declare as DEBUG_FUNCTION.
6983
6984 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
6985
6986         * reginfo.c (memory_move_cost): Change rclass argument type form
6987         'enum reg_class' to reg_class_t.
6988         * reload.h (memory_move_cost): Update prototype.
6989         * postreload.c reload_cse_simplify_set): Change type dclass var to
6990         reg_class_t.
6991         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6992         Update prototype.
6993         (ira_allocate_and_set_costs): Change aclass argument type form
6994         'enum reg_class' to reg_class_t.
6995         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6996         Change aclass argument type to reg_class_t.
6997         (update_conflict_hard_reg_costs): Change type aclass and pref vars
6998         to reg_class_t.
6999         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7000         memory_move_cost call.
7001
7002         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7003         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7004         Change type tmp var to reg_class_t.
7005
7006 2011-04-30  Jan Hubicka  <jh@suse.cz>
7007
7008         * ipa-inline.c (can_inline_edge_p): Disregard limits when
7009         inlining into function with flatten attribute.
7010         (want_inline_small_function_p): Be more realistic about inlining
7011         cold calls where callee size grows.
7012
7013 2011-04-30  Jan Hubicka  <jh@suse.cz>
7014
7015         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7016         flags.
7017
7018 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
7019
7020         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7021         PRINT_OPERAND_PUNCT_VALID_P): Remove.
7022         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7023         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7024         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7025         (print_operand): Rename to...
7026         (sparc_print_operand): ...this. Make static. Adjust
7027         sparc_print_operand function call.
7028         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7029         functions.
7030
7031 2011-04-30  Jan Hubicka  <jh@suse.cz>
7032
7033         PR middle-end/48752
7034         * ipa-inline.c (early_inliner): Disable when doing late
7035         addition of function.
7036
7037 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
7038
7039         * dwarf2out.c (get_address_mode): New inline.
7040         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7041         if not dwarf_strict emit
7042         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7043         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7044         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
7045         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7046         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7047         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7048         mem_loc_descriptor callers.
7049         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7050         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7051         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7052         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7053         (base_types): New variable.
7054         (get_base_type_offset, calc_base_type_die_sizes,
7055         base_type_for_mode, mark_base_types, base_type_cmp,
7056         move_marked_base_types): New functions.
7057         (calc_die_sizes): Assert that die_offset is 0 or equal to
7058         next_die_offset.
7059         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7060         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
7061         callers.  If not dwarf_strict, call mem_loc_descriptor even for
7062         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7063         (gen_subprogram_die): Don't give up on call site parameters
7064         with non-integral or large integral modes.  Adjust
7065         mem_loc_descriptor callers.
7066         (prune_unused_types): Call prune_unused_types_mark on base_types
7067         vector entries.
7068         (resolve_addr): Call mark_base_types.
7069         (dwarf2out_finish): Call move_marked_base_types.
7070
7071         PR tree-optimization/48809
7072         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7073         type.
7074         (gen_inbound_check): Don't compute index_expr - range_min in utype
7075         again, instead reuse SSA_NAME initialized in build_arrays.
7076         Remove two useless gsi_for_stmt calls.
7077
7078 2011-04-29  Jeff Law  <law@redhat.com>
7079
7080         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7081
7082 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7083
7084         * cgraph.h (cgraph_postorder): Remove declaration.
7085         * ipa-utils.h (ipa_free_postorder_info): Declare.
7086         (ipa_reverse_postorder): Likewise.
7087         * cgraphunit.c: Include ipa-utils.h.
7088         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7089         * ipa-inline.c: Include ipa-utils.h.
7090         (ipa_inline): Update call to ipa_reverse_postorder.
7091         * ipa-pure-const.c (propagate_pure_const): Update call to
7092         ipa_reduced_postorder and ipa_print_order.  Call
7093         ipa_free_postorder_info to clean up.
7094         (propagate_nothrow): Likewise.
7095         * ipa-reference.c (propagate): Removed a useless call to
7096         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7097         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
7098         * ipa.c: Include ipa-utils.h.
7099         (ipa_profile): Update call to ipa_reverse_postorder.
7100         (cgraph_postorder): Moved to...
7101         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7102         (ipa_utils_print_order): Renamed to ipa_print_order.
7103         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7104         comments.
7105         (ipa_free_postorder_info): New function.
7106         * passes.c: Include ipa-utils.h.
7107         (do_per_function_toporder): Update call to ipa_reverse_postorder.
7108         (ipa_write_summaries): Likewise.
7109         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7110         (cgraphunit.o): Likewise.
7111         (ipa.o): Likewise.
7112         (ipa-inline.o): Likewise.
7113
7114 2011-04-29  Jan Hubicka  <jh@suse.cz>
7115
7116         * gcc.dg/tree-ssa/inline-10.c: New testcase.
7117         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7118         * ipa-inline.h (clause_t): Turn into unsigned int.
7119         * ipa-inline-analysis.c (add_clause): Do more simplification.
7120         (and_predicates): Shortcut more cases.
7121         (predicates_equal_p): Move forward; check that clauses are properly
7122         ordered.
7123         (or_predicates): Shortcut more cases.
7124         (edge_execution_predicate): Rewrite as...
7125         (set_cond_stmt_execution_predicate): ... this function; handle
7126         __builtin_constant_p.
7127         (set_switch_stmt_execution_predicate): New .
7128         (compute_bb_predicates): New.
7129         (will_be_nonconstant_predicate): Update TODO.
7130         (estimate_function_body_sizes): Use compute_bb_predicates
7131         and free them later, always try to estimate if stmt is constant.
7132         (estimate_time_after_inlining, estimate_size_after_inlining):
7133         Gracefully handle optimized out edges.
7134         (read_predicate): Fix off by one error.
7135
7136 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7137
7138         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7139
7140 2011-04-27  Xinliang David Li  <davidxl@google.com>
7141
7142         * tree-profile.c (init_ic_make_global_vars): Set
7143         tls attribute on ic vars.
7144         * coverage.c (coverage_end_function): Initialize
7145         function_list with zero.
7146
7147 2011-04-29  Richard Guenther  <rguenther@suse.de>
7148
7149         * builtins.c (fold_builtin_classify_type): Use integer_type_node
7150         for the type of the result.
7151         (fold_builtin_isascii): Likewise.
7152         (fold_builtin_toascii): Use integer_type_node where appropriate.
7153         (fold_builtin_logb): Likewise.
7154         (fold_builtin_frexp): Likewise.
7155         (fold_builtin_strstr): Likewise.
7156         (fold_builtin_strpbrk): Likewise.
7157         (fold_builtin_fputs): Likewise.
7158         (fold_builtin_sprintf): Likewise.
7159         (fold_builtin_snprintf): Likewise.
7160         (fold_builtin_printf): Likewise.
7161         (do_mpfr_remquo): Use a proper type for the assigned constant.
7162         (do_mpfr_lgamma_r): Likewise.
7163         * dwarf2out.c (resolve_one_addr): Use size_int.
7164         * except.c (init_eh): Likewise.
7165         (assign_filter_values): Use integer_type_node for filter values.
7166         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7167         indices.
7168         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7169         for EH region numbers.
7170         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7171         for the shift amount.
7172
7173 2011-04-29  Richard Guenther  <rguenther@suse.de>
7174
7175         * expr.h (expand_shift): Rename to ...
7176         (expand_variable_shift): ... this.
7177         (expand_shift): Take a constant shift amount.
7178         * expmed.c (expand_shift): Rename to ...
7179         (expand_variable_shift): ... this.
7180         (expand_shift): New wrapper around expand_variable_shift.
7181         * expr.c (convert_move, emit_group_load_1, emit_group_store,
7182         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7183         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7184         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7185         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7186         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7187         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7188         emit_store_flag_1, emit_store_flag): Likewise.
7189         * builtins.c (expand_builtin_signbit): Likewise.
7190         * calls.c (load_register_parameters): Likewise.
7191         * function.c (assign_parm_setup_block): Likewise.
7192         * lower-subreg.c (resolve_shift_zext): Likewise.
7193         * optabs.c (widen_bswap, expand_abs_nojump,
7194         expand_one_cmpl_abs_nojump, expand_float): Likewise.
7195         * spu/spu.c (spu_expand_extv): Likewise.
7196         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7197
7198 2011-04-29  Richard Guenther  <rguenther@suse.de>
7199
7200         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7201         for the remapped region number.
7202         * predict.c (build_predict_expr): Use integer_type_node for the
7203         predict kind.
7204         * fold-const.c (fold_binary_loc): Use integer_type_node for
7205         the shift amount.  Use a proper type for the PLUS_EXPR operand.
7206
7207 2011-04-29  Michael Matz  <matz@suse.de>
7208
7209         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7210         other trees that just builtins.
7211         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7212
7213 2011-04-29  Richard Guenther  <rguenther@suse.de>
7214
7215         * tree-nested.c (get_trampoline_type): Use size_int.
7216         (get_nl_goto_field): Likewise.
7217         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7218         for all indexes.
7219         (lower_eh_constructs_2): Likewise.
7220         (lower_resx): Likewise.
7221         (lower_eh_dispatch): Likewise.
7222         * tree-mudflap.c (mf_build_string): Use size_int.
7223         (mudflap_register_call): Use integer_type_node for the flag.
7224         (mudflap_enqueue_constant): Use size_int.
7225         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7226         instead of rebuilding it.
7227
7228 2011-04-29  Richard Guenther  <rguenther@suse.de>
7229
7230         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7231         Handle OBJ_TYPE_REF.
7232         (find_func_aliases_for_call): Use it more consistently.
7233
7234 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
7235
7236         * haifa-sched.c (last_nondebug_scheduled_insn): New.
7237         (rank_for_schedule): Use it.
7238         (schedule_block): Set it.
7239
7240 2011-04-28  David Li  <davidxl@google.com>
7241
7242         * tree.c (crc32_string): Use crc32_byte.
7243         (crc32_byte): New function.
7244         * tree.h (crc32_byte): New function.
7245         * gcov.c (read_graph_file): Handle new cfg_cksum.
7246         (read_count_file): Ditto.
7247         * profile.c (instrument_values): Ditto.
7248         (get_exec_counts): Ditto.
7249         (read_profile_edge_counts): Ditto.
7250         (compute_branch_probabilities): Ditto.
7251         (compute_value_histograms): Ditto.
7252         (branch_prob): Ditto.
7253         (end_branch_prob): Ditto.
7254         * coverage.c (read_counts_file): Ditto.
7255         (get_coverage_counts): Ditto.
7256         (tree_coverage_counter_addr): Ditto.
7257         (coverage_checksum_string): Ditto.
7258         (coverage_begin_output): Ditto.
7259         (coverage_end_function): Ditto.
7260         (build_fn_info_type): Ditto.
7261         (build_fn_info_value): Ditto.
7262         * libgcov.c (gcov_exit): Ditto.
7263         * gcov-dump.c (tag_function): Ditto.
7264         (compute_checksum): Remove.
7265
7266 2011-04-29  Alan Modra  <amodra@gmail.com>
7267
7268         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7269         unspec plus offset.  Tidy macho code.
7270
7271 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7272
7273         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7274         node instead of a decl.  Update all callers.
7275         * cgraph.h: Update declaration.
7276
7277 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
7278
7279         PR tree-optimization/48765
7280         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7281         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7282         to indicate if loop aware SLP is being used.  Scan the statements
7283         and update the vectorization factor according to the type of
7284         vectorization before statement analysis.
7285         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7286         pass it to vect_analyze_loop_operations.
7287         (vectorizable_reduction): Set number of copies to 1 in case of pure
7288         SLP statement.
7289         * tree-vect-stmts.c (vectorizable_conversion,
7290         vectorizable_assignment, vectorizable_shift,
7291         vectorizable_operation, vectorizable_type_demotion,
7292         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7293         Likewise.
7294         (vectorizable_condition): Move the check that it is not SLP
7295         vectorization before the number of copies check.
7296         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7297         to vectorize the loop using SLP.
7298
7299 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
7300
7301         PR middle-end/48597
7302         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7303         inline asm.
7304
7305 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
7306
7307         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7308         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7309         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7310         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7311         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7312         linux*.h headers.
7313         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7314         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7315         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7316         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7317         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7318         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7319         REG_NAME.
7320         * config/i386/linux.h (REG_NAME): Don't define.
7321         * config/i386/linux64.h (REG_NAME): Don't define.
7322         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7323         Undefine before defining.
7324
7325 2011-04-28  Jan Hubicka  <jh@suse.cz>
7326
7327         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7328         nonconstant_names array.
7329         (estimate_function_body_sizes): Build nonconstant_names array; handle
7330         BUILT_IN_CONSTANT_P.
7331
7332 2011-04-28  Richard Guenther  <rguenther@suse.de>
7333
7334         PR bootstrap/48804
7335         Revert
7336         2011-04-28  Richard Guenther  <rguenther@suse.de>
7337
7338         * tree-ssa-structalias.c (solve_constraints): Build succ graph
7339         as late as possible.
7340
7341 2011-04-28  Richard Guenther  <rguenther@suse.de>
7342
7343         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7344         (debug_constraint): Do it here.
7345         (dump_constraints): And here.
7346         (rewrite_constraints): And here.
7347         (dump_constraint_edge): Remove.
7348         (dump_constraint_graph): Rewrite to produce DOT output.
7349         (solve_constraints): Build succ graph as late as possible.
7350         Dump constraint graphs before and after solving.
7351
7352 2011-04-28  Richard Guenther  <rguenther@suse.de>
7353
7354         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7355         New function split out from ...
7356         (find_func_aliases): ... here.  Call it.
7357         (find_func_aliases_for_call): Likewise.
7358
7359 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7360
7361         * internal-fn.h (internal_fn_name_array): Declare.
7362         (internal_fn_flags_array): Likewise.
7363
7364 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7365
7366         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
7367         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7368         Move from sse.md.
7369         (ssemodefsuffix): Remove.
7370         (ssevecmodesuffix): New mode attribute.
7371         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7372         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7373         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7374         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7375         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7376         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7377         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7378         ssemodesuffix mode attribute.
7379         (float splitters): Use ssevecmodesuffix mode attribute.
7380         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7381         (sseinsmode): Rename from avxvecmode.
7382         (avxsizesuffix): Rename from avxmodesuffix.
7383         (sseintvecmode): Rename from avxpermvecmode.
7384         (ssedoublevecmode): Rename from ssedoublesizemode.
7385         (ssehalfvecmode): Rename from avxhalfvecmode.
7386         (ssescalarmode): Rename from avxscalarmode.
7387         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7388         templates for ssemodesuffix mode attribute.
7389         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7390         mode attribute.
7391
7392         Adjust RTX patterns globally for renamed mode attributes.
7393
7394 2011-04-27  Jan Hubcika  <jh@suse.cz>
7395
7396         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7397         * ipa-inline-analysis.c: Include alloc-pool.h.
7398         (edge_predicate_pool): New.
7399         (trye_predicate_p): New function
7400         (false_predicate_p): New function.
7401         (add_clause): Sanity check that false clauses are "optimized";
7402         never add clauses to predicate that is already known to be false.
7403         (and_predicate): Use flase_predicate_p.
7404         (evaulate_predicate): Rename to ...
7405         (evaluate_predicate): ... this one; update all callers; assert
7406         that false is not listed among possible truths.
7407         (dump_predicate): Use true_predicate_p.
7408         (account_size_time): Use false_predicate_p.
7409         (evaulate_conditions_for_edge): Rename to ...
7410         (evaluate_conditions_for_edge) ... this one.
7411         (edge_set_predicate): New function.
7412         (inline_edge_duplication_hook): Duplicate edge predicates.
7413         (inline_edge_removal_hook): Free edge predicates.
7414         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7415         (dump_inline_summary): Update.
7416         (estimate_function_body_sizes): Set edge predicates.
7417         (estimate_calls_size_and_time): Handle predicates.
7418         (estimate_callee_size_and_time): Update.
7419         (remap_predicate): Add toplev_predicate; update comment.
7420         (remap_edge_predicates): New function.
7421         (inline_merge_summary): Compute toplev predicate; update.
7422         (read_predicate): New function.
7423         (read_inline_edge_summary): Use it.
7424         (inline_read_section): Likewise.
7425         (write_predicate): New function.
7426         (write_inline_edge_summary): Use it.
7427         (inline_write_summary): Likewise.
7428         (inline_free_summary): Free alloc pool and edge summary vec.
7429
7430 2011-04-27  Richard Guenther  <rguenther@suse.de>
7431
7432         * tree-ssa-structalias.c (changed_count): Remove.
7433         (changed): Use a bitmap.
7434         (unify_nodes): Adjust.
7435         (do_sd_constraint): Likewise.
7436         (do_ds_constraint): Likewise.
7437         (do_complex_constraint): Likewise.
7438         (solve_graph): Likewise.
7439
7440 2011-04-27  Jan Hubicka  <jh@suse.cz>
7441
7442         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7443
7444 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7445
7446         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7447         (avx_vperm2f128_*_operand): Ditto.
7448         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7449         Use avx_vpermilp_parallel in insn condition.
7450         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7451         Use avx_vperm2f128_parallel in insn condition.
7452
7453 2011-04-27  Richard Guenther  <rguenther@suse.de>
7454
7455         * Makefile.in (tree-ssa-structalias.o): Remove
7456         gt-tree-ssa-structalias.h dependency.
7457         (GTFILES): Remove tree-ssa-structalias.c.
7458         * tree.c (allocate_decl_uid): New function.
7459         (make_node_stat): Use it.
7460         (copy_node_stat): Likewise.
7461         * tree.h (allocate_decl_uid): Declare.
7462         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7463         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7464         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7465         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7466         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7467         (struct heapvar_map): Likewise.
7468         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7469         heapvar_insert): Likewise.
7470         (make_heapvar_for): Rename to ...
7471         (make_heapvar): ... this.  Simplify.
7472         (fake_var_decl_obstack): New global var.
7473         (build_fake_var_decl): New function.
7474         (make_constraint_from_heapvar): Adjust.
7475         (handle_lhs_call): Likewise.
7476         (create_function_info_for): Likewise.
7477         (intra_create_variable_infos): Likewise.
7478         (init_alias_vars): Allocate fake_var_decl_obstack.
7479         (init_alias_heapvars, delete_alias_heapvars): Remove.
7480         (compute_points_to_sets): Do not call init_alias_heapvars.
7481         (ipa_pta_execute): Likewise.
7482         (delete_points_to_sets): Free fake_var_decl_obstack.
7483
7484 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7485
7486         * config/spu/divmovti4.c (union qword_UTItype): New data type.
7487         (si_from_UTItype, si_to_UTItype): New functions.
7488         (__udivmodti4): Use them to implement type-punning.
7489         * config/spu/multi3.c (union qword_TItype): New data type.
7490         (si_from_TItype, si_to_TItype): New functions.
7491         (__multi3): Use them to implement type-punning.
7492
7493 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7494
7495         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7496
7497 2011-04-27  Jan Hubicka  <jh@suse.cz>
7498
7499         * ipa-prop.c (function_insertion_hook_holder): New holder.
7500         (ipa_add_new_function): New function.
7501         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7502         Register/deregister holder.
7503
7504 2011-04-27  Richard Guenther  <rguenther@suse.de>
7505
7506         PR tree-optimization/48772
7507         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7508
7509 2011-04-27  Richard Guenther  <rguenther@suse.de>
7510
7511         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7512         TARGET_MEM_REF handling.
7513
7514 2011-04-27  Nick Clifton  <nickc@redhat.com>
7515
7516         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7517         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7518         (REG_CLASS_NAMES): Likewise.
7519         (REG_CLASS_CONTENTS): Likewise.
7520         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7521         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7522         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
7523         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
7524         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
7525         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7526         duplicate register classes.
7527         (frv_class_likely_spilled_p): Likewise.
7528         (frv_register_move_cost): Likewise.
7529
7530         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7531         end of the regno_reg_class array.
7532
7533 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
7534
7535         PR c/48742
7536         * c-typeck.c (build_binary_op): Don't wrap arguments if
7537         int_operands is true.
7538
7539 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
7540
7541         PR target/48767
7542         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7543         targetm.calls.must_pass_in_stack for void type.
7544
7545 2011-04-26  Jan Hubicka  <jh@suse.cz>
7546
7547         * cgraphbuild.c (build_cgraph_edges): Update call
7548         of cgraph_create_edge and cgraph_create_indirect_edge.
7549         * cgraph.c (cgraph_create_edge_including_clones,
7550         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7551         cgraph_update_edges_for_call_stmt_node): Do not take nest
7552         argument; do not initialize call_stmt_size/time.
7553         (dump_cgraph_node): Do not dump nest.
7554         (cgraph_clone_edge): Do not take loop_nest argument;
7555         do not propagate it; do not clone call_stmt_size/time.
7556         (cgraph_clone_node): Likewise.
7557         (cgraph_create_virtual_clone): Update.
7558         * cgraph.h (struct cgraph_edge): Remove
7559         call_stmt_size/call_stmt_time/loop_nest.
7560         (cgraph_create_edge, cgraph_create_indirect_edge,
7561         cgraph_create_edge_including_clones, cgraph_clone_node): Update
7562         prototype.
7563         * tree-emutls.c (gen_emutls_addr): Update.
7564         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7565         loop_nest; handle indirect calls, too.
7566         (clone_inlined_nodes): Do not care about updating inline summaries.
7567         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7568         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7569         stream call_stmt_size/call_stmt_time/loop_nest.
7570         * ipa-inline.c (edge_badness): Update.
7571         (ipa_inline): dump summaries after inlining.
7572         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7573         New.
7574         (inline_edge_summary): New function.
7575         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7576         (inline_edge_removal_hook): Handle edge summaries.
7577         (inline_edge_duplication_hook): New hook.
7578         (inline_summary_alloc): Alloc hooks.
7579         (initialize_growth_caches): Do not register removal hooks.
7580         (free_growth_caches); Do not free removal hook.
7581         (dump_inline_edge_summary): New function.
7582         (dump_inline_summary): Use it.
7583         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7584         (inline_update_callee_summaries): New function.
7585         (inline_merge_summary): Use it.
7586         (do_estimate_edge_time, do_estimate_edge_growth): Update.
7587         (read_inline_edge_summary): New function.
7588         (inline_read_section): Use it.
7589         (write_inline_edge_summary): New function.
7590         (inline_write_summary): Use it.
7591         (inline_free_summary): Free edge new holders.
7592         * tree-inline.c (copy_bb): Update.
7593
7594 2011-04-26  Jason Merrill  <jason@redhat.com>
7595
7596         * tree-eh.c (lower_try_finally_switch): Create the label along with
7597         the CASE_LABEL_EXPR.
7598
7599 2011-04-26  David S. Miller  <davem@davemloft.net>
7600             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7601
7602         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7603         * configure: Regenerate.
7604
7605 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7606
7607         PR target/48258
7608         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7609         reduction.
7610         (VEC_reduc): New code iterator and splitters for vector reduction.
7611         (VEC_reduc_name): Ditto.
7612         (VEC_reduc_rtx): Ditto.
7613         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7614         (reduc_<VEC_reduc_name>_v4sf): Ditto.
7615
7616         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7617         support for extracting SF on VSX.
7618
7619         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7620         generating xscvspdp.
7621         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7622         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7623         double add, minimum, maximum vector reduction.
7624         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7625         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7626         optimize double vector reduction.
7627         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7628
7629 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
7630
7631         * config/fr30/fr30.h (inhibit_libc): Don't define.
7632         * config/m32r/m32r-protos.h: Correct comment.
7633         * config/v850/v850.h (GHS_default_section_names,
7634         GHS_current_section_names): Use tree, not union tree_node *.
7635
7636 2011-04-26  Xinliang David Li  <davidxl@google.com>
7637
7638         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7639         * c-family/c-opts.c (c_common_handle_option): Set
7640         warn_maybe_uninitialized.
7641         * opts.c (common_handle_option): Ditto.
7642         * common.opt:  New option.
7643         * tree-ssa.c (warn_uninit): Add one more parameter.
7644         (warn_uninitialized_var): Pass warning code.
7645         * tree-flow.h: Interface change.
7646
7647 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7648
7649         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7650         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7651         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7652
7653 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7654
7655         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7656         * config/mips/mips.opt (mmips-tfile): Remove.
7657
7658         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7659         mips-tdump reference to ...
7660         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
7661         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7662         reference by Tru64 UNIX.
7663
7664 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
7665
7666         PR debug/48768
7667         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7668         is error_mark_node, set value to NULL.
7669
7670         PR tree-optimization/48734
7671         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7672         if return value from maybe_fold_*_comparsions isn't something
7673         the code is prepared to handle.
7674
7675 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
7676
7677         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7678         mode check.
7679         (ext_QIreg_nomode_operands): Remove.
7680         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7681         (*andsi_1): Ditto.
7682         (*andhi_1): Ditto.
7683
7684 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
7685
7686         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7687
7688 2011-04-26  Richard Guenther  <rguenther@suse.de>
7689
7690         * c-typeck.c (build_unary_op): Do not expand array-refs via
7691         pointer arithmetic.  Only adjust qualifiers for function types.
7692
7693 2011-04-26  Richard Guenther  <rguenther@suse.de>
7694
7695         PR middle-end/48694
7696         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7697         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7698         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
7699         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7700
7701 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
7702
7703         * doc/extend.texi: Document __underlying_type.
7704
7705 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
7706
7707         * config/rs6000/titan.md (automata_option "progress"): Remove.
7708
7709 2011-04-25  Jeff Law  <law@redhat.com>
7710
7711         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7712
7713 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7714
7715         * system.h (ENUM_BITFIELD): Remove.
7716
7717 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
7718             Eric Botcazou  <ebotcazou@adacore.com>
7719
7720         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7721         for STORE_FLAG_VALUE==-1 case.
7722
7723 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
7724
7725         PR target/43804
7726         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7727         LEGITIMATE_PIC_OPERAND_P.
7728
7729 2011-04-24  Jan Hubicka  <jh@suse.cz>
7730
7731         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7732         WPA hack.
7733         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7734         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7735         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7736         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7737         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7738         Sanity check predicate length.
7739         (remap_predicate): Likewise; sanity check jump functions.
7740         (inline_read_section, inline_write_summary): Sanity check
7741         predicate length.
7742
7743 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7744
7745         PR other/48748
7746         * doc/extend.texi (Type Traits): Document __is_standard_layout,
7747         __is_literal_type, and __is_trivial; update throughout about
7748         possibly cv-qualified void types.
7749
7750 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
7751
7752         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7753         testsuite and make it version agnostic.
7754
7755 2011-04-22  Jan Hubicka  <jh@suse.cz>
7756
7757         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7758
7759 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
7760
7761         PR c/48685
7762         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7763         to VOID_TYPE even around MODIFY_EXPR.
7764
7765 2011-04-22  Mike Stump  <mikestump@comcast.net>
7766
7767         * gensupport.c (read_md_rtx): Fix typo in comment.
7768         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7769         comment.
7770
7771 2011-04-22  Jan Hubicka  <jh@suse.cz>
7772
7773         * gengtype.c (open_base_files): Add ipa-inline.h include.
7774         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7775         ipa-prop.c; update all uses.
7776         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7777         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7778         merge summary of inlined function into former caller.
7779         * ipa-inline.c (max_benefit): Remove.
7780         (edge_badness): Compensate for removal of benefits.
7781         (update_caller_keys): Use
7782         reset_node_growth_cache/reset_edge_growth_cache.
7783         (update_callee_keys): Likewise.
7784         (update_all_callee_keys): Likewise.
7785         (inline_small_functions): Do not collect max_benefit; do not reset
7786         estimated_growth; call free_growth_caches and initialize_growth_caches.
7787         * ipa-inline.h (struct condition, type clause_t, struct predicate,
7788         struct size_time_entry): New structures.
7789         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7790         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7791         and estimated_growth.
7792         (edge_growth_cache_entry): New structure.
7793         (node_growth_cache, edge_growth_cache): New global vars.
7794         (estimate_growth): Turn into inline.
7795         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7796         initialize_growth_caches, free_growth_caches): Declare.
7797         (estimate_edge_growth): Rewrite.
7798         (estimate_edge_time): Implement as inline cache lookup.
7799         (reset_node_growth_cache, reset_edge_growth_cache): New inline
7800         functions.
7801         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7802         (NUM_CONDITIONS): New constant.
7803         (predicate_conditions): New enum.
7804         (IS_NOT_CONSTANT): New constant.
7805         (edge_removal_hook_holder): New var.
7806         (node_growth_cache, edge_growth_cache): New global vars.
7807         (true_predicate, single_cond_predicate, false_predicate,
7808         not_inlined_predicate, add_condition, add_clause, and_predicates,
7809         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7810         dump_clause, dump_predicate, account_size_time,
7811         evaulate_conditions_for_edge): New functions.
7812         (inline_summary_alloc): Move to heap.
7813         (inline_node_removal_hook): Clear condition and entry vectors.
7814         (inline_edge_removal_hook): New function.
7815         (initialize_growth_caches, free_growth_caches): New function.
7816         (dump_inline_summary): Update.
7817         (edge_execution_predicate): New function.
7818         (will_be_nonconstant_predicate): New function.
7819         (estimate_function_body_sizes): Compute BB and constantness predicates.
7820         (compute_inline_parameters): Do not clear estimated_growth.
7821         (estimate_edge_size_and_time): New function.
7822         (estimate_calls_size_and_time): New function.
7823         (estimate_callee_size_and_time): New function.
7824         (remap_predicate): New function.
7825         (inline_merge_summary): New function.
7826         (do_estimate_edge_time): New function based on...
7827         (estimate_edge_time): ... this one.
7828         (do_estimate_edge_growth): New function.
7829         (do_estimate_growth): New function based on....
7830         (estimate_growth): ... this one.
7831         (inline_analyze_function): Analyze after deciding on jump functions.
7832         (inline_read_section): New function.
7833         (inline_read_summary): Use it.
7834         (inline_write_summary): Write all the new data.
7835         * ipa-prop.c (ipa_get_param_decl_index): Export.
7836         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7837         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7838         Declare.
7839         (ipa_get_lattice): Move here from ipa-cp.c
7840         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7841         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7842         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7843         cgraph_edge_inlinable_p): Remove.
7844         * cgraphunit.c: Include ipainline.h
7845         (cgraph_process_new_functions): Update call of
7846         compute_inline_parameters.
7847
7848 2011-04-22  Richard Guenther  <rguenther@suse.de>
7849
7850         * tree.c (build_int_cst): Properly create canonicalized integer
7851         constants.
7852         (build_int_cst_type): Remove scary comments.
7853
7854 2011-04-22  Xinliang David Li  <davidxl@google.com>
7855
7856         * toplev.c (process_options): Enable -Werror=coverage-mismatch
7857         by default when -Wno-error is not specified.
7858         * opts-global.c (decode_options): Remove call to
7859         control_warning_options.
7860
7861 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
7862
7863         PR tree-optimization/48717
7864         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7865         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7866
7867 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
7868
7869         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
7870         definition where used.
7871
7872 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
7873
7874         PR c/48716
7875         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7876         TREE_STATIC variables declared inside of some OpenMP construct.
7877
7878 2011-04-22  Martin Jambor  <mjambor@suse.cz>
7879
7880         PR middle-end/48585
7881         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7882
7883 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
7884
7885         PR c/36750
7886         * c-typeck.c (pop_init_level): Do not warn about initializing
7887         with ` = {0}'.
7888
7889 2011-04-22  Alan Modra  <amodra@gmail.com>
7890
7891         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7892         when returning call_cookie.
7893         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7894         pointers, to functions with no more vector args than the current
7895         function, and some non-local calls for ABI_V4.
7896         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7897         sibcall_nonlocal_aix64): Combine to ..
7898         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
7899         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7900         (sibcall_value_nonlocal_aix<mode>): ..likewise.
7901         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7902         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
7903         operand.
7904         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7905         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7906         sibcall_value_symbolic_64): Delete.
7907
7908 2011-04-21  Xinliang David Li  <davidxl@google.com>
7909
7910         * cgraph.h: Remove pid.
7911         * cgraph.c: Remove pid.
7912         * value-prof.c (init_node_map): New function.
7913         (del_node_map): New function.
7914         (find_func_by_funcdef_no): New function.
7915         (gimple_ic_transform): Call new function.
7916         * cgraphunit.c (cgraph_finalize_function): Remove pid.
7917         * function.c (get_last_funcdef_no): New function.
7918         * function.h (get_last_funcdef_no): New function.
7919         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7920         to libgcov function.
7921         (tree-profiling): Call node map init and delete function.
7922
7923 2011-04-21  Ian Lance Taylor  <iant@google.com>
7924
7925         * godump.c (go_format_type): Use exported Go name for anonymous
7926         field name.
7927
7928 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
7929
7930         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7931         Call builtin_function_type_list instead of builtin_function_type.
7932         (UNARY, BINARY, TRINARY, QUAD): Likewise.
7933
7934 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
7935
7936         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7937         build_function_type_list instead of build_function_type.
7938         Delete variable `endlink'.
7939
7940 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
7941
7942         * config/s390/s390.c (s390_init_builtins): Call
7943         build_function_type_list instead of build_function_type.
7944
7945 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
7946
7947         * config/ia64/ia64.c (ia64_init_builtins): Call
7948         build_function_type_list instead of builtin_function_type.
7949
7950 2011-04-21  Easwaran Raman  <eraman@google.com>
7951
7952         * cfgexpand.c (stack_var): Remove OFFSET...
7953         (add_stack_var): ...and its reference here...
7954         (expand_stack_vars): ...and here.
7955         (stack_var_cmp): Sort by descending order of size.
7956         (partition_stack_vars): Change heuristic.
7957         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
7958         (dump_stack_var_partition): Add newline after each partition.
7959
7960 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
7961             Jeff Law  <law@redhat.com>
7962
7963         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
7964         * gengtype.c (matching_file_name_substitute): Likewise.
7965
7966 2011-04-21  Richard Guenther  <rguenther@suse.de>
7967
7968         PR lto/48703
7969         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
7970
7971 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
7972
7973         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7974
7975 2011-04-21  Richard Guenther  <rguenther@suse.de>
7976
7977         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7978         file name.
7979
7980 2011-04-21  Richard Guenther  <rguenther@suse.de>
7981
7982         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7983         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7984         Use DECL_P, not SSA_VAR_P.
7985         (ptr_derefs_may_alias_p): Likewise.
7986         (ptr_deref_may_alias_ref_p_1): Likewise.
7987         (decl_refs_may_alias_p): Likewise.
7988         (refs_may_alias_p_1): Likewise.
7989         (ref_maybe_used_by_call_p_1): Likewise.
7990         (call_may_clobber_ref_p_1): Likewise.
7991         (indirect_ref_may_alias_decl_p): Assume indirect refrences
7992         are either MEM_REF or TARGET_MEM_REF.
7993         (indirect_refs_may_alias_p): Likewise.
7994         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7995         for MEM_EXPR of indirect calls.
7996
7997 2011-04-21  Tristan Gingold  <gingold@adacore.com>
7998
7999         * vmsdbgout.c (write_srccorr): Compute file length from the string.
8000         (dst_file_info_struct): Remove flen field.
8001         (lookup_filename): Remove code that set flen field.
8002
8003 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8004
8005         * config/ia64/ia64.c (ia64_start_function): Add a guard.
8006
8007 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
8008
8009         PR target/48708
8010         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8011         vec_extract and vec_concat for non-SSE4_1 targets.
8012
8013 2011-04-21  Richard Guenther  <rguenther@suse.de>
8014
8015         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8016         return statements.
8017
8018 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8019
8020         * config/i386/cygming.h (union tree_node, TREE): Don't define or
8021         undefine.
8022         (FILE): Don't undefine.
8023
8024 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8025
8026         * config/alpha/alpha.c (struct machine_function): Use rtx, not
8027         struct rtx_def *.
8028         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8029         struct rtx_def *.
8030         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8031         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8032         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8033         rtx_def *.
8034         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
8035         definitions where used.
8036         * config/microblaze/microblaze.h (struct microblaze_args): Use
8037         rtx, not struct rtx_def *.
8038         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8039         rtx_def *.
8040         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8041         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8042         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8043         not struct rtx_def *.
8044         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8045         struct rtx_def *.
8046         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8047         rtx_def *.
8048         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8049
8050 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8051
8052         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8053         operand_equal_p to compare DR_BASE_ADDRESSes.
8054         (vect_check_interleaving): Likewise.
8055
8056 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8057
8058         PR target/46329
8059         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8060         for all Neon struct constants.
8061
8062 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8063
8064         * target.def (legitimate_constant_p): New hook.
8065         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8066         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8067         * doc/tm.texi: Regenerate.
8068         * hooks.h (hook_bool_mode_rtx_true): Declare.
8069         * hooks.c (hook_bool_mode_rtx_true): Define.
8070         * system.h (LEGITIMATE_CONSTANT_P): Poison.
8071         * calls.c (precompute_register_parameters): Replace uses of
8072         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8073         (emit_library_call_value_1): Likewise.
8074         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8075         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8076         * ira-costs.c (scan_one_insn): Likewise.
8077         * recog.c (general_operand, immediate_operand): Likewise.
8078         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8079         * reload1.c (init_eliminable_invariants): Likewise.
8080
8081         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8082         mode argument.
8083         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8084         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8085         argument.
8086         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8087         * config/alpha/predicates.md (input_operand): Update call to
8088         alpha_legitimate_constant_p.
8089
8090         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8091         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8092         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8093         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8094         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8095         (arm_legitimate_constant_p): New functions.
8096         (arm_cannot_force_const_mem): Make static.
8097
8098         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8099
8100         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8101         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8102         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8103         instead of bfin_legitimate_constant_p.
8104         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
8105         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8106
8107         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8108
8109         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8110
8111         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8112         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8113         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8114         (frv_legitimate_constant_p): Make static.  Add a mode argument.
8115
8116         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8117         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8118         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8119
8120         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8121         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8122         * config/i386/i386.c (legitimate_constant_p): Rename to...
8123         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
8124         argument.
8125         (ix86_cannot_force_const_mem): Update accordingly.
8126         (ix86_legitimate_address_p): Likewise.
8127         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8128         * config/i386/i386.md: Update commentary.
8129
8130         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8131         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8132         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8133         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
8134
8135         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8136
8137         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8138         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8139         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8140         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
8141
8142         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8143         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8144         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8145
8146         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8147         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8148         (m32r_legitimate_constant_p): New function.
8149
8150         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8151         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8152         LEGITIMATE_CONSTANT_P.
8153         (LEGITIMATE_CONSTANT_P): Delete.
8154         * config/m68k/m68k.c (m68k_expand_prologue): Call
8155         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8156         (m68k_legitimate_constant_p): New function.
8157         * config/m68k/m68k.md: Update comments.
8158
8159         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8160         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8161         (mcore_legitimate_constant_p): New function.
8162
8163         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8164         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8165         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8166         Add a mode argument.
8167         (mep_legitimate_address): Update accordingly.
8168         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8169
8170         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8171         Delete.
8172         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8173         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8174         static.  Check OP's mode for VOIDmode.
8175         (microblaze_legitimate_constant_p): New function.
8176         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8177
8178         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8179         * config/mips/mips.c (mips_legitimate_constant_p): New function.
8180         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8181         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8182         * config/mips/predicates.md: Update comments.
8183
8184         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8185         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8186         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8187         (mmix_legitimate_constant_p): Make static, return a bool, and take
8188         a mode argument.
8189         (mmix_print_operand_address): Update accordingly.
8190
8191         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8192         Delete.
8193         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8194         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8195         static.  Add a mode argument.
8196         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8197
8198         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8199
8200         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8201         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8202         (pa_legitimate_constant_p): New function.
8203
8204         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8205
8206         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8207         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8208         (pdp11_legitimate_constant_p): New function.
8209
8210         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8211         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8212         (rs6000_legitimate_constant_p): New function.
8213
8214         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8215         (rx_legitimate_constant_p): ...this.
8216         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8217         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8218         (rx_legitimate_constant_p): ...this.
8219         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8220         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8221
8222         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8223         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8224         * config/s390/s390.c (legitimate_constant_p): Rename to...
8225         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
8226         and add a mode argument.
8227         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8228
8229         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8230
8231         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8232         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8233         (sh_legitimate_constant_p): New function.
8234
8235         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8236         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8237         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8238         (legitimate_constant_p): Rename to...
8239         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
8240         argument.
8241         (constant_address_p): Update accordingly.
8242
8243         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8244         argument and return a bool.
8245         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8246         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8247         (spu_legitimate_constant_p): Add a mode argument and return a bool.
8248         (spu_rtx_costs): Update accordingly.
8249         * config/spu/predicates.md (vec_imm_operand): Likewise.
8250
8251         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8252
8253         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8254         * config/v850/v850.c (v850_legitimate_constant_p): New function.
8255         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8256
8257         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8258         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8259         * config/vax/vax.c (legitimate_constant_p): Likewise.
8260
8261         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8262         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8263         (xtensa_legitimate_constant_p): New function.
8264
8265 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8266
8267         * target.def (cannot_force_const_mem): Add a mode argument.
8268         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8269         * doc/tm.texi: Regenerate.
8270         * hooks.h (hook_bool_mode_rtx_false): Declare.
8271         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8272         (hook_bool_mode_const_rtx_true): Likewise.
8273         (hook_bool_mode_rtx_false): New function.
8274         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8275         to be non-VOID.  Update call to cannot_force_const_mem.
8276         (find_reloads): Update accordingly.
8277         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8278         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8279         argument.
8280         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8281         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8282         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8283         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8284         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8285         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8286         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8287         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8288         (m68k_cannot_force_const_mem): ...this new function.
8289         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8290         argument.
8291         (mips_const_insns, mips_legitimize_const_move): Update calls.
8292         (mips_secondary_reload_class): Likewise.
8293         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8294         (pa_cannot_force_const_mem): ...this new function.
8295         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8296         (rs6000_cannot_force_const_mem): ...this new function.
8297         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8298         argument.
8299         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8300         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8301         to...
8302         (xtensa_cannot_force_const_mem): ...this new function.
8303
8304 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8305
8306         * config/mips/mips.c (mips16_build_function_stub): Call
8307         build_function_type_list instead of build_function_type.
8308         (mips16_build_call_stub): Likewise.
8309
8310 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8311
8312         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8313         instead of build_function_type.
8314
8315 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8316
8317         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8318         instead of build_function_type.
8319
8320 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
8321
8322         PR target/48678
8323         * config/i386/i386.md (insv): Change operand 0 constraint to
8324         "register_operand".  Change operand 1 and 2 constraint to
8325         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
8326         * config/i386/sse.md (sse4_1_pinsrb): Export.
8327         (sse2_pinsrw): Ditto.
8328         (sse4_1_pinsrd): Ditto.
8329         (sse4_1_pinsrq): Ditto.
8330         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8331         * config/i386/i386.c (ix86_expand_pinsr): New.
8332
8333 2011-04-20  Easwaran Raman  <eraman@google.com>
8334
8335         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8336         containing union type only with -fstrict-aliasing.
8337
8338 2011-04-20  Jim Meyering  <meyering@redhat.com>
8339
8340         Remove useless if-before-free tests.
8341         * calls.c (expand_call, save_area): Likewise.
8342         * cfgcleanup.c (try_forward_edges): Likewise.
8343         * collect2.c (collect_execute): Likewise.
8344         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8345         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8346         * coverage.c (coverage_checksum_string): Likewise.
8347         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8348         * cselib.c (cselib_init): Likewise.
8349         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8350         (df_set_clean_cfg): Likewise.
8351         * function.c (free_after_compilation): Likewise.
8352         * gcc.c (do_spec_1, main): Likewise.
8353         * gcov.c (create_file_names): Likewise.
8354         * gensupport.c (identify_predicable_attribute): Likewise.
8355         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8356         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8357         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8358         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8359         * ipa-pure-const.c (local_pure_const): Likewise.
8360         * ipa-reference.c (propagate): Likewise.
8361         * ira-costs.c (free_ira_costs): Likewise.
8362         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8363         * matrix-reorg.c (mat_free): Likewise.
8364         * prefix.c (get_key_value): Likewise.
8365         * profile.c (compute_value_histograms): Likewise.
8366         * reload1.c (free_reg_equiv): Likewise.
8367         * sched-deps.c (free_deps): Likewise.
8368         * sel-sched-ir.c (fence_clear): Likewise.
8369         * sese.c (set_rename, if_region_set_false_region): Likewise.
8370         * tree-data-ref.c (free_rdg): Likewise.
8371         * tree-eh.c (lower_try_finally): Likewise.
8372         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8373         * tree-ssa-live.c (delete_var_map): Likewise.
8374         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8375         * tree-ssa-pre.c (phi_trans_add): Likewise.
8376
8377 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
8378
8379         PR tree-optimization/48611
8380         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8381         beyond ERT_MUST_NOT_THROW region.
8382
8383 2011-04-20  Catherine Moore  <clm@codesourcery.com>
8384
8385         * config/mips/mips.opt (mfix-24k): New.
8386         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8387         * config/mips/mips.md (length): Increase by 4 for stores if
8388         fixing 24K errata.
8389         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8390         all noreorder if fixing 24K errata.
8391         * doc/invoke.texi: Document mfix-24k.
8392
8393 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
8394
8395         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8396         quad-word modes, reduce to 9-bit index range when above 1016 limit.
8397
8398 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8399
8400         * config/arm/arm.c (arm_gen_constant): Move movw support ....
8401         (const_ok_for_op): ... to here.
8402
8403 2011-04-20  Kai Tietz  <ktietz@redhat.com>
8404
8405         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8406         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8407
8408 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8409
8410         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8411
8412 2011-04-20  Richard Guenther  <rguenther@suse.de>
8413
8414         PR tree-optimization/47892
8415         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8416         are if-convertible.
8417
8418 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8419
8420         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8421
8422 2011-04-20  Tristan Gingold  <gingold@adacore.com>
8423
8424         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8425
8426 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
8427
8428         PR target/18145
8429
8430         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8431         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8432         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8433         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8434         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8435
8436         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8437         New prototype.
8438
8439         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8440         (avr_asm_named_section, avr_asm_output_aligned_common,
8441         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8442         New functions to update...
8443         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8444         (avr_asm_init_sections): Overwrite section callbacks for
8445         data_section, bss_section.
8446         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8447         from here to...
8448         (avr_file_end): ...here.
8449
8450 2011-04-20  Richard Guenther  <rguenther@suse.de>
8451
8452         PR middle-end/48695
8453         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8454         objects and types here.  Adjust for their offset before comparing.
8455
8456 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8457
8458         * tree-vect-stmts.c (vectorizable_store): Only chain one related
8459         statement per copy.
8460
8461 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8462
8463         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8464         (GIMPLE_H): Include $(INTERNAL_FN_H).
8465         (OBJS-common): Add internal-fn.o.
8466         (internal-fn.o): New rule.
8467         * internal-fn.def: New file.
8468         * internal-fn.h: Likewise.
8469         * internal-fn.c: Likewise.
8470         * gimple.h: Include internal-fn.h.
8471         (GF_CALL_INTERNAL): New gf_mask.
8472         (gimple_statement_call): Put fntype into a union with a new
8473         internal_fn field.
8474         (gimple_build_call_internal): Declare.
8475         (gimple_build_call_internal_vec): Likewise.
8476         (gimple_call_same_target_p): Likewise.
8477         (gimple_call_internal_p): New function.
8478         (gimple_call_internal_fn): Likewise.
8479         (gimple_call_fntype): Return null for internal calls.
8480         (gimple_call_set_fntype): Assert that the function is not internal.
8481         (gimple_call_set_fn): Likewise.
8482         (gimple_call_set_fndecl): Likewise.
8483         (gimple_call_set_internal_fn): New function.
8484         (gimple_call_addr_fndecl): Handle null functions.
8485         (gimple_call_return_type): Likewise null types.
8486         * gimple.c (gimple_build_call_internal_1): New function.
8487         (gimple_build_call_internal): Likewise.
8488         (gimple_build_call_internal_vec): Likewise.
8489         (gimple_call_same_target_p): Likewise.
8490         (gimple_call_flags): Handle calls to internal functions.
8491         (gimple_call_fnspec): New function.
8492         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8493         (gimple_has_side_effects): Handle null functions.
8494         (gimple_rhs_has_side_effects): Likewise.
8495         (gimple_call_copy_skip_args): Handle calls to internal functions.
8496         * cfgexpand.c (expand_call_stmt): Likewise.
8497         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8498         * gimple-fold.c (gimple_fold_call): Handle null functions.
8499         (gimple_fold_stmt_to_constant_1): Don't fold
8500         calls to internal functions.
8501         * gimple-low.c (gimple_check_call_args): Handle calls to internal
8502         functions.
8503         * gimple-pretty-print.c (dump_gimple_call): Likewise.
8504         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8505         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8506         (do_warn_unused_result): Likewise.
8507         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8508         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8509         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8510         the target of a call.
8511         (initialize_hash_element): Update accordingly.
8512         (hashable_expr_equal_p): Use gimple_call_same_target_p.
8513         (iterative_hash_hashable_expr): Handle calls to internal functions.
8514         (print_expr_hash_elt): Likewise.
8515         * tree-ssa-pre.c (can_value_number_call): Likewise.
8516         (eliminate): Handle null functions.
8517         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8518         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8519         (find_func_aliases): Likewise.
8520         * value-prof.c (gimple_ic_transform): Likewise.
8521         (gimple_indirect_call_to_profile): Likewise.
8522         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8523         * lto-streamer-out.c (output_gimple_stmt): Likewise.
8524
8525 2011-04-19  Jan Hubicka  <jh@suse.cz>
8526
8527         * ipa-inline-transform.c (save_inline_function_body): Add comments.
8528         * ipa-inline.c (inline_small_functions): Compute summaries first,
8529         populate heap later.
8530
8531 2011-04-19  Jan Hubicka  <jh@suse.cz>
8532
8533         * cgraph.h (save_inline_function_body): Remove.
8534         * ipa-inline-transform.c: New file, broke out of...
8535         * ipa-inline.c: ... this one; Update toplevel comment.
8536         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8537         make global.
8538         (update_noncloned_frequencies): Move to ipa-inline-transform.c
8539         (cgraph_mark_inline_edge): Rename to inline_call; move to
8540         ipa-inline-transform.c.
8541         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8542         move to ipa-inline-transform.c
8543         (recursive_inlining, inline_small_functions, flatten_function,
8544         ipa_inline, inline_always_inline_functions,
8545         early_inline_small_functions): Update.
8546         (inline_transform): Move to ipa-inline-transform.c.
8547         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8548         Declare.
8549         * Makefile.in (ipa-inline-transform.o): New file.
8550         * cgraphunit.c (save_inline_function_body): Move to
8551         ipa-inline-transform.c
8552
8553 2011-04-19  DJ Delorie  <dj@redhat.com>
8554
8555         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8556         registers if we already know there aren't any.
8557         (m32c_emit_epilogue): Don't emit a barrier here.
8558         (m32c_emit_eh_epilogue): Likewise.
8559         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8560         operands at expand time.
8561         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8562         int" wchar type.
8563         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8564         duplicates.  Provide aliases instead.
8565         * config/m32c/prologue.md (eh_return): Emit a barrier here.
8566         (eh_epilogue): Add a "(return)" here as a hint to other parts of
8567         the compiler.
8568
8569 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
8570
8571         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8572         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8573         (general_or_i64_p, sparc_register_move_cost): New function.
8574
8575 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8576
8577         * doc/install.texi (Configuration, --enable-threads): Remove mach.
8578         Add lynx, mipssde.  Sort table.
8579
8580 2011-04-19  Xinliang David Li  <davidxl@google.com>
8581
8582         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8583         not negative.
8584
8585 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
8586
8587         PR target/48678
8588         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8589         is a SUBREG with non-MODE_INT mode inside of it.
8590
8591 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8592
8593         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8594         also according to actual contants.
8595         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8596         (gimple_fold_call): Use it.
8597         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8598
8599 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8600
8601         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8602         non-pointer assignments.
8603
8604 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8605
8606         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8607         account anc_offset and otr_type from the indirect edge info.
8608         * ipa-prop.c (get_ancestor_addr_info): New function.
8609         (compute_complex_ancestor_jump_func): Assignment analysis moved to
8610         get_ancestor_addr_info, call it.
8611         (ipa_note_param_call): Do not initialize information about polymorphic
8612         calls, return the indirect call graph edge.  Remove the last
8613         parameter, adjust all callers.
8614         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8615         parameters.  Initialize polymorphic information in the indirect edge.
8616
8617 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8618
8619         PR lto/48148
8620         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8621         the types if they have different enumeration identifiers.
8622
8623 2011-04-19  Jan Hubicka  <jh@suse.cz>
8624
8625         * cgraph.h (cgraph_optimize_for_size_p): Declare.
8626         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8627         * predict.c (cgraph_optimize_for_size_p): Break out from ...
8628         (optimize_function_for_size_p) ... here.
8629
8630 2011-04-19  Richard Guenther  <rguenther@suse.de>
8631
8632         PR lto/48207
8633         * tree.c (free_lang_data): Do not reset the decl-assembler-name
8634         langhook.
8635
8636 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8637
8638         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8639         if DECL_NO_INLINE_WARNING_P is set on the function.
8640
8641 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
8642
8643         PR fortran/47976
8644         * reload1.c (inc_for_reload): Return void. All callers changed.
8645         (emit_input_reload_insns): Don't try to delete previous output
8646         reloads to a register, or record spill_reg_store for autoincs.
8647
8648 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
8649
8650         * gengtype.h: Updated copyright year.
8651         (struct input_file_st): Add inpisplugin field.
8652         (type_fileloc): New function.
8653         * gengtype.c
8654         (write_typed_struct_alloc_def): Add gcc_assert.
8655         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8656         (write_typed_alloc_defns): Don't output for plugin files.
8657         (input_file_by_name): Clear inpisplugin field.
8658         (main): Set inpisplugin field for plugin files.
8659
8660 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
8661
8662         * gengtype-state.c (string_eq): New.
8663         (read_state): Use string_eq instead of strcmp when creating the
8664         state_ident_tab.
8665
8666 2011-04-19  Wei Guozhi  <carrot@google.com>
8667
8668         PR target/47855
8669         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8670         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8671         linkage.
8672         * config/arm/constraints.md (Uu): New constraint.
8673         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8674
8675 2011-04-19  Tristan Gingold  <gingold@adacore.com>
8676
8677         * config.gcc (-*-*-*vms): Added.
8678         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8679         definitions moved.
8680         * config/vms/vms-ld.c: New file.
8681         * config/vms/vms-ar.c: New file.
8682         * config/vms/t-vmsnative: New file.
8683
8684 2011-04-18  Xinliang David Li  <davidxl@google.com>
8685
8686         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8687
8688 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
8689
8690         PR middle-end/48661
8691         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8692         if TREE_TYPE (v) is non-NULL.
8693
8694         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8695         gimple_get_virt_mehtod_for_binfo.
8696         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8697         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8698         callers.
8699         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8700
8701 2011-04-18  Michael Matz  <matz@suse.de>
8702             Steve Ellcey  <sje@cup.hp.com>
8703
8704         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8705         use its mode as source mode if it isn't VOIDmode.
8706
8707 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
8708
8709         * doc/passes.texi: Fill crossref nodes.
8710
8711 2011-04-18  Jim Meyering  <meyering@redhat.com>
8712
8713         Fix doubled-word typos in comments and strings
8714         * config/alpha/vms-unwind.h: s/for for/for/
8715         * config/arm/unwind-arm.h: Likewise.
8716         * config/microblaze/microblaze.c: Likewise.
8717         * config/sh/constraints.md: s/in in/in/
8718         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8719
8720 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
8721
8722         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8723         (AVX_FLOAT_MODE_P): Ditto.
8724         (AVX128_VEC_FLOAT_MODE_P): Ditto.
8725         (AVX256_VEC_FLOAT_MODE_P): Ditto.
8726         (AVX_VEC_FLOAT_MODE_P): Ditto.
8727         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8728         (UNSPEC_MASKSTORE): Ditto.
8729         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8730         Merge from <sse>_movmsk<ssemodesuffix> and
8731         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
8732         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
8733         iterator.
8734         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8735         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8736         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8737
8738 2011-04-18  Jan Hubicka  <jh@suse.cz>
8739
8740         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8741
8742         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8743         (want_inline_function_called_once_p): Break out the logic from
8744         ipa_inline.
8745         (edge_badness): Ensure that profile is not misupdated.
8746         (lookup_recursive_calls): Prioritize by call frequencies.
8747         (inline_small_functions): Move program size estimates here;
8748         actually process whole queue even when unit growth has been
8749         met. (to properly compute inline_failed reasons and for the
8750         case unit size decrease.) Revisit comments on recursive inlining.
8751         (ipa_inline): Remove unit summary code; first inline hot calls
8752         of functions called once, cold calls next.
8753         (order, nnodes): Remove unused variables.
8754         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8755         (GTFILES): Remove ipa-inline.c
8756         * sel-sched.c (fill_insns): Silence uninitialized var warning.
8757
8758 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8759
8760         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8761
8762 2011-04-18  Jie Zhang  <jie@codesourcery.com>
8763             Richard Earnshaw  <rearnsha@arm.com>
8764
8765         * arm.c (neon_builtin_type_bits): Remove.
8766         (typedef enum neon_builtin_mode): New.
8767         (T_MAX): Don't define.
8768         (typedef enum neon_builtin_datum): Remove bits, codes[],
8769         num_vars and base_fcode.  Add mode, code and fcode.
8770         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8771         VAR10): Change accordingly.
8772         (neon_builtin_data[]): Change accordingly
8773         (arm_init_neon_builtins): Change accordingly.
8774         (neon_builtin_compare): Remove.
8775         (locate_neon_builtin_icode): Remove.
8776         (arm_expand_neon_builtin): Change accordingly.
8777
8778         * arm.h (enum arm_builtins): Move to ...
8779         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8780
8781         * arm.c (arm_builtin_decl): Declare.
8782         (TARGET_BUILTIN_DECL): Define.
8783         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8784         (arm_builtin_decls[]): New.
8785         (arm_init_neon_builtins): Store builtin declarations in
8786         arm_builtin_decls[].
8787         (arm_init_tls_builtins): Likewise.
8788         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
8789         (arm_builtin_decl): New.
8790
8791 2011-04-18  Richard Guenther  <rguenther@suse.de>
8792
8793         * tree.c (upper_bound_in_type): Build properly canonicalized
8794         INTEGER_CSTs.
8795         (lower_bound_in_type): Likewise.
8796
8797 2011-04-18  Richard Guenther  <rguenther@suse.de>
8798
8799         * gimple.h (gimple_call_addr_fndecl): New function.
8800         (gimple_call_fndecl): Use it.
8801         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8802         for direct calls.
8803         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8804         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8805
8806 2011-04-18  Richard Guenther  <rguenther@suse.de>
8807
8808         PR middle-end/48650
8809         * tree.c (build_string): STRING_CST is now derived from tree_typed.
8810
8811 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8812
8813         PR lto/48492
8814         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8815         DECL_IN_CONSTANT_POOL without RTL.
8816
8817 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
8818             Ira Rosen  <ira.rosen@linaro.org>
8819
8820         PR target/48252
8821         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8822         to match neon_vzip/vuzp/vtrn_internal.
8823         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8824         outputs explicitly dependent on both inputs.
8825         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8826
8827 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
8828
8829         PR tree-optimization/48616
8830         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8831         whether the shift is by scalar or vector based on whether all SLP
8832         scalar stmts have the same rhs.
8833
8834 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
8835
8836         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8837         memory operands.
8838
8839 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
8840
8841         PR target/43700
8842         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8843         registers.
8844
8845 2011-04-17  Jan Hubicka  <jh@suse.cz>
8846
8847         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8848         * cgrpahunit.c (cgraph_finalize_function): Do not set
8849         finalized_by_frontend.
8850         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8851         finalized_by_frontend.
8852
8853 2011-04-17  Jan Hubicka  <jh@suse.cz>
8854
8855         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8856         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8857         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8858         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8859         method.
8860         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8861         gimple-fold.c
8862         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8863
8864 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8865
8866         PR lto/48538
8867         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8868         is non-null before accessing it.
8869         (input_cgraph): Remove trailing spaces.
8870
8871 2011-04-17  Revital Eres  <revital.eres@linaro.org>
8872
8873         * params.def (sms-min-sc): New param flag.
8874         * modulo-sched.c (sms_schedule): Use it.
8875         * doc/invoke.texi (sms-min-sc): Document it.
8876
8877 2011-04-17  Jan Hubicka  <jh@suse.cz>
8878
8879         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8880         present, also set gimple_call_set_cannot_inline.
8881         * ipa-inline.c: Update toplevel comment.
8882         (MAX_TIME): Remove.
8883         (cgraph_clone_inlined_nodes): Fix linebreaks.
8884         (cgraph_check_inline_limits): Restructure to ...
8885         (caller_growth_limits): ... this one; be more tolerant
8886         on growth in nested inline chains; add explanatory comment;
8887         fix stack accounting thinko introduced by previous patch.
8888         (cgraph_default_inline_p): Remove.
8889         (report_inline_failed_reason): New function.
8890         (can_inline_edge_p): New function.
8891         (can_early_inline_edge_p): New function.
8892         (leaf_node_p): Move upwards in file.
8893         (want_early_inline_function_p): New function.
8894         (want_inline_small_function_p): New function.
8895         (want_inline_self_recursive_call_p): New function.
8896         (cgraph_edge_badness): Rename to ...
8897         (edge_badness) ... this one; fix linebreaks.
8898         (update_edge_key): Update call of edge_baddness; add
8899         detailed dump about queue updates.
8900         (update_caller_keys): Use can_inline_edge_p and
8901         want_inline_small_function_p.
8902         (cgraph_decide_recursive_inlining): Rename to...
8903         (recursive_inlining): Use can_inline_edge_p and
8904         want_inline_self_recursive_call_p; simplify and remove no longer
8905         valid FIXME.
8906         (cgraph_set_inline_failed): Remove.
8907         (add_new_edges_to_heap): Use can_inline_edge_p and
8908         want_inline_small_function_p.
8909         (cgraph_decide_inlining_of_small_functions): Rename to ...
8910         (inline_small_functions): ... this one; cleanup; use
8911         can/want predicates; cleanup debug ouput; work edges till fibheap
8912         is exhausted and do not stop once unit growth is reached; remove
8913         later loop processing remaining edges.
8914         (cgraph_flatten): Rename to ...
8915         (flatten_function): ... this one; use can_inline_edge_p
8916         and can_early_inline_edge_p predicates.
8917         (cgraph_decide_inlining): Rename to ...
8918         (ipa_inline): ... this one; remove unreachable nodes before
8919         inlining functions called once; simplify the pass.
8920         (cgraph_perform_always_inlining): Rename to ...
8921         (inline_always_inline_functions): ... this one; use
8922         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
8923         (cgraph_decide_inlining_incrementally): Rename to ...
8924         (early_inline_small_functions): ... this one; simplify
8925         using new predicates; cleanup; make dumps prettier.
8926         (cgraph_early_inlining): Rename to ...
8927         (early_inliner): newer inline regular functions into always-inlines;
8928         fix updating of call stmt summaries.
8929         (pass_early_inline): Update for new names.
8930         (inline_transform): Fix formating.
8931         (gate_cgraph_decide_inlining): Rename to ...
8932         (pass_ipa_inline): ... this one.
8933         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8934         * ipa-inline-analysis.c (dump_inline_summary): Update.
8935         (compute_inline_parameters): Do not compute disregard_inline_limits;
8936         look for mismatching arguments.
8937         (estimate_growth): Fix handlig of non-trivial self recursion.
8938         (inline_read_summary): Do not read info->disregard_inline_limits.
8939         (inline_write_summary): Do not write info->disregard_inline_limits.
8940         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8941         and move all checks into can_inline_edge_p predicate; re-enable code
8942         comparing optimization levels.
8943         (expand_call_inline): Do not test inline_forbidden_into_p.
8944         * Makefile.in (ipa-inline.o): Update arguments.
8945
8946 2011-04-17  Revital Eres  <revital.eres@linaro.org>
8947
8948         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8949
8950 2011-04-17  Revital Eres  <revital.eres@linaro.org>
8951
8952         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8953
8954 2011-04-17  Michael Matz  <matz@suse.de>
8955
8956         PR tree-optimization/48622
8957         PR lto/48645
8958         * ipa-inline-analysis.c (inline_read_summary): Read size/time
8959         in same order as they're written.
8960
8961 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8962
8963         * config/pa/predicates.md: Reorganize and simplify predicates.
8964         Eliminate duplicate code checks.
8965         (arith_operand): Rename to arith14_operand
8966         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8967         * config/pa/pa.md: Use renamed operands.
8968         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8969         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8970         arith11_operand, adddi3_operand, indexed_memory_operand,
8971         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8972         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8973         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8974         move_dest_operand, move_src_operand, prefetch_cc_operand,
8975         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8976         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8977         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8978         div_operand, int5_operand, movb_comparison_operator,
8979         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8980         arith_double_operand, ireg_operand, lhs_lshift_operand,
8981         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8982         integer_store_memory_operand): Likewise.
8983         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8984         (integer_store_memory_operand, read_only_operand,
8985         function_label_operand, borx_reg_operand,
8986         non_hard_reg_operand): Likewise.
8987         (eq_neq_comparison_operator): Delete unused operator.
8988         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8989         function_label_operand.
8990         (emit_move_sequence): Likewise.
8991
8992 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
8993
8994         * config/i386/sse.md (sseunpackmode): New mode attribute.
8995         (ssepackmode): Ditto.
8996         (vec_pack_trunc_<mode>): Macroize expander from
8997         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8998         (vec_unpacks_lo_<mode>): Macroize expander from
8999         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9000         (vec_unpacks_hi_<mode>): Macroize expander from
9001         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9002         (vec_unpacku_lo_<mode>): Macroize expander from
9003         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9004         (vec_unpacku_hi_<mode>): Macroize expander from
9005         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9006         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9007         ix86_expand_sse4_unpack.
9008         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9009
9010 2011-04-16  Jan Hubicka  <jh@suse.cz>
9011
9012         * cgraphbuild.c: Include ipa-inline.h.
9013         (reset_inline_failed): Use initialize_inline_failed.
9014         * cgraph.c: Include ipa-inline.h.
9015         (cgraph_create_node_1): Do not initialize estimated_growth.
9016         (initialize_inline_failed): More to ipa-inline-analysis.c
9017         (dump_cgraph_node): Do not dump inline flags.
9018         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9019         and disregard_inline_limits flags.
9020         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9021         time, size, estimated_growth.
9022         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9023         Update.
9024         * cgraphunit.c (cgraph_decide_is_function_needed): Use
9025         DECL_DISREGARD_INLINE_LIMITS.
9026         (cgraph_analyze_function): Do not initialize
9027         node->local.disregard_inline_limits.
9028         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9029         inlinable, versionable and disregard_inline_limits.
9030         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9031         cgraph_check_inline_limits, cgraph_default_inline_p,
9032         cgraph_edge_badness, update_caller_keys, update_callee_keys,
9033         add_new_edges_to_heap): Update.
9034         (cgraph_decide_inlining_of_small_function): Update; set
9035         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9036         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9037         cgraph_decide_inlining_incrementally): Update.
9038         * ipa-inline.h (inline_summary): Add inlinable, versionable,
9039         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9040         time, size and estimated_growth parameters.
9041         (estimate_edge_growth): Update.
9042         (initialize_inline_failed): Declare.
9043         * ipa-split.c: Include ipa-inline.h
9044         (execute_split_functions): Update.
9045         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9046         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9047         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9048         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9049         estimated_growth to INT_MIN.
9050         (inline_node_duplication_hook): Likewise.
9051         (dump_inline_summary): Dump new fields.
9052         (compute_inline_parameters): Update.
9053         (estimate_edge_time, estimate_time_after_inlining,
9054         estimate_size_after_inlining, estimate_growth, inline_read_summary,
9055         inline_write_summary):
9056         (initialize_inline_failed): Move here from cgraph.c.
9057         * tree-sra.c: Include ipa-inline.h.
9058         (ipa_sra_preliminary_function_checks): Update.
9059         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9060         ipa-inline.h.
9061
9062 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9063
9064         * config/i386/sse.md (V16): New mode iterator.
9065         (VI1, VI8): Ditto.
9066         (AVXMODEQI, AVXMODEDI): Remove.
9067         (sse2, sse3): New mode attribute.
9068         (mov<mode>): Use V16 mode iterator.
9069         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9070         (push<mode>1): Use V16 mode iterator.
9071         (movmisalign<mode>): Ditto.
9072         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9073         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9074         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9075         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9076         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9077         avx_movdqu<avxmodesuffix>.
9078         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9079         *avx_movdqu<avxmodesuffix>.
9080         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9081         avx_lddqu<avxmodesuffix>.
9082         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9083         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9084         avx_movnt<AVXMODEDI:mode>.
9085         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9086         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9087
9088 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
9089
9090         PR target/48629
9091         * haifa-sched.c (prune_ready_list, schedule_block): Use
9092         sched_pressure_p rather than flag_sched_pressure.
9093
9094 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
9095
9096         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9097         cgraph_get_node instead of cgraph_get_create_node.
9098
9099 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
9100
9101         * cfgexpand.c (expand_debug_expr): Use
9102         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9103
9104 2011-04-15  Michael Matz  <matz@suse.de>
9105
9106         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9107         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9108         * function.c (gimplify_parameters): Ditto.
9109         * gimplify.c (gimplify_vla_decl): Ditto.
9110
9111         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9112         (gimple_call_set_alloca_for_var): New inline function.
9113         (gimple_call_alloca_for_var_p): Ditto.
9114         * gimple.c (gimple_build_call_from_tree): Remember
9115         CALL_ALLOCA_FOR_VAR_P state.
9116         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9117
9118         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9119         calls if they were for VLA objects.
9120
9121 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9122
9123         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9124         of ADR_EXPRs.
9125
9126 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9127
9128         PR middle-end/48601
9129         * tree-emutls.c (lower_emutls_function_body): Call
9130         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
9131         result is non-NULL.
9132
9133 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
9134
9135         * c-decl.c (detect_field_duplicates): Call
9136         objc_detect_field_duplicates instead of objc_get_interface_ivars.
9137
9138 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
9139
9140         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9141         * gimple.c (gimple_asm_clobbers_memory_p): Define.
9142         * ipa-pure-const.c (check_stmt): Call it.
9143         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9144
9145 2011-04-15  Richard Guenther  <rguenther@suse.de>
9146
9147         PR tree-optimization/48290
9148         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9149         Properly decide inhibiting propagation based on the valueized
9150         operand.  Do loop-closed SSA form preserving here ...
9151         (init_copy_prop): ... not here.
9152
9153 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
9154
9155         PR target/48612
9156         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9157         (*ieee_smax<mode>3): Likewise.
9158
9159 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9160
9161         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9162         Replace match_operand with match_dup for the third operand in
9163         these expanders.
9164
9165 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9166
9167         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9168         to track processing of conditionals.  Update all callers.
9169         (try_combine, simplify_if_then_else): Update.
9170
9171 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9172
9173         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9174         -fsched-pressure.
9175
9176 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
9177
9178         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9179         instead of match_operand for operand 3.
9180
9181 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
9182
9183         * recog.h (insn_operand_data): Add an "allows_mem" field.
9184         * genoutput.c (output_operand_data): Initialize it.
9185         * optabs.c (maybe_legitimize_operand_same_code): New function.
9186         (maybe_legitimize_operand): Use it when matching the original
9187         op->value.
9188
9189 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9190
9191         * gimplify.c: Fix issues in comments throughout.
9192         (voidify_wrapper_expr): Fix long line.
9193         (build_stack_save_restore): Likewise.
9194         (gimplify_loop_expr): Likewise.
9195         (gimplify_compound_lval): Likewise.
9196         (gimplify_init_ctor_eval): Likewise.
9197         (gimplify_modify_expr_rhs): Likewise.
9198         (omp_notice_threadprivate_variable): Likewise.
9199
9200 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9201
9202         * cfgexpand.c (expand_call_stmt): Convert the function type to the
9203         original one if this is not a builtin function.
9204
9205 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
9206
9207         PR target/48605
9208         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9209         offset it as needed based on top 2 bits in operands[3], change
9210         MEM mode to SFmode and mask those 2 bits away from operands[3].
9211
9212 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9213
9214         * c-parser.c (c_parser_objc_protocol_definition): Updated for
9215         change from objc_declare_protocols() to objc_declare_protocol().
9216
9217 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
9218
9219         * config/i386/sse.md (sse4_1): New mode attribute.
9220         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9221         avx_blend<ssemodesuffix><avxmodesuffix> and
9222         sse4_1_blend<ssemodesuffix> using VF mode iterator.
9223         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9224         avx_blendv<ssemodesuffix><avxmodesuffix> and
9225         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9226         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9227         avx_dp<ssemodesuffix><avxmodesuffix> and
9228         sse4_1_dp<ssemodesuffix> using VF mode iterator.
9229         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9230         (sse4_1_packusdw): Merge with *avx_packusdw.
9231         (sse4_1_pblendvb): Merge with *avx_pblendvb.
9232         (sse4_1_pblendw): Merge with *avx_pblendw.
9233         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9234         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9235         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9236         VF mode iterator.
9237         (sse4_1_round<ssescalarmodesuffix>): Merge with
9238         *avx_round<ssescalarmodesuffix>.
9239         (aesenc): Merge with *avx_aesenc.
9240         (aesenclast): Merge with *avx_aesenclast.
9241         (aesdec): Merge with *avx_aesdec.
9242         (aesdeclast): Merge with *avx_aesdeclast.
9243         (pclmulqdq): Merge with *pclmulqdq.
9244         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9245         New predicate.
9246         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9247
9248 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
9249
9250         PR middle-end/48608
9251         * cfgexpand.c (get_decl_align_unit): Renamed to ...
9252         (align_local_variable): This.  Update DECL_ALIGN.
9253         (add_stack_var): Updated.
9254         (expand_one_stack_var): Likewise.
9255
9256 2011-04-14  Richard Guenther  <rguenther@suse.de>
9257
9258         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9259         Remove.
9260         (dse_initialize_block_local_data, dse_leave_block,
9261         record_voperand_set, get_stmt_uid): Likewise.
9262         (dse_possible_dead_store_p): Allow any kind of killing stmt.
9263         (dse_optimize_stmt): Remove voperand set handling code.
9264         Simplify and improve to handle any kind of killing stmt.
9265         (dse_record_phi): Remove.
9266         (dse_enter_block): Simplify.
9267         (tree_ssa_dse): Likewise.
9268         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9269
9270 2011-04-14  Jan Hubicka  <jh@suse.cz>
9271
9272         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9273         * cgraph.h (struct inline_summary): Move to ipa-inline.h
9274         (cgraph_local_info): Remove inline_summary.
9275         * ipa-cp.c: Include ipa-inline.h.
9276         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9277         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9278         accesor.
9279         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9280         (input_overwrite_node): Do not set inline summary.
9281         (input_node): Do not stream inline summary.
9282         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9283         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9284         growth; we do not have inline parameters computed for that anyway.
9285         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9286         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9287         (inline_summary_t): New type and VECtor.
9288         (debug_inline_summary, dump_inline_summaries): Declare.
9289         (inline_summary): Use VOCtor.
9290         (estimate_edge_growth): Kill hack computing call stmt size directly.
9291         * lto-section-in.c (lto_section_name): Add inline section.
9292         * ipa-inline-analysis.c: Include lto-streamer.h
9293         (node_removal_hook_holder, node_duplication_hook_holder): New holders
9294         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9295         (inline_summary_vec): Define.
9296         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9297         dump_inline_summaries): New functions.
9298         (estimate_function_body_sizes): Properly compute size/time of outgoing
9299         calls.
9300         (compute_inline_parameters): Alloc inline_summary; do not compute
9301         size/time of incomming calls.
9302         (estimate_edge_time): Avoid missing time summary hack.
9303         (inline_read_summary): Read inline summary info.
9304         (inline_write_summary): Write inline summary info.
9305         (inline_free_summary): Free all hooks and inline summary vector.
9306         * lto-streamer.h: Add LTO_section_inline_summary section.
9307         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9308         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9309
9310 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9311
9312         * tree-vectorizer.h (vect_strided_store_supported): Add a
9313         HOST_WIDE_INT argument.
9314         (vect_strided_load_supported): Likewise.
9315         (vect_permute_store_chain): Return void.
9316         (vect_transform_strided_load): Likewise.
9317         (vect_permute_load_chain): Delete.
9318         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9319         count argument.  Check that the count is a power of two.
9320         (vect_strided_load_supported): Likewise.
9321         (vect_permute_store_chain): Return void.  Update after above changes.
9322         Assert that the access is supported.
9323         (vect_permute_load_chain): Likewise.
9324         (vect_transform_strided_load): Return void.
9325         * tree-vect-stmts.c (vectorizable_store): Update calls after
9326         above interface changes.
9327         (vectorizable_load): Likewise.
9328         (vect_analyze_stmt): Don't check for strided powers of two here.
9329
9330 2011-04-14  Richard Guenther  <rguenther@suse.de>
9331
9332         PR tree-optimization/48590
9333         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9334         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9335         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9336         BUILT_IN_STACK_SAVE.
9337         * tree-ssa-dce.c (propagate_necessity): Handle
9338         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9339
9340 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9341
9342         * c-parser.c (c_parser_objc_class_declaration): Updated call to
9343         objc_declare_class.
9344
9345 2011-04-14  Richard Guenther  <rguenther@suse.de>
9346
9347         * tree.h (get_object_alignment_1): Declare.
9348         * builtins.c (get_object_alignment_1): Split out worker from ...
9349         (get_object_alignment): ... here.
9350         * fold-const.c (get_pointer_modulus_and_residue): Use
9351         get_object_alignment_1.
9352
9353 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9354
9355         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9356         type parameter.
9357         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9358         parameter.  Generalise code to handle arrays as well as vectors.
9359         (vect_setup_realignment): Update accordingly.
9360         * tree-vect-stmts.c (vectorizable_store): Likewise.
9361         (vectorizable_load): Likewise.
9362
9363 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9364
9365         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9366         within the per-copy loop.
9367
9368 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9369
9370         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9371         in the dump file.
9372
9373 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9374
9375         * doc/options.texi (Negative): Explicitly mention that the
9376         Negative chain must be circular.
9377
9378 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
9379
9380         * function.h (block_chainon): Declare.
9381         * function.c (block_chainon): Define.
9382
9383 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
9384             Eric Weddington  <eric.weddington@atmel.com>
9385             Georg-Johann Lay  <avr@gjlay.de>
9386
9387         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9388         New Includes
9389         (avr_init_builtins, avr_expand_builtin,
9390         avr_expand_delay_cycles, avr_expand_unop_builtin,
9391         avr_expand_binop_builtin ): New functions.
9392         (avr_builtin_id): New enum
9393         (struct avr_builtin_description): New struct
9394         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9395         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9396
9397         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9398         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9399         UNSPECV_DELAY_CYCLES): new enumeration values
9400         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9401         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9402         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9403         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9404         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9405         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9406         "fmulsu"): New insns
9407
9408         * config/avr/avr-c.c: fix line endings
9409         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9410         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9411         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9412         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9413         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9414
9415         * doc/extend.texi (AVR Built-in Functions): New node
9416         (Target Builtins): Add documentation of AVR
9417         built-in functions.
9418
9419 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
9420
9421         PR target/44643
9422         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9423         alone. Error if non-const data has attribute progmem.
9424
9425 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9426
9427         * tree.h (struct tree_constructor): Include tree_typed instead of
9428         tree_common.
9429         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9430         TS_TYPED instead of TS_COMMON.
9431
9432 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9433
9434         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9435         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9436         (sse2_psadbw): Merge with *avx_psadbw.
9437         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9438         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9439         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9440         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9441         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9442         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9443         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9444         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9445         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9446         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9447         (ssse3_palignrti): Merge with *avx_palignrti.
9448
9449 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9450
9451         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9452         * tree-ssanames.c (fini_ssanames): VEC_free it.
9453         (make_ssa_name_fn): Update for VECness of free_ssanames.
9454         (release_ssa_name, release_dead_ssa_names): Likewise.
9455         * tree.h (struct tree_ssa_name): Include tree_typed instead of
9456         tree_common.
9457         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9458         TS_TYPED instead of TS_COMMON.
9459
9460 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9461
9462         * postreload-gcse.c (gcse_after_reload_main): Add calls to
9463         statistics_counter_event.
9464         * tree-ssa-copyrename.c (stats): Define.
9465         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
9466         statistics_counter_event.
9467         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9468         (bswap_stats, widen_mul_stats): Define.
9469         (insert_reciprocals): Increment rdivs_inserted.
9470         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
9471         rfuncs_inserted.  Add calls to statistics_counter_event.
9472         (execute_cse_sincos_1): Increment inserted.
9473         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
9474         statistics_counter_event.
9475         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
9476         of bswap_stats.  Add calls to statistics_counter_event.
9477         (convert_mult_to_widen): Increment widen_mults_inserted.
9478         (convert_plusminus_to_widen): Increment maccs_inserted.
9479         (convert_mult_to_fma): Increment fmas_inserted.
9480         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
9481         calls to statistics_counter_event.
9482
9483 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
9484
9485         PR rtl-optimization/48455
9486         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9487         `temp_costs->mem_cost'.
9488
9489 2011-04-13  Jan Hubicka  <jh@suse.cz>
9490
9491         * ipa-inline.h: New file.
9492         * ipa-inline-analysis.c: New file. Broken out of ...
9493         * ipa-inline.c: ... this file; update toplevel comment;
9494         include ipa-inline.h
9495         (inline_summary): Move to ipa-inline.h
9496         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9497         ipa-inline-analysis.c.
9498         (cgraph_estimate_time_after_inlining): Rename to
9499         estiamte_time_after_inlining; move to ipa-inline-analysis.c
9500         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9501         to estimate_edge_growth.
9502         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9503         rename to estimate_size_after_inlining.
9504         (cgraph_mark_inline_edge): Update for new naming convention.
9505         (cgraph_check_inline_limits): Likewise.
9506         (cgraph_edge_badness): Likewise.
9507         (cgraph_decide_recursive_inlining): Likewise.
9508         (cgraph_decide_inlining_of_small_functions): Likewise.
9509         (cgraph_decide_inlining_incrementally): Likewise.
9510         (cgraph_estimate_growth): Rename to estimate_growth; move to
9511         ipa-inline-analysis.c.
9512         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9513         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9514         (compute_inline_parameters): Likewise.
9515         (compute_inline_parameters_for_current): Likewise.
9516         (pass_inline_parameters): Likewise.
9517         (inline_indirect_intraprocedural_analysis): Likewise.
9518         (analyze_function): Rename to inline_analyze_function; likewise.
9519         (add_new_function): Move to ipa-inline-analysis.c.
9520         (inline_generate_summary): Likewise.
9521         (inline_read_summary): Likewise.
9522         (inline_write_summary): Likewise.
9523         * Makefile.in (ipa-inline-analysis.c): New file.
9524
9525 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9526
9527         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9528         * configure: Regenerate.
9529
9530 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9531
9532         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9533         instead of tree_common.
9534         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9535         Likewise.
9536         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9537         TS_TYPED rather than TS_COMMON.
9538         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9539
9540 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
9541
9542         PR target/45263
9543         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9544         r20 around calls of __tablejump_elpm__
9545
9546 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
9547
9548         PR middle-end/48591
9549         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9550         NULL.
9551         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9552
9553 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
9554
9555         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9556         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9557         (cfi_vec): New typedef.
9558         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9559         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9560         (cie_cfi_vec): New static variable.
9561         (cie_cfi_head): Delete.
9562         (add_cfi): Accept a cfi_vec * as first argument. All callers and
9563         declaration changed. Use vector rather than list operations.
9564         (new_cfi): Don't initialize the dw_cfi_next field.
9565         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9566         rather than list operations.
9567         (lookup_cfa): Use vector rather than list operations.
9568         (output_cfis): New argument upto. Accept a cfi_vec rather than
9569         a dw_cfi_ref list head as argument. All callers changed.
9570         Iterate over the vector using upto as a maximum index.
9571         (output_all_cfis): New static function.
9572         (output_fde): Use vector rather than list operations. Use the
9573         new upto argument for output_cfis rather than manipulating a
9574         list.
9575         (dwarf2out_begin_prologue): Change initializations to match
9576         new struct members.
9577         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9578         from the vector length rather than searching for the end of a list.
9579         Use output_all_cfis.
9580         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9581
9582 2011-04-13  Nick Clifton  <nickc@redhat.com>
9583
9584         * config/rx/rx.md (movmemsi): Do not use this pattern when
9585         volatile pointers are involved.
9586
9587 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9588
9589         * config/i386/sse.md (pinsrbits): Remove.
9590         (sse2_packsswb): Merge with *avx_packsswb.
9591         (sse2_packssdw): Merge with *avx_packssdw.
9592         (sse2_packuswb): Merge with *avx_packuswb.
9593         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9594         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9595         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9596         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9597         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9598         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9599         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9600         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9601         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9602         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9603         (sse2_loadld): Merge with *avx_loadld.
9604         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9605         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9606         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9607         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9608         (vec_concatv2di): Merge with *vec_concatv2di_avx.
9609
9610 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
9611
9612         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9613         calling TREE_CHAIN.
9614         * print-tree.c (print_node): Likewise.
9615         * tree-inline.c (copy_tree_r): Likewise.
9616         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9617         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9618         instead of TS_COMMON.
9619         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9620         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9621         (copy_node_stat): Zero TREE_CHAIN only if necessary.
9622         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9623         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9624         ...and these...
9625         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9626         * tree.h: ...here.
9627         (TREE_CHAIN): Check for a TS_COMMON structure.
9628         (TREE_TYPE): Check for a TS_TYPED structure.
9629
9630 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
9631
9632         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9633         cgraph_get_create_node instead of cgraph_node.
9634
9635 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
9636
9637         * c-parser.c (c_parser_initelt): Updated call to
9638         objc_build_message_expr.
9639         (c_parser_postfix_expression): Likewise.
9640
9641 2011-04-12  Kai Tietz  <ktietz@redhat.com>
9642
9643         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9644         MASK_MS_BITFIELD_LAYOUT bit.
9645
9646 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9647
9648         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9649         assert it is always true.
9650         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9651         moves.
9652
9653 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
9654
9655         * c-parser.c (c_lex_one_token): Rewritten conditional used when
9656         compiling Objective-C to be more efficient.
9657
9658 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
9659
9660         * opts-common.c (decode_cmdline_options_to_array): Remove variable
9661         argv_copied.
9662
9663 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9664
9665         * recog.h, genoutput.c, optabs.c: Revert last patch.
9666
9667 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9668
9669         PR target/48090
9670         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
9671
9672 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9673
9674         * recog.h (insn_operand_data): Add an "allows_mem" field.
9675         * genoutput.c (output_operand_data): Initialize it.
9676         * optabs.c (maybe_legitimize_operand_same_code): New function.
9677         (maybe_legitimize_operand): Use it when matching the original
9678         op->value.
9679
9680 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9681
9682         * genpreds.c (process_define_predicate): Move most processing
9683         to gensupport.c.  Continue to validate the expression.
9684         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9685         (process_define_predicate): Move processing to gensupport.c.
9686         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9687         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9688         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
9689         argument.
9690         (valid_predicate_name_p): New function, split out from old
9691         genpreds.c:process_define_predicate.
9692         (process_define_predicate): New function, combining code from
9693         old genpreds.c and genrecog.c functions.
9694         (process_rtx): Call it for DEFINE_PREDICATE and
9695         DEFINE_SPECIAL_PREDICATE.
9696
9697 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9698
9699         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9700         size of a '%A' memory reference.
9701         (T_DREG, T_QREG): New neon_builtin_type_bits.
9702         (arm_init_neon_builtins): Assert that the load and store operands
9703         are neon_struct_operands.
9704         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9705         (NEON_ARG_MEMORY): New builtin_arg.
9706         (neon_dereference_pointer): New function.
9707         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9708         Handle NEON_ARG_MEMORY.
9709         (arm_expand_neon_builtin): Update after above interface changes.
9710         Use NEON_ARG_MEMORY for loads and stores.
9711         * config/arm/predicates.md (neon_struct_operand): New predicate.
9712         * config/arm/iterators.md (V_two_elem): Tweak formatting.
9713         (V_three_elem): Use BLKmode for accesses that have no associated mode.
9714         (V_four_elem): Tweak formatting.
9715         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9716         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9717         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9718         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9719         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9720         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9721         (neon_vst4<mode>): Replace pointer operand with a memory operand.
9722         Use %A in the output template.
9723         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9724         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9725         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9726         the width of the memory access.  Remove post-increment.
9727         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9728
9729 2011-04-12  Nick Clifton  <nickc@redhat.com>
9730
9731         * config/v850/v850.c (expand_prologue): Do not use the CALLT
9732         instruction for interrupt handlers if the target is the basic V850
9733         architecture.
9734         (expand_epilogue): Likewise.
9735
9736 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9737
9738         PR rtl-optimization/48549
9739         * combine.c (propagate_for_debug): Also stop after BB_END of
9740         this_basic_block.  Process LAST and just stop processing after it.
9741         (combine_instructions): If last_combined_insn has been deleted,
9742         set last_combined_insn to its PREV_INSN.
9743
9744 2011-04-12  Richard Guenther  <rguenther@suse.de>
9745
9746         PR tree-optimization/46076
9747         * gimple.h (struct gimple_statement_call): Add fntype field.
9748         (gimple_call_fntype): Adjust.
9749         (gimple_call_set_fntype): New function.
9750         * gimple.c (gimple_build_call_1): Set the call function type.
9751         * gimplify.c (gimplify_call_expr): Preserve the function
9752         type the frontend used for the call.
9753         (gimplify_modify_expr): Likewise.
9754         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9755         function type.
9756         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9757         function type.
9758         * tree-ssa.c (useless_type_conversion_p): Function pointer
9759         conversions are useless.
9760
9761 2011-04-12  Martin Jambor  <mjambor@suse.cz>
9762
9763         * cgraph.h (cgraph_node): Remove function declaration.
9764         (cgraph_create_node): Declare.
9765         (cgraph_get_create_node): Likewise.
9766         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9767         Updated all callers.
9768         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9769         the decl does not already exist.  Call cgraph_get_create_node instead
9770         of cgraph_node.
9771         (cgraph_get_create_node): New function.
9772         (cgraph_same_body_alias): Update comment.
9773         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9774         assert it does not return NULL.
9775         (cgraph_update_edges_for_call_stmt): Likewise.
9776         (cgraph_clone_edge): Likewise.
9777         (cgraph_create_virtual_clone): Likewise.
9778         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9779         instead of cgraph_node.
9780         (cgraph_add_new_function): Call cgraph_create_node or
9781         cgraph_get_create_node instead of cgraph_node.
9782         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9783         instead of cgraph_node.
9784         (record_eh_tables): Likewise.
9785         (mark_address): Likewise.
9786         (mark_load): Likewise.
9787         (build_cgraph_edges): Call cgraph_get_create_node instead
9788         of cgraph_node.
9789         (rebuild_cgraph_edges): Likewise.
9790         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9791         instead of cgraph_node.
9792         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9793         cgraph_node.
9794         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9795         cgraph_create_node instead of cgraph_node.
9796         * c-decl.c (finish_function): Call cgraph_get_create_node instead
9797         of cgraph_node.
9798         * lto-cgraph.c (input_node): Likewise.
9799         * lto-streamer-in.c (input_function): Likewise.
9800         * varasm.c (mark_decl_referenced): Likewise.
9801         (assemble_alias): Likewise.
9802
9803 2011-04-12  Martin Jambor  <mjambor@suse.cz>
9804
9805         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9806         instead of cgraph_node and assert it does not return NULL.
9807         * lto-streamer-in.c (lto_read_body): Likewise.
9808         * omp-low.c (new_omp_context): Likewise.
9809         (create_task_copyfn): Likewise.
9810         * tree-emutls.c (lower_emutls_function_body): Likewise.
9811         * matrix-reorg.c (transform_allocation_sites): Likewise.
9812
9813 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9814
9815         PR c/48552
9816         * c-typeck.c (build_asm_expr): Error out on attempts to use
9817         void type outputs or inputs for constraints that allow reg or
9818         don't allow memory.
9819
9820 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
9821             Richard Earnshaw  <rearnsha@arm.com>
9822
9823         PR target/48250
9824         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9825         to use sign-magnitude offsets. Reject unsupported unaligned
9826         cases. Add detailed description in comments.
9827         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9828         condition from TARGET_32BIT to TARGET_ARM.
9829
9830 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
9831
9832         * tree.h (struct typed_tree): New.
9833         (struct tree_common): Include it instead of tree_base.
9834         (TREE_TYPE): Update for new location of type field.
9835         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9836         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9837         (union tree_node): Add typed field.
9838         * treestruct.def (TS_TYPED): New.
9839         * lto-streamer.c (check_handled_ts_structures): Handle it.
9840         * tree.c (MARK_TS_TYPED): New macro.
9841         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9842
9843 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
9844
9845         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9846         (force_nonfallthru): Do not alter the loop nest if no basic block
9847         was created.
9848
9849 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
9850
9851         * config/i386/sse.md (VI): New mode iterator.
9852         (SSEMODEI): Remove.
9853         (AVX256MODEI): Ditto.
9854         (AVXMODEF4P): Ditto.
9855         (avxvecpsmode): Ditto.
9856         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
9857         (sse2_andnot<mode>3): New expander.
9858         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9859         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
9860         (<any_logic:code><mode>3): Use VI mode iterator.
9861         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9862         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
9863         (*andnottf3): Handle AVX three-operand constraints.
9864         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9865
9866 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9867             Robert Millan  <rmh@gnu.org>
9868
9869         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9870         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9871         GNU_USER_DYNAMIC_LINKER64): Define.
9872         (REG_NAME): Don't undefine.
9873         (MD_UNWIND_SUPPORT): Undefine.
9874         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9875         (REG_NAME): Don't undefine.
9876         (MD_UNWIND_SUPPORT): Undefine.
9877         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9878
9879 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9880
9881         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9882         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9883
9884 2011-04-11  Xinliang David Li  <davidxl@google.com>
9885
9886         * value-profile.c (check_ic_target): New function.
9887         (gimple_ic_transform): Sanity check indirect call target.
9888         * gimple-low.c (gimple_check_call_args): Interface change.
9889         (gimple_check_call_matching_types): New function.
9890         * tree-inline.c (tree_can_inline_p): Call new function.
9891
9892 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
9893
9894         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9895         tree-pretty-print.h & realmpfr.h.
9896
9897 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
9898
9899         PR middle-end/48464
9900         * ira.c (setup_pressure_classes): Fix typo in loop condition.
9901         (setup_allocno_and_important_classes): Ditto.
9902
9903 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9904
9905         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9906         GNU_USER_DYNAMIC_LINKER.
9907         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9908         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9909         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9910         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9911         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9912         GNU_USER_TARGET_OS_CPP_BUILTINS.
9913         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9914         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9915         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9916         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9917         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9918         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9919         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9920         GNU_USER_TARGET_OS_CPP_BUILTINS.
9921         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9922         GNU_USER_DYNAMIC_LINKER.
9923         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9924         GNU_USER_TARGET_OS_CPP_BUILTINS.
9925         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9926         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9927         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9928         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9929         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9930         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9931         GNU_USER_DYNAMIC_LINKER64): Remove.
9932         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9933         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9934         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9935         GNU_USER_DYNAMIC_LINKER.
9936         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9937         GNU_USER_TARGET_OS_CPP_BUILTINS.
9938         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9939         GNU_USER_TARGET_OS_CPP_BUILTINS.
9940         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9941         to GNU_USER_TARGET_OS_CPP_BUILTINS.
9942         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9943         GNU_USER_TARGET_OS_CPP_BUILTINS.
9944         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9945         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9946         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9947         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9948         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9949         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9950         GNU_USER_DYNAMIC_LINKER.
9951         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9952         GNU_USER_TARGET_OS_CPP_BUILTINS.
9953         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9954         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9955         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9956         GNU_USER_DYNAMIC_LINKER.
9957         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9958         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9959         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9960         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9961         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9962         GNU_USER_DYNAMIC_LINKER.
9963         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9964         GNU_USER_DYNAMIC_LINKERN32.
9965         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9966         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
9967         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
9968         GNU_USER_DYNAMIC_LINKER32.
9969         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9970         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9971         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9972         GNU_USER_DYNAMIC_LINKER.
9973         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9974         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9975         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9976         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9977         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9978         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9979         GNU_USER_DYNAMIC_LINKER32.
9980         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9981         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9982         GNU_USER_DYNAMIC_LINKER.
9983         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9984         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9985         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9986         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
9987         GNU_USER_DYNAMIC_LINKER64.
9988         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9989         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9990         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9991         GNU_USER_DYNAMIC_LINKER.
9992         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9993         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9994         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9995         GNU_USER_DYNAMIC_LINKER.
9996         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9997         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9998         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9999         GNU_USER_DYNAMIC_LINKER32.
10000         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10001         GNU_USER_DYNAMIC_LINKER64.
10002         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10003         GNU_USER_DYNAMIC_LINKER64.
10004         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10005         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10006         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10007         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10008         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10009
10010 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10011
10012         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
10013         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10014         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10015         GNU_USER_DYNAMIC_LINKER.
10016         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10017         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
10018         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10019         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10020         GNU_USER_DYNAMIC_LINKER64.
10021         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10022         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10023         GNU_USER_LINK_EMULATION.
10024         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10025         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10026         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10027         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10028         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10029         CPP_SPEC, CC1_SPEC): Remove.
10030         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10031         (GNU_USER_DYNAMIC_LINKER): Define.
10032         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10033         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10034         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10035         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10036         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10037         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10038         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10039         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10040         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10041         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10042         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10043         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10044         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10045         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10046         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10047         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10048         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10049         GNU_USER_DYNAMIC_LINKER.
10050         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10051         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10052         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10053         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10054         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10055         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10056         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10057         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10058         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10059         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10060
10061 2011-04-11  Kai Tietz  <ktietz@redhat.com>
10062
10063         PR target/9601
10064         PR target/11772
10065         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10066         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10067         comment.
10068         (ix86_is_msabi_thiscall): Removed.
10069         (ix86_is_type_thiscall): Likewise.
10070         (ix86_get_callcvt): New function.
10071         (ix86_comp_type_attributes): Simplify check.
10072         (ix86_function_regparm): Use ix86_get_callcvt for calling
10073         convention attribute checks.
10074         (ix86_return_pops_args): Likewise.
10075         (ix86_static_chain): Likewise.
10076         (x86_this_parameter): Likewise.
10077         (x86_output_mi_thunk): Likewise.
10078         (ix86_function_type_abi): Optimize check for types without attributes.
10079         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10080         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10081         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10082         by flag-values.
10083         (IX86_BASE_CALLCVT): Helper macro.
10084         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10085         Use ix86_get_callcvt for calling convention attribute checks and avoid
10086         symbol-decoration for stdcall in TARGET_RTD case.
10087         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10088         Likewise.
10089         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10090         for declaration.
10091
10092 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10093
10094         * config/i386/sse.md (VI_128): New mode iterator.
10095         (VI12_128): Rename from SSEMODE12.
10096         (VI14_128): Rename from SSEMODE14.
10097         (VI124_128): New mode iterator.
10098         (VI24_128): Rename from SSEMODE248.
10099         (VI248_128): Rename from SSEMODE248.
10100         (SSEMODE124C8): Remove.
10101         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10102         (*sse2_<plusminus_insn><mode>3): Merge with
10103         *avx_<plusminus_insn><mode>3.
10104         (*mulv8hi3): Merge with *avx_mulv8hi3.
10105         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10106         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10107         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10108         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10109         (ashr<mode>3): Merge with *avx_ashr<mode>3.
10110         (lshr<mode>3): Merge with *avx_lshr<mode>3.
10111         (ashl<mode>3): Merge with *avx_ashl<mode>3.
10112         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10113         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10114         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10115         (*<smaxmin:code>v8hi3): Ditto.
10116         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10117         (*<smaxmin:code>v16qi3): Ditto.
10118         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10119         (*sse2_eq<mode>3): Ditto.
10120         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10121         (*sse2_gt<mode>3): Ditto.
10122         (vcondv2di): Split out of vcond<mode>.
10123         (vconduv2di): Split out of vcondu<mode>.
10124
10125 2011-04-11  Richard Guenther  <rguenther@suse.de>
10126
10127         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10128         before calling tree_low_cst.
10129
10130 2011-04-11  Richard Guenther  <rguenther@suse.de>
10131
10132         * stor-layout.c (layout_type): Compute all array index size operations
10133         in the original type.
10134         (initialize_sizetypes): Add comment.
10135         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10136
10137 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10138
10139         * common.opt (Tbss=, Tdata=, Ttext=): New options.
10140
10141 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10142
10143         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10144         of cgraph_node, handle NULL return value.
10145         (cgraph_global_info): Likewise.
10146         (cgraph_rtl_info): Likewise.
10147         * tree-inline.c (estimate_num_insns): Likewise.
10148         * gimplify.c (unshare_body): Likewise.
10149         (unvisit_body): Likewise.
10150         (gimplify_body): Likewise.
10151         * predict.c (optimize_function_for_size_p): Likewise.
10152         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10153         (call_may_clobber_ref_p_1): Likewise.
10154         * varasm.c (function_section_1): Likewise.
10155         (assemble_start_function): Likewise.
10156
10157 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10158
10159         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10160         of cgraph_node.
10161         * final.c (rest_of_clean_state): Likewise.
10162         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10163         * passes.c (pass_init_dump_file): Likewise.
10164         (execute_all_ipa_transforms): Likewise.
10165         (function_called_by_processed_nodes_p): Likewise.
10166         * predict.c (maybe_hot_frequency_p): Likewise.
10167         (probably_never_executed_bb_p): Likewise.
10168         (compute_function_frequency): Likewise.
10169         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10170         (unnest_nesting_tree_1): Likewise.
10171         (lower_nested_functions): Likewise.
10172         * tree-optimize.c (execute_fixup_cfg): Likewise.
10173         (tree_rest_of_compilation): Likewise.
10174         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10175         * tree-sra.c (ipa_early_sra): Likewise.
10176         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10177         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10178         * ipa.c (record_cdtor_fn): Likewise.
10179         * ipa-inline.c (cgraph_early_inlining): Likewise.
10180         (compute_inline_parameters_for_current): Likewise.
10181         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10182         * ipa-pure-const.c (local_pure_const): Likewise.
10183         * ipa-split.c (split_function): Likewise.
10184         (execute_split_functions): Likewise.
10185         * cgraphbuild.c (build_cgraph_edges): Likewise.
10186         (rebuild_cgraph_edges): Likewise.
10187         (cgraph_rebuild_references): Likewise.
10188         (remove_cgraph_callee_edges): Likewise.
10189         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10190         (verify_cgraph_node): Likewise.
10191         (cgraph_analyze_functions): Likewise.
10192         (cgraph_preserve_function_body_p): Likewise.
10193         (save_inline_function_body): Likewise.
10194         (save_inline_function_body): Likewise.
10195         * tree-inline.c (copy_bb): Likewise.
10196         (optimize_inline_calls): Likewise.
10197
10198 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10199
10200         PR tree-optimization/48195
10201         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10202         ipa_check_create_edge_args.
10203         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10204         ipa_check_create_edge_args.
10205         * ipa-inline.c (inline_generate_summary): Do not call
10206         ipa_check_create_node_params and ipa_check_create_edge_args.
10207         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10208         ipa_check_create_edge_args.
10209
10210 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
10211
10212         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10213         instead of loop.
10214         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10215         * function.c (record_hard_reg_sets): Likewise.
10216         * ira.c (compute_regs_asm_clobbered): Likewise.
10217         * sched-deps.c (sched_analyze_1): Likewise.
10218         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10219
10220 2011-04-09  Xinliang David Li  <davidxl@google.com>
10221
10222         PR tree-optimization/PR48484
10223         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10224         has_valid_pred lazily
10225
10226 2011-04-09  Duncan Sands  <baldrick@free.fr>
10227
10228         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10229
10230 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
10231
10232         * combine.c (combine_validate_cost): Adjust comments.  Set registered
10233         cost of I0 to zero at the end, if any.
10234
10235 2011-04-08  Xinliang David Li  <davidxl@google.com>
10236
10237         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10238         to insane profile data.
10239
10240 2011-04-08  Xinliang David Li  <davidxl@google.com>
10241
10242         * ipa-cp.c (ipcp_update_profiling): Correct
10243          negative scale factor due to insane profile data.
10244
10245 2011-04-08  Xinliang David Li  <davidxl@google.com>
10246
10247         * final.c (dump_basic_block_info): New function.
10248         (final): Dump basic block.
10249         (final_scan_insn): Remove old dump.
10250
10251 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
10252
10253         PR target/47829
10254         * config.gcc (i386-*-freebsd): Disable unwind table generation for
10255         crtbegin/crtend.
10256
10257 2011-04-08  Michael Matz  <matz@suse.de>
10258
10259         PR middle-end/48389
10260         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10261         functions.
10262         (rebuild_jump_labels): Call rebuild_jump_labels_1.
10263         * rtl.h (rebuild_jump_labels_chain): Declare.
10264         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10265         insns inserted on edges.
10266
10267 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
10268
10269         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10270         * config/arm/arm-arches.def: New.
10271         * config/arm/arm-opts.h: New.
10272         * config/arm/genopt.sh: New.
10273         * config/arm/arm-tables.opt: New (generated).
10274         * config/arm/arm.c (arm_handle_option, arm_target_help,
10275         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10276         (all_architectures): Get most table contents from arm-arches.def.
10277         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10278         arm_selected_tune here.
10279         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10280         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10281         (march=, mcpu=, mtune=): Use Enum and Var.
10282         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10283         (arm.o): Update dependencies.
10284
10285 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
10286
10287         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10288         of header_file.
10289         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10290         (write_typed_alloc_defns): Likewise.
10291         (main): Calls write_typed_alloc_defns with output_header.
10292
10293 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
10294
10295         PR inline-asm/48435
10296         * ira-color.c (setup_profitable_hard_regs): Add comments.
10297         Don't take prohibited hard regs into account.
10298         (setup_conflict_profitable_regs): Rename to
10299         get_conflict_profitable_regs.
10300         (check_hard_reg_p): Check prohibited hard regs.
10301
10302 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
10303
10304         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10305         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10306         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10307
10308 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10309
10310         PR target/48366
10311         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10312         move from floating point to shift amount register.
10313         (emit_move_sequence): Remove secondary reload support for floating
10314         point to shift amount amount register copies.
10315         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10316         amount register copies.
10317         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10318         register, return false if mode isn't a scalar integer mode.
10319         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10320
10321 2011-04-08  Richard Guenther  <rguenther@suse.de>
10322
10323         * gimple.c (gimple_call_flags): Remove kludge.
10324
10325 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10326
10327         * sel-sched.c (sel_region_init): Move call to
10328         sel_setup_region_sched_flags after setup_current_loop_nest.
10329
10330 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
10331
10332         PR rtl-optimization/48272
10333         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10334         init_insn_reg_pressure_info.  Adjust a caller.
10335         * sched-int.h (init_insn_reg_pressure_info): Declare.
10336         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10337         when sched-pressure is enabled.
10338
10339 2011-04-08  Richard Guenther  <rguenther@suse.de>
10340
10341         * gimple.c (gimple_set_modified): Do not queue calls to
10342         MODIFIED_NORETURN_CALLS here ...
10343         * tree-ssa-operands.c (update_stmt_operands): ... but here.
10344
10345 2011-04-08  Richard Guenther  <rguenther@suse.de>
10346
10347         PR lto/48467
10348         * toplev.c (lang_dependent_init): Do not open asm_out_file
10349         in WPA mode, nor perform debug machinery initialization.
10350         (finalize): Do not unlink asm_out_file in WPA mode.
10351
10352 2011-04-08  Richard Guenther  <rguenther@suse.de>
10353
10354         * gimple.h (gimple_call_fntype): New function.
10355         (gimple_call_return_type): Use it.
10356         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10357         * gimple-low.c (gimple_check_call_args): Likewise.
10358         * gimple.c (gimple_call_flags): Likewise.
10359         (gimple_call_arg_flags): Likewise.
10360         (gimple_call_return_flags): Likewise.
10361         * tree-cfg.c (verify_gimple_call): Likewise.
10362         (do_warn_unused_result): Likewise.
10363         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10364         * value-prof.c (gimple_ic_transform): Fix fndecl check.
10365
10366 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
10367
10368         PR rtl-optimization/48235
10369         * sel-sched.c (code_motion_process_successors): Recompute the last
10370         insn in basic block if control flow changed.
10371         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
10372         Update condition for ilist_remove.
10373
10374 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10375
10376         PR rtl-optimization/48302
10377         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10378         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
10379         it to record added preheader blocks.
10380         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
10381         on to sel_add_loop_preheaders.
10382         (sel_region_init): Move call to setup_current_loop_nest after
10383         sel_init_bbs.
10384
10385 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10386
10387         PR target/48273
10388         * cfgloop.h (loop_has_exit_edges): New helper.
10389         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10390         non-clonable.
10391         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10392         that have no exit edges.
10393
10394 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10395
10396         PR rtl-optimization/48442
10397         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
10398         all callers.  Adjust assert.
10399
10400 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
10401
10402         PR tree-optimization/48377
10403         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10404         is_packed to true even for types with smaller TYPE_ALIGN than
10405         TYPE_SIZE.
10406
10407 2011-04-08  Richard Guenther  <rguenther@suse.de>
10408
10409         PR bootstrap/48513
10410         * doc/tm.texi: Re-generate.
10411
10412 2011-04-08  Wei Guozhi  <carrot@google.com>
10413
10414         PR target/47855
10415         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10416         * config/arm/arm.c (arm_attr_length_push_multi): New function.
10417         * config/arm/arm.md (*push_multi): Change the length computation to
10418         call a C function.
10419
10420 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
10421
10422         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10423         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10424         * doc/tm.texi: Regenerate.
10425         * system.h (ASM_OUTPUT_BSS): Poison.
10426         * varasm.c (asm_output_bss): Remove function.
10427         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10428
10429         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10430         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10431         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10432         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10433         Likewise.
10434         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10435         Likewise.
10436         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10437         Likewise.
10438         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10439
10440 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10441
10442         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10443         EnumValue lines.
10444
10445 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10446
10447         * config/m68k/m68k.c (m68k_handle_option): Don't handle
10448         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10449         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10450         OPT_mcpu32.
10451         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10452         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10453         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10454         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10455         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10456         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10457         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10458         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10459         options.  Don't map other m68k options manually.  Don't handle
10460         old-style options as canonical.
10461         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10462         * doc/install.texi (m68k-*-*): Document binutils version requirement.
10463
10464 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10465
10466         * basic-block.h (force_nonfallthru): Move to...
10467         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10468         (force_nonfallthru): ...here.
10469         * cfghooks.c (force_nonfallthru): New function.
10470         * cfgrtl.c (force_nonfallthru): Rename into...
10471         (rtl_force_nonfallthru): ...this.
10472         (commit_one_edge_insertion): Do not set AUX field.
10473         (commit_edge_insertions): Do not discover new basic blocks.
10474         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10475         (cfg_layout_rtl_cfg_hooks): Likewise.
10476         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10477         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
10478         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10479
10480 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
10481
10482         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10483         Remove macros.
10484
10485 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
10486
10487         * config/i386/sse.md: Update copyright year.
10488         (avxcvtvecmode): Remove.
10489         (sse_movhlps): Merge with *avx_movhlps.
10490         (sse_movlhps): Merge with *avx_movlhps.
10491         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10492         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10493         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10494         (sse_loadhps): Merge with *avx_loadhps.
10495         (sse_storelps): Merge with *avx_storelps.
10496         (sse_loadlps): Merge with *avx_loadlps.
10497         (sse_movss): Merge with *avx_movss.
10498         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10499         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10500         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10501         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10502         (vec_set<mode>_0): Ditto.
10503         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10504         (sse4_1_insertps): Merge with *avx_insertps.
10505         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10506         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10507         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10508         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10509         (sse2_storehpd): Merge with *avx_storehpd.
10510         (sse2_loadhpd): Merge with *avx_loadhpd.
10511         (sse2_loadlpd): Merge with *avx_loadlpd.
10512         (sse2_movsd): Merge with *avx_movsd.
10513         (*vec_concatv2df): Merge with *vec_concatv2df.
10514
10515 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
10516
10517         PR debug/48343
10518         * combine.c (combine_instructions): Add last_combined_insn,
10519         update it if insn is after it, pass it to all try_combine calls.
10520         (try_combine): Add last_combined_insn parameter, pass it instead of
10521         i3 to propagate_for_debug.
10522
10523 2011-04-07  Nick Clifton  <nickc@redhat.com>
10524
10525         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10526         to handle MDR <-> data register transfers.
10527         (movhi_internal): Likewise.
10528
10529 2011-04-07  Alan Modra  <amodra@gmail.com>
10530
10531         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10532         previous stack info.
10533
10534 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10535
10536         PR target/43920
10537         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
10538         flow_find_cross_jump.  Swap variables to implement backward replacement.
10539         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10540
10541 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10542
10543         PR target/43920
10544         * cfgcleanup.c (walk_to_nondebug_insn): New function.
10545         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
10546         and bb2.
10547         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10548         src1 or src2.  Redirect edges to the last basic block.  Update
10549         frequency and count on multiple basic blocks in case of fallthru.
10550
10551 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10552
10553         PR target/43920
10554         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10555         function.
10556         (old_insns_match_p): Change return type.  Replace return false/true
10557         with return dir_none/dir_both.  Use can_replace_by.
10558         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
10559         direction from dir_p.  Register replacement direction in dir, last_dir
10560         and afterlast_dir.  Handle new return type of old_insns_match_p using
10561         merge_dir.  Return replacement direction in dir_p.
10562         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10563         return type of old_insns_match_p.
10564         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10565         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10566         flow_find_cross_jump.
10567         * basic-block.h (enum replace_direction): New type.
10568         (flow_find_cross_jump): Add parameter to declaration.
10569
10570 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
10571
10572         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10573         (AVXMODEDCVTPS2DQ): Ditto.
10574         (VEC_FLOAT_MODE): Ditto.
10575         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
10576         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10577         (<any_logic:code><mode>3): Use VF mode iterator.
10578         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10579         Use VF mode iterator.
10580         (copysign<mode>3): Use VF mode iterator.
10581         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
10582         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10583         (*<any_logic:code><MODEF:mode>3): Merge with
10584         *avx_<any_logic:code><MODEF:mode>3.
10585         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10586         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10587         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10588         (avx_cvtdq2ps<avxmodesuffix>): Remove.
10589         (sse2_cvtdq2ps): Use %v modifier.
10590         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10591         (avx_cvtps2dq<avxmodesuffix>): Remove.
10592         (sse2_cvtps2dq): Use %v modifier.
10593         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10594         (avx_cvttps2dq<avxmodesuffix>): Remove.
10595         (sse2_cvttps2dq): Use %v modifier.
10596         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10597         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10598         (sse2_cvtsd2siq): Fix insn template.
10599         (sse2_cvtsd2siq_2): Ditto.
10600         (sse2_cvttsd2siq): Ditto.
10601         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10602         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10603
10604 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
10605
10606         * gcov-io.c: Use GCC Runtime Library Exception.
10607
10608 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
10609
10610         PR debug/48466
10611         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10612         as base_reg whatever register reg has been eliminated to, instead
10613         of hardcoding STACK_POINTER_REGNUM.
10614
10615 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
10616
10617         * doc/tm.texi.in: Document C target hooks as separate from general
10618         target hooks.
10619         * doc/tm.texi: Regenerate.
10620         * genhooks.c (struct hook_desc): Add docname field.
10621         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
10622         docname field.
10623         (hook_array): Include c-target.def.
10624         (emit_documentation): Use docname field in output.
10625         (emit_init_macros): Take docname argument.  Only emit definitions
10626         for hooks matching docname.
10627         (main): Expect additional arguments in all cases.  Pass argument
10628         to emit_init_macros.
10629         * target.def: Move initial macro definitions and comments to
10630         target-hooks-macros.h.
10631         (gcc_targetcm): Move to c-family/c-target.def.
10632         * target.h (targetcm): Move declaration to c-family/c-target.h.
10633         * targhooks.c (default_handle_c_option): Move to
10634         c-family/c-opts.c.
10635         * targhooks.h (default_handle_c_option): Move declaration to
10636         c-family/c-common.h.
10637         * target-hooks-macros.h: New file.
10638         * config.gcc (target_has_targetcm): Define and use to add to
10639         c_target_objs and cxx_target_objs.
10640         * config/default-c.c: New file.
10641         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10642         of target.h and target-def.h.
10643         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10644         (darwin_objc_construct_string, darwin_cfstring_ref_p,
10645         darwin_check_cfstring_format_arg): Make static.
10646         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10647         TARGET_STRING_OBJECT_REF_TYPE_P,
10648         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10649         * config/darwin-protos.h (darwin_objc_construct_string,
10650         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10651         declare.
10652         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10653         TARGET_STRING_OBJECT_REF_TYPE_P,
10654         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10655         * config/t-darwin (darwin-c.o): Update dependencies.
10656         * system.h (TARGET_HAS_TARGETCM): Poison.
10657         * Makefile.in (TARGET_H): Update.
10658         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10659         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10660         (default-c.o): New target.
10661         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
10662         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
10663         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
10664         c-target.def.
10665         (build/genhooks.o): Update dependencies.
10666
10667 2011-04-06  Richard Guenther  <rguenther@suse.de>
10668
10669         * ipa-inline.c (enum inlining_mode): Remove.
10670         (cgraph_flatten): Use some other token.
10671         (cgraph_edge_early_inlinable_p): New function, split out from ...
10672         (cgraph_perform_always_inlining): New function, split out from ...
10673         (cgraph_decide_inlining_incrementally): ... here.
10674         (cgraph_mark_inline_edge): Adjust.
10675         (cgraph_early_inlining): Re-structure.
10676         (pass_early_inline): Require SSA form.
10677
10678 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
10679             Julian Brown  <julian@codesourcery.com>
10680             Mark Shinwell  <shinwell@codesourcery.com>
10681
10682         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10683         LO_REGS only for Thumb-1.
10684         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10685         be used in short instructions when optimising for size on Thumb-2.
10686
10687 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
10688
10689         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10690         associated with user returns to be preserved.
10691
10692 2011-04-06  Tristan Gingold  <gingold@adacore.com>
10693
10694         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10695         symbol_queue_size, DBXOUT_DECR_NESTING,
10696         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10697         if XCOFF_DEBUGGING_INFO.
10698
10699 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
10700
10701         * config/i386/i386.md (attribute isa): New.
10702         (attribute enabled): New.
10703         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10704         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10705         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10706         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10707         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10708         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10709         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10710         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10711
10712         * config/i386/sse.md (VF): New mode iterator.
10713         (VF1): Ditto.
10714         (VF2): Ditto.
10715         (VF_128): Ditto.
10716         (SSEMODEF4): Remove.
10717         (attribute sse): Handle V8SF and V4DF modes.
10718         (<absneg:code><mode>2): Use VF mode iterator.
10719         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
10720         mode iterator.
10721         (<plusminus_insn><mode>3): Use VF mode iterator.
10722         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10723         Use VF mode iterator.
10724         (<sse>_vm<plusminus_insn><mode>3): Merge with
10725         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
10726         (mul<mode>3): Use VF mode iterator.
10727         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
10728         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
10729         mode iterator.
10730         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10731         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10732         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
10733         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
10734         mode iterator.
10735         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10736         Use VF1 mode iterator.
10737         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10738         (sqrt<VF2:mode>2): New expander.
10739         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10740         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10741         and sqrtv2df2.  Use VF mode iterator.
10742         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
10743         mode iterator.
10744         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10745         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10746         Use VF1 mode iterator.
10747         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10748         (<smaxmin:code><mode>3): Use VF mode iterator.
10749         (*<smaxmin:code><mode>3_finite): Merge with
10750         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
10751         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10752         (<sse>_vm<smaxmin:code><mode>2): Merge with
10753         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
10754         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
10755         mode iterator.
10756         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
10757         mode iterator.
10758         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10759         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10760         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10761         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10762         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
10763         VF mode iterator.
10764         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10765         Use VF_128 mode iterator.
10766         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
10767         mode iterator.
10768         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
10769         VF_128 mode iterator.
10770         (vcond<mode>): Use VF mode iterator.
10771         * config/i386/predicates.md (sse_comparison_operator): Merge with
10772         avx_comparison_float_operator.  Do not declare as special_predicate.
10773         * config/i386/i386.c (struct builtin_description): Update for renamed
10774         compare patterns.
10775         (ix86_expand_args_builtin): Ditto.
10776         (ix86_expand_sse_compare_mask): Ditto.
10777
10778 2011-04-06  Richard Guenther  <rguenther@suse.de>
10779
10780         * tree-inline.c (estimate_num_insns): For calls simply account
10781         for all passed arguments and a used return value.
10782
10783 2011-04-06  Richard Guenther  <rguenther@suse.de>
10784
10785         PR tree-optimization/47663
10786         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10787         call_stmt_time fields.
10788         (cgraph_edge_inlinable_p): Declare.
10789         (cgraph_edge_recursive_p): New inline function.
10790         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10791         (cgraph_clone_edge): Copy it.
10792         * ipa-inline.c (cgraph_estimate_edge_time): New function.
10793         Account for call stmt time.
10794         (cgraph_estimate_time_after_inlining): Take edge argument.
10795         (cgraph_estimate_edge_growth): Account call stmt size.
10796         (cgraph_estimate_size_after_inlining): Take edge argument.
10797         (cgraph_mark_inline_edge): Adjust.
10798         (cgraph_check_inline_limits): Likewise.
10799         (cgraph_recursive_inlining_p): Remove.
10800         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10801         (cgraph_decide_recursive_inlining): Take edge argument and
10802         adjust.
10803         (cgraph_decide_inlining_of_small_functions): Do not avoid
10804         diags for recursive inlining here.
10805         (cgraph_flatten): Adjust.
10806         (cgraph_decide_inlining_incrementally): Likewise.
10807         (estimate_function_body_sizes): Remove call cost handling.
10808         (compute_inline_parameters): Initialize caller edge call costs.
10809         (cgraph_estimate_edge_growth): New function.
10810         (cgraph_estimate_growth): Use it.
10811         (cgraph_edge_badness): Likewise.
10812         (cgraph_check_inline_limits): Take an edge argument.
10813         (cgraph_decide_inlining_of_small_functions): Adjust.
10814         (cgraph_decide_inlining): Likewise.
10815         * tree-inline.c (estimate_num_insns): Only account for call
10816         return value if it is used.
10817         (expand_call_inline): Avoid diagnostics on recursive inline
10818         functions here.
10819         * lto-cgraph.c (lto_output_edge): Output edge call costs.
10820         (input_edge): Input edge call costs.
10821
10822 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10823
10824         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10825
10826 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
10827
10828         * doc/invoke.texi (Spec Files): Fix typo.
10829
10830 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
10831
10832         * profile.c (branch_prob): Move declaration of local variable.  Remove
10833         obsolete ??? comment.  Expand the location explicitly instead of using
10834         the LOCATION_FILE and LOCATION_LINE macros.
10835
10836 2011-04-06  Wei Guozhi  <carrot@google.com>
10837
10838         PR target/47855
10839         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10840         (arm_cond_branch): Likewise.
10841         (arm_cond_branch_reversed): Likewise.
10842         (arm_jump): Likewise.
10843         (push_multi): Likewise.
10844         * config/arm/constraints.md (Py): New constraint.
10845
10846 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10847
10848         PR bootstrap/48471
10849         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10850         Move these...
10851         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10852         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10853         #ifdef DBX_DEBUGGING_INFO.
10854
10855 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
10856
10857         PR bootstrap/48403
10858         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10859         if old and new states differ.
10860
10861 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
10862
10863         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10864         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10865         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10866         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10867         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10868         mcfv4e): Use Alias.
10869         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10870         ColdFire options to -mcpu= options.
10871
10872 2011-04-05  Jeff Law  <law@redhat.com>
10873
10874         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10875         check if BB is a successor of LOOP->header and return
10876         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10877
10878 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
10879
10880         * cprop.c (struct reg_use): Remove.
10881         (reg_use_table): Make an array of RTX.
10882         (find_used_regs, constprop_register, local_cprop_pass,
10883         bypass_block): Simplify users of reg_use_table.
10884         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
10885         on one of the uses found by find_used_regs.
10886
10887 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10888
10889         PR bootstrap/48469
10890         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10891         declaration.
10892
10893 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10894
10895         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10896         as an rtx.
10897         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10898
10899 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
10900
10901         PR middle-end/48441
10902         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10903
10904 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10905
10906         * combine.c: Include obstack.h.
10907         (struct insn_link): Define.
10908         (uid_log_links): Adjust type.
10909         (FOR_EACH_LOG_LINK): New macro.
10910         (insn_link_obstack): Declare.
10911         (alloc_insn_link): Define.
10912         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
10913         type of link variables.
10914         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10915         (try_combine, record_promoted_values, distribute_notes): Likewise.
10916         (distribute_links): Likewise.  Tweak prototype.
10917         (clear_log_links): Delete.
10918         (adjust_for_new_dest): Call alloc_insn_link.
10919         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10920
10921 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10922
10923         * gcse.c (modify_mem_list): Convert to an array of VECs.
10924         (canon_modify_mem_list, compute_transp): Tweak formatting.
10925         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
10926         (load_killed_in_block_p): Likewise.
10927         (record_last_mem_set_info): Likewise.
10928         (clear_modify_mem_tables): Likewise.
10929
10930 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10931
10932         PR middle-end/48461
10933         * function.c (emit_use_return_register_into_block): Only define if
10934         HAVE_return.
10935
10936 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
10937
10938         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10939
10940 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
10941
10942         * config/rx/rx-opts.h: New.
10943         * config/rx/rx.c (rx_cpu_type): Remove.
10944         (rx_handle_option): Don't assert that global structures are in
10945         use.  Access variables via opts pointer.  Defer most handling of
10946         OPT_mint_register_.  Use error_at.
10947         (rx_option_override): Handle deferred OPT_mint_register_ here.
10948         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10949         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10950         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10951         (rx_cpu_types): New Enum and EnumValue entries.
10952         (mint-register=): Use Defer and use Var accordingly.
10953
10954 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10955
10956         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10957         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10958         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10959         Move these...
10960         (debug_free_queue, debug_nesting, symbol_queue_index):
10961         ...and these...
10962         * dbxout.c: ...to here.  Make static.
10963
10964 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10965
10966         * gcse.c (modify_pair): Define.  Define a VEC of it.
10967         (canon_modify_mem_list): Convert to an array of VECs.
10968         (free_insn_expr_list_list): Delete.
10969         (clear_modify_mem_tables): Call VEC_free instead.
10970         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10971         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10972         (canon_list_insert, compute_transp): Likewise.
10973
10974 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10975
10976         PR target/43920
10977         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10978         for size.
10979
10980 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10981
10982         PR target/43920
10983         * function.c (emit_use_return_register_into_block): New function.
10984         (thread_prologue_and_epilogue_insns): Use
10985         emit_use_return_register_into_block.
10986
10987 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10988
10989         PR target/43920
10990         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10991         insn.
10992
10993 2011-04-05  Tom de Vries  <tom@codesourcery.com>
10994
10995         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10996
10997 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
10998
10999         * config/arm/arm.md (define_constants for unspec): Replace with
11000         define_c_enum.
11001         (define_constants for unspecv): Replace with define_c_enum.
11002         * config/arm/neon.md (define_constants for unspec): Replace with
11003         define_c_enum.
11004
11005 2011-04-04  Richard Henderson  <rth@redhat.com>
11006
11007         PR bootstrap/48400
11008         * dwarf2out.c (output_line_info): Always emit line info from
11009         at least one section.
11010         (dwarf2out_init): Create text_section_line_info here ...
11011         (set_cur_line_info_table): ... not here.
11012
11013 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
11014
11015         PR target/48380
11016         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11017         not called.
11018
11019         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11020
11021 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
11022
11023         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11024         (expr_equiv_p): Remove.
11025         (insert_set_in_table): Look at <dest, src> pair instead of expr.
11026         (hash_scan_set): Update call to insert_set_in_table.
11027         (dump_hash_table): Dump <dest, src> pair.
11028         (lookup_set): Simplify.  Lookup <dest, src> pair.
11029         (compute_transp): Remove, fold heavily simplified code into...
11030         (compute_local_properties): ...here.  Expect COMP and TRANSP
11031         unconditionally.
11032         (find_avail_set): Take set directly from struct expr.
11033         (find_bypass-set): Likewise.
11034         (bypass_block): Likewise.
11035         (cprop_insn): Likewise.  Remove redundant INSN_P test.
11036
11037         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11038         checks on form of COND from find_implicit_sets to here.
11039         (find_implicit_sets): Cleanup control flow. Split critical edges
11040         if it exposes implicit sets.  Allocate/resize implicit_sets as
11041         necessary.
11042         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11043         changed something.  Run df_analyze after find_implicit_sets if any
11044         edges were split.  Do not allocate implicit_sets here.
11045
11046         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11047         (gcse_obstack): Renamed to cprop_obstack.
11048         (GNEW, GNEWVEC, GNEWVAR): Remove.
11049         (gmalloc): Remove.
11050         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11051         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11052         (gcse_alloc): Likewise, and rename to cprop_alloc.
11053         (alloc_gcse_men, free_gcse_mem): Remove.
11054         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11055         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11056         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11057
11058         * cprop.c (oprs_not_set_p): Remove.
11059         (mark_set, mark_clobber): Remove.
11060         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11061         (reg_not_set_p): New function.
11062         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11063         (cprop_insn): Likewise.
11064         (cprop_jump): Use FOR_EACH_EDGE.
11065
11066 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
11067
11068         PR bootstrap/48403
11069         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11070         (rank_for_schedule): Use scheduled_insns vector instead of
11071         last_scheduled_insn.
11072         (ok_for_early_queue_removal): Likewise.
11073         (queue_to_ready): Search forward in nonscheduled_insns_begin if
11074         we have a dbg_cnt.
11075         (choose_ready): Likewise.
11076         (commit_schedule): Use VEC_iterate.
11077         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
11078         a dbg_cnt, use it and ensure the first insn is in the ready list.
11079         (haifa_sched_init): Allocate scheduled_insns.
11080         (sched_extend_ready_list): Don't allocate it; reserve space.
11081         (haifa_sched_finish): Free it.
11082
11083 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11084
11085         * optc-gen.awk: Always remove type from Variable entry before
11086         recording in var_seen.
11087
11088 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
11089
11090         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11091         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11092         call to tidy_fallthru_edges.
11093
11094 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11095
11096         * doc/options.texi (ToLower): Document.
11097         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11098         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11099         * opts.h (cl_option): Add cl_tolower field.
11100         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11101         arguments with lowercase strings.
11102         * config/rx/rx.opt (mcpu=): Add ToLower.
11103         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11104         argument.
11105
11106 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11107
11108         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11109
11110 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11111
11112         * config/vax/vax.c: Include reload.h.
11113
11114 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
11115
11116         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11117         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11118         (sparc_preferred_reload_class): New function.
11119
11120 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
11121
11122         PR debug/48401
11123         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11124         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11125
11126 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
11127
11128         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11129         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11130
11131 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
11132
11133         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11134         (ASM_OUTPUT_ALIGNED_BSS): Define.
11135
11136 2011-04-03  Michael Matz  <matz@suse.de>
11137
11138         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11139         and next_slot members.
11140         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11141         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11142         (lto_streamer_cache_append): Declare.
11143         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11144         unsigned index, remove offset parameter, ensure that we append
11145         or update existing entries.
11146         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11147         parameter, update next_slot for append.
11148         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11149         parameter.
11150         (lto_streamer_cache_insert_at): Likewise.
11151         (lto_streamer_cache_append): New function.
11152         (lto_streamer_cache_lookup): Use unsigned index.
11153         (lto_streamer_cache_get): Likewise.
11154         (lto_record_common_node): Don't test tree_node_can_be_shared.
11155         (preload_common_node): Adjust call to lto_streamer_cache_insert.
11156         (lto_streamer_cache_delete): Don't free offsets member.
11157         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11158         (lto_output_string_with_length): Use lto_output_data_stream.
11159         (lto_output_tree_header): Remove ix parameter, don't write it.
11160         (lto_output_builtin_tree): Likewise.
11161         (lto_write_tree): Adjust callers to above, don't track and write
11162         offset, write unsigned index.
11163         (output_unreferenced_globals): Don't emit all global vars.
11164         (write_global_references): Use unsigned indices.
11165         (lto_output_decl_state_refs): Likewise.
11166         (write_symbol): Likewise.
11167         * lto-streamer-in.c (lto_input_chain): Move earlier.
11168         (input_function): Use unsigned index.
11169         (input_alias_pairs): Don't read and then ignore all global vars.
11170         (lto_materialize_tree): Remove ix_p parameter, don't read index,
11171         don't pass it back, use lto_streamer_cache_append.
11172         (lto_register_var_decl_in_symtab): Use unsigned index.
11173         (lto_register_function_decl_in_symtab): Likewise.
11174         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11175         index.
11176         (lto_get_builtin_tree): Don't read index, use
11177         lto_streamer_cache_append.
11178         (lto_read_tree): Adjust call to lto_materialize_tree.
11179
11180         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11181         don't use function calls in arguments to MIN.
11182
11183         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11184         twice.
11185
11186         * gimple.c (gimple_type_leader_entry): Mark deletable.
11187
11188 2011-04-03  Alan Modra  <amodra@gmail.com>
11189
11190         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11191
11192 2011-04-03  Michael Matz  <matz@suse.de>
11193
11194         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11195         an integer.
11196         * tree.h (tree_decl_non_common.vindex): Adjust comment.
11197
11198 2011-04-03  Michael Matz  <matz@suse.de>
11199
11200         * cgraphbuild.c (record_reference): Canonicalize constructor values.
11201         * gimple-fold.c (canonicalize_constructor_val): Accept being called
11202         without function context.
11203         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11204         current_function_decl and cfun.
11205
11206 2011-04-03  Michael Matz  <matz@suse.de>
11207
11208         * tree.c (decl_init_priority_insert): Don't create entry for
11209         default priority.
11210         (decl_fini_priority_insert): Ditto.
11211         (fields_compatible_p, find_compatible_field): Remove.
11212         * tree.h (fields_compatible_p, find_compatible_field): Remove.
11213         * gimple.c (gimple_compare_field_offset): Adjust block comment.
11214
11215 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
11216
11217         * combine.c (try_combine): Remove useless local variable.
11218
11219 2011-04-03  Richard Guenther  <rguenther@suse.de>
11220             Ira Rosen  <ira.rosen@linaro.org>
11221
11222         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11223         non-variable offsets and compare the remaining bases of the two
11224         accesses instead of looking for exact same data-ref.
11225
11226 2011-04-02  Kai Tietz  <ktietz@redhat.com>
11227
11228         PR target/48416
11229         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11230
11231         * i386.c (ix86_is_msabi_thiscall): New helper function.
11232         (ix86_is_type_thiscall): New helper function.
11233         (ix86_comp_type_attributes): Handle thiscall for method-functions
11234         special.
11235         (init_cumulative_args): Likewise.
11236         (find_drap_reg): Likewise.
11237         (ix86_static_chain): Likewise.
11238         (x86_this_parameter): Likewise.
11239         (x86_output_mi_thunk): Likewise.
11240
11241 2011-04-01  Olivier Hainque  <hainque@adacore.com>
11242             Nicolas Setton  <setton@adacore.com>
11243             Eric Botcazou  <ebotcazou@adacore.com>
11244
11245         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11246         (add_gnat_descriptive_type_attribute): New function.
11247         (gen_array_type_die): Call it.
11248         (gen_enumeration_type_die): Likewise.
11249         (gen_struct_or_union_type_die): Likewise.
11250         (modified_type_die): Likewise.
11251         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11252         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11253         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11254
11255 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11256
11257         PR bootstrap/48148
11258         * dwarf2out.c (resolve_addr): Don't call force_decl_die
11259         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11260
11261         Revert:
11262         2011-03-17  Richard Guenther  <rguenther@suse.de>
11263
11264         PR bootstrap/48148
11265         * lto-cgraph.c (input_overwrite_node): Clear the abstract
11266         origin for decls in other ltrans units.
11267         (input_varpool_node): Likewise.
11268
11269 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11270
11271         PR middle-end/48335
11272         * expr.c (expand_assignment): Handle all possibilities
11273         if TO_RTX is CONCAT.
11274         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11275         (store_split_bit_field): If SUBREG_REG (op0) or
11276         op0 itself has smaller mode than word, return it
11277         for offset 0 and const0_rtx for out-of-bounds stores.
11278         If word is const0_rtx, skip it.
11279
11280 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
11281
11282         * config/h8300/h8300.c (print_operand_address): Rename to...
11283         (h8300_print_operand_address): ...this. Make static. Adjust comments.
11284         Call h8300_print_operand and h8300_print_operand_address instead of
11285         print_operand and print_operand_address. Declare.
11286         (print_operand): Renake to...
11287         (h8300_print_operand): ...this. Make static. Adjust comments.
11288         Call h8300_print_operand instead of print_operand. Declare.
11289         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11290         (h8300_register_move_cost): Likewise.
11291         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11292         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11293         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11294         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11295         * config/h8300/h8300-protos.h (print_operand): Delete.
11296         (print_operand_address): Delete.
11297
11298 2011-04-01  Richard Henderson  <rth@redhat.com>
11299
11300         PR 48400
11301         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11302         in strict mode before dwarf4.  Re-order tests to early out
11303         before switching sections.
11304
11305 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
11306
11307         * config/h8300/constraints.md: New file.
11308         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
11309         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11310         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11311         * config/h8300/predicates.md (bit_operand): Likewise.
11312         (incdec_operand): Use satisfies_constraint_M and
11313         satisfies_constraint_O.  Don't use C code block.
11314         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11315         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11316         (compute_mov_length): Use satisfies_constraint_G.
11317         (fix_bit_operand): Use satisfies_constraint_U.
11318         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11319         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11320         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11321         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11322         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11323         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11324         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11325         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11326         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11327         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11328         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11329         (EXTRA_MEMORY_CONSTRAINT): Delete.
11330
11331 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
11332             Michael Meissner  <meissner@linux.vnet.ibm.com>
11333
11334         PR target/48262
11335         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11336         operands, as per the specifications.
11337
11338         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11339         (vec_extract_evenv4sf): Ditto.
11340         (vec_extract_evenv8hi): Ditto.
11341         (vec_extract_evenv16qi): Ditto.
11342         (vec_extract_oddv4si): Ditto.
11343
11344 2011-03-31  Mark Wielaard  <mjw@redhat.com>
11345
11346         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11347         high_pc attribute if the CU has no associated code. Only output
11348         DW_AT_entry_pc for CU if not generating strict dwarf and
11349         dwarf_version < 4.
11350
11351 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
11352
11353         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11354         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11355         out of ...
11356         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11357         * final.c (final_start_function): Call the new function rather
11358         than using a NULL argument for dwarf2out_frame_debug.
11359
11360         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11361         that contains the prologue.
11362
11363         * haifa-sched.c (queue_insn): New arg REASON.  All callers
11364         changed.  Print it in debugging output.
11365
11366         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11367
11368         * sched-ebb.c (begin_schedule_ready): Remove second argument.
11369         Split most of the code into...
11370         (begin_move_insn): ... here.  New function.
11371         (ebb_sched_info): Add a pointer to it.
11372         * haifa-sched.c (scheduled_insns): New static variable.
11373         (sched_extend_ready_list): Allocate it.
11374         (schedule_block): Use it to record the order of scheduled insns.
11375         Perform RTL changes to move insns only after all scheduling
11376         decisions have been made.
11377         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11378         begin_move_insn field.
11379         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11380         * sched-int.h (struct haifa_sched_info): Remove second argument
11381         from begin_schedule_ready hook.  Add new member begin_move_insn.
11382         * sched-rgn.c (begin_schedule_ready): Remove second argument.
11383         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11384
11385         * haifa-sched.c (prune_ready_list): New function, broken out of
11386         schedule_block.
11387         (schedule_block): Use it.
11388
11389 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11390
11391         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11392
11393 2011-04-01  Kai Tietz  <ktietz@redhat.com>
11394
11395         * config.gcc (*-*-mingw*): Allow as option the
11396         posix threading model.
11397         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
11398         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11399         definition.
11400         (CPP_SPEC): Add pthread/no-pthread handling.
11401         (LIB_SPEC): Likewise.
11402         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11403         (LIB_SPEC): Likewise.
11404         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11405         flag to pass -pthread option for shared libgcc build.
11406         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11407         for shared libgcc build.
11408         * config/i386/t-mingw-pthread: New file.
11409         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11410         New define to enable use of library pthread by default.
11411         * config/i386/mingw.opt (pthread): New driver option.
11412         (no-pthread): New driver option.
11413         * config/i386/cygming.opt: Make sure trailing empty line is retained.
11414         * config/i386/mingw-w64.opt: Likewise.
11415
11416 2011-04-01  Gary Funck  <gary@intrepid.com>
11417
11418         * c-decl.c (grokdeclarator): Fix formatting.
11419
11420 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11421
11422         * expr.c (emit_block_move_via_movmem): Use n_generator_args
11423         instead of n_operands.
11424         (set_storage_via_setmem): Likewise.
11425         * optabs.c (maybe_gen_insn): Likewise.
11426         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11427         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11428         (mips_expand_builtin_direct): Likewise.
11429         * config/spu/spu.c (expand_builtin_args): Likewise.
11430
11431 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11432
11433         * recog.h (insn_data_d): Add n_generator_args.
11434         * genoutput.c (data): Likewise.
11435         (output_insn_data): Print it.
11436         (max_opno, num_dups): Delete.
11437         (scan_operands): Just fill in "d->operand[...]".
11438         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11439
11440 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11441
11442         * gensupport.h (pattern_stats): New structure.
11443         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11444         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11445         (max_operand_1, max_operand_vec): Delete.
11446         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11447
11448 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
11449
11450         * emit-rtl.c (emit_pattern_after_setloc): New function.
11451         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11452         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11453         (emit_pattern_after): New function.
11454         (emit_insn_after, emit_jump_insn_after): Call it.
11455         (emit_call_insn_after, emit_debug_insn_after): Likewise.
11456         (emit_pattern_before_setloc): New function.
11457         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11458         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11459         Likewise.
11460         (emit_pattern_before): New function.
11461         (emit_insn_before, emit_jump_insn_before): Call it.
11462         (emit_call_insn_before, emit_debug_insn_before): Likewise.
11463
11464 2011-03-31  Richard Henderson  <rth@redhat.com>
11465
11466         * dwarf2out.c (dw_separate_line_info_ref): Remove.
11467         (dw_separate_line_info_entry): Remove.
11468         (enum dw_line_info_opcode): New.
11469         (dw_line_info_entry): Use it.
11470         (dw_line_info_table, dw_line_info_table_p): New.
11471         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11472         (line_info_table, line_info_label_num): Remove.
11473         (line_info_table_in_use): Remove.
11474         (separate_line_info_table): Remove.
11475         (separate_line_info_table_allocated): Remove.
11476         (separate_line_info_table_in_use): Remove.
11477         (LINE_INFO_TABLE_INCREMENT): Remove.
11478         (line_info_label_num): New.
11479         (cur_line_info_table): New.
11480         (text_section_line_info, cold_text_section_line_info): New.
11481         (separate_line_info): New.
11482         (SEPARATE_LINE_CODE_LABEL): Remove.
11483         (print_dwarf_line_table): Remove.
11484         (debug_dwarf): Don't dump it.
11485         (output_one_line_info_table): New.
11486         (output_line_info): Use it.
11487         (new_line_info_table): New.
11488         (set_cur_line_info_table): New.
11489         (dwarf2out_switch_text_section): Use it.
11490         (dwarf2out_begin_function): Likewise.
11491         (push_dw_line_info_entry): New.
11492         (dwarf2out_source_line): Rewrite for new line info tables.
11493         (dwarf2out_init): Remove dead initailizations.
11494
11495 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11496
11497         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
11498         various flags.
11499         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11500         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11501         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11502         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11503         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11504         * opt-functions.awk (flag_init, switch_bit_fields): New.
11505         (switch_flags): Don't handle flags moved to bit-fields.  Don't
11506         generate CL_MISSING_OK or CL_SAVE.
11507         * optc-gen.awk: Update to generate bit-field output as well as
11508         flags field.
11509         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11510         bit-field instead of CL_REJECT_DRIVER flag.
11511         * opts-common.c (generate_canonical_option,
11512         decode_cmdline_option): Use bit-fields instead of CL_* flags.
11513         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11514         instead of CL_REJECT_NEGATIVE flag.
11515         * toplev.c (print_switch_values): Use cl_report bit-field instead
11516         of CL_REPORT flag.
11517
11518 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11519
11520         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11521         a zero minimum index only if it is redundant.
11522
11523 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
11524
11525         PR rtl-optimization/48381
11526         * ira-color.c (assign_hard_reg): Use hard reg set intersection
11527         instead of ira_class_hard_reg_index for calculating conflicting
11528         hard registers.
11529
11530 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
11531
11532         * cprop.c: Clean up hash table building.
11533         (reg_avail_info): Remove.
11534         (oprs_available_p): Remove.
11535         (record_last_reg_set_info): Remove.
11536         (record_last_set_info): Remove.
11537         (reg_available_p): New function.
11538         (gcse_constant_p): Do not treat unfolded conditions as constants.
11539         (make_set_regs_unavailable): New function.
11540         (hash_scan_set): Simplify with new reg_available_p.
11541         (compute_hash_table_work): Traverse insns stream only once.
11542         Do not compute reg_avail_info. Traverse insns in reverse order.
11543         Record implicit sets after recording explicit sets from the block.
11544
11545 2011-03-31  Michael Matz  <matz@suse.de>
11546
11547         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11548
11549 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
11550
11551         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11552         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11553         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11554         (h8300_mode_dependent_address_p): New function.
11555         (h8300_get_index): Make static.
11556
11557 2011-03-31  Jeff Law  <law@redhat.com>
11558
11559         * reload1.c (elimination_effects): Fix typo in recent change.
11560
11561         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11562         typo potentially leading to null pointer dereference.
11563
11564         * caller-save.c (new_saved_hard_reg): Eliminate return value.
11565         (setup_save_areas): Corresponding changes to avoid useless
11566         assignments.
11567
11568         * jump.c (reversed_comparison_code_parts): Avoid successive return
11569         statements when REVERSE_CONDITION is defined.
11570
11571         * expr.c (expand_assignment): Avoid useless assignments.
11572         (expand_expr_real_1): Likewise.
11573         (expand_expr_real_2): Avoid useless statements.
11574
11575         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11576
11577         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11578
11579         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11580         statements.
11581
11582         * stmt.c (expand_expr_stmt): Avoid useless assignment.
11583
11584 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11585
11586         PR target/47109
11587         * doc/tm.texi.in (TARGET_VERSION): Remove.
11588         * doc/tm.texi: Regenerate.
11589         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11590         * collect2.c (main): Don't use TARGET_VERSION.
11591         * mips-tdump.c (main): Don't use TARGET_VERSION.
11592         * mips-tfile.c (main): Don't use TARGET_VERSION.
11593         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11594         * config/rs6000/vxworksae.h: Remove.
11595         * config/alpha/alpha.h (TARGET_VERSION): Remove.
11596         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11597         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11598         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11599         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11600         * config/arm/arm.h (TARGET_VERSION): Remove.
11601         * config/arm/coff.h (TARGET_VERSION): Remove.
11602         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11603         * config/arm/elf.h (TARGET_VERSION): Remove.
11604         * config/arm/freebsd.h (TARGET_VERSION): Remove.
11605         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11606         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11607         * config/arm/pe.h (TARGET_VERSION): Remove.
11608         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11609         * config/arm/semi.h (TARGET_VERSION): Remove.
11610         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11611         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11612         * config/arm/vxworks.h (TARGET_VERSION): Remove.
11613         * config/avr/avr.h (TARGET_VERSION): Remove.
11614         * config/bfin/bfin.h (TARGET_VERSION): Remove.
11615         * config/fr30/fr30.h (TARGET_VERSION): Remove.
11616         * config/frv/frv.h (TARGET_VERSION): Remove.
11617         * config/h8300/h8300.h (TARGET_VERSION): Remove.
11618         * config/i386/cygwin.h (TARGET_VERSION): Remove.
11619         * config/i386/darwin.h (TARGET_VERSION): Remove.
11620         * config/i386/darwin64.h (TARGET_VERSION): Remove.
11621         * config/i386/djgpp.h (TARGET_VERSION): Remove.
11622         * config/i386/freebsd.h (TARGET_VERSION): Remove.
11623         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11624         * config/i386/gnu.h (TARGET_VERSION): Remove.
11625         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11626         * config/i386/i386elf.h (TARGET_VERSION): Remove.
11627         * config/i386/linux.h (TARGET_VERSION): Remove.
11628         * config/i386/linux64.h (TARGET_VERSION): Remove.
11629         * config/i386/lynx.h (TARGET_VERSION): Remove.
11630         * config/i386/mingw32.h (TARGET_VERSION): Remove.
11631         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11632         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11633         * config/i386/netware.h (TARGET_VERSION): Remove.
11634         * config/i386/nto.h (TARGET_VERSION): Remove.
11635         * config/i386/openbsd.h (TARGET_VERSION): Remove.
11636         * config/i386/vxworks.h (TARGET_VERSION): Remove.
11637         * config/ia64/elf.h (TARGET_VERSION): Remove.
11638         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11639         * config/ia64/hpux.h (TARGET_VERSION): Remove.
11640         * config/ia64/linux.h (TARGET_VERSION): Remove.
11641         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11642         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11643         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11644         * config/lm32/lm32.h (TARGET_VERSION): Remove.
11645         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11646         * config/m32c/m32c.h (TARGET_VERSION): Remove.
11647         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11648         * config/m32r/m32r.h (TARGET_VERSION): Remove.
11649         * config/m68k/linux.h (TARGET_VERSION): Remove.
11650         * config/m68k/m68k.h (TARGET_VERSION): Remove.
11651         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11652         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11653         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11654         * config/mep/mep.h (TARGET_VERSION): Remove.
11655         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11656         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11657         * config/mips/iris6.h (MACHINE_TYPE): Remove.
11658         * config/mips/linux.h (TARGET_VERSION): Remove.
11659         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11660         * config/mips/vxworks.h (TARGET_VERSION): Remove.
11661         * config/mmix/mmix.h (TARGET_VERSION): Remove.
11662         * config/mn10300/linux.h (TARGET_VERSION): Remove.
11663         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11664         * config/pa/pa.h (TARGET_VERSION): Remove.
11665         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11666         * config/picochip/picochip.h (TARGET_VERSION): Remove.
11667         * config/rs6000/aix.h (TARGET_VERSION): Remove.
11668         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11669         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11670         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11671         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11672         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11673         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11674         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11675         * config/rs6000/linux.h (TARGET_VERSION): Remove.
11676         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11677         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11678         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11679         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11680         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11681         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11682         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11683         * config/s390/linux.h (TARGET_VERSION): Remove.
11684         * config/s390/s390.h (TARGET_VERSION): Remove.
11685         * config/s390/tpf.h (TARGET_VERSION): Remove.
11686         * config/score/score.h (TARGET_VERSION): Remove.
11687         * config/sh/linux.h (TARGET_VERSION): Remove.
11688         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11689         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11690         * config/sh/sh.h (TARGET_VERSION): Remove.
11691         * config/sh/sh64.h (TARGET_VERSION): Remove.
11692         * config/sh/superh.h (TARGET_VERSION): Remove.
11693         * config/sh/vxworks.h (TARGET_VERSION): Remove.
11694         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11695         * config/sparc/linux.h (TARGET_VERSION): Remove.
11696         * config/sparc/linux64.h (TARGET_VERSION): Remove.
11697         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11698         TARGET_NAME32, TARGET_NAME): Remove.
11699         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11700         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11701         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11702         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11703         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11704         * config/spu/spu.h (TARGET_VERSION): Remove.
11705         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11706         * config/v850/v850.h (TARGET_VERSION): Remove.
11707         * config/vax/linux.h (TARGET_VERSION): Remove.
11708         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11709         * config/xtensa/elf.h (TARGET_VERSION): Remove.
11710         * config/xtensa/linux.h (TARGET_VERSION): Remove.
11711
11712 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11713
11714         PR target/48142
11715         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11716         frame-related from frame-unrelated adjustments to the stack pointer.
11717
11718 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
11719
11720         * common.opt (fdebug-types-section): Move earlier.
11721         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11722
11723 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
11724
11725         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11726         var.
11727
11728 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
11729
11730         * tree.h (CASE_CHAIN): Define.
11731         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11732         (gimple_redirect_edge_and_branch): Likewise.
11733
11734 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11735
11736         PR middle-end/48367
11737         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11738         calculation.
11739
11740 2011-03-30  Jeff Law  <law@redhat.com>
11741
11742         * PR bootstrap/48371
11743         * reload1.c (reload): Fix botch in last change.
11744
11745         * reload.h (struct reload): Fix typo introduced in last change.
11746
11747 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11748
11749         * config/arm/arm.opt (mhard-float, msoft-float): Mark
11750         Undocumented.  Remove help text.
11751         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11752         -mhard-float.
11753
11754 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11755
11756         * doc/options.texi (NegativeAlias): Document.
11757         (Alias): Mention NegativeAlias.
11758         * opt-functions.awk: Handle NegativeAlias.
11759         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11760         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11761         * opts.h (CL_NEGATIVE_ALIAS): Define.
11762         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11763         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11764         OPT_mspe_.
11765         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11766         Alias entries.
11767         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11768         mno-spe and mno-isel instead of mspe=no and -misel=no.
11769
11770 2011-03-29  Mark Wielaard  <mjw@redhat.com>
11771
11772         * common.opt (fdebug-types-section): New flag.
11773         * doc/invoke.texi: Document new -fno-debug-types-section flag.
11774         * dwarf2out.c (use_debug_types): New define.
11775         (struct die_struct): Mark die_id with GTY desc use_debug_types.
11776         (print_die): Guard output of type unit signatures using
11777         use_debug_types.
11778         (build_abbrev_table): Replace assert of dwarf_version >= 4
11779         with assert on use_debug_types.
11780         (size_of_die): Likewise.
11781         (unmark_dies): Likewise.
11782         (value_format): Decide AT_ref_external form on use_debug_types.
11783         (output_die): Replace dwarf_version version check guard with
11784         use_debug_types where appropriate.
11785         (modified_type_die): Likewise.
11786         (gen_reference_type_die): Likewise.
11787         (dwarf2out_start_source_file): Likewise.
11788         (dwarf2out_end_source_file): Likewise.
11789         (prune_unused_types_walk_attribs): Likewise.
11790         (dwarf2out_finish): Likewise.
11791
11792 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11793
11794         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11795
11796 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
11797
11798         PR rtl-optimization/48332
11799         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11800         mode of input operand N and modeN to its actual mode.
11801
11802 2011-03-30  Jeff Law  <law@redhat.com>
11803
11804         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11805         define accessor macro.
11806         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11807         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11808         (reg_equiv_init): Likewise.
11809         (reg_equivs_size): New variable.
11810         (reg_equiv_init_size): Remove.
11811         (allocate_initial_values): Move prototype to here from....
11812         * integrate.h (allocate_initial_values): Remove prototype.
11813         * integrate.c: Include reload.h.
11814         (allocate_initial_values): Corresponding changes.
11815         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11816         (fix_reg_equiv_init, no_equiv): Corresponding changes.
11817         (update_equiv_regs): Corresponding changes.
11818         (ira): Corresponding changes.
11819         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11820         (push_secondary_reload): Corresponding changes.
11821         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11822         (make_memloc, find_reloads_address): Corresponding changes.
11823         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11824         (find_reloads_address_1): Corresponding changes.
11825         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11826         (refers_to_regno_for_reload_p): Corresponding changes.
11827         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11828         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11829         * reload1.c: Include ggc.h.
11830         (grow_reg_equivs): New function.
11831         (replace_pseudos_in, reload): Corresponding changes.
11832         (calculate_needs_all_insns, alter_regs): Corresponding changes.
11833         (eliminate_regs_1, elimination_effects): Corresponding changes.
11834         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11835         (delete_output_reload): Likewise.
11836         * caller-save.c (mark_referenced_regs): Corresponding changes.
11837         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11838         * frv/predicates.md (frv_load_operand): Corresponding changes.
11839         * microblaze/microblaze.c (double_memory_operand): Corresponding
11840         changes.
11841         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11842         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11843         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11844         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11845         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11846         changes.
11847         * pa/pa.c (emit_move_sequence): Corresponding changes.
11848         * vax/vax.c (nonindexed_address_p): Corresponding changes.
11849
11850 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
11851
11852         PR target/47551
11853         * config/arm/arm.c (coproc_secondary_reload_class): Handle
11854         structure modes.  Don't check neon_vector_mem_operand for
11855         vector or structure modes.
11856
11857 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
11858             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11859
11860         PR target/43590
11861         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11862         operand 1 and reshuffle the operands to match.
11863         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11864
11865 2011-03-30  Christian Schüler  <cschueler@gmx.de>
11866
11867         PR driver/48208
11868         * config/c.opt (F): Added 'Driver' to -F option.
11869
11870         PR driver/48260
11871         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11872           handler function.
11873         * config/darwin.opt: Added '-arch' option.
11874
11875 2011-03-30  Nick Clifton  <nickc@redhat.com>
11876
11877         * config/rx/rx.md: Add peepholes and patterns to combine
11878         extending loads and simple arithmetic instructions.
11879         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11880         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11881         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11882         modes to use pre-decrement and post-increment addressing.
11883         (rx_is_restricted_memory_address): Add range checking of REG+INT
11884         addresses.
11885         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
11886         (rx_memory_move_cost): Adjust cost of stores.
11887         (rx_adjust_insn_length): New function.
11888
11889 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
11890
11891         PR c/48305
11892         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11893         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11894         matching arg00/arg01 types.
11895
11896 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
11897
11898         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11899         last_location to UNKNOWN_LOCATION.
11900
11901 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11902
11903         PR target/48349
11904         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11905         FLOAT_SSE_REGS.
11906
11907 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11908             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11909
11910         PR bootstrap/48337
11911         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11912         Init(PROCESSOR_V7).
11913         (sparc_cpu): Likewise.
11914         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11915         PROCESSOR_V7.
11916
11917 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11918
11919         PR target/48336
11920         PR middle-end/48342
11921         PR rtl-optimization/48345
11922         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11923         hard regs for given mode from profitable regs when doing secondary
11924         allocation.
11925
11926 2011-03-29  Jeff Law  <law@redhat.com>
11927
11928         PR bootstrap/48327
11929         * tree-ssa-threadupdate.c (struct redirection_data): Remove
11930         do_not_duplicate field.
11931         (lookup_redirection_data): Corresponding changes.
11932         (create_duplicates): Always create a template block.
11933         (redirect_edges): Remove code which reused the original block
11934         when it was going to become unreachable code.
11935         (thread_block): Don't set do_not_duplicate field.
11936
11937 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
11938
11939         * lto-opts.c (register_user_option_p, lto_register_user_option):
11940         Make type argument unsigned.
11941         * lto-streamer.h (lto_register_user_option): Make type argument
11942         unsigned.
11943         * opth-gen.awk: Make CL_* macros unsigned.
11944         * opts-common.c (find_opt): Make lang_mask argument unsigned.
11945         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11946         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11947         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11948         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11949         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11950         (find_opt): Make lang_mask argument unsigned.
11951
11952 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11953
11954         PR rtl-optimization/48331
11955         PR rtl-optimization/48334
11956         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11957         for any used algorithm.
11958
11959 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11960
11961         * ira-conflicts.c (build_object_conflicts): Add unused attribute
11962         to parent_max.
11963
11964 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
11965
11966         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11967         (alpha_option_override): Don't set alpha_sr_alias_set.
11968         (emit_frame_store_1): Use gen_frame_mem rather than calling
11969         set_mem_alias_set.
11970         (alpha_expand_epilogue): Ditto.
11971
11972 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
11973
11974         PR tree-optimization/48290
11975         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11976         vectorization, check that relevant phis in the basic block after
11977         the inner loop are really inner loop's exit phis.
11978
11979 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
11980
11981         PR debug/48190
11982         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11983         (cached_dw_loc_list_def): New structure.
11984         (cached_dw_loc_list): New typedef.
11985         (cached_dw_loc_list_table): New variable.
11986         (cached_dw_loc_list_table_hash): New function.
11987         (cached_dw_loc_list_table_eq): Likewise.
11988         (add_location_or_const_value_attribute): Take a bool cache_p.
11989         Cache the list when the parameter is true.
11990         (gen_formal_parameter_die): Update caller.
11991         (gen_variable_die): Likewise.
11992         (dwarf2out_finish): Likewise.
11993         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11994         while generating debug info for the decl.
11995         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11996         (dwarf2out_init): Initialize cached_dw_loc_list_table.
11997         (resolve_addr): Cache the result of resolving a chain of
11998         location lists.
11999
12000 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
12001
12002         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12003         conflict object hard regset nodes have intersecting hard reg sets.
12004
12005         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12006         after regstat_init_n_sets_and_refs.
12007
12008         * ira.c: Add more comments at the top.
12009         (setup_stack_reg_pressure_class, setup_pressure_classes):
12010         Add comments how we compute the register pressure classes.
12011         (setup_allocno_and_important_classes): Add more comments.
12012         (setup_class_translate_array, reorder_important_classes)
12013         (setup_reg_class_relations): Add comments.
12014
12015         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
12016         start of the file.
12017
12018         * ira-color.c: Add 2011 to the Copyright line.
12019         (assign_hard_reg):  Add more comments.
12020         (improve_allocation): Ditto.
12021
12022         * ira-costs.c: Add 2011 to the Copyright line.
12023         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12024         comments.
12025         (setup_regno_cost_classes_by_mode): Ditto.
12026
12027         Initial patches from ira-improv branch:
12028
12029         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12030
12031         * ira-build.c (ira_create_object): Remove initialization of
12032         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
12033         (ira_create_allocno): Remove initialization of
12034         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12035         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12036         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12037         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12038         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12039         Initialize ALLOCNO_ADD_DATA.
12040         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12041         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12042         ALLOCNO_REG.
12043         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
12044         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12045
12046         * ira.c (ira_reallocate): Remove.
12047         (setup_pressure_classes): Call
12048         ira_init_register_move_cost_if_necessary.  Use
12049         ira_register_move_cost instead of ira_get_register_move_cost.
12050         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12051         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12052
12053         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12054         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12055         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12056         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12057         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12058         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12059         Fix formatting.
12060         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12061         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12062         (struct allocno_color_data): New.
12063         (allocno_color_data_t): New typedef.
12064         (allocno_color_data): New definition.
12065         (ALLOCNO_COLOR_DATA): New macro.
12066         (struct object_color_data): New.
12067         (object_color_data_t): New typedef.
12068         (object_color_data): New definition.
12069         (OBJECT_COLOR_DATA): New macro.
12070         (update_copy_costs, calculate_allocno_spill_cost): Call
12071         ira_init_register_move_cost_if_necessary.  Use
12072         ira_register_move_cost instead of ira_get_register_move_cost.
12073         (move_spill_restore, update_curr_costs): Ditto.
12074         (allocno_spill_priority): Make it inline.
12075         (color_pass): Allocate and free allocno_color_dat and object_color_data.
12076         (struct coalesce_data, coalesce_data_t): New.
12077         (allocno_coalesce_data): New definition.
12078         (ALLOCNO_COALESCE_DATA): New macro.
12079         (merge_allocnos, coalesced_allocno_conflict_p): Use
12080         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12081         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12082         (coalesce_allocnos): Ditto.
12083         (setup_coalesced_allocno_costs_and_nums): Ditto.
12084         (collect_spilled_coalesced_allocnos): Ditto.
12085         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12086         (setup_slot_coalesced_allocno_live_ranges): Ditto.
12087         (coalesce_spill_slots): Ditto.
12088         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
12089         free allocno_coalesce_data.
12090
12091         * ira-conflicts.c: Fix formatting.
12092         (process_regs_for_copy): Call
12093         ira_init_register_move_cost_if_necessary.  Use
12094         ira_register_move_cost instead of ira_get_register_move_cost.
12095         (build_object_conflicts): Optimize.
12096
12097         * ira-costs.c (record_reg_classes): Optimize.  Call
12098         ira_init_register_move_cost_if_necessary.  Use
12099         ira_register_move_cost, ira_may_move_in_cost, and
12100         ira_may_move_out_cost instead of ira_get_register_move_cost and
12101         ira_get_may_move_cost.
12102         (record_address_regs): Ditto.
12103         (scan_one_insn): Optimize.
12104         (find_costs_and_classes): Optimize.
12105         (process_bb_node_for_hard_reg_moves): Call
12106         ira_init_register_move_cost_if_necessary.  Use
12107         ira_register_move_cost instead of ira_get_register_move_cost.
12108
12109         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12110         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12111         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12112         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12113         definitions.
12114         (ira_initiate_emit_data, ira_finish_emit_data)
12115         (create_new_allocno): New functions.
12116         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12117         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12118         Use ira_register_move_cost instead of ira_get_register_move_cost.
12119
12120         * ira-int.h: Fix some comments.
12121         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12122         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12123         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12124         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
12125         add_data.
12126         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
12127         bitfield after mode.  Make hard_regno a short int.  Make
12128         hard_regno short.  Remove first_coalesced_allocno and
12129         next_coalesced_allocno.  Move mem_optimized_dest_p,
12130         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12131         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
12132         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12133         temp, colorable_p.  Add new member add_data.
12134         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12135         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12136         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12137         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12138         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12139         (ALLOCNO_ADD_DATA): New macro.
12140         (ira_emit_data_t): New typedef.
12141         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
12142         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12143         from struct ira_allocno.
12144         (ALLOCNO_EMIT_DATA): New macro.
12145         (ira_allocno_emit_data, allocno_emit_reg): New.
12146         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12147         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12148         (OBJECT_ADD_DATA): New macro.
12149         (ira_reallocate): Remove.
12150         (ira_initiate_emit_data, ira_finish_emit_data): New.
12151         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12152         (ira_init_register_move_cost_if_necessary): New.
12153         (ira_object_conflict_iter_next): Merge into
12154         ira_object_conflict_iter_cond.
12155         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12156
12157         * ira-live.c (process_single_reg_class_operands): Call
12158         ira_init_register_move_cost_if_necessary.  Use
12159         ira_register_move_cost instead of ira_get_register_move_cost.
12160
12161         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12162
12163         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12164
12165         * ira-costs.c: Fix formatting.
12166         (cost_classes, cost_classes_num): Remove.
12167         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12168         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12169         (cost_classes_del, cost_classes_htab): New.
12170         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12171         (initiate_regno_cost_classes, setup_cost_classes): New.
12172         (setup_regno_cost_classes_by_aclass): New.
12173         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12174         (record_reg_classes): Use regno_cost_classes instead of
12175         cost_classes.  Move checking opposite operand up.
12176         (record_address_regs): Use regno_cost_classes
12177         instead of cost_classes.
12178         (scan_one_insn): Ditto.  Use always general register.
12179         (print_allocno_costs): Use regno_cost_classes instead of
12180         cost_classes.
12181         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
12182         (find_costs_and_classes): Set up cost classes for each registers.
12183         Use also their mode for this.  Use regno_cost_classes instead of
12184         cost_classes.
12185         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12186         cost_classes.
12187         (free_ira_costs, ira_init_costs): Don't use cost_classes.
12188         (ira_costs, ira_set_pseudo_classes): Call
12189         initiate_regno_cost_classes and finish_regno_cost_classes.
12190
12191         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
12192
12193         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12194
12195         * target.def (ira_cover_classes): Remove.
12196
12197         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12198
12199         * doc/tm.texi.in: Ditto.
12200
12201         * ira-conflicts.c: Remove mentioning cover classes from the file.
12202         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
12203         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
12204
12205         * targhooks.c (default_ira_cover_classes): Remove.
12206
12207         * targhooks.h (default_ira_cover_classes): Ditto.
12208
12209         * haifa-sched.c: Remove mentioning cover classes from the file.
12210         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12211         ira_pressure_classes and ira_pressure_classes_num instead of
12212         ira_reg_class_cover_size and ira_reg_class_cover.  Use
12213         sched_regno_pressure_class instead of sched_regno_cover_class.
12214         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12215         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12216
12217         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
12218         classes from the file.
12219         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12220         (struct object_hard_regs, struct object_hard_regs_node): New.
12221         (struct ira_object): New members profitable_hard_regs,
12222         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12223         (struct ira_allocno): Rename cover_class to aclass.  Rename
12224         cover_class_cost and updated_cover_class_cost to class_cost and
12225         updated_class_cost.  Remove splay_removed_p and
12226         left_conflict_size.  Add new members colorable_p.
12227         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12228         (ALLOCNO_COLORABLE_P): New macro.
12229         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12230         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12231         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12232         (OBJECT_...): Rename parameter C to O.
12233         (OBJECT_PROFITABLE_HARD_REGS): New macro.
12234         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12235         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12236         (struct target_ira_int): New members x_ira_max_memory_move_cost,
12237         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12238         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12239         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12240         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
12241         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
12242         x_ira_reg_class_subunion.
12243         (ira_max_memory_move_cost, ira_max_register_move_cost)
12244         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12245         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12246         (ira_important_class_nums, ira_reg_class_superunion): New macros.
12247         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12248         (ira_reg_class_union): Rename to ira_reg_class_subunion.
12249         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12250         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12251         (ira_tune_allocno_costs_and_cover_classes): Rename to
12252         ira_tune_allocno_costs.
12253         (ira_debug_hard_regs_forest): New.
12254         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12255         (ira_object_conflict_iter_next): Fix comments.
12256         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12257         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12258         cover_class to aclass.
12259         (ira_allocate_and_accumulate_costs): Ditto.
12260         (ira_allocate_and_set_or_copy_costs): Ditto.
12261
12262         * opts.c (decode_options): Remove ira_cover_class check.
12263
12264         * ira-color.c: Remove mentioning cover classes from the file.  Use
12265         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12266         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12267         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12268         (splay-tree.h): Remove include.
12269         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12270         before copy_freq_compare_func.
12271         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12272         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12273         New definitions.
12274         (hard_regs_roots, hard_regs_node_vec): Ditto.
12275         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12276         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12277         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12278         (create_new_object_hard_regs_node): Ditto.
12279         (add_new_object_hard_regs_node_to_forest): Ditto.
12280         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12281         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12282         Ditto.
12283         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12284         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12285         (remove_unused_object_hard_regs_nodes): Ditto.
12286         (enumerate_object_hard_regs_nodes): Ditto.
12287         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12288         (object_hard_regs_subnode_t): Ditto.
12289         (struct object_hard_regs_subnode): Ditto.
12290         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12291         (setup_object_hard_regs_subnode_index): Ditto.
12292         (get_object_hard_regs_subnodes_num): Ditto.
12293         (form_object_hard_regs_nodes_forest): Ditto.
12294         (finish_object_hard_regs_nodes_tree): Ditto.
12295         (finish_object_hard_regs_nodes_forest): Ditto.
12296         (allocnos_have_intersected_live_ranges_p): Rename to
12297         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12298         (pseudos_have_intersected_live_ranges_p): Rename to
12299         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12300         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12301         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12302         (update_copy_costs): Remove assert.  Skip cost update if the hard
12303         reg does not belong the class.
12304         (assign_hard_reg): Process only profitable hard regs.
12305         (uncolorable_allocnos_num): Make it scalar.
12306         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12307         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12308         and ira_reg_class_max_nregs.
12309         (bucket_allocno_compare_func): Check frequency first.
12310         (sort_bucket): Add compare function as a parameter.
12311         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12312         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12313         (push_allocno_to_stack): Rewrite for checking new allocno
12314         colorability.
12315         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
12316         (push_only_colorable): Pass new parameter to sort_bucket.
12317         (push_allocno_to_spill): Remove.
12318         (allocno_spill_priority_compare): Make it inline and rewrite.
12319         (splay_tree_allocate, splay_tree_free): Remove.
12320         (allocno_spill_sort_compare): New function.
12321         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
12322         build and use splay tree.  Choose first allocno in uncolorable
12323         allocno bucket to spill.  Remove setting spill cost.
12324         (all_conflicting_hard_regs): Remove.
12325         (setup_allocno_available_regs_num): Check only profitable hard
12326         regs.  Print info about hard regs nodes.
12327         (setup_allocno_left_conflicts_size): Remove.
12328         (put_allocno_into_bucket): Don't call
12329         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
12330         (improve_allocation): New.
12331         (color_allocnos): Call setup_profitable_hard_regs,
12332         form_object_hard_regs_nodes_forest, improve_allocation,
12333         finish_object_hard_regs_nodes_forest.  Setup spill cost.
12334         (print_loop_title): Use pressure classes.
12335         (color_allocnso): Ditto.
12336         (do_coloring): Remove allocation and freeing splay_tree_node_pool
12337         and allocnos_for_spilling.
12338         (ira_sort_regnos_for_alter_reg): Don't setup members
12339         {first,next}_coalesced_allocno.
12340         (color): Remove allocating and freeing removed_splay_allocno_vec.
12341         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12342         prohibited_class_mode_regs.
12343
12344         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
12345         formatting.
12346         (update_allocno_pressure_excess_length): Use pressure classes.
12347         (inc_register_pressure, dec_register_pressure): Check for pressure
12348         class.
12349         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12350         pressure class.  Use ira_reg_class_nregs instead of
12351         ira_reg_class_max_nregs.
12352         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12353         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12354         (single_reg_class): Use ira_reg_class_nregs instead of
12355         ira_reg_class_max_nregs.
12356         (process_bb_node_lives): Use pressure classes.
12357
12358         * ira-emit.c: Remove mentioning cover classes from the file.  Use
12359         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12360         (change_loop): Use pressure classes.
12361         (modify_move_list): Call ira_set_allocno_class instead of
12362         ira_set_allocno_cover_class.
12363
12364         * ira-build.c: Remove mentioning cover classes from the file.  Use
12365         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12366         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
12367         ALLOCNO_UPDATED_CLASS_COST instead of
12368         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12369         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12370         (ira_create_allocno): Remove initialization of
12371         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
12372         ALLOCNO_COLORABLE_P.
12373         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12374         Update conflict regs for the objects.
12375         (create_cap_allocno): Remove assert.  Don't propagate
12376         ALLOCNO_AVAILABLE_REGS_NUM.
12377         (ira_free_allocno_costs): New function.
12378         (finish_allocno): Change a part of code into call of
12379         ira_free_allocno_costs.
12380         (low_pressure_loop_node_p): Use pressure classes.
12381         (object_range_compare_func): Don't compare classes.
12382         (setup_min_max_conflict_allocno_ids): Ditto.
12383
12384         * loop-invariant.c: Remove mentioning cover classes from the file.
12385         Use ira_pressure_classes and ira_pressure_classes_num instead of
12386         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
12387         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12388         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12389         Use reg_allocno_class instead of reg_cover_class.
12390         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12391         STACK_REG_COVER_CLASS.
12392         (get_regno_cover_class): Rename to get_regno_pressure_class.
12393         (move_loop_invariants): Initialize and finalize regstat.
12394
12395         * ira.c: Remove mentioning cover classes from the file.  Add
12396         comments about coloring without cover classes.  Use ALLOCNO_CLASS
12397         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12398         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12399         setup_class_subset_and_memory_move_costs.
12400         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12401         (setup_cover_and_important_classes): Rename to
12402         setup_allocno_and_important_classes.
12403         (setup_class_translate_array): New.
12404         (setup_class_translate): Call it for allocno and pressure classes.
12405         (cover_class_order): Rename to allocno_class_order.
12406         (comp_reg_classes_func): Use ira_allocno_class_translate instead
12407         of ira_class_translate.
12408         (reorder_important_classes): Set up ira_important_class_nums.
12409         (setup_reg_class_relations): Set up ira_reg_class_superunion.
12410         (print_class_cover): Rename to print_classes.  Add parameter.
12411         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12412         Print pressure classes too.
12413         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
12414         setup_reg_subclasses.
12415         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12416         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12417         (setup_prohibited_class_mode_regs): Use
12418         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12419         (clarify_prohibited_class_mode_regs): New function.
12420         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12421         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12422         (ira_init_once): Initialize them.
12423         (free_register_move_costs): Process them.
12424         (ira_init): Move calls of find_reg_classes and
12425         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12426         Call clarify_prohibited_class_mode_regs.
12427         (ira_no_alloc_reg): Remove.
12428         (too_high_register_pressure_p): Use pressure classes.
12429
12430         * sched-deps.c: Remove mentioning cover classes from the file.
12431         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12432         ira_pressure_classes and ira_pressure_classes_num instead of
12433         ira_reg_class_cover_size and ira_reg_class_cover.
12434         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12435         sched_regno_pressure_class instead of sched_regno_cover_class.
12436         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
12437         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12438
12439         * ira.h: Add 2010 to Copyright.
12440         (ira_no_alloc_reg): Remove external.
12441         (struct target_ira): Rename x_ira_hard_regno_cover_class,
12442         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12443         x_ira_class_translate to x_ira_hard_regno_allocno_class,
12444         x_ira_allocno_classes_num, x_ira_allocno_classes, and
12445         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
12446         x_ira_pressure_classes, x_ira_pressure_class_translate, and
12447         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
12448         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
12449         x_ira_no_alloc_regs.
12450         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12451         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12452         ira_allocno_classes_num and ira_allocno_classes.
12453         (ira_class_translate): Rename to ira_allocno_class_translate.
12454         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12455         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12456         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12457         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12458         (ira_no_alloc_regs): New.
12459
12460         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
12461         classes from the file.  Use ALLOCNO_CLASS instead of
12462         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
12463         ALLOCNO_COVER_CLASS_COST.
12464         (regno_cover_class): Rename to regno_aclass.
12465         (record_reg_classes): Use ira_reg_class_subunion instead of
12466         ira_reg_class_union.
12467         (record_address_regs): Check overflow.
12468         (scan_one_insn): Ditto.
12469         (print_allocno_costs): Print total mem cost fore regional allocation.
12470         (print_pseudo_costs): Use REG_N_REFS.
12471         (find_costs_and_classes): Use classes intersected with them on the
12472         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
12473         ira_reg_class_union.  Use ira_allocno_class_translate and
12474         regno_aclass instead of ira_class_translate and regno_cover_class.
12475         Modify code for finding regno_aclass.  Setup preferred classes for
12476         the next pass.
12477         (setup_allocno_cover_class_and_costs): Rename to
12478         setup_allocno_class_and_costs.  Use regno_aclass instead of
12479         regno_cover_class.  Use ira_set_allocno_class instead of
12480         ira_set_allocno_cover_class.
12481         (init_costs, finish_costs): Use regno_aclass instead of
12482         regno_cover_class.
12483         (ira_costs): Use setup_allocno_class_and_costs instead of
12484         setup_allocno_cover_class_and_costs.
12485         (ira_tune_allocno_costs_and_cover_classes): Rename to
12486         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
12487         by processing objects.  Use ira_reg_class_max_nregs instead of
12488         ira_reg_class_nregs.
12489
12490         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12491
12492         * sched-int.h: Remove mentioning cover classes from the file.
12493         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12494
12495         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
12496         classes from the file.
12497         (struct reg_pref): Rename coverclass into allocnoclass.
12498         (reg_cover_class): Rename to reg_allocno_class.
12499
12500         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12501
12502         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12503
12504         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12505
12506         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12507
12508         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12509
12510         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12511
12512         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12513
12514         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12515
12516         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12517
12518         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12519
12520         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12521         (i386_ira_cover_classes): Ditto.
12522
12523         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12524
12525         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12526
12527         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12528
12529         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12530
12531         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12532
12533         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12534
12535         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12536         (mips_ira_cover_classes): Ditto.
12537
12538         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12539
12540         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12541
12542         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12543
12544         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12545
12546         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12547
12548         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12549         (IRA_COVER_CLASSES_VSX): Ditto.
12550
12551         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12552         (rs6000_ira_cover_classes): Ditto.
12553
12554         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12555
12556         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12557
12558         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12559
12560         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12561
12562         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12563
12564         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12565
12566         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12567
12568         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12569
12570         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12571
12572         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12573
12574 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
12575
12576         PR debug/48253
12577         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12578         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12579         dw_fde_unlikely_section_end_label, cold_in_std_section,
12580         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12581         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12582         fields.
12583         (output_fde): Use dw_fde_second_{begin,end} if second is
12584         true, otherwise dw_fde_{begin,end}.
12585         (output_call_frame_info): Test dw_fde_second_begin != NULL
12586         instead of dw_fde_switched_sections.
12587         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12588         fields, initialize new fields.  Initialize in_std_section
12589         unconditionally from the first partition.
12590         (dwarf2out_end_epilogue): Don't override dw_fde_end when
12591         dw_fde_second_begin is non-NULL.
12592         (dwarf2out_switch_text_section): Stop initializing removed
12593         dw_fde_struct fields, initialize new fields, initialize
12594         also dw_fde_end here.  Set dw_fde_switch_cfi even when
12595         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
12596         (struct var_loc_list_def): Add last_before_switch field.
12597         (arange_table, arange_table_allocated, arange_table_in_use,
12598         ARANGE_TABLE_INCREMENT, add_arange): Removed.
12599         (size_of_aranges): Count !in_std_section and !second_in_std_section
12600         hunks in fdes, instead of looking at arange_table_in_use.
12601         (output_aranges): Add aranges_length argument, don't call
12602         size_of_aranges here.  Instead of using aranges_table*
12603         emit ranges for fdes when !in_std_section resp.
12604         !second_in_std_section.
12605         (dw_loc_list): Break ranges crossing section switch.
12606         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
12607         use dw_fde_second_end instead of dw_fde_end as end of last range.
12608         (gen_subprogram_die): Don't call add_arange.  Use
12609         dw_fde_{begin,end} for first partition and if switched
12610         section dw_fde_second_{begin,end} for the second.
12611         (var_location_switch_text_section_1,
12612         var_location_switch_text_section): New functions.
12613         (dwarf2out_begin_function): Initialize cold_text_section even
12614         when function_section () isn't text_section.
12615         (prune_unused_types): Don't walk arange_table.
12616         (dwarf2out_finish): Don't needlessly test
12617         flag_reorder_blocks_and_partition when testing cold_text_section_used.
12618         If info_section_emitted, call size_of_aranges and if it indicates
12619         non-empty .debug_aranges, call output_aranges with the computed
12620         size.  Stop using removed dw_fde_struct fields, use
12621         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12622         for second.
12623
12624         PR debug/48203
12625         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12626         create ENTRY_VALUE if incoming or address of incoming's MEM
12627         is a hard REG.
12628         * dwarf2out.c (mem_loc_descriptor): Don't emit
12629         DW_OP_GNU_entry_value of DW_OP_fbreg.
12630         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12631         on ENTRY_VALUE is able to find the canonical parameter VALUE.
12632         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12633         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12634         ENTRY_VALUE_EXPs.
12635         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12636         is a REG_P or MEM_P with REG_P address, compute hash directly
12637         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12638         (preserve_only_constants): Don't clear VALUES forwaring
12639         ENTRY_VALUE to some other VALUE.
12640
12641 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
12642
12643         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12644         instead of GEN_INT.
12645
12646 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
12647
12648         * cfgexpand.c (expand_gimple_cond): Always set the source location and
12649         block before expanding the statement.
12650         (expand_gimple_stmt_1): Likewise.  Set them here...
12651         (expand_gimple_stmt): ...and not here.  Tidy.
12652         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12653         unknown.
12654
12655 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
12656
12657         * Makefile.in: New rule for cprop.o.
12658         * gcse.c: Move constant/copy propagation to cprop.c.
12659         (compute_local_properties): Only handle expression tables.
12660         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12661         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12662         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12663         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
12664         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
12665         compute_cprop_data, find_used_regs, try_replace_reg,
12666         find_avail_set, cprop_jump, constprop_register, cprop_insn,
12667         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12668         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12669         find_bypass_set, reg_killed_on_edge, bypass_block,
12670         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12671         execute_rtl_cprop, pass_rtl_cprop): Move to...
12672         * cprop.c: ...here.  New file, constant/copy propagation for RTL
12673         moved from gcse.c to here with minor cleanups in duplicated code.
12674
12675 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
12676
12677         * config/i386/i386.c (flag_opts): Fix a typo in
12678         -mavx256-split-unaligned-store.
12679
12680 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
12681
12682         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12683         LIBCALL_VALUE): Remove macros.
12684         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12685         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12686         (h8300_function_value, h8300_libcall_value,
12687         h8300_function_value_regno_p): New functions.
12688
12689 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
12690
12691         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12692
12693 2011-03-28  Jeff Law  <law@redhat.com>
12694
12695         * tree-ssa-threadupdate.c (redirect_edges): Call
12696         create_edge_and_update_destination_phis as needed.
12697         (create_edge_and_update_destination_phis): Accept new BB argument.
12698         All callers updated.
12699         (thread_block): Do not update the profile when threading around
12700         intermediate blocks.
12701         (thread_single_edge): Likewise.
12702         (determine_bb_domination_status): If BB is not a successor of the
12703         loop header, return NONDOMINATING.
12704         (register_jump_thread): Note when we register a jump thread around
12705         an intermediate block.
12706         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12707         (thread_across_edge): Use it.
12708
12709 2011-03-28  Tristan Gingold  <gingold@adacore.com>
12710
12711         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12712         when for_return is 2.
12713
12714 2011-03-28  Jeff Law  <law@redhat.com>
12715
12716         * var-tracking.c (canonicalize_values_mark): Delete unused
12717         lhs assignment.
12718         (canonicalize_values_star, set_variable_part): Likewise.
12719         (clobber_variable_part, delete_variable_part): Likewise.
12720
12721 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
12722
12723         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12724
12725 2011-03-28  Martin Jambor  <mjambor@suse.cz>
12726
12727         * tree-inline.c (expand_call_inline): Do not check that destination
12728         node is analyzed.
12729         (optimize_inline_calls): Assert that destination node is analyzed.
12730         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12731         not call tree_lowering_passes.
12732         * cgraph.h (cgraph_analyze_function): Declare.
12733         * cgraphunit.c (cgraph_analyze_function): Make public.
12734
12735 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
12736
12737         * config/sparc/sparc-opts.h: New.
12738         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12739         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12740         (sparc_option_override): Store processor_type enumeration rather
12741         than string in cpu_default.  Remove name and enumeration from
12742         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
12743         without using sparc_select.  Use target_flags_explicit instead of
12744         fpu_option_set.
12745         * config/sparc/sparc.h (enum processor_type): Move to
12746         sparc-opts.h.
12747         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12748         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12749         HeaderInclude entry.
12750         (mcpu=, mtune=): Use Var and Enum.
12751         (sparc_processor_type): New Enum and EnumValue entries.
12752
12753 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12754             Iain Sandoe  <iains@gcc.gnu.org>
12755
12756         PR target/48245
12757         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12758
12759 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
12760
12761         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12762         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12763         Insert new statements at it in lieu of STMT.
12764         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12765         * tree-vect-stmts.c (vectorizable_store): Likewise.
12766         (vectorizable_load): Likewise.
12767
12768 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
12769
12770         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12771         (divtf3): Ditto.
12772         (multf3): Ditto.
12773         (subtf3): Ditto.
12774
12775 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12776
12777         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12778         unaligned 256bit load/store.
12779         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12780         (*avx_movdqu<avxmodesuffix>): Likewise.
12781
12782 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12783
12784         PR target/48288
12785         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12786         * config/pa/pa.md (iordi3): Use new predicate in expander.
12787         (iorsi3): Likewise.
12788
12789 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
12790
12791         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12792         FUNCTION_VALUE_REGNO_P): Remove macros.
12793         * config/mips/mips-protos.h (mips_function_value): Remove.
12794         * config/mips/mips.c (mips_function_value): Rename to...
12795         (mips_function_value_1): ... this. Make static.  Handle receiving
12796         the function type in 'fn_decl_or_type' argument.
12797         (mips_function_value, mips_libcall_value,
12798         mips_function_value_regno_p): New function.
12799         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12800         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12801
12802 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12803
12804         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12805         and -mavx256-split-unaligned-store.
12806         (ix86_option_override_internal): Split 32-byte AVX unaligned
12807         load/store by default.
12808         (ix86_avx256_split_vector_move_misalign): New.
12809         (ix86_expand_vector_move_misalign): Use it.
12810
12811         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12812         -mavx256-split-unaligned-store.
12813
12814         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12815         256bit load/store.  Generate unaligned store on misaligned memory
12816         operand.
12817         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12818         256bit load/store.
12819         (*avx_movdqu<avxmodesuffix>): Likewise.
12820
12821         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12822         -mavx256-split-unaligned-store.
12823
12824 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
12825
12826         PR target/38598
12827         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12828         Update commentary.
12829
12830 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
12831
12832         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12833         opno arguments with an expand_operand.  Use create_input_operand.
12834         (mips_prepare_builtin_target): Delete.
12835         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12836         functions.
12837         (mips_expand_builtin_direct): Use create_output_operand and
12838         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
12839         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
12840         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12841
12842 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
12843
12844         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12845         function.
12846         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12847
12848 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
12849
12850         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12851         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
12852         basic blocks and call commit_edge_insertions directly.
12853         (fixup_abnormal_edges): Move from here to...
12854         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
12855         on the edges and return whether some have actually been inserted.
12856         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12857         compensation code.
12858
12859 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
12860
12861         PR rtl-optimization/48144
12862         * sel-sched-ir.c (merge_history_vect): Factor out from ...
12863         (merge_expr_data): ... here.
12864         (av_set_intersect): Rename to av_set_code_motion_filter.
12865         Update all callers.  Call merge_history_vect when an expression
12866         is found in both sets.
12867         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12868
12869 2011-03-26  Alan Modra  <amodra@gmail.com>
12870
12871         * config/rs6000/predicates.md (word_offset_memref_op): Handle
12872         cmodel medium addresses.
12873         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12874         64-bit gpr loads and stores.
12875         (rs6000_secondary_reload_ppc64): New function.
12876         * config/rs6000/rs6000-protos.h: Declare it.
12877         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12878
12879 2011-03-26  Alan Modra  <amodra@gmail.com>
12880
12881         PR target/47487
12882         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12883         GNU Go in traceback table.
12884
12885 2011-03-25  Richard Henderson  <rth@redhat.com>
12886
12887         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12888         if there are exactly 6 operands.
12889         (set_storage_via_setmem): Similarly.
12890
12891 2011-03-25  Kai Tietz  <ktietz@redhat.com>
12892
12893         * collect2.c (write_c_file_stat): Handle backslash
12894         as right-hand directory separator.
12895         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12896         checking just for slash.
12897         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12898         instead of checking for trailing slash.
12899         * gcc.c (record_temp_file): Use filename_cmp instead
12900         of strcmp.
12901         (do_spec_1): Likewise.
12902         (replace_outfile_spec_function): Likewise.
12903         (is_directory): Use filename_ncmp instead of strncmp.
12904         (print_multilib_info): Likewise.
12905         * gcov.c (find_source): Use filename_cmp instead
12906         instead of strcmp.
12907         (make_gcov_file_name): Fix order of slash/backslash
12908         checks.
12909         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12910         (add_standard_paths): Likewise.
12911         * mips-tfile.c (saber_stop): Handle backslash.
12912         * prefix.c (update_path): Use filename_ncmp instead of
12913         strncmp.
12914         * profile.c (output_location): Use filename_cmp instead
12915         of strcmp.
12916         * read-md.c (handle_toplevel_file): Handle backslash.
12917         * tlink.c (frob_extension):  Likewise.
12918         * tree-cfg.c (same_line_p): Use filename_cmp instead of
12919         strcmp.
12920         * tree-dump.c (dequeue_and_dump): Handle backslash.
12921         * tree.c (get_file_function_name): Likewise.
12922         * gengtype.c (read_input_list): Likewise.
12923         (get_file_realbasename): Likewise.
12924         (get_output_file_with_visibility): Use filename_cmp
12925         instead of strcmp.
12926
12927 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
12928
12929         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12930         case to VFPv1.
12931
12932 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
12933
12934         * fold-const.c (expr_location_or): New function.
12935         (fold_truth_not_expr): Call it.
12936
12937 2011-03-25  Jeff Law  <law@redhat.com>
12938
12939         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12940         va_end.
12941         * c-family/c-common.c (def_fn_type): Likewise.
12942         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12943         * emit-rtl.c (gen_rtvec): Likewise.
12944         * lto/lto-lang.c (def_fn_type): Likewise.
12945
12946 2011-03-25  Richard Guenther  <rguenther@suse.de>
12947
12948         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12949         also generate copies.
12950         (fini_copy_prop): Handle constant values properly.
12951
12952 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
12953
12954         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12955         mode size instead of bitsize with DWARF2_ADDR_SIZE.
12956         (hash_loc_operands, compare_loc_operands): Handle
12957         DW_OP_GNU_entry_value.
12958
12959 2011-03-25  Kai Tietz  <ktietz@redhat.com>
12960
12961         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12962         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12963         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12964         comment and use macro TARGET_64BIT_MS_ABI instead.
12965         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12966         and change default behavior for 32-bit MS_ABI.
12967         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12968         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12969         32-bit, too.
12970         (ix86_cfun_abi): Likewise.
12971         (ix86_maybe_switch_abi): Adjust comment.
12972         (init_cumulative_args): Check for bit-ness in MS_ABI case.
12973         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12974         instead of checking for SYSV_ABI.
12975         (ix86_nsaved_sseregs): Likewise.
12976         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12977         to 16 bytes.
12978         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12979         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12980         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12981         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12982         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12983
12984 2011-03-25  Richard Guenther  <rguenther@suse.de>
12985
12986         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12987         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12988         (verify_gimple): Remove.
12989         * tree-cfg.c (verify_gimple_call): Merge verification
12990         from verify_stmts.
12991         (verify_gimple_phi): Merge verification from verify_stmts.
12992         (verify_gimple_label): New function.
12993         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12994         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12995         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12996         (verify_stmts): Rename to verify_gimple_in_cfg.
12997         (verify_gimple_in_cfg): New function.
12998         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12999         * tree-ssa.c (verify_ssa): Likewise.
13000         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13001
13002 2011-03-25  Richard Guenther  <rguenther@suse.de>
13003
13004         * passes.c (init_optimization_passes): Add FRE pass after
13005         early SRA.
13006
13007 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
13008             Andrew Stubbs  <ams@codesourcery.com>
13009
13010         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13011         for Cortex-A8.
13012         (arm_movdi_vfp_cortexa8): New pattern.
13013         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13014         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13015         instructions when tuning for Cortex-A8.  Set attribute "arch".
13016         * config/arm/arm.md: Move include arm-tune.md up a bit.
13017         (define_attr "arch"): Add "onlya8" and "nota8" values.
13018         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13019
13020 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13021
13022         PR bootstrap/48282
13023         Revert:
13024         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13025
13026         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13027         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13028         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13029         * passes.c (init_optimization_passes): Move
13030         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13031
13032 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13033
13034         * c-typeck.c (comptypes_internal): Replace target
13035         hook call of comp_type_attributes by version in tree.c file.
13036         * gimple.c (gimple_types_compatible_p_1): Likewise.
13037         * tree-ssa.c (useless_type_conversion_p): Likewise.
13038         * tree.c (build_type_attribute_qual_variant): Likewise.
13039         (attribute_value_equal): New static helper function.
13040         (comp_type_attributes): New function.
13041         (merge_attributes): Use attribute_value_equal for comparison.
13042         (attribute_list_contained): Likewise.
13043         * tree.h (comp_type_attributes): New prototype.
13044
13045 2011-03-25  Richard Guenther  <rguenther@suse.de>
13046
13047         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13048         of complex types at -O0.
13049         (verify_gimple_assign_binary): Likewise.
13050         (verify_gimple_assign_ternary): Likewise.
13051
13052 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13053
13054         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13055         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13056
13057 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13058
13059         PR debug/48041
13060         * dwarf2out.c (output_abbrev_section): Only write table when
13061         abbrev_die_table_in_use > 1.
13062
13063 2011-02-24  Richard Henderson  <rth@redhat.com>
13064
13065         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13066         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13067         (alpha_expand_unaligned_load_words): Use extql.
13068         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13069         (emit_insxl): Handle all modes for consistency.
13070
13071 2011-02-24  Richard Henderson  <rth@redhat.com>
13072
13073         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13074         (alpha_expand_unaligned_load): Likewise.
13075         (alpha_expand_unaligned_store): Likewise.
13076         (alpha_expand_unaligned_load_words): Likewise.
13077         (alpha_expand_unaligned_store_words): Likewise.
13078         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13079         (alpha_split_lock_test_and_set_12): Likewise.
13080         (print_operand, alpha_fold_builtin_extxx): Likewise.
13081         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13082         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13083         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13084         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13085         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13086         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13087         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13088         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13089         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13090         (extwl, extll, extql): Similarly.
13091         (inswh, inslh, insqh): Similarly.
13092         (mskbl, mskwl, mskll, mskql): Similarly.
13093         (mskwh, msklh, mskqh): Similarly.
13094
13095 2011-02-24  Richard Henderson  <rth@redhat.com>
13096
13097         * config/alpha/alpha.md (attribute isa): Add er, ner.
13098         (attribute enabled): Handle them.
13099         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13100
13101 2011-02-24  Richard Henderson  <rth@redhat.com>
13102
13103         * config/alpha/alpha.md (attribute isa): Add vms.
13104         (attribute enabled): Handle it.
13105         (*movsf): Merge *movsf_{nofix,fix,nofp}.
13106         (*movdf): Merge *movdf_{nofix,fix,nofp}.
13107         (*movtf): Rename from *movtf_internal for consistency.
13108         (*movsi): Merge with *movsi_nt_vms.
13109         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13110         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13111         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13112         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13113
13114 2011-02-24  Richard Henderson  <rth@redhat.com>
13115
13116         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13117         (extendqisi2, extendhisi2): Likewise.
13118         (extendqidi2): Simplify BWX/non-BWX expansions.
13119         (extendhidi2): Similarly.
13120
13121 2011-02-24  Richard Henderson  <rth@redhat.com>
13122
13123         * config/alpha/alpha.md (attribute isa): New.
13124         (attribute enabled): New.
13125         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13126         (zero_extendqisi2, zero_extendqidi2): Similarly.
13127         (zero_extendhisi2, zero_extendhidi2): Similarly.
13128         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13129
13130 2011-02-24  Richard Henderson  <rth@redhat.com>
13131
13132         * config/alpha/predicates.md (input_operand): Revert last change;
13133         update comment to mention 32-bit VMS rather than Windows.
13134
13135 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13136
13137         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13138         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13139         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13140         * passes.c (init_optimization_passes): Move
13141         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13142
13143 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13144
13145         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13146
13147 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13148
13149         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13150         correctly.
13151
13152 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
13153
13154         PR debug/48204
13155         * simplify-rtx.c (simplify_const_unary_operation): Call
13156         real_convert when changing mode class with FLOAT_EXTEND.
13157
13158 2011-03-24  Nick Clifton  <nickc@redhat.com>
13159
13160         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13161         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13162         * config/rx/rx.c (rx_option_override): Set align_jumps,
13163         align_loops and align_labels if not set by the user.
13164         (rx_align_for_label): New function.
13165         (rx_max_skip_for_label): New function.
13166         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13167         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13168         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13169         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13170         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13171
13172 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13173
13174         PR rtl-optimization/48263
13175         * optabs.c (expand_binop_directly): Reinstate convert_modes code
13176         and original commutative_p handling.  Use maybe_gen_insn.
13177
13178 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13179
13180         * reload.c (find_reloads_subreg_address): Add address_reloaded
13181         parameter and return true there if the full address has been
13182         reloaded.
13183         (find_reloads_toplev): Pass address_reloaded flag.
13184         (find_reloads_address_1): Don't use address_reloaded parameter.
13185
13186 2011-03-24  Jeff Law  <law@redhat.com>
13187
13188         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13189         unused variable "ann".
13190         (remove_unused_locals): Likewise.
13191
13192         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13193         statement.
13194
13195         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13196         after it is freed.
13197
13198 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13199
13200         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13201         for invalid symbolic addresses.
13202         (s390_secondary_reload): Don't use s390_check_symref_alignment for
13203         larl operands.
13204
13205 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13206
13207         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13208         the argument in calls to fold_truth_not_expr.
13209
13210 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13211
13212         * tree.c (record_node_allocation_statistics): New function.
13213         (make_node_stat, copy_node_stat, build_string): Call it.
13214         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13215         (build1_stat, build_omp_clause): Likewise.
13216
13217 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13218
13219         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13220         last commit.
13221
13222 2011-03-24  Richard Guenther  <rguenther@suse.de>
13223
13224         PR tree-optimization/48271
13225         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13226         blocks that still exist.
13227
13228 2011-03-24  Richard Guenther  <rguenther@suse.de>
13229
13230         PR tree-optimization/48270
13231         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13232         not free datarefs before ddrs.
13233
13234 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13235
13236         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13237         from the address built for a reference with variable offset.
13238
13239 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13240
13241         PR target/48237
13242         * config/i386/i386.md (*movdf_internal_rex64): Do not split
13243         alternatives that can be handled with movq or movabsq insn.
13244         (*movdf_internal): Disable for !TARGET_64BIT.
13245         (*movdf_internal_nointeger): Ditto.
13246         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13247
13248 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13249
13250         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13251         (FUNCTION_ARG_ADVANCE): Likewise.
13252         * tm.texi.in: Change references to them to hook references.
13253         * tm.texi: Regenerate.
13254         * targhooks.c (default_function_arg): Eliminate check for target macro.
13255         (default_function_incoming_arg): Likewise.
13256         (default_function_arg_advance): Likewise.
13257         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13258         (function_arg_advance): Likewise.
13259         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13260
13261 2011-03-24  Richard Guenther  <rguenther@suse.de>
13262
13263         PR middle-end/48269
13264         * tree-object-size.c (addr_object_size): Do not double-account
13265         for MEM_REF offsets.
13266
13267 2011-03-24  Diego Novillo  <dnovillo@google.com>
13268
13269         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13270         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13271         (lto_input_data_block): Move from lto-opts.c.  Make extern.
13272         Update all users.
13273         (lto_input_string): Rename from input_string.  Make extern.
13274         Update all users.
13275         * lto-streamer-out.c (lto_output_string_with_length): Rename from
13276         output_string_with_length.
13277         Output 0 to indicate a non-NULL string.  Update all callers to
13278         not emit 0.
13279         (lto_output_string): Rename from output_string.  Make extern.
13280         Update all users.
13281         (lto_output_decl_state_streams): Make extern.
13282         (lto_output_decl_state_refs): Make extern.
13283         * lto-streamer.h (lto_input_string): Declare.
13284         (lto_input_data_block): Declare.
13285         (lto_output_string): Declare.
13286         (lto_output_string_with_length): Declare.
13287         (lto_output_decl_state_streams): Declare.
13288         (lto_output_decl_state_refs): Declare.
13289
13290 2011-03-24  Richard Guenther  <rguenther@suse.de>
13291
13292         PR tree-optimization/46562
13293         * tree.c (build_invariant_address): New function.
13294         * tree.h (build_invariant_address): Declare.
13295         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13296         a renamed function moved ...
13297         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13298         Take valueization callback parameter.
13299         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13300         * gimple-fold.h: New file.
13301         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13302         (ccp_fold, fold_const_aggregate_ref,
13303         fold_ctor_reference, fold_nonarray_ctor_reference,
13304         fold_array_ctor_reference, fold_string_cst_ctor_reference,
13305         get_base_constructor): Move ...
13306         * gimple-fold.c: ... here.
13307         (gimple_fold_stmt_to_constant_1): New function
13308         split out from ccp_fold.  Take a valueization callback parameter.
13309         Valueize all operands.
13310         (gimple_fold_stmt_to_constant): New wrapper function.
13311         (fold_const_aggregate_ref_1): New function split out from
13312         fold_const_aggregate_ref.  Take a valueization callback parameter.
13313         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13314         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13315         invariant POINTER_PLUS_EXPRs to invariant form.
13316         (vn_valueize): New function.
13317         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13318         * tree-vrp.c (vrp_valueize): New function.
13319         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13320         to fold statements to constants.
13321         * tree-ssa-pre.c (eliminate): Properly guard propagation of
13322         function declarations.
13323         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13324         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13325
13326 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13327
13328         * config/h8300/predicates.md (jump_address_operand): Fix register
13329         mode check.
13330
13331 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
13332
13333         * doc/invoke.texi (max-stores-to-sink): Document.
13334         * params.h (MAX_STORES_TO_SINK): Define.
13335         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13336         if either vectorization or if-conversion is disabled.
13337         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13338         tree-vect-data-refs.c vect_equal_offsets.
13339         (dr_equal_offsets_p): New function.
13340         (find_data_references_in_bb): Remove static.
13341         * tree-data-ref.h (find_data_references_in_bb): Declare.
13342         (dr_equal_offsets_p): Likewise.
13343         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13344         (vect_drs_dependent_in_basic_block): Update calls to
13345         vect_equal_offsets.
13346         (vect_check_interleaving): Likewise.
13347         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13348         (cond_if_else_store_replacement): Rename to...
13349         (cond_if_else_store_replacement_1): ... this.  Change arguments and
13350         documentation.
13351         (cond_if_else_store_replacement): New function.
13352         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13353         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13354
13355 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
13356
13357         PR target/46934
13358         * config/arm/arm.md (casesi): Use the gen_int_mode() function
13359         to subtract lower bound instead of GEN_INT().
13360
13361 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
13362
13363         PR other/48179
13364         PR other/48221
13365         PR other/48234
13366         * doc/extend.texi (Alignment): Move section to match order in TOC.
13367         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13368         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13369
13370 2011-03-23  Jeff Law  <law@redhat.com>
13371
13372         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13373         before removing the edge.
13374
13375         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13376         it may have been freed by redirect_branch_edge or
13377         redirect_edge_succ_nodup.
13378
13379 2011-03-23  Richard Guenther  <rguenther@suse.de>
13380
13381         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13382         (check_va_list_escapes): Likewise.
13383         (check_all_va_list_escapes): Likewise.
13384
13385 2011-03-23  Richard Guenther  <rguenther@suse.de>
13386
13387         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13388         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13389         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13390         (alias.o): Likewise.
13391         (ipa-type-escape.o): Remove.
13392         (ipa-struct-reorg.o): Likewise.
13393         (GTFILES): Remove ipa-struct-reorg.c.
13394         * alias.c: Do not include ipa-type-escape.h.
13395         * tree-ssa-alias.c: Likewise.
13396         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13397         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13398         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13399         and ipa-type-escape passes.
13400         * tree-pass.h (pass_ipa_type_escape): Remove.
13401         (pass_ipa_struct_reorg): Likewise.
13402         * ipa-struct-reorg.h: Remove.
13403         * ipa-struct-reorg.c: Likewise.
13404         * ipa-type-escape.h: Likewise.
13405         * ipa-type-escape.c: Likewise.
13406         * doc/invoke.texi (-fipa-struct-reorg): Remove.
13407         (--param struct-reorg-cold-struct-ratio): Likewise.
13408         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13409         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13410         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13411
13412 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13413
13414         * config/s390/2084.md: Enable all insn reservations also for z9_ec
13415         cpu attribute value.
13416         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13417         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13418         * config/s390/s390.c (processor_flags_table): New constant array.
13419         (s390_handle_arch_option): Remove.
13420         (s390_handle_option): Remove s390_handle_arch_option invocations
13421         and OPT_mwarn_framesize_ handling.
13422         (s390_option_override): Remove s390_handle_arch_option invocation.
13423         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13424         warnings.
13425         * config/s390/s390.md (cpu attribute): Add z9_ec value.
13426         * config/s390/s390.opt (s390_tune, s390_arch)
13427         (march=): Replace s390_arch_option enum and values with
13428         processor_type.  Set variable name to s390_arch.  Set
13429         initialization value.
13430         (mtune=): Replace s390_arch_option with processor_type.  Set
13431         variable name to s390_tune.  Set initialization value.
13432
13433 2011-03-23  Julian Brown  <julian@codesourcery.com>
13434
13435         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13436         accesses which are not naturally aligned.
13437
13438 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13439
13440         PR target/47553
13441         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13442
13443 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13444
13445         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13446         parameter from "int" to "enum insn_code".
13447         (expand_operand_type): New enum.
13448         (expand_operand): New structure.
13449         (create_expand_operand): New function.
13450         (create_fixed_operand, create_output_operand): Likewise
13451         (create_input_operand, create_convert_operand_to): Likewise.
13452         (create_convert_operand_from, create_address_operand): Likewise.
13453         (create_integer_operand): Likewise.
13454         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13455         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13456         (expand_insn, expand_jump_insn): Likewise.
13457         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13458         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13459         (expand_movstr, expand_builtin___clear_cache): Likewise.
13460         (expand_builtin_lock_release): Likewise.
13461         * explow.c (allocate_dynamic_stack_space): Likewise.
13462         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
13463         and use the default handling in that case.
13464         * expmed.c (check_predicate_volatile_ok): Delete.
13465         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13466         (emit_cstore): Likewise.
13467         * expr.c (emit_block_move_via_movmem): Likewise.
13468         (set_storage_via_setmem, expand_assignment): Likewise.
13469         (emit_storent_insn, try_casesi): Likewise.
13470         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
13471         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13472         (expand_vec_shift_expr, expand_binop_directly): Likewise.
13473         (expand_twoval_unop, expand_twoval_binop): Likewise.
13474         (expand_unop_direct, emit_indirect_jump): Likewise.
13475         (emit_conditional_move, vector_compare_rtx): Likewise.
13476         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13477         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13478         (expand_sync_lock_test_and_set): Likewise.
13479         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
13480         (emit_unop_insn): Likewise.
13481         (expand_copysign_absneg): Change icode to an insn_code.
13482         (create_convert_operand_from_type): New function.
13483         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13484         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13485         (expand_insn, expand_jump_insn): Likewise.
13486         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13487         than const_int_operand for operand 2.
13488
13489 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13490
13491         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13492         if possible.
13493
13494 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13495
13496         * emit-rtl.c (emit_pattern_before_noloc): New function.
13497         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13498         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13499         (emit_pattern_after_noloc): New function.
13500         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13501         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13502
13503 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13504
13505         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13506         (__ffsDI2): Likewise.
13507
13508 2011-03-22  Richard Henderson  <rth@redhat.com>
13509
13510         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13511         of !TARGET_ABI_OPEN_VMS.
13512         (alpha_trampoline_init, alpha_start_function): Likewise.
13513         (alpha_expand_epilogue, alpha_file_start): Likewise.
13514         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13515         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13516         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13517         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13518         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13519
13520 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13521
13522         * config/s390/s390-opts.h: New.
13523         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13524         s390_arch_flags, s390_warn_framesize, s390_stack_size,
13525         s390_stack_guard): Remove.
13526         (s390_handle_arch_option): Return void.  Take enum
13527         s390_arch_option value instead of string and searching array.
13528         (s390_handle_option): Don't assert that global structures are in
13529         use.  Access variables via opts pointer.  Use error_at.  Don't use
13530         sscanf for -mstack-guard= or -mstack-size=.  Update call to
13531         s390_handle_arch_option.
13532         (s390_option_override): Update call to s390_handle_arch_option.
13533         (s390_emit_prologue): Use %d format for s390_stack_size in
13534         diagnostic.  Use %wd for HOST_WIDE_INT.
13535         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13536         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13537         * config/s390/s390.opt (config/s390/s390-opts.h): New
13538         HeaderInclude entry.
13539         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13540         s390_arch_flags, s390_warn_framesize): New Variable entries.
13541         (s390_arch_option): New Enum and EnumValue entries.
13542         (march=): Use Enum instead of Var.
13543         (mstack-guard=, mstack-size=): Use UInteger and Var.
13544         (mtune=): Use Enum.
13545
13546 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13547
13548         * config/score/score.c (score_handle_option): Don't assert that
13549         global structures are in use.  Access target_flags via opts
13550         pointer.  Use value of -march= option to determine target_flags
13551         settings.
13552         * config/score/score.opt (march=): Use Enum.
13553         (score_arch): New Enum and EnumValue entries.
13554
13555 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13556
13557         * config/mep/mep.c (option_mtiny_specified): Remove.
13558         (mep_option_override): Move register handling for -mivc2 from
13559         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
13560         instead of option_mtiny_specified.
13561         (mep_handle_option): Access target_flags via opts pointer.  Don't
13562         assert that global structures are in use.  Defer part of -mivc2
13563         handling and move it to mep_option_override.
13564         * config/mep/mep.opt (IVC2): New Mask entry.
13565         (mivc2): Use Var and Defer instead of Mask.
13566
13567 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13568
13569         * config/v850/v850-opts.h: New.
13570         * config/v850/v850.c (small_memory): Replace with
13571         small_memory_physical_max array.  Make that array static const.
13572         (v850_handle_memory_option): Take integer value of argument.  Take
13573         gcc_options pointer, option text and location.  Return void.
13574         Update for changes to small memory structures.
13575         (v850_handle_option): Access target_flags via opts pointer.  Don't
13576         assert that global structures are in use.  Update calls to
13577         v850_handle_memory_option.
13578         (v850_encode_data_area): Update references to small memory settings.
13579         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13580         (enum small_memory_type): Move to v850-opts.h.
13581         * config/v850/v850.opt (config/v850/v850-opts.h): New
13582         HeaderInclude entry.
13583         (small_memory_max): New Variable entry.
13584         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
13585         (mtda, mzda): Likewise.
13586
13587 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13588
13589         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13590         pointer.  Don't assert that global structures are in use.
13591
13592 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13593
13594         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13595         via opts pointer.  Don't assert that global structures are in use.
13596
13597 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13598
13599         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13600         (munix=93): Use Var.
13601         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13602         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13603         * config/pa/pa-opts.h: New.
13604         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13605         (pa_handle_option): Don't assert that global structures are in
13606         use.  Access target_flags via opts pointer.  Don't handle
13607         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13608         OPT_munix_98 here.
13609         (pa_option_override): Handle deferred OPT_mfixed_range_.
13610
13611 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13612
13613         * config/mn10300/mn10300-opts.h: New.
13614         * config/mn10300/mn10300.c (mn10300_processor,
13615         mn10300_tune_string): Remove.
13616         (mn10300_handle_option): Don't assert that global structures are
13617         in use.  Access mn10300_processor via opts pointer.  Don't handle
13618         OPT_mtune_ here.
13619         * config/mn10300/mn10300.h (enum processor_type): Move to
13620         mn10300-opts.h.
13621         (mn10300_processor): Remove.
13622         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13623         HeaderInclude entry.
13624         (mn10300_processor): New Variable entry.
13625         (mtune=): Use Var.
13626
13627 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13628
13629         * config/microblaze/microblaze.c: Don't include opts.h.
13630         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13631         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13632         (mno-clearbss): Use Var and Warn.
13633
13634 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13635
13636         * config/m32r/m32r-opts.h: New.
13637         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13638         (m32r_handle_option): Don't assert that global structures are in
13639         use.  Access target_flags and m32r_cache_flush_func via opts
13640         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
13641         OPT_mno_flush_trap here.
13642         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13643         include of m32r-opts.h.
13644         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13645         HeaderInclude entry.
13646         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13647         (mmodel=): Use Enum and Var.
13648         (m32r_model): New Enum and EnumValue entries.
13649         (mno-flush-trap): Use Var.
13650         (msdata=): Use Enum and Var.
13651         (m32r_sdata): New Enum and EnumValue entries.
13652
13653 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13654
13655         * config/m32c/m32c.c: Don't include opts.h.
13656         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13657         m32c_handle_option): Remove.
13658         (m32c_option_override): Check global_options_set.x_target_memregs
13659         instead of target_memregs_set.
13660         * config/m32c/m32c.h (target_memregs): Remove.
13661         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13662         variable.
13663
13664 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13665
13666         * config/iq2000/iq2000-opts.h: New.
13667         * config/iq2000/iq2000.c: Don't include opts.h.
13668         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
13669         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
13670         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13671         HeaderInclude entry.
13672         (iq2000_tune): New Variable entry.
13673         (march=): Add comment.  Use Enum.
13674         (iq2000_arch): New Enum and EnumValue entries.
13675         (mcpu=): Use Enum and Var.
13676         (iq2000_tune): New Enum and EnumValue entries.
13677
13678 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13679
13680         * config/ia64/ia64-opts.h: New.
13681         * config/ia64/ia64.c (ia64_tune): Remove.
13682         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13683         here.  Use error_at.
13684         (ia64_option_override): Handle deferred OPT_mfixed_range_.
13685         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13686         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13687         HeaderInclude entry.
13688         (ia64_tune): New Variable entry.
13689         (mfixed-range=): Use Defer and Var.
13690         (mtune=): Use Enum and Var.
13691         (ia64_tune): New Enum and EnumValue entries.
13692
13693 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13694
13695         * config/frv/frv-opts.h: New.
13696         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13697         frv-opts.h.
13698         (frv_cpu_type): Remove.
13699         * config/frv/frv.c: Don't include opts.h.
13700         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13701         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13702         (frv_cpu_type): New Variable entry.
13703         (frv_cpu): New Enum and EnumValue entries.
13704
13705 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13706
13707         * config/cris/cris.c (cris_handle_option): Access target_flags via
13708         opts pointer.  Don't assert that global structures are in use.
13709         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13710         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13711
13712 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13713
13714         * config/bfin/bfin-opts.h: New.
13715         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13716         bfin_si_revision, bfin_workarounds): Remove.
13717         (bfin_cpus): Make static const.
13718         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13719         not bfin_lib_id_given.
13720         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
13721         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13722         pointer. Use error_at.  Don't assert that global structures are in use.
13723         * config/bfin/bfin.h: Include bfin-opts.h.
13724         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13725         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13726         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13727         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13728         entries.
13729
13730 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13731
13732         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13733         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13734         or -msoft-float here.
13735         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13736         -msoft-float and -mhard-float.
13737         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13738         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13739         msoft-float.
13740         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13741         -msoft-float.
13742         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13743         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13744         not mhard-float.
13745         (LIBGCC_SPEC): Don't handle -msoft-float.
13746         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13747         -mhard-float.
13748         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13749         msoft-float.
13750         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13751         -mfloat-abi=*, not -msoft-float and -mhard-float.
13752         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13753         -msoft-float.
13754         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13755         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13756         mhard-float and msoft-float.
13757         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13758         mfloat-abi=soft in comments, not mhard-float and msoft-float.
13759         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13760         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13761         mhard-float.
13762         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13763         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13764         msoft-float.
13765         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13766         not mhard-float.
13767         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13768         not msoft-float.
13769
13770 2011-03-22  Richard Henderson  <rth@redhat.com>
13771
13772         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13773         TARGET_ABI_WINDOWS_NT.
13774         (alpha_output_function_end_prologue): Likewise.
13775         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13776         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13777         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13778         (trap, *movsi_nt_vms): Likewise.
13779         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13780         (*tablejump_osf_nt_internal): Remove.
13781         * config/alpha/predicates.md (input_operand): Only test Pmode.
13782
13783 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13784
13785         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13786         via opts pointer.  Use error_at.  Don't assert that global
13787         structures are in use.
13788
13789 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13790
13791         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13792         (ix86_handle_option): Access ix86_isa_flags and
13793         ix86_isa_flags_explicit via opts pointer.  Don't assert that
13794         global structures are in use.
13795         (ix86_function_specific_save, ix86_function_specific_restore):
13796         Update ix86_isa_flags_explicit field name.
13797         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13798         (ix86_isa_flags_explicit): Rename TargetSave entry to
13799         x_ix86_isa_flags_explicit.
13800
13801 2011-03-22  Richard Henderson  <rth@redhat.com>
13802
13803         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13804         (alpha_option_override, direct_return): Likewise.
13805         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13806         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13807         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13808         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13809         (alpha_expand_epilogue, alpha_end_function): Likewise.
13810         (alpha_init_libfuncs): Likewise.
13811         (struct machine_function): Remove unicosmk members.
13812         (print_operand) ['t']: Remove.
13813         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13814         unicosmk_output_module_name, unicosmk_output_common,
13815         current_section_align, unicosmk_output_text_section_asm_op,
13816         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13817         unicosmk_section_type_flags, unicosmk_unique_section,
13818         unicosmk_asm_named_section, unicosmk_insert_attributes,
13819         unicosmk_output_align, unicosmk_defer_case_vector,
13820         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13821         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13822         unicosmk_output_ssib, unicosmk_add_call_info_word,
13823         unicosmk_extern_head, unicosmk_output_default_externs,
13824         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13825         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13826         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13827         * config/alpha/alpha-protos.h: Update.
13828         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13829         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13830         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13831         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13832         (*mulsi_se, mulvsi3): Likewise.
13833         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13834         (*divmodsi_internal, call, call_value, realign): Likewise.
13835         (moddi3, umoddi3): Likewise; remove duplicate expander.
13836         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13837         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13838         (*movdi_nofix): Remove r/U alternative.
13839         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13840         * config/alpha/constraints.md ("U"): Remove.
13841         * config/alpha/predicates.md (call_operand"): Don't test
13842         TARGET_ABI_UNICOSMK.
13843
13844 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13845
13846         * target.def (handle_option): Take gcc_options and
13847         cl_decoded_option pointers and location_t.
13848         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13849         * doc/tm.texi: Regenerate.
13850         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13851         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13852         * lto-opts.c (lto_reissue_options): Generate option structure for
13853         targetm.handle_option call.
13854         * opts.c (target_handle_option): Update call to
13855         targetm.handle_option.  Remove assertions about values now passed
13856         down to hook.
13857         * targhooks.c (default_target_handle_option): New.
13858         * targhooks.h (default_target_handle_option): Declare.
13859         * config/alpha/alpha.c: Include opts.h.
13860         (alpha_handle_option): Update to new hook interface.
13861         * config/arm/arm.c: Include opts.h.
13862         (arm_handle_option): Update to new hook interface.
13863         * config/arm/t-arm (arm.o): Update dependencies.
13864         * config/bfin/bfin.c: Include opts.h.
13865         (bfin_handle_option): Update to new hook interface.
13866         * config/cris/cris.c: Include opts.h.
13867         (cris_handle_option): Update to new hook interface.
13868         * config/frv/frv.c: Include opts.h.
13869         (frv_handle_option): Update to new hook interface.
13870         * config/i386/i386.c: Include opts.h.
13871         (ix86_handle_option): Update to new hook interface.
13872         (ix86_valid_target_attribute_inner_p): Generate option structure
13873         for call to ix86_handle_option.
13874         * config/i386/t-i386 (i386.o): Update dependencies.
13875         * config/ia64/ia64.c: Include opts.h.
13876         (ia64_handle_option): Update to new hook interface.
13877         * config/ia64/t-ia64 (ia64.o): Update dependencies.
13878         * config/iq2000/iq2000.c: Include opts.h.
13879         (iq2000_handle_option): Update to new hook interface.
13880         * config/m32c/m32c.c: Include opts.h.
13881         (m32c_handle_option): Update to new hook interface.
13882         * config/m32r/m32r.c: Include opts.h.
13883         (m32r_handle_option): Update to new hook interface.
13884         * config/m68k/m68k.c: Include opts.h.
13885         (m68k_handle_option): Update to new hook interface.
13886         * config/mep/mep.c: Include opts.h.
13887         (mep_handle_option): Update to new hook interface.
13888         * config/microblaze/microblaze.c: Include opts.h.
13889         (microblaze_handle_option): Update to new hook interface.
13890         * config/mips/mips.c: Include opts.h.
13891         (mips_handle_option): Update to new hook interface.
13892         * config/mn10300/mn10300.c: Include opts.h.
13893         (mn10300_handle_option): Update to new hook interface.
13894         * config/pa/pa.c: Include opts.h.
13895         (pa_handle_option): Update to new hook interface.
13896         * config/pdp11/pdp11.c: Include opts.h.
13897         (pdp11_handle_option): Update to new hook interface.
13898         * config/rs6000/rs6000.c: Include opts.h.
13899         (rs6000_handle_option): Update to new hook interface.
13900         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13901         * config/rx/rx.c: Include opts.h.
13902         (rx_handle_option): Update to new hook interface.
13903         * config/s390/s390.c: Include opts.h.
13904         (s390_handle_option): Update to new hook interface.
13905         * config/score/score.c: Include opts.h.
13906         (score_handle_option): Update to new hook interface.
13907         * config/sh/sh.c: Include opts.h.
13908         (sh_handle_option): Update to new hook interface.
13909         * config/sparc/sparc.c: Include opts.h.
13910         (sparc_handle_option): Update to new hook interface.
13911         * config/v850/v850.c: Include opts.h.
13912         (v850_handle_option): Update to new hook interface.
13913
13914 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13915
13916         * gcc.c (driver_unknown_option_callback): Only permit and save
13917         unknown -Wno- options.
13918         (driver_wrong_lang_callback): Save options directly instead of via
13919         driver_unknown_option_callback.
13920
13921 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
13922
13923         * combine.c (simplify_set): Try harder to find the best CC mode when
13924         simplifying a nested COMPARE on the RHS.
13925
13926 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13927
13928         * config/alpha/gnu.h: Remove.
13929         * config/arc: Remove directory.
13930         * config/arm/netbsd.h: Remove.
13931         * config/arm/t-pe: Remove.
13932         * config/crx: Remove directory.
13933         * config/i386/netbsd.h: Remove.
13934         * config/m68hc11: Remove directory.
13935         * config/m68k/uclinux-oldabi.h: Remove.
13936         * config/mcore/mcore-pe.h: Remove.
13937         * config/mcore/t-mcore-pe: Remove.
13938         * config/netbsd-aout.h: Remove.
13939         * config/rs6000/gnu.h: Remove.
13940         * config/sh/sh-symbian.h: Remove.
13941         * config/sh/symbian-base.c: Remove.
13942         * config/sh/symbian-c.c: Remove.
13943         * config/sh/symbian-cxx.c: Remove.
13944         * config/sh/symbian-post.h: Remove.
13945         * config/sh/symbian-pre.h: Remove.
13946         * config/sh/t-symbian: Remove.
13947         * config/svr3.h: Remove.
13948         * config/vax/netbsd.h: Remove.
13949         * config.build: Don't handle i[34567]86-*-pe.
13950         * config.gcc: Remove handling of deprecations for most deprecated
13951         targets.
13952         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13953         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13954         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13955         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13956         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13957         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13958         Remove cases.
13959         * config.host: Don't handle i[34567]86-*-pe.
13960         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13961         (ASM_SPEC32): Don't handle -mcall-gnu.
13962         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13963         -mcall-gnu.
13964         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13965         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13966         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13967         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13968         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13969         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13970         conditional on SYMBIAN.
13971         * configure.ac: Don't handle powerpc*-*-gnu*.
13972         * configure: Regenerate.
13973         * doc/extend.texi (interrupt attribute): Don't mention CRX.
13974         * doc/install-old.texi (m6811, m6812): Don't mention.
13975         * doc/install.texi (arc-*-elf*): Don't document multilib option.
13976         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13977         (m68k-uclinuxoldabi): Don't mention.
13978         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13979         Remove.
13980         (-mcall-gnu): Remove.
13981         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13982         families): Remove constraint documentation.
13983
13984 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
13985
13986         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13987         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13988         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13989
13990 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
13991
13992         PR target/48226
13993         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13994         vector when peeking at the next token for vector, don't expand the
13995         keywords.
13996
13997 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
13998
13999         * config/avr/avr-protos.h (expand_epilogue): Change prototype
14000         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14001         * config/avr/avr.c (init_cumulative_args)
14002         (avr_function_arg_advance): Use it.
14003         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14004         sibcall epilogues.
14005         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14006         (avr_function_ok_for_sibcall): ...this new function.
14007         (avr_lookup_function_attribute1): New static Function.
14008         (avr_naked_function_p, interrupt_function_p)
14009         (signal_function_p, avr_OS_task_function_p)
14010         (avr_OS_main_function_p): Use it.
14011         * config/avr/avr.md ("sibcall", "sibcall_value")
14012         ("sibcall_epilogue"): New expander.
14013         ("*call_insn", "*call_value_insn"): New insn.
14014         ("call_insn", "call_value_insn"): Remove
14015         ("call", "call_value", "epilogue"): Change expander to handle
14016         sibling calls.
14017
14018 2011-03-21  Nick Clifton  <nickc@redhat.com>
14019
14020         * doc/invoke.texi (Overall Options): Move closing brace to end of
14021         options list.
14022         (Optimization Options): Add missing @gol.
14023         (Directory Options): Likewise.
14024         (i386 and x86-64 Options): Likewise.
14025         (RS6000 and PowerPC Options): Likewise.
14026         (i386 and x86-64 Windows Options): Likewise.
14027         (V850 Options): Add text missing from descriptions.
14028
14029 2011-03-22  Richard Henderson  <rth@redhat.com>
14030
14031         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14032         (avr_incoming_return_addr_rtx): New.
14033         (emit_push_byte): New.
14034         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
14035         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
14036         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
14037         (emit_pop_byte): New.
14038         (expand_epilogue): Use it.  Pop frame pointer by bytes.
14039         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14040         (INCOMING_RETURN_ADDR_RTX): New.
14041         (INCOMING_FRAME_SP_OFFSET): New.
14042         (ARG_POINTER_CFA_OFFSET): New.
14043         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14044         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14045         (pophi): Remove.
14046
14047         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14048
14049 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14050
14051         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14052         (FUNCTION_ARG_ADVANCE): Likewise.
14053         * tm.texi.in: Change references to them to hook references.
14054         * tm.texi: Regenerate.
14055         * targhooks.c (default_function_arg): Eliminate check for target
14056         macro.
14057         (default_function_incoming_arg): Likewise.
14058         (default_function_arg_advance): Likewise.
14059         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14060         (function_arg_advance): Likewise.
14061         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14062
14063 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14064
14065         * tree.c (build_call_1): New function.
14066         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14067
14068 2011-03-22  Richard Guenther  <rguenther@suse.de>
14069
14070         PR tree-optimization/48228
14071         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14072         for single-arg PHIs.
14073
14074 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
14075
14076         PR rtl-optimization/48143
14077         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14078         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14079         sse2_cvtps2pd): Likewise.
14080
14081 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14082
14083         * recog.c (canonicalize_change_group): Use validate_unshare_change.
14084
14085 2011-03-22  Richard Guenther  <rguenther@suse.de>
14086
14087         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14088         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14089         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14090         and REALIGN_LOAD_EXPR.
14091         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14092         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14093         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14094         DOT_PROD_EXPR case ...
14095         (expand_expr_real_2): ... here.
14096         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14097         and REALIGN_LOAD_EXPR.
14098         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14099         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14100         (vect_create_epilog_for_reduction): Likewise.
14101         (vectorizable_reduction): Likewise.
14102         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14103         * tree-vect-stmts.c (vectorizable_load): Likewise.
14104
14105 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14106
14107         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14108
14109 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14110
14111         * config/s390/s390.c (s390_delegitimize_address): Fix offset
14112         handling for PLTOFF/GOTOFF.
14113
14114 2011-03-22  Nick Clifton  <nickc@redhat.com>
14115
14116         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14117         trailing backslash from the end of the macro definition.
14118
14119 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14120
14121         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14122         and PLT unspecs.
14123
14124 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
14125
14126         * expr.h (prepare_operand): Move to...
14127         * optabs.h (prepare_operand): ...here and change the insn code
14128         parameter from "int" to "enum insn_code".
14129         (insn_operand_matches): Declare.
14130         * expr.c (init_expr_target): Use insn_operand_matches.
14131         (compress_float_constant): Likewise.
14132         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14133         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14134         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14135         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14136         Likewise.
14137         (gen_cond_trap): Likewise.
14138         (prepare_operand): Likewise.  Change icode to an insn_code.
14139         (insn_operand_matches): New function.
14140         * reload.c (find_reloads_address_1): Use insn_operand_matches.
14141         * reload1.c (gen_reload): Likewise.
14142         * targhooks.c (default_secondary_reload): Likewise.
14143
14144 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14145
14146         * config/alpha/alpha.md (unspec): New define_c_enum.
14147         (unspecv): Ditto.
14148
14149 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14150
14151         PR debug/48214
14152         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14153         between a call and its CALL_ARG_LOCATION note.
14154
14155 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
14156
14157         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14158
14159 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14160
14161         PR c/42544
14162         PR c/48197
14163         * c-common.c (shorten_compare): If primopN is first sign-extended
14164         to opN and then zero-extended to result type, set primopN to opN.
14165
14166 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
14167
14168         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14169         for barrier handlers.
14170
14171 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14172
14173         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14174         UNSPEC constants to be in the unspec enumeration, and redefine
14175         all UNSPECV constants to be in the unspecv enumeration, so that
14176         dumps print which unspec/unspec_volatile this is.
14177         * config/rs6000/vector.md (UNSPEC_*): Ditto.
14178         * config/rs6000/paired.md (UNSPEC_*): Ditto.
14179         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14180         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14181         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14182
14183         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14184         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14185         UNSPECV_LWSYNC, since these are used as unspec_volatile.
14186         * config/rs6000/sync.md (isync, lwsync): Ditto.
14187
14188 2011-03-21  Richard Guenther  <rguenther@suse.de>
14189
14190         * params.def (lto-min-partition): Fix typo.
14191
14192 2011-03-21  Richard Guenther  <rguenther@suse.de>
14193
14194         PR c/47939
14195         * c-decl.c (grokdeclarator): Drop to the main variant only
14196         for array types.  Drop flag_gen_aux_info check.
14197
14198 2011-03-21  Richard Guenther  <rguenther@suse.de>
14199
14200         PR translation/47911
14201         * params.def (lto-partitions): Fix typo.
14202         (lto-min-partition): Fix wording.
14203
14204 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
14205
14206         * config/rs6000/t-freebsd: Remove duplication from file.
14207
14208 2011-03-21  Richard Guenther  <rguenther@suse.de>
14209
14210         PR middle-end/47661
14211         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14212
14213 2011-03-21  Richard Guenther  <rguenther@suse.de>
14214
14215         PR lto/48210
14216         * params.def (lto-partitions): Require at least 1 partition.
14217
14218 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14219
14220         * gthr-solaris.h: Remove.
14221         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14222         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14223         (LIB_SPEC): Likewise.
14224         * config/sol2.opt (threads): Remove.
14225         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14226         (sparc*-*-solaris2*): Likewise.
14227         * configure.ac (enable_threads): Enable solaris support.
14228         * configure: Regenerate.
14229         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14230         * doc/install.texi (Configuration, --enable-threads=lib): Remove
14231         solaris.
14232
14233 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14234
14235         * config.gcc: Obsolete *-*-solaris2.8*.
14236         * doc/install.texi (Specific, *-*-solaris2*): Document it.
14237
14238 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14239
14240         PR bootstrap/48135
14241         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14242         reference.  Solaris 8 perl works.
14243
14244 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14245
14246         PR bootstrap/48135
14247         * doc/install.texi (Prerequisites): Move jar etc. up.
14248         Explain support library version requirements.
14249
14250 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14251
14252         PR bootstrap/48135
14253         * doc/install.texi (Prerequisites): Move Perl to build
14254         requirements.  Always necessary on Solaris 2 with Sun ld.
14255
14256 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14257
14258         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14259         binutils 2.21.
14260         (Specific, i?86-*-solaris2.[89]): Likewise.
14261         (Specific, i?86-*-solaris2.10): Likewise.
14262         (Specific, mips-sgi-irix6): Likewise.
14263         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14264         Update for binutils 2.21.
14265
14266 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14267
14268         * configure.ac (gcc_cv_lto_plugin): Fix typo.
14269         Allow -fuse-linker-plugin for non-default plugin linker.
14270         * configure: Regenerate.
14271
14272 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14273
14274         PR bootstrap/48167
14275         * gengtype.c (files_rules): Added rule for cp/parser.h.
14276
14277 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14278
14279         PR target/48213
14280         * config/s390/s390.c (s390_delegitimize_address): Don't call
14281         lowpart_subreg if orig_x has BLKmode.
14282
14283 2011-03-21  Kai Tietz  <ktietz@redhat.com>
14284
14285         PR target/12171
14286         * doc/plugins.texi: Adjust documentation for plugin register_callback.
14287         * tree.h (attribute_spec): Add new member affects_type_identity.
14288         * attribs.c (empty_attribute_table): Adjust attribute_spec
14289         initializers.
14290         * config/alpha/alpha.c: Likewise.
14291         * config/arc/arc.c: Likewise.
14292         * config/arm/arm.c: Likewise.
14293         * config/avr/avr.c: Likewise.
14294         * config/bfin/bfin.c: Likewise.
14295         * config/crx/crx.c: Likewise.
14296         * config/darwin.h: Likewise.
14297         * config/h8300/h8300.c: Likewise.
14298         * config/i386/cygming.h: Likewise.
14299         * config/i386/i386.c: Likewise.
14300         * config/ia64/ia64.c: Likewise.
14301         * config/m32c/m32c.c: Likewise.
14302         * config/m32r/m32r.c: Likewise.
14303         * config/m68hc11/m68hc11.c: Likewise.
14304         * config/m68k/m68k.c: Likewise.
14305         * config/mcore/mcore.c: Likewise.
14306         * config/mep/mep.c: Likewise.
14307         * config/microblaze/microblaze.c: Likewise.
14308         * config/mips/mips.c: Likewise.
14309         * config/rs6000/rs6000.c: Likewise.
14310         * config/rx/rx.c: Likewise.
14311         * config/sh/sh.c: Likewise.
14312         * config/sol2.h: Likewise.
14313         * config/sparc/sparc.c: Likewise.
14314         * config/spu/spu.c: Likewise.
14315         * config/stormy16/stormy16.c: Likewise.
14316         * config/v850/v850.c: Likewise.
14317
14318 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
14319
14320         * simplify-rtx.c (simplify_binary_operation_1): Handle
14321         (xor (and A B) C) case when B and C are both constants.
14322
14323 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
14324
14325         * tree-dfa.c (add_referenced_var): Fix typo in comment.
14326
14327 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14328
14329         PR bootstrap/48168
14330         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14331
14332 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
14333
14334         PR rtl-optimization/48156
14335         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14336         assume df and df_lr are not NULL.
14337
14338 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14339
14340         PR debug/48023
14341         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14342         between a call and its CALL_ARG_LOCATION note.
14343
14344 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
14345
14346         PR debug/48178
14347         * config/sh/sh.c (find_barrier): Don't emit a constant pool
14348         between a call and its corresponding CALL_ARG_LOCATION note.
14349
14350 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
14351
14352         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14353         instead of loop. Use HARD_REGISTER_NUM_P predicate.
14354         * haifa-sched.c (setup_ref_regs): Ditto.
14355         * caller-save.c (add_used_regs_1): Ditto.
14356         * dse.c (look_for_hardregs): Ditto.
14357         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14358         * sched-rgn.c (check_live_1): Ditto.
14359
14360 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14361
14362         * c-decl.c (diagnose_mismatched_decls): Give an error for
14363         redefining a typedef with variably modified type.
14364
14365 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14366
14367         * c-decl.c (grokfield): Don't allow typedefs for structures or
14368         unions with no tag by default.
14369         * doc/extend.texi (Unnamed Fields): Update.
14370
14371 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
14372
14373         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14374         Rewrite using indirect functions.
14375         (lwp_slwpcb): Ditto.
14376         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14377         (avx_vinsertf128<mode>): Ditto.
14378
14379 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14380
14381         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14382         unspecs.
14383
14384 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14385
14386         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14387         splitting between a call and its corresponding CALL_ARG_LOCATION note.
14388
14389 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14390
14391         PR rtl-optimization/48170
14392         * gcse.c (hoist_code): Remove bogus asserts.
14393
14394 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
14395
14396         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14397         computation for prologue/epilogue.
14398
14399 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14400
14401         * Makefile.in (check-consistency): Remove.
14402
14403 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
14404
14405         PR debug/48176
14406         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14407         arange_table_in_use is 0, but either text_section_used or
14408         cold_text_section_used is true.  Don't call it if
14409         !info_section_emitted.
14410
14411 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
14412
14413         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14414         FUNCTION_VALUE_REGNO_P): Remove.
14415         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14416         Remove.
14417         * config/avr/avr.c (avr_ret_register): Make static inline.
14418         (avr_function_value_regno_p): New function.
14419         (avr_libcall_value): Make static. Add 'func' argument.
14420         (avr_function_value): Make static. Rename 'func' argument to
14421         'fn_decl_or_type', forward it to avr_libcall_value. Call
14422         avr_ret_register function instead of RET_REGISTER macro.
14423         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14424
14425 2011-03-18  Jason Merrill  <jason@redhat.com>
14426
14427         PR c++/23372
14428         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14429
14430 2011-03-18  Richard Guenther  <rguenther@suse.de>
14431
14432         * doc/install.texi (--enable-gold): Remove.
14433         (--with-plugin-ld): Document.
14434         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14435
14436 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
14437
14438         PR middle-end/47790
14439         * expr.c (optimize_bitfield_assignment_op): Revamp to work
14440         again after expansion changes.
14441
14442 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
14443
14444         * combine.c (try_combine): Do simplification only call of
14445         subst() on i2 even when i1 is present. Update comments.
14446
14447 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
14448
14449         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14450         and UNSPEC_PCREL_SYMOFF.
14451
14452 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14453
14454         * config/s390/s390.md: Use define_c_enum for the unspec constant
14455         definitions.
14456
14457 2011-03-18  Richard Henderson  <rth@redhat.com>
14458             Jakub Jelinek  <jakub@redhat.com>
14459
14460         PR bootstrap/48161
14461         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14462         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14463
14464 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14465
14466         PR middle-end/47725
14467         * combine.c (cant_combine_insn_p): Don't check zero/sign
14468         extended hard registers.
14469
14470 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14471
14472         PR middle-end/47725
14473         * combine.c (cant_combine_insn_p): Check zero/sign extended
14474         hard registers.
14475
14476 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
14477
14478         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14479         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14480         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14481         Change return type to bool.
14482         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14483
14484 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14485
14486         PR debug/48163
14487         * var-tracking.c (prepare_call_arguments): If CALL target
14488         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14489         pc instead of looking it up using cselib_lookup and use
14490         Pmode for it if x has VOIDmode.
14491         * dwarf2out.c (gen_subprogram_die): If also both first and
14492         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14493
14494         PR debug/48163
14495         * function.c (assign_parms): For data.passed_pointer parms
14496         use MEM of data.entry_parm instead of data.entry_parm itself
14497         as DECL_INCOMING_RTL.
14498         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14499         also when passed and declared mode is the same, DECL_RTL
14500         is a MEM with pseudo as address and DECL_INCOMING_RTL is
14501         a MEM too.
14502
14503 2011-03-16  Jeff Law  <law@redhat.com>
14504
14505         PR rtl-optimization/37273
14506         * ira-costs.c (scan_one_insn): Detect constants living in memory and
14507         handle them like argument loads from stack slots.  Do not double
14508         count memory for memory constants and argument loads from stack slots.
14509
14510 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14511
14512         PR debug/48160
14513         * var-tracking.c (prepare_call_arguments): Check SUBREG.
14514
14515 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14516
14517         PR target/48171
14518         * config/i386/i386.opt: Add Save to -mavx and -mfma.
14519
14520 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14521
14522         PR bootstrap/48153
14523         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14524         if dwarf_strict.
14525         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14526         Clear call_arg_locations and call_arg_loc_last always.
14527
14528         PR middle-end/48152
14529         * var-tracking.c (prepare_call_arguments): If argument needs to be
14530         passed by reference, adjust argtype and mode.
14531
14532 2011-03-17  Richard Guenther  <rguenther@suse.de>
14533
14534         PR middle-end/48134
14535         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14536         a value make sure to fold the statement.
14537
14538 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
14539
14540         PR target/43872
14541         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14542         return condition with !cfun->calls_alloca.
14543
14544 2011-03-17  Richard Guenther  <rguenther@suse.de>
14545
14546         PR bootstrap/48148
14547         * lto-cgraph.c (input_overwrite_node): Clear the abstract
14548         origin for decls in other ltrans units.
14549         (input_varpool_node): Likewise.
14550
14551 2011-03-17  Richard Guenther  <rguenther@suse.de>
14552
14553         PR middle-end/48165
14554         * tree-object-size.c (compute_object_offset): Properly return
14555         the offset operand of MEM_REFs as sizetype.
14556
14557 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14558
14559         PR rtl-optimization/48141
14560         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14561         * dse.c: Include params.h.
14562         (active_local_stores_len): New variable.
14563         (add_wild_read, dse_step1): Clear it when setting active_local_stores
14564         to NULL.
14565         (record_store, check_mem_read_rtx): Decrease it when removing
14566         from the chain.
14567         (scan_insn): Likewise.  Increase it when adding to chain, if it
14568         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14569         set active_local_stores to NULL before the addition.
14570         * Makefile.in (dse.o): Depend on $(PARAMS_H).
14571
14572         PR rtl-optimization/48141
14573         * dse.c (record_store): If no positions are needed in an insn
14574         that cannot be deleted, at least unchain it from active_local_stores.
14575
14576 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
14577
14578         PR debug/47510
14579         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14580         (lookup_type_die_strip_naming_typedef): ... here.
14581         (get_context_die): Use it.
14582         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14583         the anonymous struct named by the naming typedef.
14584
14585 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
14586
14587         PR target/48154
14588         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14589         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14590
14591 2011-03-16  Jeff Law  <law@redhat.com>
14592
14593         * tree-vrp.c (identify_jump_threads): Slightly simplify type
14594         check for operands of conditional.  Allow type to be a pointer.
14595
14596 2011-03-16  Richard Guenther  <rguenther@suse.de>
14597
14598         PR tree-optimization/48149
14599         * fold-const.c (fold_binary_loc): Fold
14600         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14601
14602 2011-03-16  Richard Guenther  <rguenther@suse.de>
14603
14604         PR tree-optimization/26134
14605         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14606         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14607         (non_rewritable_mem_ref_base): Handle complex type component
14608         accesses, constrain offsets for vector and complex extracts
14609         more properly.
14610
14611 2011-03-16  Richard Guenther  <rguenther@suse.de>
14612
14613         PR tree-optimization/48146
14614         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14615         operands avoiding the need for renaming.
14616
14617 2011-03-16  Richard Guenther  <rguenther@suse.de>
14618
14619         * gimple-fold.c (maybe_fold_reference): Open-code relevant
14620         constant folding.  Move MEM_REF canonicalization first.
14621         Rely on fold_const_aggregate_ref for initializer folding.
14622         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14623
14624 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
14625
14626         PR middle-end/48136
14627         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14628         arg0/arg1 or their arguments are always fold converted to matching
14629         types.
14630
14631         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14632         to nargs.
14633
14634 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14635
14636         PR lto/46944
14637         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14638         Handle in-tree gold.
14639         (ld_vers): Extract binutils version for gold.
14640         (gcc_cv_ld_hidden): Handle gold here.
14641         (gcc_cv_lto_plugin): Determine level of linker plugin support.
14642         * configure: Regenerate.
14643         * config.in: Regenerate.
14644         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14645         -fuse-linker-plugin otherwise.
14646         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
14647         (LINK_COMMAND_SPEC): Use it.
14648         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14649
14650 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
14651
14652         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14653         * calls.c: Remove debug.h include.
14654         (emit_call_1): Don't call virtual_call_token debug hook.
14655         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14656         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14657         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14658         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14659         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14660         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14661         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14662         dwarf2out_virtual_call): Remove.
14663         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14664         copy_call_info and virtual_call hooks.
14665         (dwarf2out_init): Don't initialize vcall_insn_table,
14666         debug_dcall_section and debug_vcall_section.
14667         (prune_unused_types): Don't mark nodes from dcall_table.
14668         (dwarf2out_finish): Don't output dcall or vcall tables.
14669         * final.c (final_scan_insn): Don't call direct_call or
14670         virtual_call debug hooks.
14671         * debug.h (struct gcc_debug_hooks): Remove direct_call,
14672         virtual_call_token, copy_call_info and virtual_call hooks.
14673         (debug_nothing_uid): Remove prototype.
14674         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14675         copy_call_info and virtual_call hooks.
14676         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14677         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14678         * debug.c (do_nothing_debug_hooks): Likewise.
14679         (debug_nothing_uid): Remove.
14680         * doc/invoke.texi (-fenable-icf-debug): Remove.
14681         * common.opt (-fenable-icf-debug): Likewise.
14682
14683         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14684         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14685         call's MEM.  Handle functions returning aggregate through a hidden
14686         first pointer.  For virtual calls add clobbered pc to call arguments
14687         chain.
14688         * dwarf2out.c (gen_subprogram_die): Emit
14689         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14690         can't be emitted.
14691
14692         PR debug/45882
14693         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14694         * rtl.h (ENTRY_VALUE_EXP): Define.
14695         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14696         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14697         * print-rtl.c (print_rtx): Likewise.
14698         * gengtype.c (adjust_field_rtx_def): Likewise.
14699         * var-tracking.c (vt_add_function_parameter): Adjust
14700         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14701         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14702         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14703         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14704         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14705
14706         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14707         Call var_location debug hook even on CALL_INSNs.
14708         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14709         * rtl.def (ENTRY_VALUE): New.
14710         * dwarf2out.c: Include cfglayout.h.
14711         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14712         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14713         (struct call_arg_loc_node): New type.
14714         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14715         tail_call_site_count): New variables.
14716         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14717         DW_TAG_GNU_call_site_parameter.
14718         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14719         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14720         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14721         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14722         and DW_AT_GNU_all_source_call_sites.
14723         (mem_loc_descriptor): Handle ENTRY_VALUE.
14724         (add_src_coords_attributes): Don't add enything if
14725         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14726         (dwarf2out_abstract_function): Save and clear call_arg_location,
14727         call_site_count and tail_call_site_count around dwarf2out_decl call.
14728         (gen_call_site_die): New function.
14729         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14730         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14731         (dwarf2out_function_decl): Clear call_arg_locations,
14732         call_arg_loc_last, set call_site_count and tail_call_site_count
14733         to -1 and free block_map.
14734         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14735         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
14736         followed by any real instructions.
14737         (dwarf2out_begin_function): Set call_site_count and
14738         tail_call_site_count to 0.
14739         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14740         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14741         attempt to force a DIE for it and worst case remove the attribute.
14742         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14743         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14744         the decl itself.
14745         * var-tracking.c: Include tm_p.h.
14746         (vt_stack_adjustments): For calls call note_register_arguments.
14747         (argument_reg_set): New variable.
14748         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14749         ensure the VALUE is resolved.
14750         (call_arguments): New variable.
14751         (prepare_call_arguments): New function.
14752         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14753         (struct expand_loc_callback_data): Add ignore_cur_loc field.
14754         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14755         always use the best expression.
14756         (vt_expand_loc): Add ignore_cur_loc argument.
14757         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14758         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14759         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14760         note for all calls.
14761         (vt_add_function_parameter): Use cselib_lookup_from_insn.
14762         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14763         argument.  Don't call cselib_preserve_only_values and
14764         cselib_reset_table.
14765         (note_register_arguments): New function.
14766         (vt_initialize): Compute argument_reg_set.  Call
14767         vt_add_function_parameters before processing basic blocks instead of
14768         afterwards.  For calls call prepare_call_arguments before calling
14769         cselib_process_insn.
14770         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14771         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14772         (var-tracking.o): Depend on $(TM_P_H).
14773         * cfglayout.h (insn_scope): New prototype.
14774         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14775         * cfglayout.c (insn_scope): No longer static.
14776         * insn-notes.def (CALL_ARG_LOCATION): New.
14777         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14778         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14779         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14780         nothing for DECL_EXTERNAL BLOCK_VARS.
14781
14782 2011-03-16  Alan Modra  <amodra@gmail.com>
14783
14784         PR target/45844
14785         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14786         create invalid offset address for vsx splat insn.
14787         * config/rs6000/predicates.md (splat_input_operand): New.
14788         * config/rs6000/vsx.md (vsx_splat_*): Use it.
14789
14790 2011-03-15  Xinliang David Li  <davidxl@google.com>
14791
14792         PR c/47837
14793         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14794         (normalize_preds): New function.
14795         (is_use_properly_guarded): Normalize def predicates.
14796
14797 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14798
14799         PR target/46788
14800         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14801         in the output template.
14802
14803 2011-03-15  Richard Guenther  <rguenther@suse.de>
14804
14805         PR middle-end/47650
14806         * tree-pretty-print.c (dump_function_declaration): Properly
14807         dump unprototyped and varargs function types.
14808
14809 2011-03-15  Richard Guenther  <rguenther@suse.de>
14810
14811         PR tree-optimization/13954
14812         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14813         and friends.
14814
14815 2011-03-15  Richard Guenther  <rguenther@suse.de>
14816
14817         PR tree-optimization/48037
14818         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14819         selects into BIT_FIELD_REFs.
14820         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14821         vector select.
14822
14823 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
14824
14825         PR tree-optimization/48129
14826         * builtins.c (fold_builtin_snprintf): Convert to type of
14827         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14828         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14829
14830 2011-03-15  Richard Guenther  <rguenther@suse.de>
14831
14832         PR tree-optimization/41490
14833         * tree-ssa-dce.c (propagate_necessity): Handle returns without
14834         value but with VUSE.
14835         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14836         return statements.
14837         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14838         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14839         * tree-tailcall.c (find_tail_calls): Ignore returns.
14840
14841 2011-03-15  Richard Guenther  <rguenther@suse.de>
14842
14843         PR middle-end/48031
14844         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14845         or variable-indexed array accesses when in gimple form.
14846
14847 2011-03-15  Richard Guenther  <rguenther@suse.de>
14848
14849         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14850
14851 2011-03-15  Alan Modra  <amodra@gmail.com>
14852
14853         PR target/48032
14854         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14855         presume symbol_refs without a symbol_ref_decl are suitably
14856         aligned, nor other trees we may see here.  Handle anchor symbols.
14857         (legitimate_constant_pool_address_p): Comment.  Add mode param.
14858         Check cmodel=medium addresses.  Adjust all calls.
14859         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14860         creating cmodel=medium optimized access to locals.
14861         * config/rs6000/constraints.md (R): Pass QImode to
14862         legitimate_constant_pool_address_p.
14863         * config/rs6000/predicates.md (input_operand): Pass mode to
14864         legitimate_constant_pool_address_p.
14865         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14866         Update prototype.
14867
14868 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14869
14870         PR target/48053
14871         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14872         64-bit constants being loaded into registers other than GPRs such
14873         as loading 0 into a VSX register.
14874
14875 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14876
14877         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14878
14879 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
14880
14881         PR middle-end/47917
14882         * builtins.c (fold_builtin_snprintf): New function.
14883         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14884         (fold_builtin_4): Likewise.
14885
14886         PR middle-end/38878
14887         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14888         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
14889         and C - X == X also strip nops from +/-/p+ operand.
14890         When optimizing -X == C, fold C to arg0's type.
14891
14892         PR debug/47946
14893         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14894         emit it as add_AT_int instead of add_AT_unsigned.
14895
14896 2011-03-14  Tom Tromey  <tromey@redhat.com>
14897
14898         * unwind-dw2.c: Include sys/sdt.h if it exists.
14899         (_Unwind_DebugHook): Use STAP_PROBE2.
14900         * config.in, configure: Rebuild.
14901         * configure.ac: Check for sys/sdt.h.
14902
14903 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
14904
14905         * config/i386/i386.md (ROUND_FLOOR): New constant.
14906         (ROUND_CEIL): Ditto.
14907         (ROUND_TRUNC): Ditto.
14908         (ROUND_MXCSR): Ditto.
14909         (ROUND_NO_EXC): Ditto.
14910         (rint<mode>2): Use new defines instead of numerical constants.
14911         (floor<mode>2): Ditto.
14912         (ceil<mode>2): Ditto.
14913         (btrunc<mode>2): Ditto.
14914         * config/i386/i386-builtin-types.def: Define ROUND function type
14915         aliases.
14916         * config/i386/i386.c (enum ix86_builtins): Add
14917         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14918         (struct builtin_description): Add
14919         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14920         (ix86_expand_sse_round): New static function.
14921         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14922         function types.
14923         (ix86_builtin_vectorized_function): Handle
14924         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14925
14926 2011-03-14  Tom Tromey  <tromey@redhat.com>
14927
14928         * c-parser.c (c_parser_asm_string_literal): Clear
14929         warn_overlength_strings.
14930
14931 2011-03-14  Tom Tromey  <tromey@redhat.com>
14932
14933         * c-parser.c (disable_extension_diagnostics): Save
14934         warn_overlength_strings.
14935         (restore_extension_diagnostics): Restore warn_overlength_strings.
14936
14937 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
14938
14939         * BASE-VER: Change to 4.7.0.
14940
14941 2011-03-14  Richard Guenther  <rguenther@suse.de>
14942
14943         PR middle-end/48098
14944         * tree.c (build_vector_from_val): Adjust assert to requirements
14945         and reality.
14946
14947 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
14948
14949         PR bootstrap/48102
14950         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
14951
14952 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
14953
14954         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
14955         terms of target_flags_explicit. Adjust copyright year.
14956
14957         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14958         * config/rs6000/t-freebsd: New file. Add override for
14959         LIB2FUNCS_EXTRA.
14960
14961 2011-03-13  Chris Demetriou  <cgd@google.com>
14962
14963         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14964         (-fno-diagnostics-show-option): this, to reflect current default.
14965         (-Werror=): Update text about -fno-diagnostics-show-option.
14966
14967 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
14968
14969         PR target/48053
14970         * config/rs6000/predicates.md (easy_vector_constant_add_self,
14971         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14972         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14973         mode is not V2DImode or V2DFmode.
14974         (vspltis_constant): Do not handle V2DImode and V2DFmode.
14975         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14976         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14977         registers to 0.
14978         (movdi_internal64): Likewise.
14979
14980 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
14981
14982         PR tree-optimization/47127
14983         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14984         parameter.
14985         (set_cloog_options): Same.
14986         (scop_to_clast): Same.
14987         (print_clast_stmt): Do not call cloog_state_malloc and
14988         cloog_state_free.
14989         (print_generated_program): Same.
14990         (gloog): Same.
14991         * graphite-clast-to-gimple.h (cloog_state): Declared.
14992         (scop_to_clast): Adjust declaration.
14993         * graphite.c (cloog_state): Defined here.
14994         (graphite_initialize): Call cloog_state_malloc.
14995         (graphite_finalize): Call cloog_state_free.
14996
14997 2011-03-11  Jason Merrill  <jason@redhat.com>
14998
14999         * attribs.c (lookup_attribute_spec): Take const_tree.
15000         * tree.h: Adjust.
15001
15002 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
15003
15004         * config/sparc/sparc.c (sparc_option_override): Use
15005         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15006
15007 2011-03-11  Richard Guenther  <rguenther@suse.de>
15008
15009         PR tree-optimization/48067
15010         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15011         multiplication result will be only used once on the target
15012         stmt.
15013
15014 2011-03-11  Richard Guenther  <rguenther@suse.de>
15015
15016         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15017
15018 2011-03-11  Richard Guenther  <rguenther@suse.de>
15019
15020         PR lto/48073
15021         * tree.c (find_decls_types_r): Do not walk types only reachable
15022         from IDENTIFIER_NODEs.
15023
15024 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15025
15026         PR middle-end/48044
15027         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15028         all vnode->force_output nodes as needed.
15029
15030 2011-03-11  Jason Merrill  <jason@redhat.com>
15031
15032         PR c++/48069
15033         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15034         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15035
15036 2011-03-11  Martin Jambor  <mjambor@suse.cz>
15037
15038         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15039         cgraph_node.
15040
15041 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15042
15043         PR tree-optimization/48063
15044         * ipa-inline.c (cgraph_decide_inlining): Don't try to
15045         inline functions called once if !tree_can_inline_p (node->callers).
15046
15047 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
15048
15049         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15050         extra_objs.
15051         * config/score/score3.c: Delete.
15052         * config/score/score3.h: Delete.
15053         * config/score/mul-div.S: Delete.
15054         * config/score/sfp-machine.h: Add new file.
15055         * config/score/constraints.md: Add new file.
15056         * config/score/t-score-softfp: Add new file.
15057         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15058         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15059         (score7_extra_constraint): Delete.
15060         (score7_option_override): Remove unused code.
15061         * config/score/score.c: Remove score3 and score5 define and code.
15062         * config/score/score.h: Remove score3 and score5 define and code.
15063         * config/score/score.md: Remove score3 template and unusual insn.
15064         * config/score/score.opt: Remove score3 and score5 options.
15065
15066 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15067
15068         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15069         when _HPUX_SOURCE is defined.
15070         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15071
15072 2011-03-10  Jason Merrill  <jason@redhat.com>
15073
15074         PR c++/48029
15075         * stor-layout.c (layout_type): Don't set structural equality
15076         on arrays of incomplete type.
15077         * tree.c (type_hash_eq): Handle comparing them properly.
15078
15079 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
15080
15081         PR debug/48043
15082         * config/s390/s390.c (s390_delegitimize_address): Make sure the
15083         result mode matches original rtl mode.
15084
15085 2011-03-10  Nick Clifton  <nickc@redhat.com>
15086
15087         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15088         (andsi3, andsi3_flags): Fix timings for three operand alternative.
15089
15090 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
15091
15092         PR rtl-optimization/47866
15093         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15094         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15095         if target wasn't scalar.
15096         * function.c (assign_stack_temp_for_type): Assert that neither
15097         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15098         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15099         macro.
15100         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15101
15102 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15103
15104         * config/s390/s390-protos.h (s390_label_align): New prototype.
15105         * config/s390/s390.c (s390_label_align): New function.
15106         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15107
15108 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
15109
15110         PR target/47755
15111         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15112         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
15113         (output_vec_const_move): Ditto.
15114
15115 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
15116
15117         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15118         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15119         * config/mips/mips.c (mips_preferred_reload_class): Make static.
15120         Change 'rclass' argument and result type to reg_class_t.
15121         (TARGET_PREFERRED_RELOAD_CLASS): Define.
15122
15123 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
15124
15125         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15126         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15127         (TARGET_MEMORY_MOVE_COST): Define.
15128         (avr_register_move_cost, avr_memory_move_cost): New Functions.
15129
15130 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
15131
15132         PR debug/47881
15133         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15134         removed anything.
15135
15136         PR tree-optimization/48022
15137         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15138         for EQ/NE_EXPR.
15139
15140 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
15141
15142         PR debug/47991
15143         * var-tracking.c (find_use_val): Return NULL for
15144         cui->sets && cui->store_p BLKmode MEMs.
15145
15146 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
15147
15148         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15149         Remove.
15150         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15151         xstormy16_print_operand_address): Remove.
15152         * config/stormy16/stormy16.c (xstormy16_print_operand,
15153         xstormy16_print_operand_address): Make static.
15154         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15155
15156 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
15157
15158         PR target/47862
15159         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15160         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15161         before definition.
15162
15163 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
15164
15165         PR bootstrap/48000
15166         * cfgloopmanip.c (fix_bb_placements): Return immediately
15167         if FROM is BASE_LOOP's header.
15168
15169 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
15170
15171         * gimplify.c (gimplify_function_tree): Fix building calls
15172         to __builtin_return_address.
15173
15174 2011-03-07  Alan Modra  <amodra@gmail.com>
15175
15176         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15177         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15178         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15179         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15180         return_mode args.
15181         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15182         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15183         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15184         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15185         * config/rs6000/rs6000.c
15186         (rs6000_elf_end_indicate_exec_stack): Rename to..
15187         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
15188         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
15189         (rs6000_file_start): ..here.
15190         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15191         file scope variables.
15192         (call_ABI_of_interest): New function.
15193         (init_cumulative_args): Set above vars when function return value
15194         is a float, vector, or small struct.
15195         (rs6000_function_arg_advance_1): Likewise for function args.
15196         (rs6000_va_start): Set rs6000_passes_float if variable arg function
15197         references float args.
15198
15199 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
15200
15201         * doc/cfg.texi: Remove "See" before @ref.
15202         * doc/invoke.texi: Likewise.
15203
15204 2011-03-05  Jason Merrill  <jason@redhat.com>
15205
15206         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15207
15208 2011-03-05  Anthony Green  <green@moxielogic.com>
15209
15210         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15211
15212 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
15213
15214         PR rtl-optimization/47899
15215         * cfgloopmanip.c (fix_bb_placements): Fix first argument
15216         to flow_loop_nested_p when moving the loop upward.
15217
15218 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
15219
15220         PR target/47719
15221         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
15222
15223 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
15224
15225         PR tree-optimization/47967
15226         * ipa-cp.c (build_const_val): Return NULL instead of creating
15227         VIEW_CONVERT_EXPR for mismatching sizes.
15228         (ipcp_create_replace_map): Return NULL if build_const_val failed.
15229         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15230         give up on versioning.
15231
15232 2011-03-05  Alan Modra  <amodra@gmail.com>
15233
15234         PR target/47986
15235         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15236         full cmodel medium/large lo_sum + high addresses.
15237
15238 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15239
15240         * config/s390/s390.c (s390_decompose_address): Reject non-literal
15241         pool references in UNSPEC_LTREL_OFFSET.
15242
15243 2011-03-04  Jan Hubicka  <jh@suse.cz>
15244
15245         PR lto/47497
15246         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15247         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15248         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15249         Add node pointers.
15250         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15251         cgraph_add_thunk): Add node pointers.
15252         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15253         associated to right node.
15254         (input_node): Update use of cgraph_same_body_alias
15255         and cgraph_add_thunk.
15256
15257 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15258
15259         * config/i386/i386.opt (mprefer-avx128): New flag.
15260         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15261         modes when the flag -mprefer-avx128 is on.
15262
15263 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
15264
15265         * dwarf2out.c (compare_loc_operands): Fix address handling.
15266
15267 2011-03-04  Alan Modra  <amodra@gmail.com>
15268
15269         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15270
15271 2011-03-04  Richard Guenther  <rguenther@suse.de>
15272
15273         PR middle-end/47968
15274         * expmed.c (extract_bit_field_1): Prefer vector modes that
15275         vec_extract patterns can handle.
15276
15277 2011-03-04  Richard Guenther  <rguenther@suse.de>
15278
15279         PR middle-end/47975
15280         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15281
15282 2011-03-04  Richard Henderson  <rth@redhat.com>
15283
15284         * explow.c (emit_stack_save): Remove 'after' parameter.
15285         (emit_stack_restore): Likewise.
15286         * expr.h: Update to match.
15287         * builtins.c, calls.c, stmt.c: Likewise.
15288         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15289         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15290         * function.c (expand_function_end): Insert the emit_stack_save
15291         sequence before parm_birth_insn instead of after.
15292
15293 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
15294
15295         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15296         (ssse3_pmaddubsw128): Ditto.
15297         (ssse3_pmaddubsw): Ditto.
15298
15299 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
15300
15301         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15302
15303 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
15304
15305         PR c/47963
15306         * gimplify.c (omp_add_variable): Only call omp_notice_variable
15307         on TYPE_SIZE_UNIT if it is a DECL.
15308
15309         PR debug/47283
15310         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15311         first operand is not is_gimple_mem_ref_addr, try to fold it.
15312         If the operand still isn't is_gimple_mem_ref_addr, clear
15313         MEM_EXPR on op0.
15314
15315 2011-03-03  Richard Guenther  <rguenther@suse.de>
15316
15317         PR middle-end/47283
15318         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15319         match comment.
15320         (refs_may_alias_p_1): For release branches return true if
15321         we are confused by our input.
15322
15323 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15324
15325         * config/s390/s390.c (s390_function_value): Rename to ...
15326         (s390_function_and_libcall_value): ... this.
15327         (s390_function_value): New function.
15328         (s390_libcall_value): New function.
15329         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15330         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15331         target macro definitions.
15332         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15333
15334 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
15335
15336         * config/i386/freebsd64.h (CC1_SPEC): Define.
15337         * config/i386/linux64.h (CC1_SPEC): Define.
15338         * config/i386/x86-64.h (CC1_SPEC): Don't define.
15339
15340 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
15341
15342         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15343         Remove.
15344         * config/stormy16/stormy16.c: Include reload.h.
15345         (xstormy16_memory_move_cost): New function.
15346         (TARGET_MEMORY_MOVE_COST): Define.
15347
15348 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
15349
15350         PR rtl-optimization/47925
15351         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15352         with side effects.  Remove the more-specific check for volatile asms.
15353
15354 2011-03-02  Alan Modra  <amodra@gmail.com>
15355
15356         PR target/47935
15357         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15358         toc relative addresses for valid offsets.
15359
15360 2011-03-01  Richard Guenther  <rguenther@suse.de>
15361
15362         PR tree-optimization/47890
15363         * tree-vect-loop.c (get_initial_def_for_induction): Set
15364         related stmt properly.
15365
15366 2011-03-01  Richard Guenther  <rguenther@suse.de>
15367
15368         PR lto/47924
15369         * lto-streamer.c (lto_record_common_node): Also register
15370         the canonical type.
15371
15372 2011-03-01  Richard Guenther  <rguenther@suse.de>
15373
15374         PR lto/46911
15375         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15376         Do not stream DECL_ABSTRACT_ORIGIN.
15377         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15378         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15379         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15380         Do not stream DECL_ABSTRACT_ORIGIN.
15381         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15382         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15383
15384 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
15385
15386         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15387         FUNCTION_VALUE_REGNO_P): Remove.
15388         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15389         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15390         Add 'outgoing' argument.
15391         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15392         function.
15393         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15394         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15395
15396 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
15397
15398         PR debug/28047
15399         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15400         (lookup_filename): Likewise.
15401         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15402
15403 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
15404             Jakub Jelinek  <jakub@redhat.com>
15405
15406         PR middle-end/47893
15407         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15408         (assign_stack_local_1): Change last argument type to int.
15409         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15410         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
15411         don't record padding space into frame_space_list nor use those areas.
15412         (assign_stack_local): Adjust caller.
15413         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15414         of assign_stack_local, pass 0 as last argument.
15415         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15416         callers.
15417
15418 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
15419
15420         PR debug/47283
15421         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15422         Use target address_mode and pointer_mode hooks instead of hardcoded
15423         Pmode and ptr_mode.  Handle some simple cases of extending if
15424         POINTERS_EXTEND_UNSIGNED < 0.
15425         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15426         Call convert_debug_memory_address.
15427         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15428         convert_debug_memory_address.
15429
15430         PR middle-end/46790
15431         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15432         * configure: Regenerated.
15433         * config.in: Regenerated.
15434         * varasm.c (default_function_section): Return NULL
15435         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15436
15437 2011-02-28  Martin Jambor  <mjambor@suse.cz>
15438
15439         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15440         the description to match the printed values.
15441
15442 2011-02-28  Richard Guenther  <rguenther@suse.de>
15443
15444         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15445         of the copied scope tree.
15446
15447 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15448
15449         * doc/extend.texi (Function Attributes): Avoid deeply (and
15450         wrongly) nested tables.
15451
15452 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
15453
15454         PR middle-end/47903
15455         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15456         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15457         r isn't op0 nor op1.
15458
15459 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15460
15461         * config/avr/avr.md: Remove magic comment for emacs.
15462
15463 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15464
15465         PR target/45261
15466         * config/avr/avr.c (avr_option_override): Use error on bad options.
15467         (avr_help): New function.
15468         (TARGET_HELP): Define.
15469
15470 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
15471
15472         PR target/42240
15473         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15474         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15475
15476 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
15477
15478         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15479         (ARM Options): Ditto.
15480         (i386 and x86-64 Options): Ditto.
15481         (RX Options): Ditto.
15482         (SPARC Options): Ditto.
15483
15484 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
15485
15486         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15487         FreeBSD 6 and later.  Generally use cpu generic.
15488
15489 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
15490
15491         * doc/cpp.texi: Update copyright years.
15492
15493 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
15494
15495         PR target/46898
15496         * config/lm32/lm32.md (ashrsi3): Added needed variable.
15497
15498 2011-02-25  Jon Beniston  <jon@beniston.com>
15499
15500         PR target/46898
15501         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15502         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15503         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15504         (lm32_block_move_inline): Add type cast to remove warning.
15505         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15506         (gen_int_relational): Move declarations to start of function.
15507
15508 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
15509
15510         PR tree-optimization/45470
15511         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15512         can throw internally only.
15513         * tree-vect-stmts.c (vectorizable_call): Likewise.
15514
15515 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
15516
15517         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15518         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15519         * config/stormy16/stormy16-protos.h
15520         (xstormy16_preferred_reload_class): Remove.
15521         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15522         static. Change 'rclass' argument and return type to reg_class_t.
15523         (TARGET_PREFERRED_RELOAD_CLASS,
15524         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15525
15526 2011-02-24  Richard Guenther  <rguenther@suse.de>
15527
15528         * lto-streamer-in.c (input_bb): Do not find referenced vars
15529         in debug statements.
15530
15531 2011-02-23  Jason Merrill  <jason@redhat.com>
15532
15533         * common.opt (fabi-version): Document v5 and v6.
15534
15535 2011-02-23  Richard Guenther  <rguenther@suse.de>
15536
15537         PR tree-optimization/47849
15538         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15539
15540 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15541
15542         * opts-common.c (decode_cmdline_option): Print empty string
15543         argument as "" in decoded->orig_option_with_args_text.
15544         * gcc.c (execute): Print empty string argument as ""
15545         in the verbose output.
15546         (do_spec_1): Keep empty string argument.
15547
15548 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
15549
15550         * config.gcc: Declare score-* and crx-* obsolete.
15551
15552 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15553
15554         PR rtl-optimization/47763
15555         * web.c (web_main): Ignore naked clobber when replacing register.
15556
15557 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
15558
15559         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15560         Remove.
15561
15562 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15563
15564         PR doc/47848
15565         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15566
15567 2011-02-22  Mike Stump  <mikestump@comcast.net>
15568
15569         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15570         assembler.
15571         * configure: Regenerate.
15572
15573 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
15574
15575         PR rtl-optimization/46002
15576         * ira-color.c (update_copy_costs): Change class intersection
15577         test to reg_class_contents[] test of 'hard_regno'.
15578
15579 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
15580
15581         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15582         than Driver option.
15583         * config/hpux11.opt (mt): Likewise.
15584         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15585         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15586         * config/vax/elf.opt (mno-asm-pic): Likewise.
15587         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15588
15589 2011-02-21  Mike Stump  <mikestump@comcast.net>
15590
15591         PR target/47822
15592         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15593         tree so we can get save the type.
15594         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15595         for CFString instead of trying to use past the end of the builtins.
15596         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15597         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15598         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15599         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15600         Rename to darwin_builtin_cfstring.
15601         (darwin_init_cfstring_builtins): Return the built type.
15602
15603 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
15604
15605         PR target/47840
15606         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15607         (_mm256_insert_epi64): Use _mm_insert_epi64.
15608
15609 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
15610
15611         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15612         * config/stormy16/stormy16-protos.h
15613         (xstormy16_mode_dependent_address_p): Remove.
15614         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15615         Make static. Change return type to bool. Change argument type to
15616         const_rtx. Remove dead code.
15617         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15618
15619 2011-02-21  Richard Guenther  <rguenther@suse.de>
15620
15621         PR lto/47820
15622         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15623         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15624         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15625         TUs context.
15626         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15627         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15628
15629 2011-02-20  Richard Guenther  <rguenther@suse.de>
15630
15631         PR lto/47822
15632         * tree.c (free_lang_data_in_decl): Clean builtins from
15633         the TU decl BLOCK_VARS.
15634
15635 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
15636
15637         PR debug/47620
15638         PR debug/47630
15639         * haifa-sched.c (fix_tick_ready): Skip tick computation
15640         for debug insns.
15641
15642 2011-02-19  Richard Guenther  <rguenther@suse.de>
15643
15644         PR lto/47647
15645         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15646         Remove lazy BLOCK_VARS streaming.
15647         (lto_input_ts_block_tree_pointers): Likewise.
15648         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15649
15650 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
15651
15652         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15653
15654 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
15655
15656         * config/i386/biarch32.h, config/i386/mach.h,
15657         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15658
15659 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
15660
15661         PR target/47800
15662         * config/i386/i386.md (peephole2 for shift and plus): Use
15663         operands[1] original mode in the first insn.
15664
15665 2011-02-18  Mike Stump  <mikestump@comcast.net>
15666
15667         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
15668
15669 2011-02-18  Jan Hubicka  <jh@suse.cz>
15670
15671         PR middle-end/47788
15672         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15673         to zero when the function is not inlinable at all.
15674
15675 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15676
15677         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15678         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15679         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15680         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15681         * config/pa/t-pa64: Likewise.
15682         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15683
15684 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
15685
15686         PR driver/47787
15687         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15688
15689 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15690
15691         PR target/47792
15692         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15693
15694 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
15695
15696         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15697         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15698         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15699         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15700         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15701         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15702         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15703         m32r_load_postinc_p, m32r_store_preinc_predec_p,
15704         m32r_legitimate_address_p): New functions.
15705         * config/m32r/constraints.md (constraint "S"): Don't use
15706         STORE_PREINC_PREDEC_P.
15707         (constraint "U"): Don't use LOAD_POSTINC_P.
15708
15709 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
15710
15711         PR rtl-optimization/46178
15712         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15713         compute ira_hard_regno_cover_class[].
15714
15715 2011-02-18  Richard Guenther  <rguenther@suse.de>
15716
15717         PR lto/47798
15718         * lto-streamer.h (lto_global_var_decls): Declare.
15719         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15720         statics for global var processing.
15721
15722 2011-02-18  Richard Guenther  <rguenther@suse.de>
15723
15724         PR tree-optimization/47737
15725         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15726         edge dominance check.
15727
15728 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
15729
15730         PR debug/47780
15731         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15732         avoid invalid rtx sharing.
15733
15734 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
15735
15736         * doc/cpp.texi (Obsolete Features): Add background on the
15737         origin of assertions.
15738
15739 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
15740
15741         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15742         objc_abi == 2.
15743         * config/darwin.c (output_objc_section_asm_op): Added support for
15744         ABI v1 and v2.
15745         (is_objc_metadata): New.
15746         (darwin_objc2_section): New.
15747         (darwin_objc1_section): New.
15748         (machopic_select_section): Added support for ABI v1 and v2.
15749         (darwin_emit_objc_zeroed): New.
15750         (darwin_output_aligned_bss): Detect objc metadata and treat it
15751         appropriately.
15752         (darwin_asm_output_aligned_decl_common): Same.
15753         (darwin_asm_output_aligned_decl_local): Same.
15754         * config/darwin-sections.def: Updated for ABI v1 and v2.
15755         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15756         compiling Objective-C code for the NeXT runtime, default to using
15757         ABI version 0 for 32-bit, and version 2 for 64-bit.
15758
15759 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15760
15761         * common.opt (optimize_fast): New Variable.
15762         * opts.c (default_options_optimization): Use opts->x_optimize_fast
15763         instead of local variable ofast.
15764
15765 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
15766
15767         * doc/invoke.texi (fobjc-abi-version): Documented.
15768         (fobjc-nilcheck): Documented.
15769         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15770         version.
15771
15772 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15773
15774         PR driver/47390
15775         * common.opt (export-dynamic): New Driver option.
15776         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15777
15778 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15779
15780         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15781
15782 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
15783             Jan Hubicka  <jh@suse.cz>
15784
15785         PR debug/47106
15786         PR debug/47402
15787         * cfgexpand.c (account_used_vars_for_block): Remove.
15788         (estimated_stack_frame_size): Use referenced vars.
15789         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15790         that were referenced in the original function.  Test src_fn
15791         rather than cfun.  Drop redundant get_var_ann.
15792         (setup_one_parameter): Drop redundant get_var_ann.
15793         (declare_return_variable): Likewise.
15794         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15795         (copy_arguments_for_versioning): Drop redundant get_var_ann.
15796         * ipa-inline.c (compute_inline_parameters): Do not compute
15797         disregard_inline_limits here.
15798         (compute_inlinable_for_current, pass_inlinable): New.
15799         (pass_inline_parameters): Require PROP_referenced_vars.
15800         * cgraphunit.c (cgraph_process_new_functions): Don't run
15801         compute_inline_parameters explicitly unless function is in SSA form.
15802         (cgraph_analyze_function): Set .disregard_inline_limits.
15803         * tree-sra.c (convert_callers): Compute inliner parameters
15804         only for functions already in SSA form.
15805
15806 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15807
15808         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15809         -mlittle-endian-data.
15810
15811 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15812
15813         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15814         -mno-fpu, not -fpu and -no-fpu.
15815         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15816         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15817
15818 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
15819
15820         PR target/43653
15821         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15822         input reload with PLUS RTX.
15823
15824 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15825
15826         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15827         of InverseVar(MDMX).
15828
15829 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15830
15831         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15832         --m4-340.
15833
15834 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15835
15836         * config/mn10300/mn10300.opt (mno-crt0): New.
15837
15838 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15839
15840         * config/m68k/uclinux.opt (static-libc): New Driver option.
15841
15842 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15843
15844         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15845
15846 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15847
15848         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15849         %{muser-extend-enabled}.
15850
15851 2011-02-16  Richard Guenther  <rguenther@suse.de>
15852
15853         PR tree-optimization/47738
15854         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15855         the TODO from tree_predictive_commoning.
15856
15857 2011-02-15  Jeff Law  <law@redhat.com>
15858
15859         Revert
15860         2011-01-25  Jeff Law  <law@redhat.com>
15861
15862         PR rtl-optimization/37273
15863         * ira-costs.c (scan_one_insn): Detect constants living in memory and
15864         handle them like argument loads from stack slots.  Do not double
15865         count memory for memory constants and argument loads from stack slots.
15866
15867 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
15868
15869         PR middle-end/47725
15870         * combine.c (cant_combine_insn_p): Revert the last change.
15871
15872 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
15873
15874         PR target/47755
15875         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15876         mode for vector constants.  Remove code that checks for TImode.
15877
15878 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15879
15880         PR debug/47106
15881         PR debug/47402
15882         * cgraph.h (compute_inline_parameters): Return void.
15883         * ipa-inline.c (compute_inline_parameters): Adjust.
15884
15885 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15886
15887         PR debug/47106
15888         PR debug/47402
15889         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15890         rather than decl.
15891         * cfgexpand.c (estimated_stack_frame_size): Likewise.
15892         * ipa-inline.c (compute_inline_parameters): Adjust.
15893
15894 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15895
15896         PR debug/47106
15897         PR debug/47402
15898         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15899         Adjust all users.  Pass FN to...
15900         * tree-flow-inline.h (first_referenced_var): ... this.  Add
15901         fn argument.
15902         * ipa-struct-reorg.c: Adjust.
15903         * tree-dfa.c: Adjust.
15904         * tree-into-ssa.c: Adjust.
15905         * tree-sra.c: Adjust.
15906         * tree-ssa-alias.c: Adjust.
15907         * tree-ssa-live.c: Adjust.
15908         * tree-ssa.c: Adjust.
15909         * tree-ssanames.c: Adjust.
15910         * tree-tailcall.c: Adjust.
15911
15912 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15913
15914         PR debug/47106
15915         PR debug/47402
15916         * tree-flow.h (referenced_var_lookup): Add fn parameter.
15917         Adjust all callers.
15918         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15919         * tree-flow-inline.h: Adjust.
15920         * gimple-pretty-print.c: Adjust.
15921         * tree-into-ssa.c: Adjust.
15922         * tree-ssa.c: Adjust.
15923         * cfgexpand.c: Adjust.
15924
15925 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
15926
15927         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15928         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15929         (EXTRA_CONSTRAINT): Delete.
15930         * config/iq2000/constraints.md: New file.
15931         * config/iq2000/iq2000.md: Include it.
15932         (define_insn ""): Delete.
15933         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15934         unsupported constraint letters from patterns.
15935         (call_value, call_value_internal1): Likewise.
15936         (call_value_multiple_internal1): Likewise.
15937
15938 2011-02-15  Nick Clifton  <nickc@redhat.com>
15939
15940         * config/mn10300/mn10300.c: Include tm-constrs.h.
15941         (struct liw_data): New data structure describing an LIW candidate
15942         instruction.
15943         (extract_bundle): Use struct liw_data.  Allow small integer
15944         operands for some instructions.
15945         (check_liw_constraints): Use struct liw_data.  Remove swapped
15946         parameter.  Add comments describing the checks.  Fix bug when
15947         assigning the source of liw1 to the source of liw2.
15948         (liw_candidate): Delete.  Code moved into extract_bundle.
15949         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
15950         before swapping.
15951         * config/mn10300/predicates.md (liw_operand): New predicate.
15952         Allows registers and small integer constants.
15953         * config/mn10300/constraints.md (O): New constraint.  Accetps
15954         integers in the range -8 to +7 inclusive.
15955         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15956         for moving a small integer into a register.  Give this alternative
15957         LIW attributes.
15958         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15959         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15960         using the J,K,L and M constraints,
15961         (liw): Remove SI mode on second operands to allow for HI and QI
15962         mode values.
15963         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
15964         instruction.
15965
15966 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
15967
15968         PR middle-end/47725
15969         * combine.c (cant_combine_insn_p): Check zero/sign extended
15970         hard registers.
15971
15972 2011-02-15  Richard Guenther  <rguenther@suse.de>
15973
15974         PR tree-optimization/47743
15975         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15976         for a non-type-compatible VN lookup bail out.
15977
15978 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
15979
15980         * config/fr30/constraints.md: New file.
15981         * config/fr30/fr30.md: Include it.
15982         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15983         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15984         (EXTRA_CONSTRAINT): Delete.
15985
15986 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
15987
15988         * config/frv/constraints.md: New file.
15989         * config/frv/predicates.md: Include it.
15990         * config/frv/frv.c (reg_class_from_letter): Delete.
15991         (frv_option_override): Don't initialize it.
15992         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15993         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15994         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15995         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15996         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15997         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15998         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15999         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16000         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16001         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16002         (REG_CLASS_FROM_CONSTRAINT): Delete.
16003
16004 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
16005
16006         PR middle-end/47581
16007         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16008         if frame size is 0 in a leaf function.
16009
16010 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16011
16012         PR pch/14940
16013         * config/alpha/host-osf.c: New file.
16014         * config/alpha/x-osf: New file.
16015         * config.host (alpha*-dec-osf*): Use it.
16016
16017 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16018
16019         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16020         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16021         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16022         (rx_mode_dependent_address_p): ...this. Make static. Change argument
16023         type to const_rtx.
16024         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16025
16026 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16027
16028         * config/stormy16/constraints.md: New file.
16029         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16030         Use satisfies_constraint_Q and satisfies_constraint_R.
16031         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16032         Delete.
16033         (xstormy16_legitiamte_address_p): Declare.
16034         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16035         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16036         (EXTRA_CONSTRAINT): Delete.
16037         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16038         Un-staticize.
16039         (xstormy16_extra_constraint_p): Delete.
16040
16041 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
16042
16043         PR tree-optimization/46494
16044         * loop-unroll.c (split_edge_and_insert): Adjust comment.
16045         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16046         (pass_rtl_loop_done): Add TODO_verify_flow.
16047         * fwprop.c (pass_rtl_fwprop): Likewise.
16048         * modulo-sched.c (pass_sms): Likewise.
16049         * tree-ssa-dom.c (pass_dominator): Likewise.
16050         * tree-ssa-loop-ch.c (pass_ch): Likewise.
16051         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16052         (pass_tree_loop_done): Likewise.
16053         * tree-ssa-pre.c (execute_pre): Likewise.
16054         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16055         * tree-ssa-sink.c (pass_sink_code): Likewise.
16056         * tree-vrp.c (pass_vrp): Likewise.
16057
16058 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16059
16060         * config/v850/constraints.md: New file.
16061         * config/v850/v850.md: Include it.
16062         * config/v850/predicates.md (reg_or_0_operand): Use
16063         satisfies_constraint_G.
16064         (special_symbolref_operand): Use satisfies_constraint_K.
16065         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16066         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16067         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16068         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16069         (EXTRA_CONSTRAINT): Delete.
16070         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16071         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16072         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16073
16074 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16075
16076         PR target/47696
16077         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16078         description.
16079
16080 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16081
16082         * config/mcore/constraints.md: New file.
16083         * config/mcore/mcore.md: Include it.
16084         * config/mcore/mcore.c (reg_class_from_letter): Delete.
16085         * config/mcore/mcore.h (reg_class_from_letter): Delete.
16086         (REG_CLASS_FROM_LETTER): Delete.
16087         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16088         insn_const_int_ok_for_constraint.
16089         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16090         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16091         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16092         (EXTRA_CONSTRAINT): Delete.
16093
16094 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16095
16096         PR ada/41929
16097         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16098         (IS_SIGHANDLER): Define.
16099         (sparc64_is_sighandler): New function, split off from
16100         sparc64_fallback_frame_state.
16101         (sparc_is_sighandler): New function, split off from
16102         sparc_fallback_frame_state.
16103         (sparc64_fallback_frame_state): Merge with ...
16104         (sparc_fallback_frame_state): ... this into ...
16105         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16106         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
16107         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
16108         stack instead of hardcoded offsets.
16109
16110 2011-02-14  Andriy Gapon  <avg@freebsd.org>
16111
16112         PR target/45808
16113         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16114
16115 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16116
16117         * configure: Regenerate.
16118
16119 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
16120
16121         PR driver/45731
16122         * gcc.c (asm_options): Correct spec matching --target-help.
16123
16124 2011-02-12  Martin Jambor  <mjambor@suse.cz>
16125
16126         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16127         to gimple call error.
16128
16129 2011-02-12  Mike Stump  <mikestump@comcast.net>
16130
16131         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16132         comments in backslash regions.
16133
16134 2011-02-12  Mike Stump  <mikestump@comcast.net>
16135             Jakub Jelinek  <jakub@redhat.com>
16136             Iain Sandoe  <iains@gcc.gnu.org>
16137
16138         PR target/47324
16139         * dwarf2out.c (output_cfa_loc): When required, apply the
16140         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16141         (output_loc_sequence): Likewise.
16142         (output_loc_operands_raw): Likewise.
16143         (output_loc_sequence_raw): Likewise.
16144         (output_cfa_loc): Likewise.
16145         (output_loc_list): Suppress register number adjustment when
16146         calling output_loc_sequence()
16147         (output_die): Likewise.
16148
16149 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
16150
16151         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16152         Remove macros.
16153         * config/xtensa/xtensa.c (xtensa_register_move_cost,
16154         xtensa_memory_move_cost): New functions.
16155         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16156
16157 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
16158
16159         PR lto/47225
16160         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16161         in the current directory.
16162         * configure: Rebuilt.
16163
16164 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16165
16166         * config/darwin.c (darwin_override_options): Add a hunk missed
16167         from the commit of r168571.  Trim comment line lengths and
16168         correct indents of the preceding block.
16169
16170 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16171
16172         * gcc.c (driver_handle_option): Concatenate the argument to -F with
16173         the switch.
16174
16175 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16176
16177         * common.opt (nostartfiles): New Driver option.
16178
16179 2011-02-11  Xinliang David Li  <davidxl@google.com>
16180
16181         PR tree-optimization/47707
16182         * tree-chrec.c (convert_affine_scev): Keep type precision.
16183
16184 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
16185
16186         PR tree-optimization/47420
16187         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16188
16189 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
16190
16191         PR rtl-optimization/47614
16192         * rtl.h (check_for_inc_dec): Declare.
16193         * dse.c (check_for_inc_dec): Externalize...
16194         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16195         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16196
16197 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16198
16199         PR driver/47678
16200         * gcc.c (main): Do not compile inputs if there were errors in
16201         option handling.
16202         * opts-common.c (read_cmdline_option): Check for wrong language
16203         after other error checks.
16204
16205 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
16206
16207         * cgraph.c: Fix comment typos.
16208         * cgraph.h: Likewise.
16209         * cgraphunit.c: Likewise.
16210         * ipa-cp.c: Likewise.
16211         * ipa-inline.c: Likewise.
16212         * ipa-prop.c: Likewise.
16213         * ipa-pure-const.c: Likewise.
16214         * ipa-ref.c: Likewise.
16215         * ipa-reference.c: Likewise.
16216
16217 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16218
16219         PR debug/47684
16220         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16221
16222 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16223
16224         PR testsuite/47400
16225         * doc/sourcebuild.texi (Require Support): Document
16226         dg-require-ascii-locale.
16227
16228 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
16229
16230         * doc/lto.texi (Write summary): Fix missing parentheses.
16231
16232 2011-02-10  DJ Delorie  <dj@redhat.com>
16233
16234         * config/m32c/m32c.c (m32c_option_override): Disable
16235         -fcombine-stack-adjustments until flag value tracking and compare
16236         optimization can be rewritten.
16237
16238 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
16239
16240         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16241         PROCESSOR_POWER7.
16242         (PROCESSOR_DEFAULT64): Likewise.
16243
16244 2011-02-10  Richard Henderson  <rth@redhat.com>
16245
16246         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16247         change from 2011-02-03.
16248         * config/rx/rx.c (flags_from_code): Likewise.
16249         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16250         is valid, n/pz otherwise.
16251         (rx_select_cc_mode): Return CCmode if Y is not zero.
16252
16253 2011-02-10  Richard Guenther  <rguenther@suse.de>
16254
16255         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16256
16257 2011-02-10  Richard Guenther  <rguenther@suse.de>
16258
16259         PR tree-optimization/47677
16260         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16261
16262 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
16263
16264         PR target/47665
16265         * combine.c (make_compound_operation): Only change shifts into
16266         multiplication for SCALAR_INT_MODE_P.
16267
16268 2011-02-10  Jie Zhang  <jie@codesourcery.com>
16269
16270         PR testsuite/47622
16271         Revert
16272         2011-02-05  Jie Zhang  <jie@codesourcery.com>
16273         PR debug/42631
16274         * web.c (entry_register): Don't clobber the number of the
16275         first uninitialized reference in used[].
16276
16277 2011-02-09  Richard Guenther  <rguenther@suse.de>
16278
16279         PR tree-optimization/47664
16280         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16281         all edges again.
16282
16283 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
16284
16285         PR target/46481
16286         PR target/47032
16287         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16288         PROCESSOR_POWER7.
16289         (PROCESSOR_DEFAULT64): Same.
16290         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16291
16292 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16293
16294         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16295
16296 2011-02-09  Martin Jambor  <mjambor@suse.cz>
16297
16298         PR middle-end/45505
16299         * tree-sra.c (struct access): New flags grp_scalar_read and
16300         grp_scalar_write.  Changed description of assignment read and write
16301         flags.
16302         (dump_access): Dump new flags, reorder all of them.
16303         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16304         to detect multiple scalar reads.
16305         (analyze_access_subtree): Use the new scalar read write flags instead
16306         of the old flags.  Adjusted comments.
16307
16308 2011-02-08  DJ Delorie  <dj@redhat.com>
16309
16310         PR target/47548
16311         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16312         patterns.
16313
16314 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16315
16316         * config/m68k/uclinux.opt: New.
16317         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16318
16319 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16320
16321         * config/cris/elf.opt (sim): New Driver option.
16322
16323 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16324
16325         * config/xtensa/elf.opt: New.
16326         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16327
16328 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16329
16330         * config/vax/elf.opt: New.
16331         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16332
16333 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16334
16335         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16336
16337 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16338
16339         * config/gnu-user.opt: New.
16340         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16341         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16342         *-*-uclinux*): Use gnu-user.opt.
16343
16344 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
16345
16346         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16347         * config/i386/gnu.h (CPP_SPEC): Likewise.
16348
16349 2011-02-08  Ian Lance Taylor  <iant@google.com>
16350
16351         * common.opt (fcx-limited-range): Add SetByCombined flag.
16352         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16353         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16354         (fassociative-math, freciprocal-math): Likewise.
16355         (funsafe-math-optimizations): Likewise.
16356         * opth-gen.awk: Handle SetByCombined.
16357         * optc-gen.awk: Likewise.
16358         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16359         (set_unsafe_math_optimizations_flags): Likewise.
16360         * doc/options.texi (Option properties): Document SetByCombined.
16361
16362 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16363
16364         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16365         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16366         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16367         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16368         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16369
16370 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
16371
16372         PR tree-optimization/46834
16373         PR tree-optimization/46994
16374         PR tree-optimization/46995
16375         * graphite-sese-to-poly.c (used_outside_reduction): New.
16376         (detect_commutative_reduction): Call used_outside_reduction.
16377         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16378         translate_scalar_reduction_to_array only when at least one
16379         loop-phi/close-phi tuple has been detected.
16380
16381 2011-02-08  Richard Guenther  <rguenther@suse.de>
16382
16383         PR middle-end/47639
16384         * tree-vect-generic.c (expand_vector_operations_1): Update
16385         stmts here ...
16386         (expand_vector_operations): ... not here.  Cleanup EH info
16387         and the CFG if required.
16388
16389 2011-02-08  Richard Guenther  <rguenther@suse.de>
16390
16391         PR tree-optimization/47641
16392         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16393         require type compatibility.
16394
16395 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16396
16397         * gimple-low.c (lower_function_body): Don't remove the location of
16398         the return statement here.
16399         (lower_gimple_return): Do it here instead but only if the return
16400         statement is actually used twice.
16401
16402 2011-02-08  Richard Guenther  <rguenther@suse.de>
16403
16404         PR tree-optimization/47632
16405         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16406         unused up_to_stmt parameter, return whether cfg-cleanup is
16407         necessary, remove EH info properly.
16408         (forward_propagate_into_gimple_cond): Adjust caller.
16409         (forward_propagate_into_cond): Likewise.
16410         (forward_propagate_comparison): Likewise.
16411         (tree_ssa_forward_propagate_single_use_vars): Make
16412         forward_propagate_comparison case similar to the two others.
16413
16414 2011-02-08  Nick Clifton  <nickc@redhat.com>
16415
16416         * config/mn10300/mn10300.opt (mliw): New command line option.
16417         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16418         (liw_bundling): New automaton.
16419         (liw): New attribute.
16420         (liw_op): New attribute.
16421         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16422         (movsi_internal): Add LIW attributes.
16423         (andsi3): Likewise.
16424         (iorsi3): Likewise.
16425         (xorsi3): Likewise.
16426         (addsi3): Separate register and immediate alternatives.
16427         Add LIW attributes.
16428         (subsi3): Likewise.
16429         (cmpsi): Likewise.
16430         (aslsi3): Likewise.
16431         (lshrsi3): Likewise.
16432         (ashrsi3): Likewise.
16433         (liw): New pattern.
16434         * config/mn10300/mn10300.c (liw_op_names): New
16435         (mn10300_print_operand): Handle 'W' operand descriptor.
16436         (extract_bundle): New function.
16437         (check_liw_constraints): New function.
16438         (liw_candidate): New function.
16439         (mn10300_bundle_liw): New function.
16440         (mn10300_reorg): New function.
16441         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16442         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16443         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16444         __LIW__ or __NO_LIW__.
16445         * doc/invoke.texi: Describe the -mliw command line option.
16446
16447 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16448
16449         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16450         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16451         pthread_mutex_unlock): Remove.
16452         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16453         * config/pa/t-pa64: Likewise.
16454         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16455         shared libc if not linking against libpthread.
16456         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16457
16458 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
16459
16460         PR target/47558
16461         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16462         on 10.6 and later to ensure that we always use the unwinder from
16463         the system.  Only add -no_compact_unwind when tarteting darwin
16464         10.6 or later.
16465
16466 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
16467
16468         PR target/46997
16469         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16470         (vec_interleave_lowv2sf): Ditto.
16471         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16472         (vec_extract_oddv2sf): Ditto.
16473
16474 2011-02-07  Mike Stump  <mikestump@comcast.net>
16475
16476         PR target/42333
16477         Add __ieee_divdc3 entry point.
16478         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16479         entry point.
16480         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16481         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16482         * config/darwin.c (darwin_rename_builtins): Add.
16483         * config/darwin-protos.h (darwin_rename_builtins): Add.
16484
16485 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
16486
16487         PR target/47636
16488         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16489         for the condition.
16490
16491 2011-02-07  Mike Stump  <mikestump@comcast.net>
16492
16493         * config/darwin.opt (mmacosx-version-min): Update default OS version.
16494
16495 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
16496
16497         PR target/47534
16498         * config/avr/libgcc.S (exit): Move .endfunc
16499
16500 2011-02-07  Richard Guenther  <rguenther@suse.de>
16501
16502         PR tree-optimization/47615
16503         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16504         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16505         (run_scc_vn): Initialize it.
16506         (visit_reference_op_load): Use it.
16507         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16508
16509 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16510
16511         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16512         DImode trapping arithmetic libfuncs.
16513
16514 2011-02-07  Richard Guenther  <rguenther@suse.de>
16515
16516         PR tree-optimization/47621
16517         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16518         two duplicates ...
16519         (execute_update_addresses_taken): ... here.  Make it more
16520         conservative in what we accept.
16521
16522 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16523
16524         * config/sparc/freebsd.h (ASM_SPEC): Define.
16525         * config/sparc/vxworks.h (ASM_SPEC): Define.
16526
16527 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16528
16529         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16530
16531 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
16532
16533         * doc/invoke.texi: Remove reference to compiler internals from
16534         user documentation.
16535
16536         * reg-notes.def: Remove REG_VALUE_PROFILE.
16537         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16538
16539 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
16540
16541         PR middle-end/47610
16542         * varasm.c (default_section_type_flags): If decl is NULL,
16543         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16544
16545 2011-02-05  Jie Zhang  <jie@codesourcery.com>
16546
16547         PR debug/42631
16548         * web.c (entry_register): Don't clobber the number of the
16549         first uninitialized reference in used[].
16550
16551 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
16552
16553         PR tree-optimization/46194
16554         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16555         (build_classic_dist_vector_1): Do not represent classic distance
16556         vectors when the access functions are variating in different loops.
16557
16558 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16559
16560         * config/mips/iris6.opt: New.
16561         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16562
16563 2011-02-04  Richard Henderson  <rth@redhat.com>
16564             Steve Ellcey  <sje@cup.hp.com>
16565
16566         PR target/46997
16567         * config/ia64/predicates.md (mux1_brcst_element): New.
16568         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16569         * config/ia64/ia64.c (ia64_unpack_assemble): New.
16570         (ia64_unpack_sign): New.
16571         (ia64_expand_unpack): Rewrite using new routines.
16572         (ia64_expand_widen_sum): Ditto.
16573         (ia64_expand_dot_prod_v8qi): Ditto.
16574         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16575         routines, add endian check.
16576         (pmpy2_even): Rename from pmpy2_r, add endian check.
16577         (pmpy2_odd): Rename from pmpy2_l, add endian check.
16578         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16579         (vec_widen_smult_hi_v4hi): Ditto.
16580         (vec_widen_umult_lo_v4hi): Ditto.
16581         (vec_widen_umult_hi_v4hi): Ditto.
16582         (mulv2si3): Change endian checks.
16583         (sdot_prodv4hi): Rewrite with new calls.
16584         (udot_prodv4hi): New.
16585         (vec_pack_ssat_v4hi): Add endian check.
16586         (vec_pack_usat_v4hi): Ditto.
16587         (vec_pack_ssat_v2si): Ditto.
16588         (max1_even): Rename from max1_r, add endian check.
16589         (max1_odd): Rename from max1_l, add endian check.
16590         (*mux1_rev): Format change.
16591         (*mux1_mix): Ditto.
16592         (*mux1_shuf): Ditto.
16593         (*mux1_alt): Ditto.
16594         (*mux1_brcst_v8qi): Use new predicate.
16595         (vec_extract_evenv8qi): Remove endian check.
16596         (vec_extract_oddv8qi): Ditto.
16597         (vec_interleave_lowv4hi): Format change.
16598         (vec_interleave_highv4hi): Ditto.
16599         (mix2_even): Rename from mix2_r, add endian check.
16600         (mix2_odd): Rename from mux2_l, add endian check.
16601         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16602         (vec_extract_evenodd_helper): Format change.
16603         (vec_extract_evenv4hi): Remove endian check.
16604         (vec_extract_oddv4hi): Remove endian check.
16605         (vec_interleave_lowv2si): Format change.
16606         (vec_interleave_highv2si): Format change.
16607         (vec_initv2si): Remove endian check.
16608         (vecinit_v2si): Add endian check.
16609         (reduc_splus_v2sf): Add endian check.
16610         (reduc_smax_v2sf): Ditto.
16611         (reduc_smin_v2sf): Ditto.
16612         (vec_initv2sf): Remove endian check.
16613         (fpack): Add endian check.
16614         (fswap): Add endian check.
16615         (vec_interleave_highv2sf): Add endian check.
16616         (vec_interleave_lowv2sf): Add endian check.
16617         (fmix_lr): Add endian check.
16618         (vec_setv2sf): Format change.
16619         (*vec_extractv2sf_0_be): Use shift to extract operand.
16620         (*vec_extractv2sf_1_be): New.
16621         (vec_pack_trunc_v4hi): Add endian check.
16622         (vec_pack_trunc_v2si): Format change.
16623
16624 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
16625
16626         PR inline-asm/23200
16627         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
16628         do bb, locus and block comparison and disallow loads if it is not set.
16629         (stmt_is_replaceable_p): New function.
16630         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16631         callers.
16632         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16633         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16634         SSA_NAME_DEF_STMT.
16635         * tree-flow.h (stmt_is_replaceable_p): New prototype.
16636
16637 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16638
16639         * config/rs6000/xilinx.opt: New.
16640         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16641
16642 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16643
16644         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16645
16646 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
16647
16648         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16649         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16650         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16651         secondary_reload_info, xtensa_secondary_reload): Remove.
16652         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16653         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16654         (xtensa_preferred_reload_class): Make static. Change return and
16655         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16656         Use CONST_DOUBLE_P predicate.
16657         (xtensa_preferred_output_reload_class): New function.
16658         (xtensa_secondary_reload): Make static.
16659
16660 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
16661
16662         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16663         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16664         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16665
16666 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
16667
16668         PR middle-end/31490
16669         * output.h (SECTION_RELRO): Define.
16670         (SECTION_MACH_DEP): Adjust.
16671         (get_variable_section): New prototype.
16672         * varpool.c (varpool_finalize_named_section_flags): New function.
16673         (varpool_assemble_pending_decls): Call it.
16674         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16675         * cgraphunit.c (cgraph_output_in_order): Call
16676         varpool_finalize_named_section_flags.
16677         * varasm.c (get_section): Allow section flags conflicts between
16678         relro and read-only sections if the section hasn't been declared yet.
16679         Set SECTION_OVERRIDE after diagnosing section type conflict.
16680         (get_variable_section): No longer static.
16681         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16682         readonly sections that need relocations.
16683         (decl_readonly_section_1): New function.
16684         (decl_readonly_section): Use it.
16685
16686         Revert:
16687         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
16688                     Steve Ellcey  <sje@cup.hp.com>
16689
16690         PR middle-end/31490
16691         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16692         if section attribute used.
16693
16694 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
16695
16696         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16697         * config/darwin.c (SECTION_NO_ANCHOR): Define.
16698         (darwin_init_sections): Remove assertion.
16699
16700 2011-02-03  Nick Clifton  <nickc@redhat.com>
16701
16702         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16703         lt and ge.
16704         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16705         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16706         instead of "n" and "pz".
16707         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16708         CC_FLAG_S.
16709
16710 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
16711
16712         PR target/47312
16713         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16714         fma, expand FMA_EXPR as fma{,f,l} call.
16715
16716         PR lto/47274
16717         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16718         copy them into a unsigned char variable and pass address of it to
16719         lto_output_data_stream.
16720
16721         PR target/47564
16722         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16723         around backend_init_target and lang_dependent_init_target calls.
16724         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16725         (verify_cgraph_node): Don't call set_cfun here.  Use
16726         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16727         Set error_found for incorrectly represented calls to thunks.
16728
16729 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
16730
16731         PR debug/43092
16732         PR rtl-optimization/43494
16733         * rtl.h (for_each_inc_dec_fn): New type.
16734         (for_each_inc_dec): Declare.
16735         * rtlanal.c (struct for_each_inc_dec_ops): New type.
16736         (for_each_inc_dec_find_inc_dec): New fn.
16737         (for_each_inc_dec_find_mem): New fn.
16738         (for_each_inc_dec): New fn.
16739         * dse.c (struct insn_size): Remove.
16740         (replace_inc_dec, replace_inc_dec_mem): Remove.
16741         (emit_inc_dec_insn_before): New fn.
16742         (check_for_inc_dec): Use it, along with for_each_inc_dec.
16743         (canon_address): Pass mem modes to cselib_lookup.
16744         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
16745         (cselib_lookup_from_insn): Likewise.
16746         (cselib_subst_to_values): Likewise.
16747         * cselib.c (find_slot_memmode): New var.
16748         (cselib_find_slot): New fn.  Use it instead of
16749         htab_find_slot_with_hash everywhere.
16750         (entry_and_rtx_equal_p): Use find_slot_memmode.
16751         (autoinc_split): New fn.
16752         (rtx_equal_for_cselib_p): Rename and implement in terms of...
16753         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
16754         Deal with autoinc.  Special-case recursion into MEMs.
16755         (cselib_hash_rtx): Likewise.
16756         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
16757         address and MEM modes.
16758         (cselib_subst_to_values): Add memmode, pass it on.
16759         Deal with autoinc.
16760         (cselib_lookup): Add memmode argument, pass it on.
16761         (cselib_lookup_from_insn): Add memmode.
16762         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16763         (struct cselib_record_autoinc_data): New.
16764         (cselib_record_autoinc_cb): New fn.
16765         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
16766         mode to cselib_lookup.  Reset autoinced REGs here instead of...
16767         (cselib_process_insn): ... here.
16768         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16769         to cselib_lookup.
16770         (add_uses): Likewise, also to cselib_subst_to_values.
16771         (add_stores): Likewise.
16772         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
16773         cselib_subst_to_values.
16774         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
16775         * gcse.c (do_local_cprop): Adjusted.
16776         * postreload.c (reload_cse_simplify_set): Adjusted.
16777         (reload_cse_simplify_operands): Adjusted.
16778         * sel-sched-dump (debug_mem_addr_value): Pass mode.
16779
16780 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
16781
16782         PR tree-optimization/45122
16783         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16784         unsafe assumptions when there's more than one loop exit.
16785
16786 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16787
16788         PR target/47272
16789         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16790         Document using vector double with the load/store builtins, and
16791         that the load/store builtins always use Altivec instructions.
16792
16793         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16794         to use altivec memory instructions, even on VSX.
16795         (vector_altivec_store_<mode>): Ditto.
16796
16797         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16798         function.
16799
16800         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16801         V2DF, V2DI support to load/store overloaded builtins.
16802
16803         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16804         altivec load/store builtins for V2DF/V2DI types.
16805
16806         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16807         set avoid indexed addresses on power6 if -maltivec.
16808         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16809         vector_altivec_load/vector_altivec_store builtins.
16810         (altivec_expand_st_builtin): Ditto.
16811         (altivec_expand_builtin): Add VSX memory builtins.
16812         (rs6000_init_builtins): Add V2DI types to internal types.
16813         (altivec_init_builtins): Add support for V2DF/V2DI altivec
16814         load/store builtins.
16815         (rs6000_address_for_altivec): Insure memory address is appropriate
16816         for Altivec.
16817
16818         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16819         vec_vsx_ld and vec_vsx_st.
16820         (vsx_store_<mode>): Ditto.
16821
16822         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16823         variables to hold long long types for VSX vector memory builtins.
16824         (RS6000_BTI_unsigned_long_long): Ditto.
16825         (long_long_integer_type_internal_node): Ditti.
16826         (long_long_unsigned_type_internal_node): Ditti.
16827
16828         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16829         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16830         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16831
16832         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16833         short cuts.
16834         (vec_vsx_st): Ditto.
16835
16836 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
16837
16838         * config/pa/pa-hpux10.opt: New.
16839         * config/hpux11.opt (pthread): New Driver option.
16840         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16841         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16842
16843 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
16844
16845         * config/ia64/vms.opt: New.
16846         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16847
16848 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
16849
16850         PR target/47580
16851         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16852         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16853         generator functions.
16854         (vsx_floatuns<VSi><mode>2): Ditto.
16855         (vsx_fix_trunc<mode><VSi>2): Ditto.
16856         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16857
16858 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
16859
16860         * config/i386/djgpp.opt (posix): New Driver option.
16861
16862 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
16863
16864         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16865         Move to the unsupported targets list.
16866
16867 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
16868
16869         PR rtl-optimization/47525
16870         * df-scan.c: Update copyright years.
16871         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16872         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16873
16874 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16875
16876         * config/i386/sysv4.h (TARGET_VERSION): Remove.
16877         (SUBTARGET_RETURN_IN_MEMORY): Remove.
16878         (ASM_OUTPUT_ASCII): Remove.
16879         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16880
16881 2011-02-02  Jeff Law  <law@redhat.com>
16882
16883         PR middle-end/47543
16884         * reload.c (find_reloads_address): Handle reg+d address where both
16885         components are invalid by reloading the entire address.
16886
16887 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
16888             Richard Guenther  <rguenther@suse.de>
16889
16890         PR tree-optimization/40979
16891         PR bootstrap/47044
16892         * passes.c (init_optimization_passes): After LIM call copy_prop
16893         and DCE to clean up.
16894         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16895
16896 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
16897
16898         PR tree-optimization/47576
16899         PR tree-optimization/47555
16900         * doc/invoke.texi (scev-max-expr-complexity): Documented.
16901         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16902         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16903         * tree-scalar-evolution.c (follow_ssa_edge): Use
16904         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16905
16906 2011-02-02  Richard Guenther  <rguenther@suse.de>
16907
16908         PR tree-optimization/47566
16909         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16910
16911 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
16912
16913         PR debug/47106
16914         PR debug/47402
16915         * tree-inline.c (declare_return_variable): Remove unused caller
16916         variable.
16917
16918         PR debug/47106
16919         PR debug/47402
16920         * tree-flow-inline.h (clear_is_used, is_used_p): New.
16921         * cfgexpand.c (account_used_vars_for_block): Use them.
16922         * tree-nrv.c (tree_nrv): Likewise.
16923         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16924         (dump_scope_block): Likewise.
16925         (remove_unused_locals): Likewise.
16926
16927         PR debug/47106
16928         PR debug/47402
16929         * tree-inline.c (declare_return_variable): Add result decl to
16930         local decls only once.
16931         * gimple-low.c (record_vars_into): Mark newly-created variables
16932         as referenced.
16933
16934 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
16935
16936         PR debug/47498
16937         PR debug/47501
16938         PR debug/45136
16939         PR debug/45130
16940         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16941         debug insns.
16942         (no_real_insns_p, schedule_block, set_priorities): Drop special
16943         treatment of boundary debug insns.
16944         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16945         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16946         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16947         (BOUNDARY_DEBUG_INSN_P): Likewise.
16948         (SCHEDULE_DEBUG_INSN_P): Likewise.
16949         * sched-rgn.c (init_ready_list): Drop special treatment of
16950         boundary debug insns.
16951         * final.c (rest_of_clean_state): Clear notes' BB.
16952
16953 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16954
16955         * config/openbsd.opt (assert=): New Driver option.
16956
16957 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16958
16959         * config/i386/nto.opt: New.
16960         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16961
16962 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16963
16964         * config/i386/netware.opt: New.
16965         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16966
16967 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16968
16969         * config/interix.opt (posix): New Driver option.
16970
16971 2011-02-01  DJ Delorie  <dj@redhat.com>
16972
16973         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16974
16975         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16976         class for A0/A1.
16977
16978 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
16979
16980         PR tree-optimization/47561
16981         * toplev.c (process_options): Print the Graphite flags.  Add
16982         flag_loop_flatten to the list of options requiring Graphite.
16983
16984 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16985
16986         * config/i386/cygming.opt (posix): New Driver option.
16987
16988 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16989
16990         * config/arm/vxworks.opt: New.
16991         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16992
16993 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
16994
16995         * config/alpha/elf.opt: New.
16996         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16997         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16998
16999 2011-02-01  Richard Guenther  <rguenther@suse.de>
17000
17001         PR tree-optimization/47559
17002         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17003         store-motion on references that can throw.
17004
17005 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
17006
17007         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17008         * tree-pass.h (TDF_CSELIB): New macro.
17009         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17010         cselib_lookup): Check for it rather than for TDF_DETAILS.
17011
17012 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
17013
17014         PR driver/47547
17015         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17016         is HOST_BIT_BUCKET.
17017
17018         * opts.c (finish_options): Don't add x_aux_base_name if it is
17019         HOST_BIT_BUCKET.
17020
17021 2011-02-01  Richard Guenther  <rguenther@suse.de>
17022
17023         PR tree-optimization/47555
17024         Revert
17025         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
17026
17027         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17028
17029 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
17030
17031         PR gcc/46692
17032         * config/lm32/t-lm32: Add multilib for all CPU options.
17033
17034 2011-02-01  Richard Guenther  <rguenther@suse.de>
17035
17036         PR tree-optimization/47541
17037         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17038         sure to have a field at offset zero.
17039
17040 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17041
17042         * config/arc/arc.opt (EB, EL): New Driver options.
17043
17044 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17045
17046         * config/alpha/osf5.opt: New.
17047         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17048
17049 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17050
17051         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17052
17053 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
17054
17055         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17056         -floop-interchange.
17057         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17058         is an alias of -floop-interchange and that it requires the
17059         Graphite infrastructure.
17060         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17061         flag_loop_interchange based on the value of flag_tree_loop_linear.
17062
17063 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
17064             Richard Guenther  <rguenther@suse.de>
17065
17066         PR tree-optimization/47538
17067         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17068         type instead of r1type, except for comparisons.  For right
17069         shifts and comparisons punt if there are mismatches in
17070         sizetype vs. non-sizetype types.
17071
17072 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17073
17074         * doc/sourcebuild.texi (Effective-Target Keywords): Document
17075         avx_runtime.
17076
17077 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17078
17079         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17080         version number.
17081         * configure: Regenerate.
17082
17083 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17084
17085         * configure.ac (gcc_cv_ld_static_option): Define.
17086         (gcc_cv_ld_dynamic_option): Define.
17087         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17088         instead.
17089         (HAVE_LD_STATIC_DYNAMIC): Update message.
17090         (LD_STATIC_OPTION): Define.
17091         (LD_DYNAMIC_OPTION): Define.
17092         * configure: Regenerate.
17093         * config.in: Regenerate.
17094         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17095         HAVE_LD_STATIC_DYNAMIC]: Use them.
17096
17097 2011-01-31  Nick Clifton  <nickc@redhat.com>
17098
17099         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17100         registers inside interrupt handlers if the handler is not a leaf
17101         function.
17102
17103 2011-01-31  Nick Clifton  <nickc@redhat.com>
17104
17105         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17106         reg_renumber returning an INVALID_REGNUM.
17107
17108 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17109
17110         PR libgcj/44341
17111         * doc/install.texi: Document host options discarded when cross
17112         configuring target libraries.
17113
17114 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17115
17116         Reverted:
17117         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17118         PR debug/45136
17119         PR debug/45130
17120         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17121         debug insns.
17122         (no_real_insns_p, schedule_block, set_priorities): Drop special
17123         treatment of boundary debug insns.
17124         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17125         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17126         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17127         (BOUNDARY_DEBUG_INSN_P): Likewise.
17128         (SCHEDULE_DEBUG_INSN_P): Likewise.
17129         * sched-rgn.c (init_ready_list): Drop special treatment of
17130         boundary debug insns.
17131         * final.c (rest_of_clean-state): Clear notes' BB.
17132
17133 2011-01-31  Alan Modra  <amodra@gmail.com>
17134
17135         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17136         toc relative expressions as we do in print_operand_address.
17137
17138 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
17139
17140         * doc/extend.texi: Follow spelling conventions.
17141         * doc/invoke.texi: Fix a typo.
17142
17143 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
17144
17145         * config/hpux11.opt: New.
17146         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17147         ia64*-*-hpux*): Use hpux11.opt.
17148
17149 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
17150
17151         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17152         to tmake_file.
17153
17154 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17155
17156         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17157         support sites.
17158
17159 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17160
17161         * doc/install.texi (Binaries): Remove outdated reference for
17162         Motorola 68HC11/68HC12 downloads.
17163
17164 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17165
17166         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17167         Drepper's paper.
17168
17169 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
17170
17171         PR bootstrap/47147
17172         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17173         used by NetBSD.
17174
17175 2011-01-28  Ahmad Sharif  <asharif@google.com>
17176
17177         * value-prof.c (check_counter): Corrected error message.
17178
17179 2011-01-29  Jie Zhang  <jie@codesourcery.com>
17180
17181         * config/arm/arm.c (arm_legitimize_reload_address): New.
17182         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17183         arm_legitimize_reload_address.
17184         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17185
17186 2011-01-28  Ian Lance Taylor  <iant@google.com>
17187
17188         * godump.c (go_define): Ignore macros whose definitions include
17189         two adjacent operands.
17190
17191 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
17192
17193         PR target/42894
17194         * varasm.c (force_const_mem): Store copy of x in desc->constant
17195         instead of x itself.
17196         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17197         itself into REG_EQUAL note.
17198
17199 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
17200
17201         * config/freebsd.opt (posix, rdynamic): New Driver options.
17202
17203 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17204
17205         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17206         -Bstatic/-Bdynamic.
17207         * configure: Regenerate.
17208
17209 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
17210
17211         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17212         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17213
17214 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
17215
17216         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17217         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17218         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17219         (s390_preferred_reload_class): Make static. Change return and
17220         'rclass' argument type to reg_class_t.
17221
17222 2011-01-27  Jan Hubicka  <jh@suse.cz>
17223
17224         PR middle-end/46949
17225         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17226         (process_function_and_variable_attributes): Check defined weakrefs.
17227
17228 2011-01-27  Martin Jambor  <mjambor@suse.cz>
17229
17230         PR tree-optimization/47228
17231         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17232         build_ref_for_offset.
17233
17234 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17235
17236         * config/spu/spu-elf.h (ASM_SPEC): Remove.
17237
17238 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
17239
17240         PR rtl-optimization/46856
17241         * postreload.c (reload_combine_recognize_const_pattern): Do not
17242         separate cc0 setter and user on cc0 targets.
17243
17244 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
17245
17246         PR c/43082
17247         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17248         passed a VOID_TYPE expression, immediately emit an error and
17249         return error_mark_node.
17250
17251 2011-01-26  Jeff Law  <law@redhat.com>
17252
17253         PR rtl-optimization/47464
17254         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17255         rather than may_trap_p as needed.
17256
17257 2011-01-26  DJ Delorie  <dj@redhat.com>
17258
17259         PR rtl-optimization/46878
17260         * combine.c (insn_a_feeds_b): Check for the implicit cc0
17261         setter/user dependency as well.
17262
17263 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
17264
17265         PR rtl-optimization/44469
17266         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17267         after removing trivially dead basic blocks.
17268
17269 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17270
17271         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17272         * config/frv/frv.h (LINK_SPEC): Likewise.
17273         * config/i386/netware.h (LINK_SPEC): Likewise.
17274         * config/m68k/linux.h (ASM_SPEC): Likewise.
17275         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17276         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17277         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17278         * config/sparc/linux.h (ASM_SPEC): Likewise.
17279         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17280         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17281
17282 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17283
17284         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17285         * config/frv/frv.h (ASM_SPEC): Likewise.
17286         * config/m68k/linux.h (ASM_SPEC): Likewise.
17287         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17288         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17289         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17290         * config/sparc/linux.h (ASM_SPEC): Likewise.
17291         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17292         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17293
17294 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17295
17296         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17297         * config/frv/frv.h (LINK_SPEC): Likewise.
17298         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17299
17300 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17301
17302         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17303         * config/frv/frv.h (ASM_SPEC): Likewise.
17304         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17305         * config/m68k/linux.h (ASM_SPEC): Likewise.
17306         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17307         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17308         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17309         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17310         * config/sparc/linux.h (ASM_SPEC): Likewise.
17311         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17312         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17313         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17314
17315 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
17316
17317         PR target/46997
17318         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17319         (*mux2): Ditto.
17320         (vec_extract_evenodd_help): Ditto.
17321         (vec_extract_evenv4hi): Ditto.
17322         (vec_extract_oddv4hi): Ditto.
17323         (vec_interleave_lowv2si): Ditto.
17324         (vec_interleave_highv2si): Ditto.
17325         (vec_extract_evenv2si): Ditto.
17326         (vec_extract_oddv2si: Ditto.
17327         (vec_pack_trunc_v2si): Ditto.
17328
17329 2011-01-22  Jan Hubicka  <jh@suse.cz>
17330
17331         PR target/47237
17332         * cgraph.h (cgraph_local_info): New field can_change_signature.
17333         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17334         signature can change.
17335         (ipcp_estimate_growth): Call sequence simplify only if calle signature
17336         can change.
17337         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17338         (cgraph_function_versioning): We can not change signature of functions
17339         that don't allow that.
17340         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17341         (lto_input_node): Likewise.
17342         * ipa-inline.c (compute_inline_parameters): Compute
17343         local.can_change_signature.
17344         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17345         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17346         functions that can not change signature.
17347         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17348         init_cumulative_args): Do not use local calling conventions
17349         for functions that can not change signature.
17350
17351 2011-01-22  Jan Hubicka  <jh@suse.cz>
17352
17353         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17354
17355 2011-01-26  Richard Guenther  <rguenther@suse.de>
17356
17357         PR tree-optimization/47190
17358         * cgraphunit.c (process_common_attributes): New function.
17359         (process_function_and_variable_attributes): Use it.
17360
17361 2011-01-26  Richard Guenther  <rguenther@suse.de>
17362
17363         PR lto/47423
17364         * cgraphbuild.c (record_eh_tables): Record reference to personality
17365         function.
17366
17367 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
17368
17369         PR debug/45454
17370         * sel-sched.c (moveup_expr): Don't let debug insns prevent
17371         non-debug insns from moving up.
17372
17373 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17374
17375         PR target/40125
17376         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17377         t-dlldir{,-x} fragment for build and add it to tmake_file.
17378         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17379         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17380         * config/i386/t-dlldir: New file.
17381         (SHLIB_DLLDIR): Define.
17382         * config/i386/t-dlldir-x: New file.
17383         (SHLIB_DLLDIR): Define.
17384         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17385         (SHLIB_INSTALL): Use it.
17386
17387 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
17388
17389         PR target/47246
17390         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17391         lower bound of the allowed Thumb-2 coprocessor load/store
17392         index range to -256. Add explaining comment.
17393
17394 2011-01-25  Ian Lance Taylor  <iant@google.com>
17395
17396         * godump.c (go_define): Improve lexing of macro expansion to only
17397         accept expressions which match Go spec.
17398
17399 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17400
17401         PR c++/43601
17402         * tree.c (handle_dll_attribute): Handle it.
17403         * doc/extend.texi (@item dllexport): Mention it.
17404         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17405
17406 2011-01-25  Ian Lance Taylor  <iant@google.com>
17407
17408         PR tree-optimization/26854
17409         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17410         (decl_jump_unsafe): Move higher in file, with no other change.
17411         (bind): Set has_jump_unsafe_decl if appropriate.
17412         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17413         (check_earlier_gotos): Likewise.
17414         (c_check_switch_jump_warnings): Likewise.
17415
17416 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
17417
17418         * doc/invoke.texi (Warning Options): Add missing hyphen.
17419         (-fprofile-dir): Minor grammatical fixes.
17420         (-fbranch-probabilities): Likewise.
17421
17422 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17423
17424         PR debug/45136
17425         PR debug/45130
17426         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17427         debug insns.
17428         (no_real_insns_p, schedule_block, set_priorities): Drop special
17429         treatment of boundary debug insns.
17430         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17431         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17432         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17433         (BOUNDARY_DEBUG_INSN_P): Likewise.
17434         (SCHEDULE_DEBUG_INSN_P): Likewise.
17435         * sched-rgn.c (init_ready_list): Drop special treatment of
17436         boundary debug insns.
17437         * final.c (rest_of_clean-state): Clear notes' BB.
17438
17439 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17440
17441         * Makefile.in (LAMBDA_H): Removed.
17442         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17443         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17444         lambda-trans.o, and tree-loop-linear.o.
17445         (lto-symtab.o): Remove dependence on LAMBDA_H.
17446         (tree-loop-linear.o): Remove rule.
17447         (lambda-mat.o): Same.
17448         (lambda-trans.o): Same.
17449         (lambda-code.o): Same.
17450         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17451         (tree-vect-slp.o): Same.
17452         * hwint.h (gcd): Moved here.
17453         (least_common_multiple): Same.
17454         * lambda-code.c: Removed.
17455         * lambda-mat.c: Removed.
17456         * lambda-trans.c: Removed.
17457         * lambda.h: Removed.
17458         * tree-loop-linear.c: Removed.
17459         * lto-symtab.c: Do not include lambda.h.
17460         * omega.c (gcd): Removed.
17461         * passes.c (init_optimization_passes): Remove pass_linear_transform.
17462         * tree-data-ref.c (print_lambda_vector): Moved here.
17463         (lambda_vector_copy): Same.
17464         (lambda_matrix_copy): Same.
17465         (lambda_matrix_id): Same.
17466         (lambda_vector_first_nz): Same.
17467         (lambda_matrix_row_add): Same.
17468         (lambda_matrix_row_exchange): Same.
17469         (lambda_vector_mult_const): Same.
17470         (lambda_vector_negate): Same.
17471         (lambda_matrix_row_negate): Same.
17472         (lambda_vector_equal): Same.
17473         (lambda_matrix_right_hermite): Same.
17474         * tree-data-ref.h: Do not include lambda.h.
17475         (lambda_vector): Moved here.
17476         (lambda_matrix): Same.
17477         (dependence_level): Same.
17478         (lambda_transform_legal_p): Removed declaration.
17479         (lambda_collect_parameters): Same.
17480         (lambda_compute_access_matrices): Same.
17481         (lambda_vector_gcd): Same.
17482         (lambda_vector_new): Same.
17483         (lambda_vector_clear): Same.
17484         (lambda_vector_lexico_pos): Same.
17485         (lambda_vector_zerop): Same.
17486         (lambda_matrix_new): Same.
17487         * tree-flow.h (least_common_multiple): Removed declaration.
17488         * tree-parloops.c (lambda_trans_matrix): Moved here.
17489         (LTM_MATRIX): Same.
17490         (LTM_ROWSIZE): Same.
17491         (LTM_COLSIZE): Same.
17492         (LTM_DENOMINATOR): Same.
17493         (lambda_trans_matrix_new): Same.
17494         (lambda_matrix_vector_mult): Same.
17495         (lambda_transform_legal_p): Same.
17496         * tree-pass.h (pass_linear_transform): Removed declaration.
17497         * tree-ssa-loop.c (tree_linear_transform): Removed.
17498         (gate_tree_linear_transform): Removed.
17499         (pass_linear_transform): Removed.
17500         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17501         flag_loop_interchange.
17502
17503 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17504
17505         PR tree-optimization/47265
17506         PR tree-optimization/47443
17507         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17508         if name still has some uses.
17509
17510 2011-01-25  Martin Jambor  <mjambor@suse.cz>
17511
17512         PR tree-optimization/47382
17513         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17514         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17515
17516 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
17517
17518         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17519         sjlj_except_unwind_info.
17520
17521 2011-01-25  Richard Guenther  <rguenther@suse.de>
17522
17523         PR tree-optimization/47426
17524         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17525         visible functions results escape.
17526
17527 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17528
17529         PR target/45701
17530         * config/arm/arm.c (any_sibcall_uses_r3): New function.
17531         (arm_get_frame_offsets): Use it.
17532
17533 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17534             Jakub Jelinek  <jakub@redhat.com>
17535
17536         PR tree-optimization/47271
17537         * tree-if-conv.c (bb_postdominates_preds): New.
17538         (if_convertible_bb_p): Call bb_postdominates_preds.
17539         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17540         (predicate_scalar_phi): Call bb_postdominates_preds.
17541
17542 2011-01-25  Nick Clifton  <nickc@redhat.com>
17543
17544         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17545         * config/rx/rx.c (rx_function_value): Likewise.
17546         (rx_promote_function_mode): Likewise.
17547         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17548         in order to make it legitimate.
17549         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17550         make sure that the first operand is the same as the result register.
17551         (addsi3_unspec): Delete.
17552         (subdi3): Do not accept immediate operands.
17553         (subdi3_internal): Likewise.
17554
17555 2011-01-25  Jeff Law  <law@redhat.com>
17556
17557         PR rtl-optimization/37273
17558         * ira-costs.c (scan_one_insn): Detect constants living in memory and
17559         handle them like argument loads from stack slots.  Do not double
17560         count memory for memory constants and argument loads from stack slots.
17561
17562 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17563
17564         PR tree-optimization/47427
17565         PR tree-optimization/47428
17566         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17567         coalesce if the new root var would be TREE_READONLY.
17568
17569 2011-01-25  Richard Guenther  <rguenther@suse.de>
17570
17571         PR middle-end/47414
17572         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17573         correct type for TBAA.
17574
17575 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17576
17577         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17578         (close_phi_written_to_memory): Call for_each_index with
17579         dr_indices_valid_in_loop.
17580
17581 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17582
17583         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17584         when it is initialized.
17585
17586 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17587
17588         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17589         call to graphite_find_data_references_in_stmt.
17590         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17591         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
17592         call to graphite_find_data_references_in_stmt.
17593         (analyze_drs_in_stmts): Same.
17594         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17595         in which the scalar analysis of indices is performed.
17596         (create_data_ref): Same.  Update call to dr_analyze_indices.
17597         (find_data_references_in_stmt): Update call to create_data_ref.
17598         (graphite_find_data_references_in_stmt): Same.
17599         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17600         declaration.
17601         (create_data_ref): Same.
17602         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17603         call to create_data_ref.
17604
17605 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17606
17607         * graphite-sese-to-poly.c (build_poly_scop): Move
17608         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17609
17610 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17611
17612         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17613         VAR_DECL, PARM_DECL, and RESULT_DECL.
17614
17615 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17616
17617         * graphite-dependences.c (reduction_dr_1): Allow several reductions
17618         in a reduction PBB.
17619         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17620         that have already been marked as PBB_IS_REDUCTION.
17621
17622 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17623
17624         * graphite-scop-detection.c (same_close_phi_node): New.
17625         (remove_duplicate_close_phi): New.
17626         (make_close_phi_nodes_unique): New.
17627         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17628
17629 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17630
17631         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17632         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17633         of both data references to be the same.
17634
17635 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17636
17637         * graphite-dependences.c (build_lexicographical_constraint): Remove
17638         the gdim parameter.
17639         (build_lexicographical_constraint): Adjust call to
17640         ppl_powerset_is_empty.
17641         (dependence_polyhedron): Same.
17642         (graphite_legal_transform_dr): Same.
17643         (graphite_carried_dependence_level_k): Same.
17644         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17645         parameter.
17646         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17647
17648 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17649
17650         * graphite-sese-to-poly.c
17651         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17652         (close_phi_written_to_memory): New.
17653         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17654         and unshare_expr.
17655
17656 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17657
17658         * doc/install.texi: Update the expected version number of PPL to 0.11.
17659         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17660         #if PPL_VERSION_MINOR < 11.
17661
17662 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17663
17664         * graphite-dependences.c: Include graphite-cloog-util.h.
17665         (new_poly_ddr): Inlined into dependence_polyhedron.
17666         (free_poly_ddr): Moved close by new_poly_ddr.
17667         (dependence_polyhedron_1): Renamed dependence_polyhedron.
17668         Early return NULL when ppl_powerset_is_empty returns true.
17669         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
17670         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
17671         (graphite_legal_transform_dr): Call new_poly_ddr.
17672         (graphite_carried_dependence_level_k): Same.
17673         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
17674         (dot_transformed_deps_stmt_1): Removed.
17675         (dot_deps_stmt_1): Call dot_deps_stmt_2.
17676         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
17677         (dot_deps_1): Call dot_deps_2.
17678         * Makefile.in (graphite-dependences.o): Add missing dependence on
17679         graphite-cloog-util.h.
17680
17681 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17682
17683         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17684         (build_lexicographical_constraint): Same.
17685         (dependence_polyhedron_1): Same.
17686         (graphite_legal_transform_dr): Same.
17687         (graphite_carried_dependence_level_k): Same.
17688         * graphite-ppl.c (ppl_powerset_is_empty): New.
17689         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17690         * tree-data-ref.c (dump_data_reference): Print the basic block index.
17691
17692 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17693
17694         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17695         the "a followed by b" relation and document it.
17696
17697 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17698
17699         * graphite-dependences.c (build_lexicographical_constraint): Stop the
17700         iteration when the bag of constraints is empty.
17701
17702 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17703
17704         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17705
17706 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17707
17708         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17709         nest and two loop depths as parameters.
17710         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17711         lst_perfect_nestify.
17712
17713 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17714
17715         * graphite-dependences.c (print_pddr): Call
17716         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17717
17718 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17719
17720         * graphite-ppl.c (debug_gmp_value): New.
17721         * graphite-ppl.h (debug_gmp_value): Declared.
17722
17723 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
17724
17725         * doc/install.texi: Document availability of cloog-0.16.
17726
17727 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
17728
17729         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17730         invalid postdominance info.
17731
17732 2011-01-24  Jan Hubicka  <jh@suse.cz>
17733
17734         PR c/21659
17735         * doc/extend.texi (weak pragma): Drop claim that it must
17736         appear before definition.
17737         * varasm.c (merge_weak, declare_weak): Only sanity check
17738         that DECL is not output at a time it is declared weak.
17739
17740 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
17741
17742         * machmode.def: Fixed comments.
17743
17744 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
17745
17746         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17747
17748 2011-01-24  Paul Koning  <ni1d@arrl.net>
17749
17750         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17751         WORDS_BIG_ENDIAN.
17752
17753 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
17754
17755         PR target/46519
17756         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17757         (block_info): Add scanned and prev.
17758         (move_or_delete_vzeroupper_2): Return if the basic block
17759         has been scanned and the upper 128bit state is unchanged
17760         from the last scan.
17761         (move_or_delete_vzeroupper_1): Return true if the exit
17762         state is changed.
17763         (move_or_delete_vzeroupper): Visit basic blocks using the
17764         work-list based algorithm based on vt_find_locations in
17765         var-tracking.c.
17766
17767         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17768
17769 2011-01-24  Nick Clifton  <nickc@redhat.com>
17770
17771         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17772         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17773         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
17774         then define __v850e1__.
17775         * doc/invoke.texi: Document -mv850es.
17776
17777 2011-01-24  Richard Henderson  <rth@redhat.com>
17778
17779         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17780         compound unordered comparisons.
17781         * config/rx/rx.c (rx_split_fp_compare): Remove.
17782         * config/rx/rx-protos.h: Update.
17783         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17784         (cbranchsf4): Don't call rx_split_fp_compare.
17785         (*cbranchsf4): Use rx_split_cbranch.
17786         (*cmpsf): Don't accept "i" constraint.
17787         (*conditional_branch): Only valid after reload.
17788         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
17789
17790 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17791
17792         PR target/47385
17793         * config/rs6000/altivec.md (vector constant splitters): Add
17794         support for creating vector single precision constants if -mvsx is
17795         used and we would create the constant using Altivec primitives.
17796
17797 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
17798             Richard Sandiford  <rdsandiford@googlemail.com>
17799
17800         PR rtl-optimization/47166
17801         * reload1.c (emit_reload_insns): Disable the spill_reg_store
17802         mechanism for PRE_MODIFY and POST_MODIFY.
17803         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17804         reloadreg.
17805
17806 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
17807
17808         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17809
17810 2011-01-22  Jan Hubicka  <jh@suse.cz>
17811
17812         PR lto/47333
17813         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17814
17815 2011-01-22  Jan Hubicka  <jh@suse.cz>
17816
17817         PR tree-optimization/43884
17818         PR lto/44334
17819         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17820         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17821
17822 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
17823
17824         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17825         * config/s390/s390.c (s390_register_move_cost,
17826         s390_memory_move_cost): New.
17827         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17828
17829 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17830
17831         PR middle-end/47401
17832         * except.c (sjlj_assign_call_site_values): Move setting the
17833         crtl->uses_eh_lsda flag to ...
17834         (sjlj_mark_call_sites): ... here.
17835         (sjlj_emit_function_enter): Support NULL dispatch label.
17836         (sjlj_build_landing_pads): In a function with no landing pads
17837         that still has must-not-throw regions, generate code to register
17838         a personality function with empty LSDA.
17839
17840 2011-01-21  Richard Henderson  <rth@redhat.com>
17841
17842         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17843
17844         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17845
17846         * compare-elim.c: New file.
17847         * Makefile.in (OBJS-common): Add it.
17848         (compare-elim.o): New.
17849         * common.opt (fcompare-elim): New.
17850         * opts.c (default_options_table): Add OPT_fcompare_elim.
17851         * tree-pass.h (pass_compare_elim_after_reload): New.
17852         * passes.c (init_optimization_passes): Add it.
17853         * recog.h: Protect against re-inclusion.
17854         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17855         * doc/invoke.texi (-fcompare-elim): Document it.
17856         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17857         * doc/tm.texi: Rebuild.
17858
17859 2011-01-22  Nick Clifton  <nickc@redhat.com>
17860
17861         * config/rx/rx.md (cstoresf4): Pass comparison operator to
17862         rx_split_fp_compare.
17863
17864 2011-01-22  Nick Clifton  <nickc@redhat.com>
17865
17866         * config/rx/rx.md (UNSPEC_CONST): New.
17867         (deallocate_and_return): Wrap the amount popped off the stack in
17868         an UNSPEC_CONST in order to stop it being rejected by
17869         -mmax-constant-size.
17870         (pop_and_return): Add a "(return)" rtx.
17871         (call): Drop the immediate operand.
17872         (call_internal): Likewise.
17873         (call_value): Likewise.
17874         (call_value_internal): Likewise.
17875         (sibcall_internal): Likewise.
17876         (sibcall_value_internal): Likewise.
17877         (sibcall): Likewise.  Generate an explicit call using
17878         sibcall_internal.
17879         (sibcall_value): Likewise.
17880         (mov<>): FAIL if a constant operand is not legitimate.
17881         (addsi3_unpsec): New pattern.
17882
17883         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17884         (ok_for_max_constant): New function.
17885         (gen_safe_add): New function.
17886         (rx_expand_prologue): Use gen_safe_add.
17887         (rx_expand_epilogue): Likewise.
17888         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
17889         UNSPEC CONSTs.
17890
17891 2011-01-21  Jeff Law  <law@redhat.com>
17892
17893         PR tree-optimization/47053
17894         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17895         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17896         statements are deleted.
17897         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
17898         is nonempty, then purge dead edges and cleanup the CFG.
17899
17900 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
17901
17902         PR debug/47402
17903         Temporarily revert:
17904         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
17905         PR debug/47106
17906         * tree-dfa.c (create_var_ann): Mark variable as used.
17907
17908 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
17909
17910         PR middle-end/45566
17911         * except.c (convert_to_eh_region_ranges): Emit queued no-region
17912         notes from other section in hot/cold partitioning even if
17913         last_action is -3.  Increment call_site_base.
17914
17915         PR rtl-optimization/47366
17916         * fwprop.c (forward_propagate_into): Return bool.  If
17917         any changes are made, -fnon-call-exceptions is used and
17918         REG_EH_REGION note is present, call purge_dead_edges
17919         and return true if it purged anything.
17920         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17921         any EH edges were purged.
17922
17923 2011-01-21  Jeff Law  <law@redhat.com>
17924
17925         PR rtl-optimization/41619
17926         * caller-save.c (setup_save_areas): Break out code to determine
17927         which hard regs are live across calls by examining the reload chains
17928         so that it is always used.
17929         Eliminate code which checked REG_N_CALLS_CROSSED.
17930
17931 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
17932
17933         PR tree-optimization/47355
17934         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17935         NOP has non-debug uses beyond PHIs in new_bb.
17936
17937 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
17938
17939         PR debug/47106
17940         * cfgexpand.c (account_used_vars_for_block): Only account vars
17941         that are annotated as used.
17942         (estimated_stack_frame_size): Don't set TREE_USED.
17943         * tree-dfa.c (create_var_ann): Mark variable as used.
17944
17945 2011-01-21  Richard Guenther  <rguenther@suse.de>
17946
17947         PR middle-end/47395
17948         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17949
17950 2011-01-21  Richard Guenther  <rguenther@suse.de>
17951
17952         PR tree-optimization/47365
17953         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17954         (vn_reference_lookup_pieces): Adjust.
17955         (vn_reference_lookup): Likewise.
17956         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17957         (vn_reference_lookup_3): Only look through kills if in
17958         VN_WALKREWRITE mode.
17959         (vn_reference_lookup_pieces): Adjust.
17960         (vn_reference_lookup): Likewise.
17961         (visit_reference_op_load): Likewise.
17962         (visit_reference_op_store): Likewise.
17963         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17964         (compute_avail): Likewise.
17965         (eliminate): Likewise.
17966
17967 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
17968
17969         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17970         DECL_IGNORED_P non-reg vars if they are used.
17971
17972         PR tree-optimization/47391
17973         * varpool.c (const_value_known_p): Return false if
17974         decl is volatile.
17975
17976 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
17977
17978         PR bootstrap/47215
17979         * config/i386/i386.c (ix86_local_alignment): Handle
17980         case for va_list_type_node is nil.
17981         (ix86_canonical_va_list_type): Likewise.
17982
17983 2011-01-21  Alan Modra  <amodra@gmail.com>
17984
17985         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17986         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17987
17988 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17989
17990         * config/arm/arm.md (define_attr type): Rename f_load
17991         and f_store to f_fpa_load and f_fpa_store. Update.
17992         (write_conflict): Deal with rename fallout.
17993         (*push_fp_multi): Likewise.
17994         * config/arm/fpa.md (f_load): Use f_fpa_load.
17995         (f_store): Use f_fpa_store.
17996         (*movsf_fpa): Likewise.
17997         (*movdf_fpa): Likewise.
17998         (*movxf_fpa): Likewise.
17999         (*thumb2_movsf_fpa): Likewise.
18000         (*thumb2_movdf_fpa): Likewise.
18001         (*thumb2_movxf_fpa): Likewise.
18002         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18003         f_loadd and f_stored.
18004         (*thumb2_movdi_vfp): Likewise.
18005         (*thumb2_movsf_vfp): Fix attribute to f_loads.
18006         (*thumb2_movsi_vfp): Likewise.
18007         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18008         Use f_loads instead of f_load.
18009         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18010
18011 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
18012
18013         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18014         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18015         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18016         (xtensa_mode_dependent_address_p): New function.
18017         (constantpool_address_p): Make static. Change return type to bool.
18018         Change argument type to const_rtx. Use CONST_INT_P predicate.
18019
18020 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
18021
18022         PR debug/46583
18023         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18024
18025 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18026
18027         PR debug/47283
18028         * cfgexpand.c (expand_debug_expr): Instead of generating
18029         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18030         etc. handling.
18031
18032 2011-01-20  Richard Guenther  <rguenther@suse.de>
18033
18034         PR middle-end/47370
18035         * tree-inline.c (remap_gimple_op_r): Recurse manually for
18036         the pointer operand of MEM_REFs.
18037
18038 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18039
18040         PR tree-optimization/46130
18041         * ipa-split.c (consider_split): If return_bb contains non-virtual
18042         PHIs other than for retval or if split_function would not adjust it,
18043         refuse to split.
18044
18045 2011-01-20  Richard Guenther  <rguenther@suse.de>
18046
18047         PR tree-optimization/47167
18048         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18049         Revert previous change, only avoid enumeral type changes.
18050
18051 2011-01-19  Mike Stump  <mikestump@comcast.net>
18052
18053         * doc/tm.texi.in (BRANCH_COST): Englishify.
18054         * doc/tm.texi (BRANCH_COST): Likewise.
18055
18056 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
18057
18058         PR c++/47291
18059         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18060         (gen_scheduled_generic_parms_dies): New functions.
18061         (gen_struct_or_union_type_die): Schedule template parameters DIEs
18062         generation for the end of CU compilation.
18063         (dwarf2out_finish): Generate template parameters DIEs here.
18064
18065 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18066
18067         PR debug/46240
18068         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18069         debug bind stmt on merge edges.
18070
18071 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18072
18073         PR debug/47079
18074         PR debug/46724
18075         * function.c (instantiate_expr): Instantiate incoming rtl of
18076         implicit arguments, and recurse on VALUE_EXPRs.
18077         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18078         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18079
18080 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18081
18082         * c-parser.c (c_parser_for_statement): Initialize
18083         collection_expression.
18084
18085 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18086
18087         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18088
18089 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18090
18091         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18092         (LINK_SHLIB_SPEC): Don't use %(link_path).
18093         (SUBTARGET_EXTRA_SPECS): Remove link_path.
18094
18095 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18096
18097         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18098         (NO_SHARED_LIB_SUPPORT): Remove.
18099         (LINK_SHLIB_SPEC): Remove one conditional definition.
18100
18101 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18102
18103         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18104         %{call_shared}.
18105         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18106         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18107         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18108         %{call_shared} and conditionals on these options not being passed.
18109         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18110         %{call_shared}.
18111
18112 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18113
18114         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18115         simplify.
18116
18117         * ipa-split.c: Spelling fixes.
18118
18119 2011-01-19  Richard Henderson  <rth@redhat.com>
18120
18121         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18122         (*mulsi3): Likewise.
18123
18124         * longlong.h [__mn10300__] (count_leading_zeros): New.
18125         [__mn10300__] (umul_ppmm, smul_ppmm): New.
18126         [__mn10300__] (add_ssaaaa, subddmmss): New.
18127         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18128         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18129
18130 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18131
18132         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18133
18134 2011-01-19  Richard Henderson  <rth@redhat.com>
18135
18136         * config/mn10300/mn10300.md (addsi3_flags): New.
18137         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18138         (subsi3_flags, subc_internal, subdi3): New.
18139         (subdi3_internal, *subdi3_degenerate): New.
18140         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18141
18142         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18143         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18144         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
18145         * config/mn10300/mn10300-protos.h: Update.
18146         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18147         (return_ret): Likewise.  Rename from return_internal_regs.
18148         (return_internal): Remove.
18149
18150         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18151         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18152         (mn10300_legitimate_constant_p): Likewise.
18153         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18154         (mn10300_frame_size): New.
18155         (mn10300_expand_prologue): Use it.
18156         (mn10300_expand_epilogue): Likewise.
18157         (mn10300_initial_offset): Likewise.
18158         * config/mn10300/mn10300-protos.h: Update.
18159         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18160         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18161         (prologue, epilogue, return_internal): Tidy output code.
18162         (mn10300_store_multiple_operation, return): Likewise.
18163         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18164         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18165         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18166         (load_pic, am33_load_pic): New.
18167         (mn10300_load_pic0, mn10300_load_pic1): New.
18168
18169         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18170         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18171         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18172         (cc_flags_for_mode, cc_flags_for_code): New.
18173         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18174         overflow flag is not valid.  Validate that the flags we need
18175         for the comparison are valid.
18176         (mn10300_output_cmp): Remove.
18177         (mn10300_output_add): New.
18178         (mn10300_select_cc_mode): Use cc_flags_for_code.
18179         (mn10300_split_cbranch): New.
18180         (mn10300_match_ccmode): New.
18181         (mn10300_split_and_operand_count): New.
18182         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18183         to the function.
18184         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18185         (addsi3): ... here.  Use mn10300_output_add.
18186         (*addsi3_flags): New.
18187         (*am33_subsi3, *mn10300_subsi3): Merge...
18188         (subsi3): ... here.  Use attribute isa.
18189         (*subsi3_flags): New.
18190         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
18191         when possible.
18192         (*am33_andsi3, *mn10300_andsi3): Merge...
18193         (andsi3): ... here.
18194         (*andsi3_flags): New.
18195         (andsi3 splitters): New.
18196         (*am33_iorsi3, *mn10300_iorsi3): Merge...
18197         (iorsi3): ... here.
18198         (*iorsi3_flags): New.
18199         (*am33_xorsi3, *mn10300_xorsi3): Merge...
18200         (xorsi3): ... here.
18201         (*xorsi3_flags): New.
18202         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18203         (one_cmplsi2): ... here.
18204         (*one_cmplsi2_flags): New.
18205         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
18206         instead of "dax" in constraints.  Use mn10300_split_cbranch.
18207         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
18208         use matching constraints to eliminate a self-comparison.
18209         (*integer_conditional_branch): Rename from integer_conditional_branch.
18210         Use int_mode_flags to match CC_REG.
18211         (*cbranchsi4_btst, *btstsi): New.
18212         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
18213         mn10300_split_cbranch.
18214         (*am33_cmpsf): Rename from am33_cmpsf.
18215         (*float_conditional_branch): Rename from float_conditional_branch.
18216         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18217         (zero_extendqisi2): ... here.
18218         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18219         (zero_extendhisi2): ... here.
18220         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18221         (extendqisi2): ... here.
18222         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18223         (extendhisi2): ... here.
18224         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18225         (ashlsi3): ... here.
18226         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18227         (lshrsi3): ... here.
18228         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18229         (ashrsi3): ... here.
18230         (consecutive add peephole): Remove.
18231         * config/mn10300/predicates.md (label_ref_operand): New.
18232         (int_mode_flags): New.
18233         (CCZN_comparison_operator): New.
18234
18235         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18236         (throughput_42_latency_43): New reservation.
18237         (mulsidi3, umulsidi3): New expanders.
18238         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
18239         the MDR register to allocation; separately allocate the low and
18240         high parts of the DImode result.
18241         (umulsidi3_internal): Similarly.
18242         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18243         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
18244         (udivsi3, umodsi3): Remove.
18245         (udivmodsi4, divmodsi4): New expanders.
18246         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
18247         (*divmodsi4): Simiarly.
18248         (ext_internal): New.
18249
18250         * config/mn10300/constraints.md ("z"): New constraint.
18251         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18252         (FIXED_REGISTERS): Don't fix MDR.
18253         (CALL_USED_REGSITERS): Reformat nicely.
18254         (REG_ALLOC_ORDER): Add MDR.
18255         (enum regclass): Add MDR_REGS.
18256         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18257         (IRA_COVER_CLASSES): Add MDR_REGS.
18258         (REGNO_REG_CLASS): Handle MDR_REG.
18259         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18260         (mn10300_register_move_cost): Likewise.
18261         * config/mn10300/mn10300.md (MDR_REG): New.
18262         (*movsi_internal): Handle moves to/from MDR_REGS.
18263
18264         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18265         POST_MODIFY.
18266         (mn10300_secondary_reload): Tidy combination reload classes.
18267         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18268         addresses for AM33.  Allow symbolic offsets for reg+imm.
18269         (mn10300_regno_in_class_p): New.
18270         (mn10300_legitimize_reload_address): New.
18271         * config/mn10300/mn10300.h (enum reg_class): Remove
18272         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18273         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
18274         SP_OR_GENERAL_REGS.
18275         (REG_CLASS_NAMES): Update to match.
18276         (REG_CLASS_CONTENTS): Likewise.
18277         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18278         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18279         (REGNO_IN_RANGE_P): Remove.
18280         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18281         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18282         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18283         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18284         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18285         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18286         (REGNO_GENERAL_P): New.
18287         (HAVE_POST_MODIFY_DISP): New.
18288         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18289         (LEGITIMIZE_RELOAD_ADDRESS): New.
18290         * config/mn10300/mn10300-protos.h: Update.
18291
18292         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18293         DATA_REGS for AM33 stack-pointer destination.
18294         (mn10300_preferred_output_reload_class): Likewise.
18295         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18296         into a form appropriate for ...
18297         (TARGET_SECONDARY_RELOAD): New.
18298         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18299         * config/mn10300/mn10300-protos.h: Update.
18300         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18301         reload_insi; use the "A" constraint for the scratch; handle AM33
18302         moves of sp to non-address registers.
18303
18304         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18305         (*movqi_internal): ... here.
18306         (*am33_movhi, *mn10300_movhi): Merge into...
18307         (*movhi_internal): ... here.
18308         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
18309         as the source/destination of moves from/to SP.
18310         (movsf): Only allow for AM33-2.
18311         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18312         any integer constant constraint.  Only allow for AM33-2.  Tidy
18313         all of the alternative outputs.
18314         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18315         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
18316         for MN103.
18317         (udivsi3, umodsi3): New patterns for MN103 only.
18318
18319 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
18320
18321         * doc/tm.texi.in: Spell out that a lack of register class unions
18322         can lead to ICEs.
18323         * doc/tm.texi: Regenerate.
18324
18325 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18326
18327         PR rtl-optimization/47337
18328         * dce.c (check_argument_store): New function.
18329         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
18330
18331         PR tree-optimization/47290
18332         * tree-eh.c (infinite_empty_loop_p): New function.
18333         (cleanup_empty_eh): Use it.
18334
18335 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
18336
18337         PR target/46997
18338         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18339         (a64_expand_widen_sum): Ditto.
18340         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18341         (vec_extract_evenodd_help): Ditto.
18342         (vec_extract_evenv4hi): Ditto.
18343         (vec_extract_oddv4hi): Ditto.
18344         (vec_extract_evenv2si): Ditto.
18345         (vec_extract_oddv2si): Ditto.
18346         (vec_extract_evenv2sf): Ditto.
18347         (vec_extract_oddv2sf): Ditto.
18348         (vec_pack_trunc_v4hi: Ditto.
18349         (vec_pack_trunc_v2si): Ditto.
18350         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18351         (vec_interleave_highv8qi): Ditto.
18352         (mix1_r): Ditto.
18353         (vec_extract_oddv8qi): Ditto.
18354         (vec_interleave_lowv4hi): Ditto.
18355         (vec_interleave_highv4hi): Ditto.
18356         (vec_interleave_lowv2si): Ditto.
18357         (vec_interleave_highv2si): Ditto.
18358
18359 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18360
18361         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18362         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18363         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
18364         (pa_c_mode_for_suffix): New.
18365         (TARGET_EXPAND_BUILTIN): Define.
18366         (TARGET_C_MODE_FOR_SUFFIX): Define.
18367         (pa_builtins): Define.
18368         (pa_init_builtins): Register __float128 type and init new support
18369         builtins.
18370         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18371         * config/pa/quadlib.c (_U_Qfcopysign): New.
18372
18373 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
18374
18375         PR middle-end/46894
18376         * explow.c (allocate_dynamic_stack_space): Do not assume more than
18377         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18378         are defined.
18379
18380 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18381
18382         PR tree-optimization/47179
18383         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18384         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18385
18386 2011-01-18  Richard Guenther  <rguenther@suse.de>
18387
18388         PR rtl-optimization/47216
18389         * emit-rtl.c: Include tree-flow.h.
18390         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18391         of replicating it with different semantics.
18392         * Makefile.in (emit-rtl.o): Adjust.
18393
18394 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18395
18396         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18397         (cortex_a9_dp): Handle neon types correctly.
18398
18399 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
18400
18401         PR rtl-optimization/47299
18402         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18403         subtarget.  Use normal multiplication if both operands are constants.
18404         * expmed.c (expand_widening_mult): Don't try to optimize constant
18405         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
18406         before using it.
18407
18408 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18409
18410         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
18411         spacing after 'e.g.', typos, comma, hyphenation.
18412
18413 2011-01-17  Richard Henderson  <rth@redhat.com>
18414
18415         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18416         (rx_restricted_mem_operand): New.
18417         (rx_shift_operand): Use register_operand.
18418         (rx_source_operand, rx_compare_operand): Likewise.
18419         * config/rx/rx.md (addsi3_flags): New expander.
18420         (adddi3): Rewrite as expander.
18421         (adc_internal, *adc_flags, adddi3_internal): New patterns.
18422         (subsi3_flags): New expander.
18423         (subdi3): Rewrite as expander.
18424         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18425
18426         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18427         (rx_init_builtins): Remove sat builtin.
18428         (rx_expand_builtin): Likewise.
18429         * config/rx/rx.md (ssaddsi3): New.
18430         (*sat): Rename from sat.  Represent the CC_REG input.
18431
18432         * config/rx/predicates.md (rshift_operator): New.
18433         * config/rx/rx.c (rx_expand_insv): Remove.
18434         * config/rx/rx-protos.h: Update.
18435         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
18436         operand to the canonical position.
18437         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18438         (*bitclr, *bitclr_in_memory): Similarly.
18439         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18440         (insv): Retain the zero_extract in the expansion.
18441
18442         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18443         (bswaphi2, bitinvert, revw): Likewise.
18444
18445         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18446         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18447         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18448         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18449         (bitset, bitset_in_memory): Likewise.
18450         (bitinvert, bitinvert_in_memory): Likewise.
18451         (bitclr, bitclr_in_memory): Likewise.
18452         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18453         (rx_strend, rx_cmpstrn): Likewise.
18454         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
18455         (bitop peep2 patterns): Remove.
18456
18457         * config/rx/rx.c (rx_match_ccmode): New.
18458         * config/rx/rx-protos.h: Update.
18459         * config/rx/rx.md (abssi2): Clobber, don't set flags.
18460         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18461         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18462         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18463         (fix_truncsfsi2, floatsisf2): Likewise.
18464         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18465         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18466         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18467         (*subsi3_flags, *xorsi3_flags): New.
18468
18469         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18470
18471         * config/rx/rx.c (rx_print_operand): Remove workaround for
18472         unsplit comparison operations.
18473
18474         * config/rx/rx.md (movsicc): Split after reload.
18475         (*movsicc): Merge *movsieq and *movsine via match_operator.
18476         (*stcc): New pattern.
18477
18478         * config/rx/rx.c (rx_float_compare_mode): Remove.
18479         * config/rx/rx.h (rx_float_compare_mode): Remove.
18480         * config/rx/rx.md (cstoresi4): Split after reload.
18481         (*sccc): New pattern.
18482
18483         * config/rx/predicates.md (label_ref_operand): New.
18484         (rx_z_comparison_operator): New.
18485         (rx_zs_comparison_operator): New.
18486         (rx_fp_comparison_operator): New.
18487         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18488         Validate that the flags are set properly for the comparison.
18489         (rx_gen_cond_branch_template): Remove.
18490         (rx_cc_modes_compatible): Remove.
18491         (mode_from_flags): New.
18492         (flags_from_code): Rename from flags_needed_for_conditional.
18493         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18494         (rx_select_cc_mode): Likewise.
18495         (rx_split_fp_compare): New.
18496         (rx_split_cbranch): New.
18497         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18498         (*cbranchsi4): Use match_operator and rx_split_cbranch.
18499         (*cbranchsf4): Similarly.
18500         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
18501         match_operator and rx_split_cbranch.
18502         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18503         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
18504         (*cmpsi): Rename from cmpsi.
18505         (*tstsi): Rename from tstsi.
18506         (*cmpsf): Rename from cmpsf; use CC_Fmode.
18507         (*conditional_branch): Rename from conditional_branch.
18508         (*reveresed_conditional_branch): Remove.
18509         (b<code>): Remove expander.
18510         * config/rx/rx-protos.h: Update.
18511
18512         * config/rx/rx.c (rx_compare_redundant): Remove.
18513         * config/rx/rx.md (cmpsi): Don't use it.
18514         * config/rx/rx-protos.h: Update.
18515
18516         * config/rx/rx-modes.def (CC_F): New mode.
18517         * config/rx/rx.c (rx_select_cc_mode): New.
18518         * config/rx/rx.h (SELECT_CC_MODE): Use it.
18519         * config/rx/rx-protos.h: Update.
18520
18521 2011-01-17  Richard Henderson  <rth@redhat.com>
18522
18523         * except.c (dump_eh_tree): Fix stray ; after for statement.
18524
18525 2011-01-17  Richard Guenther  <rguenther@suse.de>
18526
18527         PR tree-optimization/47313
18528         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18529         handling before copying the body.  Properly deal with
18530         by-reference result in SSA form.
18531
18532 2011-01-17  Ian Lance Taylor  <iant@google.com>
18533
18534         PR target/47219
18535         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18536         (struct_value_alias_set): Don't define.
18537         (sparc_option_override): Don't set sparc_sr_alias_set and
18538         struct_value_alias_set.
18539         (save_or_restore_regs): Use gen_frame_mem rather than calling
18540         set_mem_alias_set.
18541         (sparc_struct_value_rtx): Likewise.
18542
18543 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18544
18545         PR target/47318
18546         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18547         (_mm_maskstore_pd): Likewise.
18548         (_mm_maskload_ps): Likewise.
18549         (_mm_maskstore_ps): Likewise.
18550         (_mm256_maskload_pd): Change mask to __m256i.
18551         (_mm256_maskstore_pd): Likewise.
18552         (_mm256_maskload_ps): Likewise.
18553         (_mm256_maskstore_ps): Likewise.
18554
18555         * config/i386/i386-builtin-types.def: Updated.
18556         (ix86_expand_special_args_builtin): Likewise.
18557
18558         * config/i386/i386.c (bdesc_special_args): Update
18559         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18560         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18561         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18562         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18563
18564         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18565         Use <avxpermvecmode> on mask register.
18566         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18567
18568 2011-01-17  Olivier Hainque  <hainque@adacore.com>
18569             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18570             Eric Botcazou  <ebotcazou@adacore.com>
18571
18572         PR target/46655
18573         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18574         if <= USHRT_MAX in 32-bit mode.
18575
18576 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18577
18578         * doc/install.texi (Configuration, Specific): Wrap long
18579         lines in examples.  Allow line wrapping in long options
18580         and URLs where beneficial for PDF output.
18581
18582 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
18583
18584         * config/mips/mips.c (mips_classify_symbol): Don't return
18585         SYMBOL_PC_RELATIVE for nonlocal labels.
18586
18587 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
18588
18589         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18590
18591 2011-01-15  Jan Hubicka  <jh@suse.cz>
18592
18593         PR tree-optimization/47276
18594         * ipa.c (function_and_variable_visibility): Do not try to mark alias
18595         declarations as needed.
18596
18597 2011-01-15  Martin Jambor  <mjambor@suse.cz>
18598
18599         * common.opt (fdevirtualize): New flag.
18600         * doc/invoke.texi (Option Summary): Document it.
18601         * opts.c (default_options_table): Add devirtualize flag.
18602         * ipa-prop.c (detect_type_change): Return immediately if
18603         devirtualize flag is not set.
18604         (detect_type_change_ssa): Likewise.
18605         (compute_known_type_jump_func): Likewise.
18606         (ipa_analyze_virtual_call_uses): Likewise.
18607
18608 2011-01-14  Martin Jambor  <mjambor@suse.cz>
18609
18610         PR tree-optimization/45934
18611         PR tree-optimization/46302
18612         * ipa-prop.c (type_change_info): New type.
18613         (stmt_may_be_vtbl_ptr_store): New function.
18614         (check_stmt_for_type_change): Likewise.
18615         (detect_type_change): Likewise.
18616         (detect_type_change_ssa): Likewise.
18617         (compute_complex_assign_jump_func): Check for dynamic type change.
18618         (compute_complex_ancestor_jump_func): Likewise.
18619         (compute_known_type_jump_func): Likewise.
18620         (compute_scalar_jump_functions): Likewise.
18621         (ipa_analyze_virtual_call_uses): Likewise.
18622         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18623
18624 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18625
18626         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18627         * config/i386/i386.opt (msse5): New Alias.
18628
18629 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18630
18631         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18632         * config/sparc/linux64.h (CC1_SPEC): Likewise.
18633         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18634         * config/sparc/sparc.h (CC1_SPEC): Likewise.
18635
18636 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18637
18638         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18639         -mcpu options.
18640         * config/sparc/linux64.h (CC1_SPEC): Likewise.
18641         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18642         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18643         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18644         Likewise.
18645         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18646
18647 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18648
18649         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18650
18651 2011-01-14  Mike Stump  <mikestump@comcast.net>
18652
18653         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18654         * config/fr30/fr30.md: Likweise
18655         (movsi_push): Likewise.
18656         (movsi_pop): Likewise.
18657         (enter_func): Likewise.
18658         * config/moxie/moxie.md (movsi_push): Likewise.
18659         (movsi_pop): Likewise.
18660
18661 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18662
18663         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18664         %{no_archive} %{exact_version}.
18665         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18666         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18667         %{no_archive} %{exact_version}.
18668         * config/mips/openbsd.h (LINK_SPEC): Likewise.
18669         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18670         * config/mips/vxworks.h: Likewise.
18671
18672 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18673
18674         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
18675
18676 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18677
18678         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18679         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18680
18681 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18682
18683         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18684         -nodefaultlib.
18685
18686 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18687
18688         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18689         for mcpu not cpu.
18690         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18691         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18692         not cpu.
18693         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18694         Don't handle -shlib.
18695
18696 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18697
18698         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18699         (CC1_SPEC): Don't handle -profile.
18700
18701 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18702
18703         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18704         * config/mips/mips.h (CC1_SPEC): Likewise.
18705
18706 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18707
18708         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18709         * config/mips/mips.h (CC1_SPEC): Likewise.
18710
18711 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18712
18713         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18714         * config/m32r/linux.h (LINK_SPEC): Likewise.
18715         * config/mips/linux.h (LINK_SPEC): Likewise.
18716         * config/mips/linux64.h (LINK_SPEC): Likewise.
18717         * config/sparc/linux.h (LINK_SPEC): Likewise.
18718         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18719         LINK_SPEC): Likewise.
18720         * config/xtensa/linux.h (LINK_SPEC): Likewise.
18721
18722 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18723
18724         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18725         %{version:-v}.
18726         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18727
18728 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18729
18730         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18731         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18732
18733 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18734
18735         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18736
18737 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18738
18739         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18740         supports -Bstatic/-Bdynamic.
18741         * configure: Regenerate.
18742
18743 2011-01-14  Jan Hubicka  <jh@suse.cz>
18744             Jack Howarth  <howarth@bromo.med.uc.edu>
18745
18746         PR target/46037
18747         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18748         when checking debug_info_level. Test write_symbols instead of
18749         debug_hooks->var_location when setting flag_var_tracking_uninit.
18750
18751 2011-01-14  Richard Guenther  <rguenther@suse.de>
18752
18753         PR tree-optimization/47179
18754         * target.def (ref_may_alias_errno): New target hook.
18755         * targhooks.h (default_ref_may_alias_errno): Declare.
18756         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18757         (default_ref_may_alias_errno): New function.
18758         * target.h (struct ao_ref_s): Declare.
18759         * tree-ssa-alias.c: Include target.h.
18760         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18761         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18762         (targhooks.o): Likewise.
18763         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18764         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18765
18766 2011-01-14  Richard Guenther  <rguenther@suse.de>
18767
18768         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
18769
18770 2011-01-14  Richard Guenther  <rguenther@suse.de>
18771
18772         PR tree-optimization/47280
18773         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18774         return CFG changes.
18775         (tree_ssa_forward_propagate_single_use_vars): Deal with
18776         CFG changes from associate_plusminus.
18777
18778 2011-01-14  Richard Guenther  <rguenther@suse.de>
18779
18780         PR middle-end/47281
18781         Revert
18782         2011-01-11  Richard Guenther  <rguenther@suse.de>
18783
18784         PR tree-optimization/46076
18785         * tree-ssa.c (useless_type_conversion_p): Conversions from
18786         unprototyped to empty argument list function types are useless.
18787
18788 2011-01-14  Richard Guenther  <rguenther@suse.de>
18789
18790         PR tree-optimization/47286
18791         * tree-ssa-structalias.c (new_var_info): Register variables are global.
18792
18793 2011-01-14  Martin Jambor  <mjambor@suse.cz>
18794
18795         PR middle-end/46823
18796         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18797
18798 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
18799
18800         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18801         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18802         * config/xtensa/xtensa.c (xtensa_libcall_value,
18803         xtensa_function_value_regno_p): New functions.
18804         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18805
18806 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
18807
18808         PR c++/47213
18809         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18810         PE specific hook.
18811         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18812         New function prototype.
18813         * config/i386/winnt.c (i386_pe_assemble_visibility):
18814         Warn only if attribute was specified by user.
18815
18816 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18817
18818         PR target/47251
18819         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18820         floating point.
18821         (floatunsdidf2_fcfidu): Ditto.
18822
18823 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18824
18825         * config/s390/s390.c (print_operand_address): Replace 'error' with
18826         'output_operand_lossage'.
18827         (print_operand): Likewise.
18828
18829 2011-01-13  Jeff Law  <law@redhat.com>
18830
18831         PR rtl-optimization/39077
18832         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18833         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18834         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18835         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18836         * gcse.c (prune_insertions_deletions): New function.
18837         (compute_pre_data): Use it.
18838
18839 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
18840
18841         PR debug/PR46973
18842         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18843         static function.
18844         (prune_unused_types_mark): Use it.
18845
18846 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
18847
18848         PR rtl-optimization/45352
18849         * sel-sched.c: Update copyright years.
18850         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18851         in the advancing loop when we have issued issue_rate insns.
18852
18853 2011-01-12  Richard Henderson  <rth@redhat.com>
18854
18855         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18856         (TARGET_MD_ASM_CLOBBERS): New.
18857
18858         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18859         (TARGET_DELEGITIMIZE_ADDRESS): New.
18860
18861         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18862         (clzsi2, *bsch): New patterns.
18863
18864         * config/mn10300/mn10300.md (INT): New mode iterator.
18865         (*mov<INT>_clr): New pattern, and peep2 to generate it.
18866
18867         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18868         flag_split_wide_types.
18869
18870         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18871         (mn10300_trampoline_init): Rewrite without a template, an immediate
18872         load and a direct branch.
18873         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18874
18875 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
18876
18877         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18878         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18879         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18880         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18881
18882 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
18883
18884         PR debug/47209
18885         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18886         of type.
18887
18888 2011-01-12  Jan Hubicka  <jh@suse.cz>
18889
18890         PR driver/47244
18891         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18892         (PLUGIN_COND_CLOSE): New macro.
18893         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18894
18895 2011-01-12  Richard Guenther  <rguenther@suse.de>
18896
18897         PR lto/47259
18898         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18899         register variables in a MEM_REF.
18900
18901 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
18902
18903         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18904         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18905         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18906         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18907         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18908         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18909         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18910         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18911         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18912         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18913         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18914         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18915         * config/gnu-user.h: New.  Copied from linux.h.
18916         (LINUX_TARGET_STARTFILE_SPEC): Rename to
18917         GNU_USER_TARGET_STARTFILE_SPEC.
18918         (LINUX_TARGET_ENDFILE_SPEC): Rename to
18919         GNU_USER_TARGET_ENDFILE_SPEC.
18920         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18921         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18922         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18923         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18924         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18925         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18926         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18927         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18928         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18929         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18930         * config/arm/linux-eabi.h (CC1_SPEC): Use
18931         GNU_USER_TARGET_CC1_SPEC.
18932         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18933         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18934         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18935         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18936         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18937         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18938         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18939         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18940
18941 2011-01-12  Richard Guenther  <rguenther@suse.de>
18942
18943         PR other/46946
18944         * doc/invoke.texi (ffast-math): Document it is turned on
18945         with -Ofast.
18946
18947 2011-01-12  Jan Hubicka  <jh@suse.cz>
18948
18949         PR tree-optimization/47233
18950         * opts.c (common_handle_option): Disable ipa-reference with profile
18951         feedback.
18952
18953 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18954
18955         * c-parser.c (c_parser_objc_at_property_declaration): Improved
18956         error message.
18957
18958 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18959
18960         * c-parser.c (c_lex_one_token): Updated and reindented some
18961         comments.  No changes in code.
18962
18963 2011-01-11  Ian Lance Taylor  <iant@google.com>
18964
18965         * godump.c (go_output_var): Don't output the variable if there is
18966         already a type with the same name.
18967
18968 2011-01-11  Ian Lance Taylor  <iant@google.com>
18969
18970         * godump.c (go_format_type): Don't generate float80.
18971
18972 2011-01-11  Richard Henderson  <rth@redhat.com>
18973
18974         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18975         declaration.  Rewrite for both speed and size.
18976         (mn10300_address_cost_1): Remove.
18977         (mn10300_register_move_cost): New.
18978         (mn10300_memory_move_cost): New.
18979         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
18980         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
18981         extensions, shifts, BSWAP, CLZ.
18982         (mn10300_wide_const_load_uses_clr): Remove.
18983         (TARGET_REGISTER_MOVE_COST): New.
18984         (TARGET_MEMORY_MOVE_COST): New.
18985         * config/mn10300/mn10300-protos.h: Update.
18986         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18987
18988         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18989         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18990         * config/mn10300/mn10300-protos.h: Update.
18991         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18992         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18993         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18994         (*test_int_bitfield, *test_byte_bitfield): Remove.
18995         (*bit_test, *subreg_bit_test): Remove.
18996         * config/mn10300/predicates.md (const_8bit_operand): Remove.
18997
18998         * config/mn10300/constraints.md ("c"): Rename from "A".
18999         ("A", "D"): New constraint letters.
19000         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19001         (fmssf4, fnmasf4, fnmssf4): Likewise.
19002
19003         * config/mn10300/mn10300.md (isa): New attribute.
19004         (enabled): New attribute.
19005
19006         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19007         (abssf2, negsf2): Define only for hardware fp.
19008         (sqrtsf2): Reformat.
19009         (addsf3, subsf3, mulsf3): Merge expander and insn.
19010
19011         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19012         (DEBUGGER_AUTO_OFFSET): Remove.
19013         (DEBUGGER_ARG_OFFSET): Remove.
19014
19015         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19016         Emit register stores with the same offsets as the hardware.
19017         (mn10300_store_multiple_operation): Don't check that the register
19018         save offsets are monotonic.
19019         * config/mn10300/mn10300-protos.h: Update.
19020
19021         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19022
19023         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19024         in terms of the value on the stack, not the MDR register.
19025
19026 2011-01-11  Jan Hubicka  <jh@suse.cz>
19027
19028         PR lto/45721
19029         PR lto/45375
19030         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19031         (symbol_alias_set_destroy, symbol_alias_set_contains,
19032         propagate_aliases_backward): Declare.
19033         * lto-streamer-out.c (struct sets): New sturcture.
19034         (trivally_defined_alias): New function.
19035         (output_alias_pair_p): Rewrite.
19036         (output_unreferenced_globals): Fix output of alias pairs.
19037         (produce_symtab): Likewise.
19038         * ipa.c (function_and_variable_visibility): Set weak alias destination
19039         as needed in lto.
19040         * varasm.c (symbol_alias_set_t): Remove.
19041         (symbol_alias_set_destroy): Export.
19042         (propagate_aliases_forward, propagate_aliases_backward): New functions
19043         based on ...
19044         (compute_visible_aliases): ... this one; remove.
19045         (trivially_visible_alias): New
19046         (trivially_defined_alias): New.
19047         (remove_unreachable_alias_pairs): Rewrite.
19048         (finish_aliases_1): Reorganize code checking if alias is defined.
19049         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19050         in LTO mode.
19051
19052 2011-01-11  Richard Guenther  <rguenther@suse.de>
19053
19054         PR tree-optimization/46076
19055         * tree-ssa.c (useless_type_conversion_p): Conversions from
19056         unprototyped to empty argument list function types are useless.
19057
19058 2011-01-11  Richard Guenther  <rguenther@suse.de>
19059
19060         PR middle-end/45235
19061         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19062         volatile MEMs as MEM_READONLY_P.
19063
19064 2011-01-11  Richard Guenther  <rguenther@suse.de>
19065
19066         PR tree-optimization/47239
19067         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19068
19069 2011-01-11  Jeff Law  <law@redhat.com>
19070
19071         PR tree-optimization/47086
19072         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19073         IVs from statements that might throw.
19074
19075 2011-01-10  Jan Hubicka  <jh@suse.cz>
19076
19077         PR lto/45375
19078         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19079
19080 2011-01-10  Jan Hubicka  <jh@suse.cz>
19081
19082         PR lto/45375
19083         * profile.c (read_profile_edge_counts): Ignore profile inconistency
19084         when correcting profile.
19085
19086 2011-01-10  Jan Hubicka  <jh@suse.cz>
19087
19088         PR lto/46083
19089         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19090         DECL_FINI_PRIORITY.
19091         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19092         Restore DECL_FINI_PRIORITY.
19093
19094 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19095
19096         * doc/gimple.texi: Fix quoting of multi-word return values in
19097         @deftypefn statements.  Ensure presence of return value.  Wrap
19098         overlong @deftypefn lines.
19099         (is_gimple_operand, is_gimple_min_invariant_address): Remove
19100         descriptions of removed functions.
19101         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19102         of multi-word return value in @deftypefn statement.
19103
19104 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19105
19106         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19107         (Conditional Expressions, Logical Operators)
19108         (Statement and operand traversals): Do not indent smallexample
19109         code.  Fix duplicate function argument in example.
19110
19111 2011-01-10  Jeff Law  <law@redhat.com>
19112
19113         PR tree-optimization/47141
19114         * ipa-split.c (split_function): Handle case where we are
19115         returning a value and the return block has a virtual operand phi.
19116
19117 2011-01-10  Jan Hubicka  <jh@suse.cz>
19118
19119         PR tree-optimization/47234
19120         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19121         (pass_feedback_split_functions): Declare.
19122         * passes.c (init_optimization_passes): Add ipa-split as subpass of
19123         tree-profile.
19124         * ipa-split.c (gate_split_functions): Update comments; disable
19125         split-functions for profile_arc_flag and branch_probabilities.
19126         (gate_feedback_split_functions): New function.
19127         (execute_feedback_split_functions): New function.
19128         (pass_feedback_split_functions): New global var.
19129
19130 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
19131
19132         PR lto/46760
19133         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19134         calling gimple_call_set_cannot_inline.
19135
19136 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
19137
19138         * config/darwin-sections.def: Remove unused section.
19139
19140 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
19141
19142         PR c++/47218
19143         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19144
19145 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
19146
19147         PR objc/47232
19148         * c-parser.c (c_parser_declaration_or_fndef): Improved
19149         error message.
19150
19151 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
19152
19153         * config/i386/winnt.c (i386_pe_start_function): Make sure
19154         to switch back to function's section.
19155
19156 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
19157
19158         PR gcc/46902
19159         PR testsuite/46912
19160         * plugin.c: Move include of dlfcn.h from here...
19161         * system.h: ... to here.
19162
19163 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19164
19165         * doc/cpp.texi (C++ Named Operators): Fix markup for header
19166         file name.
19167         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19168         two extra empty pages in PDF output.
19169
19170 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
19171
19172         PR objc/47078
19173         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19174         for error recovery purposes behave as if it was not specified so
19175         that the default type is usd.
19176
19177 2011-01-07  Jan Hubicka  <jh@suse.cz>
19178
19179         PR tree-optmization/46469
19180         * ipa.c (function_and_variable_visibility): Clear needed flags on
19181         nodes with external decls; handle weakrefs merging correctly.
19182
19183 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
19184
19185         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19186         not false.
19187
19188 2011-01-07  Jan Hubicka  <jh@suse.cz>
19189
19190         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19191         and no longer claim that gold is required for linker plugin.
19192         * configure: Regenerate.
19193         * gcc.c (PLUGIN_COND): New macro.
19194         (LINK_COMMAND_SPEC): Use it.
19195         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19196         * config.in (HAVE_LTO_PLUGIN): New.
19197         * configure.ac (--with-lto-plugin): New parameter; autodetect
19198         HAVE_LTO_PLUGIN.
19199
19200 2011-01-07  Jan Hubicka  <jh@suse.cz>
19201
19202         PR tree-optimization/46367
19203         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19204         when we can update original.
19205         (cgraph_mark_inline_edge): Sanity check.
19206         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19207
19208 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19209
19210         * config/spu/spu.h (ASM_COMMENT_START): Define.
19211
19212 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19213
19214         PR driver/42445
19215         * gcc.c (%>S): New.
19216         (SWITCH_KEEP_FOR_GCC): Likewise.
19217         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19218         (do_spec_1): Handle "%>".
19219
19220         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19221
19222 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
19223
19224         PR target/47201
19225         * config/i386/i386.c (ix86_delegitimize_address): If
19226         simplify_gen_subreg fails, return orig_x.
19227
19228         PR bootstrap/47187
19229         * value-prof.c (gimple_stringop_fixed_value): Handle
19230         lhs of the call properly.
19231
19232 2011-01-07  Jan Hubicka  <jh@suse.cz>
19233
19234         PR lto/45375
19235         * lto-opt.c (lto_reissue_options): Set flag_shlib.
19236
19237 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19238
19239         * target.def (function_switched_text_sections): New hook.
19240         * doc/tm.texi: Regenerated.
19241         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19242         * final.c (default_function_switched_text_sections): New.
19243         (final_scan_insn): Call function_switched_text_sections when a
19244         mid-function section change occurs.
19245         * output.h (default_function_switched_text_sections): Declare.
19246         * config/darwin-protos.h (darwin_function_switched_text_sections):
19247         Likewise.
19248         * config/darwin.c (darwin_function_switched_text_sections): New.
19249         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19250
19251 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19252
19253         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
19254         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
19255         the secondary code fragment when outputting for DWARF == 2.
19256
19257 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
19258
19259         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19260         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19261         Remove.
19262         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19263         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19264
19265 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
19266
19267         PR debug/46704
19268         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19269         when it is not empty.
19270
19271 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
19272
19273         Bobcat Enablement
19274         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19275         (case ${target}): Add btver1.
19276         * config/i386/driver-i386.c (host_detect_local_cpu): Let
19277         -march=native recognize btver1 processors.
19278         * config/i386/i386-c.c (ix86_target_macros_internal): Add
19279         btver1 def_and_undef
19280         * config/i386/i386.c (struct processor_costs btver1_cost): New
19281         btver1 cost table.
19282         (m_BTVER1): New definition.
19283         (m_AMD_MULTIPLE): Includes m_BTVER1.
19284         (initial_ix86_tune_features): Add btver1 tune.
19285         (processor_target_table): Add btver1 entry.
19286         (static const char *const cpu_names): Add btver1 entry.
19287         (software_prefetching_beneficial_p): Add btver1.
19288         (ix86_option_override_internal): Add btver1 instruction sets.
19289         (ix86_issue_rate): Add btver1.
19290         (ix86_adjust_cost): Add btver1.
19291         * config/i386/i386.h (TARGET_BTVER1): New definition.
19292         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19293         (enum processor_type): Add PROCESSOR_BTVER1.
19294         * config/i386/i386.md (define_attr "cpu"): Add btver1.
19295
19296 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19297
19298         PR target/43309
19299         * config/i386/i386.c (legitimize_tls_address)
19300         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19301         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19302         (tls_initial_exec_64_sun): New pattern.
19303
19304 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
19305
19306         * doc/invoke.texi (Overall Options): Improve wording and markup
19307         of the description of -wrapper.
19308
19309 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19310
19311         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19312         rdynamic, threads): New Driver options.
19313
19314 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19315
19316         PR target/38118
19317         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19318         if coming from .tdata.
19319         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19320
19321 2011-01-06  Jan Hubicka  <jh@suse.cz>
19322
19323         PR lto/47188
19324         * collect2.c (main): Do not enable LTOmode when plugin is active.
19325
19326 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19327
19328         PR other/45915
19329         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19330         --version output if supported.
19331         * configure: Regenerate.
19332
19333 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19334
19335         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19336         Driver options.
19337
19338 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
19339
19340         PR c/47150
19341         * c-convert.c (convert): When converting a complex expression
19342         other than COMPLEX_EXPR to a different complex type, ensure
19343         c_save_expr is called instead of save_expr, unless in_late_binary_op.
19344         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19345         when converting COMPLEX_TYPE.
19346
19347 2011-01-06  Ira Rosen  <irar@il.ibm.com>
19348
19349         PR tree-optimization/47139
19350         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19351         only the last reduction value is used outside the loop.  Update
19352         documentation.
19353
19354 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
19355
19356         * config/rtems.opt: New.
19357         * config.gcc (*-*-rtems*): Use rtems.opt.
19358
19359 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
19360
19361         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19362         processors do not support 3DNow instructions.
19363
19364 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19365
19366         * config/spu/spu.c (spu_option_override): Set parameter
19367         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19368
19369 2011-01-05  Jan Hubicka  <jh@suse.cz>
19370
19371         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19372         at the command line.
19373
19374 2011-01-05  Martin Jambor  <mjambor@suse.cz>
19375
19376         PR lto/47162
19377         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19378         deltas on streamed outgoing edges.
19379         (output_node_opt_summary): Output info for outgoing edges only when
19380         the node is in new parameter set.
19381         (output_cgraph_opt_summary): New parameter set, passed to the two
19382         aforementioned functions.  Update its forward declaration and its
19383         callee too.
19384
19385 2011-01-05  Tom Tromey  <tromey@redhat.com>
19386
19387         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19388         operator to c_finish_omp_atomic.
19389         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19390         (build_unary_op): Update.
19391         (build_modify_expr): Update.
19392         (build_asm_expr): Update.
19393
19394 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19395
19396         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19397         newly inserted insns.
19398         (pad_bb): Likewise.
19399         (spu_emit_branch_hint): Likewise.
19400         (insert_hbrp_for_ilb_runout): Likewise.
19401         (spu_machine_dependent_reorg): Call df_finish_pass after
19402         schedule_insns returns.
19403
19404 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19405
19406         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19407
19408 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
19409
19410         PR tree-optimization/47005
19411         * tree-sra.c (struct access): Add 'non_addressable' bit.
19412         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19413         (decide_one_param_reduction): Return 0 if the parameter is passed by
19414         reference and one of the accesses in the group is non_addressable.
19415
19416 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19417
19418         PR tree-optimization/47056
19419         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19420         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
19421         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
19422
19423 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19424
19425         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19426         initializer.  Skip view conversions from aggregate types.
19427
19428 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
19429
19430         PR bootstrap/47055
19431         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19432
19433 2011-01-04  Philipp Thomas  <pth@suse.de>
19434
19435         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19436         obvious typo.
19437
19438 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19439
19440         * function.c (thread_prologue_and_epilogue_insns): Do not crash
19441         on empty epilogue sequences.
19442
19443 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
19444
19445         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19446         non-static): New Driver options.
19447
19448 2011-01-04  Jie Zhang  <jie@codesourcery.com>
19449
19450         PR driver/47137
19451         * gcc.c (default_compilers[]): Set combinable field to 0
19452         for all assembly languages.
19453
19454 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
19455
19456         * config/mips/loongson3a.md: New file.
19457         * config/mips/mips.md: Include loongson3a.md.
19458         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19459         TUNE_LOONGSON_3A.
19460
19461 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
19462
19463         PR middle-end/47017
19464         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19465         instead of convert_memory_address_addr_space on the base expression.
19466
19467 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19468
19469         * config/spu/spu.c (spu_option_override): Update error text
19470         for bad -march= / -mtune= values.
19471
19472 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19473
19474         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19475         if branch-hint optimization will be performed.
19476
19477 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19478
19479         PR tree-optimization/47148
19480         * ipa-split.c (split_function): Convert arguments to
19481         DECL_ARG_TYPE if possible.
19482
19483         PR tree-optimization/47155
19484         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19485         when computing uns.
19486
19487         PR rtl-optimization/47157
19488         * combine.c (try_combine): If undobuf.other_insn becomes
19489         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19490         and set *new_direct_jump_p too.
19491
19492 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
19493
19494         PR tree-optimization/47021
19495         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19496
19497 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19498
19499         * gcc.c (process_command): Update copyright notice dates.
19500         * gcov.c (print_version): Likewise.
19501         * gcov-dump.c (print_version): Likewise.
19502         * mips-tfile.c (main): Likewise.
19503         * mips-tdump.c (main): Likewise.
19504
19505 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19506
19507         PR tree-optimization/46801
19508         * tree-sra.c (type_internals_preclude_sra_p): Check whether
19509         aggregate fields start at byte boundary instead of the bit-field flag.
19510
19511 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19512
19513         PR driver/47137
19514         * gcc.c (main): Revert revision 168407.
19515
19516 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19517
19518         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19519
19520 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19521
19522         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19523         vector optab to expand vector/scalar shift, update gimple to vector.
19524
19525 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19526
19527         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19528         a thunk.
19529
19530 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19531
19532         PR tree-optimization/46984
19533         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19534         HOST_WIDE_INT.
19535         (cgraph_create_indirect_edge): Fixed line length.
19536         (cgraph_indirect_call_info): Declare.
19537         (cgraph_make_edge_direct) Update declaration.
19538         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19539         (cgraph_create_indirect_edge): Use it.
19540         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
19541         callees.
19542         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19543         the new thunk_delta representation.
19544         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19545         HOST_WIDE_INT.
19546         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19547         (ipa_read_indirect_edge_info): Likewise.
19548         * lto-cgraph.c (output_edge_opt_summary): New function.
19549         (output_node_opt_summary): Call it on all outgoing edges.
19550         (input_edge_opt_summary): New function.
19551         (input_node_opt_summary): Call it on all outgoing edges.
19552
19553 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
19554
19555         PR driver/47137
19556         * gcc.c (main): Don't check have_o when settting combine_inputs.
19557
19558 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
19559
19560         * regrename.c: Add general comment describing the pass.
19561         (struct du_head): Remove 'length' field.
19562         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19563         (regrename_optimize): Do not sort chains.  Rework comments, add others.
19564         Force renaming to the preferred class (if any) in the first pass and do
19565         not consider registers that belong to it in the second pass.
19566         (create_new_chain): Do not set 'length' field.
19567         (scan_rtx_reg): Likewise.
19568
19569 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
19570
19571         PR tree-optimization/47140
19572         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19573         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19574         to bit_value_binop.
19575
19576         PR rtl-optimization/47028
19577         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19578         parm_birth_insn instead of at the beginning of first bb.
19579
19580 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
19581
19582         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19583         Remove the word "see" before "@pxref".
19584         * doc/rtl.texi: Remove the word "see" before "@pxref".
19585
19586 2011-01-01  Jan Hubicka  <jh@suse.cz>
19587
19588         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19589         memory.
19590
19591 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
19592
19593         PR target/38662
19594         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19595
19596 \f
19597 Copyright (C) 2011 Free Software Foundation, Inc.
19598
19599 Copying and distribution of this file, with or without modification,
19600 are permitted in any medium without royalty provided the copyright
19601 notice and this notice are preserved.