OSDN Git Service

* config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-06-28  Nick Clifton  <nickc@redhat.com>
2
3         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
4         relaxation when performing an incremental link.
5
6 2011-06-28  Kai Tietz  <ktietz@redhat.com>
7
8         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
9         within BB from last to first.
10
11 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12
13         * genattr-common.c: New.  Based on genattr.c.
14         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
15         (MOSTLYCLEANFILES): Add insn-attr-common.h.
16         (opts.o): Update dependencies.
17         (.PRECIOUS): Add insn-attr-common.h.
18         (simple_rtl_generated_h): Add insn-attr-common.h.
19         (build/genattr-common.o): New.
20         (genprogrtl): Add attr-common.
21         * genattr.c (main): Include insn-attr-common.h.  Don't generate
22         definitions of DELAY_SLOTS or INSN_SCHEDULING.
23         * opts.c: Include insn-attr-common.h instead of rtl.h and
24         insn-attr.h.
25
26 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
27
28         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
29         avr-*-* and avr-*-rtems* targets.
30
31         * config/avr/elf.h: New file.
32         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
33         (TARGET_ASM_SELECT_SECTION): Define.
34         (INIT_SECTION_ASM_OP): Undefine.
35         (FINI_SECTION_ASM_OP): Undefine.
36         (READONLY_DATA_SECTION_ASM_OP): Undefine.
37         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
38         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
39         * config/avr/avr.h:
40         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
41         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
42         (MAX_OFILE_ALIGNMENT): Move to elf.h.
43         (STRING_LIMIT): Move to elf.h.
44         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
45         (ASM_DECLARE_OBJECT_NAME): Remove.
46         (ESCAPES): Remove.
47         (ASM_OUTPUT_SKIP): Remove.
48         (DWARF2_DEBUGGING_INFO): Remove.
49         (OBJECT_FORMAT_ELF): Remove.
50         (USER_LABEL_PREFIX): Remove.
51         (ASM_OUTPUT_EXTERNAL): Remove.
52         (ASM_OUTPUT_ASCII): Remove.
53         (TYPE_ASM_OP): Remove.
54         (SIZE_ASM_OP): Remove.
55         (WEAK_ASM_OP): Remove.
56         (STRING_ASM_OP): Remove.
57         (SET_ASM_OP): Remove.
58         (ASM_WEAKEN_LABEL): Remove.
59         (TYPE_OPERAND_FMT): Remove.
60         (ASM_DECLARE_FUNCTION_SIZE): Remove.
61         (ASM_FINISH_DECLARE_OBJECT): Remove.
62         (NO_DOLLAR_IN_LABEL): Remove.
63         (ASM_GENERATE_INTERNAL_LABEL): Remove.
64         (ASM_OUTPUT_CASE_LABEL): Remove.
65         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
66         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
67         (gas_output_ascii): Remove.
68         (gas_output_limited_string): Remove.
69         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
70         * config/avr/avr-protos.h
71         (gas_output_ascii): Remove prototye.
72         (gas_output_limited_string): Remove prototype.
73
74 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
75
76         PR target/48637
77         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
78         asm operands.
79
80 2011-06-27  Jan Hubicka  <jh@suse.cz>
81
82         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node
83         instead of references in node.
84
85 2011-06-27  Richard Henderson  <rth@redhat.com>
86
87         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
88         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
89         inside ifdef.
90
91 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
92
93         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
94
95         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
96         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
97         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
98         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
99         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
100         (evaluate_stmt, execute_fold_all_builtins): Handle
101         BUILT_IN_ASSUME_ALIGNED.
102         * tree-ssa-dce.c (propagate_necessity): Likewise.
103         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
104         call_may_clobber_ref_p_1): Likewise.
105         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
106         (expand_builtin_assume_aligned): New function.
107         * doc/extend.texi (__builtin_assume_aligned): Document.
108
109         PR debug/49544
110         * cselib.c (promote_debug_loc): If cselib_preserve_constants
111         and l has two DEBUG_INSN owned locs instead of just one, adjust
112         the second location's setting_insn too.
113
114 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
115
116         PR libmudflap/38738
117         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
118
119 2011-06-27  Nick Clifton  <nickc@redhat.com>
120
121         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
122         convert bit position of highest bit set into a count of the high
123         zero bits.
124
125 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
126
127         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
128
129 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
130
131         PR lto/48492
132         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
133         to a NULL parent.
134
135 2011-06-27  Richard Guenther  <rguenther@suse.de>
136
137         PR tree-optimization/49394
138         * passes.c (execute_one_pass): Restore current_pass after
139         applying IPA transforms.
140
141 2011-06-27  Kai Tietz  <ktietz@redhat.com>
142
143         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
144         out of type precision after operation.
145         (find_bswap): Take for limit value the integer auto-
146         promotion into account.
147
148 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
149
150         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
151         forward scan as well.
152
153 2011-06-27  Tristan Gingold  <gingold@adacore.com>
154
155         PR target/44241
156         * config/vms/vms-protos.h: New file.
157         * config/vms/vms-crtlmap.map: New file.
158         * config/vms/vms.c: New file.
159         * config/vms/make-crtlmap.awk: New file.
160         * config/vms/vms-crtl.h: File removed.
161         * config/vms/vms-crtl-64.h: File removed.
162         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
163         * config/alpha/vms64.h: Do not include vms-crtl-64.h
164         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
165         clear some builtins on VMS.  Calls vms_patch_builtins.
166         (avms_asm_output_external): Remove.
167         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
168         (struct crtl_name_spec): Remove
169         (DO_CTRL_NAMES): Remove.
170         * config/ia64/vms.h (struct crtl_name_spec): Remove
171         (DO_CTRL_NAMES): Remove.
172         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
173         clear some builtins on VMS.  Calls vms_patch_builtins.
174         (ia64_asm_output_external): Remove DO_CRTL_NAME.
175         * config/ia64/vms64.h: Do not include vms-crtl-64.h
176         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
177         tm_p_file.
178
179 2011-06-27  Tristan Gingold  <gingold@adacore.com>
180
181         * config/alpha/alpha.c (alpha_end_function): Always generate .end
182         directive on VMS.
183
184 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
185
186         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
187         the function receives nonlocal gotos.
188
189 2011-06-27  Richard Guenther  <rguenther@suse.de>
190
191         PR tree-optimization/49536
192         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
193         For non-scalar inner types use a scalar type according to
194         the scalar inner mode.
195
196 2011-06-27  Richard Guenther  <rguenther@suse.de>
197
198         PR tree-optimization/49365
199         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
200
201 2011-06-27  Richard Guenther  <rguenther@suse.de>
202
203         PR tree-optimization/49169
204         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
205         the alignment of function decls.
206
207 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
208
209         PR target/47997
210         * config/darwin.c (darwin_mergeable_string_section): Place string
211         constants in '.cstring' rather than '.const' when CF/NSStrings are
212         active.
213
214 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
215
216         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
217         (emit_save_register_window): Likewise.
218         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
219         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
220         Swap back %o7/%i7 in register naming.
221
222 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
223
224         PR driver/49371
225         * config/darwin.c (darwin_override_options): Improve warning when
226         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
227         is given with fpie/fPIE.
228         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
229         * config/darwin9.h (PIE_SPEC): New.
230
231 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
232
233         * timevar.c (timevar_print): Increase width for display of timevar
234         name.
235
236 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
237
238         PR c++/46400
239         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
240         instead of TYPE_CHAIN for chain_next for types.
241
242 2011-06-24  Richard Henderson  <rth@redhat.com>
243
244         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
245         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
246         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
247         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
248         (sparc_flat_expand_prologue): Emit individual instructions
249         instead of one of the above.
250
251 2011-06-24  Easwaran Raman  <eraman@google.com>
252
253         PR rtl-optimization/49429
254         PR target/49454
255         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
256         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
257         used to copy y into x.
258         * calls.c (initialize_argument_information): Mark
259         an argument addressable if it is passed by invisible reference.
260         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
261         if it is passed by reference.
262
263 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
264
265         PR rtl-optimization/49504
266         * rtlanal.c (nonzero_bits1): Properly handle addition or
267         subtraction of a pointer in Pmode if pointers extend unsigned.
268         (num_sign_bit_copies1): Likewise.
269
270 2011-06-24  Martin Jambor  <mjambor@suse.cz>
271
272         PR tree-optimizations/49516
273         * tree-sra.c (sra_modify_assign): Choose the safe path for
274         aggregate copies if we also did scalar replacements.
275
276 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
277
278         PR target/49335
279         * config/arm/predicates.md (add_operator): New.
280         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
281         in Thumb2.
282
283 2011-06-24  Andi Kleen  <ak@linux.intel.com>
284
285         * tree-sra.c (type_internals_preclude_sra_p): Add msg
286         parameter. Split up ifs and report reason in *msg.
287         (reject): Add.
288         (find_var_candiate): Add msg variable.
289         Split up ifs and report reason to reject.
290         (find_param_candidates): Add msg variable.
291         Pass msg to type_internals_preclude_sra_p.
292
293 2011-06-23  Jeff Law  <law@redhat.com>
294
295         PR middle-end/48770
296         * reload.h (reload): Change to return a bool.
297         * ira.c (ira): If requested by reload, run a fast DCE pass after
298         reload has completed.  Fix comment typo.
299         * reload1.c (need_dce): New file scoped static.
300         (reload): Set reload_completed here.  Return whether or not a DCE
301         pass after reload is needed.
302         (delete_dead_insn): Set need_dce as needed.
303
304         PR middle-end/49465
305         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
306         to detect threading through joiner block.  If there was already
307         an edge to the new target, then do not change the PHI nodes.
308
309 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
310
311         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
312         get_pointer_alignment to see if base isn't sufficiently aligned.
313
314 2011-06-23  Jan Hubicka  <jh@suse.cz>
315
316         PR tree-optimize/49373
317         * tree-pass.h (all_late_ipa_passes): Declare.
318         * cgraphunit.c (init_lowered_empty_function): Fix properties.
319         (cgraph_optimize): Execute late passes; remove unreachable funcions after
320         materialization.
321         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or LTOing.
322         * passes.c (all_late_ipa_passes): Declare.
323         (dump_passes, register_pass): Handle late ipa passes.
324         (init_optimization_passes): Move ipa_pta to late passes; schedule fixup_cfg
325         at beggining of all_passes.
326         (apply_ipa_transforms): New function.
327         (execute_one_pass): When doing simple ipa pass, apply all transforms.
328
329 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
330
331         * params.c: Include common/common-target.h.  Don't include tm.h.
332         (lang_independent_params): Move from toplev.c.
333         (global_init_params): New.
334         * params.h (global_init_params): Declare.
335         * target.def (default_params): Move to common-target.def.
336         * toplev.c (lang_independent_options): Remove.
337         (lang_independent_params): Move to params.c.
338         (general_init): Use global_init_params.
339         * common/common-target.def (option_default_params): Move from
340         target.def.
341         * common/config/ia64/ia64-common.c: Include params.h.
342         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
343         from ia64.c.
344         * common/config/rs6000/rs6000-common.c: Include params.h.
345         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
346         from rs6000.c.
347         * common/config/sh/sh-common.c: Include params.h.
348         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
349         from sh.c.
350         * common/config/spu/spu-common.c: Include params.h.
351         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
352         from spu.c.
353         * config/ia64/ia64.c (ia64_option_default_params,
354         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
355         * config/rs6000/rs6000.c (rs6000_option_default_params,
356         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
357         * config/sh/sh.c (sh_option_default_params,
358         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
359         * config/spu/spu.c (spu_option_default_params,
360         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
361         * Makefile.in (OBJS): Remove params.o.
362         (OBJS-libcommon-target): Add params.o.
363         (params.o, $(common_out_object_file)): Update dependencies.
364         * doc/tm.texi: Regenerate.
365
366 2011-06-23  Alan Modra  <amodra@gmail.com>
367
368         PR bootstrap/49383
369         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
370         invocation for 2011-06-09 changes.
371
372 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
373
374         PR libgomp/49490
375         * omp-low.c (expand_omp_for_static_nochunk): Only
376         use n ceil/ nthreads size for the first
377         n % nthreads threads in the team instead of
378         all threads except for the last few ones which
379         get less work or none at all.
380
381         PR debug/49496
382         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
383         uses.
384
385 2011-06-22  Richard Guenther  <rguenther@suse.de>
386
387         PR tree-optimization/49493
388         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
389         Refer to the alias target of variables.
390         (associate_varinfo_to_alias_1): Remove.
391         (ipa_pta_execute): Do not associate aliases with anything.
392         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
393         (cgraph_function_node): Likewise.
394         (cgraph_function_or_thunk_node): Likewise.
395         (varpool_variable_node): Likewise.
396
397 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
398
399         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
400         typo.
401         * config.gcc (arm*-*-linux*): Default to gnu tls.
402         (arm*-*-*): Add --with-tls option.
403         (all_defaults): Add 'tls'.
404
405 2011-06-22  Richard Henderson  <rth@redhat.com>
406
407         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
408         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
409         (dwarf2out_frame_debug_cfa_window_save): Rename from
410         dwarf2out_window_save; make static.
411         * tree.h (dwarf2out_window_save): Don't declare.
412
413         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
414         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
415         (emit_save_register_window): Rename from gen_save_register_window;
416         emit the insn and add REG_CFA_* notes.
417         (sparc_expand_prologue): Update to match.
418         * config/sparc/sparc.md (save_register_window_1): Simplify from
419         save_register_window<P:mode>.
420
421 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
422
423         PR target/49497
424         * config/i386/i386.md (*lea_general_2): Always allow SImode.
425         (*lea_general_2_zext): Likewise.
426         (imul to lea peepholes): Use const359_operand and check
427         TARGET_PARTIAL_REG_STALL.
428
429         * config/i386/predicates.md (const359_operand): New.
430
431 2011-06-22  Michael Matz  <matz@suse.de>
432
433         * cgraphunit.c (assemble_thunk): Use correct return type.
434
435 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
436         Dmitry Melnik  <dm@ispras.ru>
437
438         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
439         (neon_output_shift_immediate): Ditto.
440         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
441         prototype.
442         (neon_output_shift_immediate): Ditto.
443         * config/arm/neon.md (vashl<mode>3): Modified constraint.
444         (vashr<mode>3_imm): New insn pattern.
445         (vlshr<mode>3_imm): Ditto.
446         (vashr<mode>3): Modified constraint.
447         (vlshr<mode>3): Ditto.
448         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
449         predicate.
450         (imm_for_neon_rshift_operand): Ditto.
451         (imm_lshift_or_reg_neon): Ditto.
452         (imm_rshift_or_reg_neon): Ditto.
453
454         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
455
456 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
457
458         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
459         builtin calls even if likelyvalue is not CONSTANT.
460         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
461         Return get_value_for_expr of first operand
462         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
463         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
464         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
465         their non-checking counterparts.
466         (call_may_clobber_ref_p_1): Likewise.
467         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
468         like their non-checking counterparts.
469         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
470         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
471         like their non-checking counterparts.
472         (find_func_clobbers): Likewise.
473         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
474         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
475
476         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
477         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
478         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
479         of base type reference as argument.
480         (resolve_addr_in_expr): Likewise.  Fix keep computation.
481         (convert_descriptor_to_signed): Renamed to...
482         (convert_descriptor_to_mode): ... this.  For wider types convert
483         to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
484         untyped.
485         (typed_binop): New function.
486         (scompare_loc_descriptor, ucompare_loc_descriptor,
487         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
488         default to unsigned type instead of signed.
489
490         PR debug/47858
491         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
492         (gimple_build_debug_source_bind_stat): New prototype.
493         (gimple_build_debug_source_bind): Define.
494         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
495         gimple_debug_source_bind_get_value,
496         gimple_debug_source_bind_get_value_ptr,
497         gimple_debug_source_bind_set_var,
498         gimple_debug_source_bind_set_value): New inlines.
499         * gimple.c (gimple_build_debug_source_bind_stat): New function.
500         * gimple-pretty-print.c (dump_gimple_debug): Handle
501         GIMPLE_DEBUG_SOURCE_BIND.
502         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
503         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
504         * tree-parloops.c (eliminate_local_variables,
505         separate_decls_in_region): Likewise.
506         (separate_decls_in_region_debug): Renamed from
507         separate_decls_in_region_debug_bind.  Handle
508         gimple_debug_source_bind_p.
509         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
510         prototypes.
511         (DECL_HAS_DEBUG_ARGS_P): Define.
512         (struct tree_function_decl): Add has_debug_args_flag field.
513         * tree.c (debug_args_for_decl): New variable.
514         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
515         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
516         (rewrite_debug_stmt_uses): New function.
517         (rewrite_stmt): Use it to rewrite debug stmt uses.
518         * rtl.def (DEBUG_PARAMETER_REF): New.
519         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
520         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
521         DEBUG_PARAMETER_REF.
522         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
523         * print-rtl.c (print_rtx): Likewise.
524         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
525         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
526         debug stmts in the first bb.
527         * tree-inline.c (remap_ssa_name): If remapping default def
528         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
529         a source bind debug stmt.
530         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
531         (maybe_move_debug_stmts_to_successors): Likewise.
532         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
533         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
534         debug args vector from old_decl to new_decl.
535         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
536         or modified parameters, add debug bind stmts before call
537         setting DEBUG_EXPR_DECL which is remembered in debug args
538         vector.
539         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
540         on DECL_DEBUG_EXPRs from debug args vector.
541         (expand_debug_source_expr): New function.
542         (expand_debug_locations): Use it for source bind insns.
543         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
544         * var-tracking.c (prepare_call_arguments): Add debug args
545         to call_arguments if any.
546         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
547         output_loc_operands, output_loc_operands_raw,
548         resolve_addr_in_expr, compare_loc_operands): Handle
549         DW_OP_GNU_parameter_ref.
550         (get_ref_die_offset, parameter_ref_descriptor): New functions.
551         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
552         (gen_subprogram_die): Handle parameters identified by
553         DEBUG_PARAMETER_REF.
554
555 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
556
557         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
558         * doc/install.texi (Configuration): Document --with-tls.
559         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
560         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
561         (arm_tls_descseq_addr): New.
562         (legitimize_tls_address): Add tlsdesc support.
563         (arm_cannot_copy_insn_p): Check for tlscall.
564         (arm_emit_tls_decoration): Likewise.
565         * config/arm/arm.h (TARGET_GNU2_TLS): New.
566         (OPTION_DEFAULT_SPECS): Add with-tls support.
567         * config/arm/arm.md (R1_REGNUM): Define.
568         (tlscall): New.
569         * config/arm/arm.opt (tls_type): New enumeration type and values.
570         (mtls-dialect): New switch.
571         * config/arm/arm-opts.h (enum tls_type): New.
572
573 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
574
575         * attribs.c (register_attribute): Added assert to check that all
576         attribute specs are registered with a name that is not empty and
577         does not start with '_'.
578         (decl_attributes): Avoid the lookup of the "naked" attribute spec
579         if the function has no attributes.
580         * tree.c (is_attribute_with_length_p): Removed.
581         (is_attribute_p): Removed.
582         (private_is_attribute_p): New.  
583         (private_lookup_attribute): New.
584         (lookup_attribute): Removed.
585         (lookup_ident_attribute): New.
586         (remove_attribute): Require the first argument to be in the form
587         'text', not '__text__'.  Updated asserts.
588         (merge_attributes): Use lookup_ident_attributes instead of
589         lookup_attribute.
590         (merge_dllimport_decl_attributes): Use remove_attribute.
591         (attribute_list_contained): Likewise.
592         (attribute_list_equal): Immediately return 1 if the arguments are
593         identical pointers.
594         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
595         'int'.  Require the first argument to be in the form 'text', not
596         '__text__'.  Require the second argument to be an identifier.
597         (lookup_attribute): Made inline.  Require the first argument to be
598         in the form 'text', not '__text__'.
599         (private_is_attribute_p, private_lookup_attribute): New.
600         Updated comments.
601         
602 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
603
604         * builtins.c: Add sync_ or SYNC__ to builtin names.
605         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
606         * omp-low.c: Add sync_ or SYNC__ to builtin names.
607
608 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
609
610         PR target/33049
611         * config/avr/avr.md (extzv): New expander.
612         (*extzv): New insn.
613         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
614         * config/avr/constraints.md (C04): New constraint.
615         * doc/md.texi (Machine Constraints): Document it.
616
617 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
618
619         PR middle-end/49489
620         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
621         unsignedp argument instead of 1 for clrsb_optab.
622         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
623         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
624         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
625         * optabs.c (widen_leading): Call widen_operand and expand_unop
626         with 0 as unsignedp argument instead of 1 for clrsb_optab.
627         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
628
629 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
630
631         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
632
633 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
634
635         * gensupport.c (add_define_attr): New static function.
636         (is_predicable): Allow multi-alternative lists for the "predicable"
637         attribute.
638         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
639         (process_one_cond_exec): Call alter_attrs_for_insn.
640         * doc/md.texi (Defining Attributes): Mention some standard names.
641         (Conditional Execution): Update documentation for "predicable".
642
643         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
644         __builtin_clrsbll): Document.
645         * doc/rtl.texi (clrsb): New entry.
646         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
647         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
648         (expand_unop): Handle clrsb_optab.
649         (init_optabs): Initialize it.
650         * optabs.h (enum optab_index): New entry OTI_clrsb.
651         (clrsb_optab): Define.
652         * genopinit.c (optabs): Add an entry for it.
653         * builtins.c (expand_builtin): Handle clrsb builtin functions.
654         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
655         BUILT_IN_CLRSBLL): New.
656         * rtl.def (CLRSB): New code.
657         * dwarf2out.c (mem_loc_descriptor): Handle it.
658         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
659         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
660         and popcount.
661         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
662         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
663         (__ctzDI2): Move declaration.
664         * config/bfin/bfin.md (clrsbsi2): New expander.
665         (signbitssi2): Use the CLRSB rtx.
666         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
667         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
668
669 2011-06-21  Richard Guenther  <rguenther@suse.de>
670
671         * ipa-inline-transform.c (inline_transform): Fix previous change.
672
673 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
674
675         PR tree-optimization/49478
676         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
677         with constant operand.
678
679 2011-06-21  Richard Guenther  <rguenther@suse.de>
680
681         * ipa-inline-transform.c (inline_transform): Fix typo.
682
683 2011-06-21  Richard Guenther  <rguenther@suse.de>
684
685         PR tree-optimization/49483
686         * tree-vect-stmts.c (vectorizable_assignment): Also handle
687         VIEW_CONVERT_EXPR conversions.
688
689 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
690
691         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
692         * config/avr/avr-tables.opt: New file (generated).
693         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
694         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
695         avr-mcus.def.
696         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
697         (avr_option_override): Don't process -mmcu= argument here.  Set
698         avr_current_device using avr_mcu_index.
699         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
700         * config/avr/avr.opt (mmcu=): Use Enum.
701         * config/avr/t-avr (avr-devices.o): Update dependencies.
702         ($(srcdir)/config/avr/avr-tables.opt): New.
703         * target.def (help): Remove.
704         * doc/tm.texi.in (TARGET_HELP): Remove.
705         * doc/tm.texi: Regenerate.
706         * opts.c: Don't include target.h.
707         (common_handle_option): Don't call targetm.help.
708         * system.h (TARGET_HELP): Poison.
709         * Makefile.in (opts.o): Update dependencies.
710
711 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
712
713         * config/usegld.h: New file.
714         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
715         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
716         (LIB_SPEC): Likewise.  Search /lib.
717         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
718         (RDYNAMIC_SPEC): Handle GNU ld.
719         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
720         Define.
721         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
722         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
723         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
724         (STACK_CHECK_STATIC_BUILTIN): Define.
725         * config/sol2.opt (compat-bsd): Remove.
726         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
727         * config/sol2-bi.h: New file.
728         * config/sol2-gld.h: Remove.
729         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
730         (NO_DBX_BNSYM_ENSYM): Remove.
731         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
732         (STACK_CHECK_STATIC_BUILTIN): Remove.
733         Test USE_GLD instead of TARGET_GNU_LD.
734         * config/i386/sol2-10.h: Rename to ...
735         * config/i386/sol2-bi.h .. this.
736         (SUBTARGET_EXTRA_SPECS): Redefine.
737         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
738         (MULTILIB_DEFAULTS): Remove.
739         (DEFAULT_ARCH32_P): Define.
740         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
741         (ARCH64_SUBDIR): Define.
742         Test USE_GLD instead of TARGET_GNU_LD.
743         (I386_EMULATION): Rename to ...
744         (ARCH32_EMULATION): ... this.
745         (X86_64_EMULATION): Rename to ...
746         (ARCH64_EMULATION): ... this.
747         (TARGET_LD_EMULATION): Remove.
748         (LINK_ARCH_SPEC): Remove.
749         * config/i386/sol2-gas.h: Remove.
750         * config/i386/t-sol2-10: Rename to ...
751         * config/i386/t-sol2-64: ... this.
752         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
753         (AS_SPARC64_FLAG): Define.
754         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
755         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
756         depending on TARGET_CPU_DEFAULT.
757         (CPP_CPU_SPEC): Redefine.
758         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
759         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
760         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
761         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
762         ASM_ARCH_DEFAULT_SPEC): Redefine.
763         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
764         LINK_ARCH_DEFAULT_SPEC.
765         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
766         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
767         (ARCH64_SUBDIR): Define.
768         (LINK_ARCH64_SPEC): Redefine.
769         (CC1_SPEC): Redefine.
770         (OPTION_DEFAULT_SPECS): Redefine.
771         (MULTILIB_DEFAULTS): Define.
772         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
773         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
774         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
775         (NO_DBX_BNSYM_ENSYM): Remove.
776         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
777         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
778         (TARGET_ASM_NAMED_SECTION): Likewise.
779         (STACK_CHECK_STATIC_BUILTIN): Remove.
780         * config/sparc/sol2-bi.h: Remove.
781         * config/sparc/sol2-gas-bi.h: Remove.
782         * config/sparc/sol2-gas.h: Remove.
783         * config/sparc/sol2-gld-bi.h: Remove.
784         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
785         common parts ...
786         (*-*-solaris2*): ... here.
787
788 2011-06-21  Christian Bruel  <christian.bruel@st.com>
789
790         PR other/43564
791         * ipa-inline.c (can_inline_edge_p): Check
792         !DECL_DISREGARD_INLINE_LIMITS.
793
794 2011-06-21  Christian Bruel  <christian.bruel@st.com>
795
796         PR middle-end/49139
797         * cgraphunit.c (process_function_and_variable_attributes): warn when
798         always_inline functions that are not inline.
799         * ipa-inline-transform.c (inline_transform): Always call
800         optimize_inline.
801         * tree-inline.c (tree_inlinable_function_p): Use error instead
802         of sorry.
803         (expand_call_inline): Likewise.
804
805 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
806
807         * Makefile.in (dg_target_exps): Set.
808         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
809         instead of 7, try to divide it more evenly.
810
811 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
812
813         PR i386/49089
814         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
815         (avx256_split_unaligned_store): New definition.
816         (ix86_option_override_internal): Enable avx256 unaligned load/store
817         splitting only when avx256_split_unaligned_load/store is set.
818
819 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
820
821         * regrename.c (scan_rtx_reg): Handle the case where we write to an
822         open chain in a smaller mode without failing the entire block.
823
824 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
825
826         PR middle-end/47725
827         * combine.c (cant_combine_insn_p): Don't check zero/sign
828         extended hard registers.
829
830 2011-06-21  Alan Modra  <amodra@gmail.com>
831
832         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
833         CONST high part large-toc address.
834         (rs6000_tls_referenced_p): Make static.
835         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
836
837 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
838
839         PR middle-end/47725
840         * combine.c (cant_combine_insn_p): Check zero/sign extended
841         hard registers.
842
843 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
844
845         PR target/49385
846         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
847         one of the operands is a register.
848
849 2011-06-20  Kai Tietz  <ktietz@redhat.com>
850
851         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
852         operations in combination with binary and.
853
854 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
855
856         * regrename.c (do_replace): Don't update notes.
857
858 2011-06-20  Alan Modra  <amodra@gmail.com>
859
860         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
861         of toc-relative address in CONST.
862         (rs6000_delegitimize_address): Recognize changed address.
863         (rs6000_legitimize_reload_address): Likewise.
864         (rs6000_emit_move): Don't force these constants to memory.
865         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
866         toc-relative address in CONST.
867         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
868         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
869
870 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
871
872         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
873         (count_trailing_zeros): Likewise.
874
875 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
876
877         PR other/49325
878         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
879         .init_array can be used with .ctors on targets.
880         * configure: Regenerated.
881
882 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
883
884         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
885         if the element type is volatile.
886
887 2011-06-18  Jan Hubicka  <jh@suse.cz>
888
889         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
890         extra name aliases.
891         (lto_symtab_resolve_can_prevail_p): Likewise.
892         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
893         * cgraphbuild.c (record_reference): Remove extra body alias code.
894         (mark_load): Likewise.
895         (mark_store): Likewise.
896         * cgraph.h (varpool_node): Remove extra_name filed;
897         add alias_of and extraname_alias.
898         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
899         (varpool_alias_aliased_node): New inline function.
900         (varpool_variable_node): New function.
901         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
902         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
903         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
904         (input_varpool_node): Likewise.
905         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
906         (varpool_externally_visible_p): Remove extra body alias code.
907         (function_and_variable_visibility): Likewise.
908         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
909         (ipa_pta_execute): Use it.
910         * varpool.c (varpool_remove_node): Remove extra name alias code.
911         (varpool_mark_needed_node): Likewise.
912         (varpool_analyze_pending_decls): Analyze aliases.
913         (assemble_aliases): New functoin.
914         (varpool_assemble_decl): Use it.
915         (varpool_create_variable_alias): New function.
916         (varpool_extra_name_alias): Rewrite.
917         (varpool_for_node_and_aliases): New function.
918
919 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
920
921         PR target/49411
922         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
923         last_arg_constant and last argument doesn't match its predicate,
924         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
925         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
926         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
927         spelling of error message.
928         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
929         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
930         const_0_to_255_operand instead of const_int_operand.
931
932         Revert:
933         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
934
935         * config/i386/sse.md (blendbits): Remove mode attribute.
936         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
937         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
938         Check integer value of operand 3 in insn constraint.
939
940 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
941
942         PR rtl-optimization/48542
943         * reload.c (find_equiv_reg): Stop looking when finding a
944         setjmp-type call.
945         * reload1.c (reload_as_needed): Invalidate all reload
946         registers when crossing a setjmp-type call.
947
948 2011-06-16  Jeff Law  <law@redhat.com>
949
950         * tree-ssa-threadupdate.c (struct redirection_data): New field
951         intermediate_edge.
952         (THREAD_TARGET2): Define.
953         (redirection_data_eq): Also check that the intermediate edge is equal.
954         (lookup_redirection_data): Drop useless argument.  Extract the
955         outgoing_edge and intermediate edge from E.  Callers updated.
956         (copy_phi_args, update_destination_phis): New functions.
957         (fix_duplicate_block_edges): Likewise.
958         (create_edge_and_update_destination_phis): Duplicate all the edges
959         hung off e->aux.  Use copy_phi_args.
960         (create_duplicates): Use fix_duplicate_block_edges.
961         (fixup_template_block): Likewise.
962         (redirect_edges): If necessary, redirect the joiner block's incoming
963         edge to the duplicate of the joiner block.
964         (thread_block): Don't muck up loops when threading through a joiner
965         block.
966         (thread_through_loop_header): Handle threading through a joiner block.
967         (mark_threaded_blocks, register_jump_thread): Likewise.
968         * tree-flow.h (register_jump_thread): Add new argument.  Callers
969         updated.
970         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
971         (thread_across_edge): Handle threading through a joiner block.
972
973 2011-06-16  Martin Jambor  <mjambor@suse.cz>
974
975         PR tree-optimization/49343
976         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
977         calculate offset, provide 2nd operand for the new COMPONENT_REF.
978
979 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
980
981         * config/darwin-protos.h (machopic_select_rtx_section): Move to
982         inside RTX_CODE ifdef.
983
984 2011-06-16  Tom de Vries  <tom@codesourcery.com>
985
986         PR target/45098
987         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
988         Disallow NULL pointer for pointer arithmetic.
989
990 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
991
992         PR target/49398
993         Revert.
994         2011-06-10  Wei Guozhi  <carrot@google.com>
995
996         PR target/45335
997         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
998         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
999         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1000         related peephole2.
1001         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1002         related peephole2.
1003         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1004         (arm_legitimate_ldrd_p): New prototype.
1005         (arm_output_ldrd): New prototype.
1006         * config/arm/arm.c (arm_check_ldrd_operands): New function.
1007         (arm_legitimate_ldrd_p): New function.
1008         (arm_output_ldrd): New function.
1009
1010 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
1011
1012         PR middle-end/46500
1013         * doc/tm.texi.in: Update Copyright date.
1014         * doc/tm.texi: Regenerate.
1015         * targhooks.c (default_setup_incoming_varargs): Replace
1016         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1017         (default_pretend_outgoing_varargs_named): Likewise.
1018         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1019         (hook_callee_copies_named): Likewise.
1020         (default_function_arg_advance): Likewise.
1021         (default_function_arg): Likewise.
1022         (default_function_incoming_arg): Likewise.
1023         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1024         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1025         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1026         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1027         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1028         * targhooks.h (default_setup_incoming_varargs): Likewise.
1029         (default_pretend_outgoing_varargs_named): Likewise.
1030         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1031         (hook_callee_copies_named): Likewise.
1032         (default_function_arg_advance): Likewise.
1033         (default_function_arg): Likewise.
1034         (default_function_incoming_arg): Likewise.
1035         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1036         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1037         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1038         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1039         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1040         * target.def (pass_by_reference): Likewise.
1041         (setup_incoming_varargs, strict_argument_naming): Likewise.
1042         (pretend_outgoing_varargs_named, callee_copies): Likewise.
1043         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1044         (function_incoming_arg): Likewise.
1045         * target.h: Don't include "tm.h" .
1046         (cumulative_args_t): New typedef.
1047         [GCC_TM_H] (get_cumulative_args): New static inline function.
1048         [GCC_TM_H] (pack_cumulative_args): Likewise.
1049         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1050         argument type with cumulative_args_t.
1051         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1052         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1053         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1054         (frv_arg_partial_bytes, frv_function_arg): Likewise.
1055         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1056         (frv_function_arg_1): Likewise.
1057         * config/s390/s390.c (s390_pass_by_reference): Likewise.
1058         (s390_function_arg_advance, s390_function_arg): Likewise.
1059         * config/m32c/m32c.c (m32c_function_arg): Likewise.
1060         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1061         (m32c_strict_argument_naming): Likewise.
1062         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1063         (spu_function_arg_advance): Likewise.
1064         (spu_setup_incoming_varargs): Likewise.  Make static.
1065         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1066         Remove prototype.
1067         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1068         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1069         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1070         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1071         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1072         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1073         (mep_pass_by_reference, mep_function_arg): Likewise.
1074         (mep_function_arg_advance): Likewise.
1075         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1076         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1077         (m32r_function_arg, m32r_function_arg_advance): Likewise.
1078         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1079         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1080         (ix86_function_arg, ix86_pass_by_reference): Likewise.
1081         (ix86_setup_incoming_varargs): Likewise.
1082         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1083         (sh_strict_argument_naming): Likewise.
1084         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1085         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1086         (sh_function_arg_advance, sh_function_arg): Likewise.
1087         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1088         (pdp11_function_arg_advance): Likewise.
1089         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1090         Likewise.
1091         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1092         * config/avr/avr.c (avr_function_arg): Likewise.
1093         (avr_function_arg_advance): Likewise.
1094         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1095         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1096         (xtensa_function_arg_1): Likewise.
1097         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1098         Likewise.
1099         (xstormy16_function_arg): Likewise.
1100         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1101         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1102         (fr30_function_arg_advance): Likewise.
1103         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1104         (lm32_function_arg, lm32_function_arg_advance): Likewise.
1105         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1106         (moxie_function_arg, moxie_function_arg_advance): Likewise.
1107         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1108         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1109         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1110         (cris_function_arg, cris_function_incoming_arg): Likewise.
1111         (cris_function_arg_advance, cris_function_arg_1): Likewise.
1112         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1113         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1114         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1115         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1116         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1117         (mn10300_arg_partial_bytes): Likewise.
1118         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1119         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1120         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1121         (ia64_function_arg_1): Likewise.
1122         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1123         (m68k_function_arg): Likewise.
1124         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1125         (rs6000_function_arg, setup_incoming_varargs): Likewise.
1126         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1127         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1128         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1129         (picochip_arg_advance): Likewise.
1130         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1131         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1132         (mcore_function_arg_advance): Likewise.
1133         * config/score/score.c (score_pass_by_reference): Likewise.
1134         (score_function_arg_advance): Likewise.
1135         (score_arg_partial_bytes): Likewise.  Make static.
1136         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1137         * config/arm/arm.c (arm_arg_partial_bytes): Replace
1138         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1139         (arm_function_arg, arm_function_arg_advance): Likewise.
1140         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1141         * config/pa/pa.c (pa_pass_by_reference): Likewise.
1142         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1143         (pa_function_arg): Likewise.
1144         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1145         (mips_function_arg, mips_function_arg_advance): Likewise.
1146         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1147         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1148         * config/vax/vax.c (vax_function_arg): Likewise.
1149         (vax_function_arg_advance): Likewise.
1150         * config/h8300/h8300.c (h8300_function_arg): Likewise.
1151         (h8300_function_arg_advance): Likewise.
1152         * config/v850/v850.c (v850_pass_by_reference): Likewise.
1153         (v850_strict_argument_naming, v850_function_arg): Likewise.
1154         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1155         (v850_setup_incoming_varargs): Likewise.
1156         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1157         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1158         (mmix_function_arg, mmix_pass_by_reference): Likewise.
1159         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1160         with const void *.
1161         * config/bfin/bfin.c (setup_incoming_varargs): Replace
1162         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1163         (bfin_function_arg_advance, bfin_function_arg): Likewise.
1164         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1165         * calls.c (emit_call_1): Change type of args_so_far to
1166         cumulative_args_t.  Changed all callers.
1167         (initialize_argument_information): Likewise.
1168         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1169         * dse.c (get_call_args): Likewise.
1170         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1171         * function.c (pass_by_reference, reference_callee_copied): Likewise.
1172         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1173         New member args_so_far_v.  Changed all users.
1174         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1175         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1176         * config/mips/mips.c (mips_output_args_xfer): Likewise.
1177         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1178         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1179         * config/microblaze/microblaze.c (microblaze_expand_prologue):
1180         Likewise.
1181         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1182         m32r_pass_by_reference.
1183
1184 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
1185
1186         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1187         argument to be a VEC of statements.
1188         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1189         assert that pattern statements have to have their vector type set.
1190         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1191         Change the first argument to be a VEC of statements.  Update
1192         documentation.
1193         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1194         (vect_handle_widen_mult_by_const): New function.
1195         (vect_recog_widen_mult_pattern):  Change the first argument to be a
1196         VEC of statements.  Update documentation.  Check that the constant is
1197         INTEGER_CST.  Support multiplication by a constant that fits an
1198         intermediate type - call vect_handle_widen_mult_by_const.
1199         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1200         call.  Handle additional pattern statements if necessary.
1201
1202 2011-06-16  Nick Clifton  <nickc@redhat.com>
1203
1204         PR target/49427
1205         * config.gcc: Set cpu_type to v850 for any V850 architecture.
1206         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1207         md_file, extra_modes, out_file and extra_options are these are all
1208         deduced from cpu_type.
1209
1210 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1211
1212         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1213         truncation mask to 63.
1214
1215 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1216
1217         PR target/49313
1218         PR target/29524
1219         * longlong.h: Add AVR support:
1220         (count_leading_zeros): New macro.
1221         (count_trailing_zeros): New macro.
1222         (COUNT_LEADING_ZEROS_0): New macro.
1223         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1224         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1225         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1226         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1227         (LIB2FUNCS_EXCLUDE): Add _clz.
1228         * config/avr/libgcc.S (XCALL): Move up in file.
1229         (XJMP): New C Macro.
1230         (DEFUN): New asm macro.
1231         (ENDF): New asm macro.
1232         (__ffssi2): New function.
1233         (__ffshi2): New function.
1234         (__loop_ffsqi2): New function.
1235         (__ctzsi2): New function.
1236         (__ctzhi2): New function.
1237         (__clzdi2): New function.
1238         (__clzsi2): New function.
1239         (__clzhi2): New function.
1240         (__paritydi2): New function.
1241         (__paritysi2): New function.
1242         (__parityhi2): New function.
1243         (__parityqi2): New function.
1244         (__popcounthi2): New function.
1245         (__popcountsi2): New function.
1246         (__popcountdi2): New function.
1247         (__popcountqi2): New function.
1248         (__bswapsi2): New function.
1249         (__bswapdi2): New function.
1250         (__ashldi3): New function.
1251         (__ashrdi3): New function.
1252         (__lshrdi3): New function.
1253         Fix suspicous lines.
1254
1255 2011-06-16  Richard Guenther  <rguenther@suse.de>
1256
1257         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1258         the same as x != 0.
1259         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1260         to (bool) X & 1.
1261         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1262         equality compares against zero for the lower bit.
1263
1264 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
1265
1266         PR tree-optimization/49419
1267         * tree-vrp.c (execute_vrp): Call init_range_assertions
1268         before estimate_numbers_of_iterations, call
1269         free_number_of_iterations_estimates before calling
1270         remove_range_assertions.
1271
1272 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1273
1274         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1275         (struct partial_schedule): Add rows_length field.
1276         (verify_partial_schedule): Check rows_length.
1277         (ps_insert_empty_row): Handle rows_length.
1278         (create_partial_schedule): Likewise.
1279         (free_partial_schedule): Likewise.
1280         (reset_partial_schedule): Likewise.
1281         (create_ps_insn): Remove rest_count argument.
1282         (remove_node_from_ps): Update rows_length.
1283         (add_node_to_ps): Update rows_length and call create_ps_insn
1284         without passing row_rest_count.
1285         (rotate_partial_schedule): Update rows_length.
1286
1287 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1288
1289         * ddg.c (add_intra_loop_mem_dep): New function.
1290         (build_intra_loop_deps): Call it.
1291
1292 2011-06-13  Jeff Law  <law@redhat.com>
1293
1294         * df-problems.c (df_lr_local_compute): Manually CSE
1295         PIC_OFFSET_TABLE_REGNUM.
1296         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1297         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1298
1299 2011-06-13  Jan Hubicka  <jh@suse.cz>
1300
1301         * cgraphunit.c (handle_alias_pairs): New function.
1302         (cgraph_finalize_compilation_unit): Use it.
1303         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1304         as externally visible.
1305
1306 2011-06-15  Richard Guenther  <rguenther@suse.de>
1307
1308         * expr.c (expand_expr_real_2): Reduce all integral types to
1309         bitfield precision.
1310         (expand_expr_real_1): Likewise.
1311
1312 2011-06-15  Martin Jambor  <mjambor@suse.cz>
1313
1314         PR tree-optimization/48613
1315         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1316         ipa_node_params_vector is NULL.
1317
1318 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
1319
1320         PR debug/49382
1321         * dwarf2out.c (dw_loc_list_node): Add force field.
1322         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1323         location in the list, even if it is modified before first real insn.
1324         (output_loc_list): Emit empty ranges with force flag set.
1325         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1326
1327 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
1328
1329         PR target/49349
1330         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1331         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
1332         above a fence.  Update comments.
1333         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1334         placed just above it.  Do not allow NULL place_to_insert.
1335
1336 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
1337
1338         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1339         (slpeel_tree_peel_loop_to_edge): Don't call
1340         remove_dead_stmts_from_loop.
1341         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1342         remove irrelevant pattern statements.  For irrelevant statements
1343         check if it is the last statement of a detected pattern, use
1344         corresponding pattern statement instead.
1345         (destroy_loop_vec_info): No need to remove pattern statements,
1346         only free stmt_vec_info.
1347         (vect_transform_loop): For irrelevant statements check if it is
1348         the last statement of a detected pattern, use corresponding
1349         pattern statement instead.
1350         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1351         pattern statements.  Set basic block for the new statement.
1352         (vect_pattern_recog): Update documentation.
1353         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1354         operands of pattern statements.
1355         (vectorizable_call): Fix printing.  In case of a pattern statement
1356         use the lhs of the original statement when creating a dummy
1357         statement to replace the original call.
1358         (vect_analyze_stmt): For irrelevant statements check if it is
1359         the last statement of a detected pattern, use corresponding
1360         pattern statement instead.
1361         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1362         statements use gsi of the original statement.
1363
1364 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1365
1366         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1367         common/common-target-def.h.
1368         * target.def (default_target_flags, handle_option,
1369         supports_split_stack, optimization_table, init_struct,
1370         except_unwind_info, unwind_tables_default, have_named_sections):
1371         Move to common/common-target.def.
1372         * target.h (enum opt_levels, struct default_options): Move to
1373         common/common-target.h.
1374         * targhooks.c (default_except_unwind_info,
1375         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1376         default_target_handle_option, empty_optimization_table): Move to
1377         common/common-targhooks.c.
1378         * targhooks.h (default_except_unwind_info,
1379         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1380         default_target_handle_option, empty_optimization_table): Move to
1381         common/common-targhooks.h.
1382         * common/common-target-def.h: Include common/common-targhooks.h.
1383         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1384         defined.
1385         * common/common-target.def (handle_option, option_init_struct,
1386         option_optimization_table, default_target_flags,
1387         except_unwind_info, supports_split_stack, unwind_tables_default,
1388         have_named_sections): Move from target.def.
1389         (HOOK_PREFIX): Undefine at end of file.
1390         * common/common-target.h: Include input.h.
1391         (enum opt_levels, struct default_options): Move from target.h.
1392         * common/common-targhooks.c, common/common-targhooks.h: New.
1393         * config.gcc (target_has_targetm_common): Default to yes.
1394         (moxie*): Set target_has_targetm_common=no.
1395         (hppa*-*-*): Don't set target_has_targetm_common=yes.
1396         * doc/tm.texi: Regenerate.
1397         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1398         (C_TARGET_DEF_H): Add common/common-targhooks.h.
1399         (GCC_OBJS): Remove vec.o.
1400         (OBJS): Remove hooks.o and vec.o.
1401         (OBJS-libcommon-target): Add vec.o, hooks.o and
1402         common/common-targhooks.o.
1403         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1404         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1405         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1406         cfglayout.o, $(out_object_file), $(common_out_object_file)):
1407         Update dependencies.
1408         (common/common-targhooks.o): New.
1409         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
1410         * common/config/pa/pa-common.c: Include more headers.  Take
1411         copyright dates from pa.c.
1412         (pa_option_optimization_table, pa_handle_option,
1413         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1414         TARGET_HANDLE_OPTION): Move from pa.c.
1415         * common/config/alpha/alpha-common.c,
1416         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1417         common/config/bfin/bfin-common.c,
1418         common/config/cris/cris-common.c,
1419         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1420         common/config/h8300/h8300-common.c,
1421         common/config/i386/i386-common.c,
1422         common/config/ia64/ia64-common.c,
1423         common/config/iq2000/iq2000-common.c,
1424         common/config/lm32/lm32-common.c,
1425         common/config/m32c/m32c-common.c,
1426         common/config/m32r/m32r-common.c,
1427         common/config/m68k/m68k-common.c,
1428         common/config/mcore/mcore-common.c,
1429         common/config/mep/mep-common.c,
1430         common/config/microblaze/microblaze-common.c,
1431         common/config/mips/mips-common.c,
1432         common/config/mmix/mmix-common.c,
1433         common/config/mn10300/mn10300-common.c,
1434         common/config/pdp11/pdp11-common.c,
1435         common/config/picochip/picochip-common.c,
1436         common/config/rs6000/rs6000-common.c,
1437         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1438         common/config/score/score-common.c, common/config/sh/sh-common.c,
1439         common/config/sparc/sparc-common.c,
1440         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1441         common/config/vax/vax-common.c,
1442         common/config/xstormy16/xstormy16-common.c,
1443         common/config/xtensa/xtensa-common.c: New.
1444         * config/alpha/alpha.c: Include common/common-target.h.
1445         (alpha_option_optimization_table, alpha_handle_option,
1446         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1447         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1448         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1449         * config/arm/arm.c (arm_option_optimization_table,
1450         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1451         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1452         arm-common.c.
1453         * config/avr/avr.c (avr_option_optimization_table,
1454         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1455         to avr-common.c.
1456         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1457         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1458         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1459         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1460         * config/cris/cris.c (cris_option_optimization_table,
1461         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1462         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1463         cris-common.c.
1464         * config/fr30/fr30.c (fr30_option_optimization_table,
1465         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1466         to fr30-common.c.
1467         * config/frv/frv.c (frv_option_optimization_table,
1468         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1469         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1470         * config/h8300/h8300.c (h8300_option_optimization_table,
1471         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1472         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1473         * config/i386/i386-protos.h (ix86_handle_option): Declare.
1474         * config/i386/i386.c: Include common/common-target.h.
1475         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1476         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1477         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1478         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1479         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1480         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1481         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1482         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1483         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1484         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1485         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1486         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1487         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1488         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1489         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1490         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1491         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1492         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1493         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1494         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1495         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1496         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1497         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1498         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1499         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1500         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1501         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1502         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1503         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1504         ix86_option_optimization_table, ix86_option_init_struct,
1505         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1506         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1507         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1508         i386-common.c.
1509         * config/i386/t-i386 (i386.o): Update dependencies.
1510         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1511         * config/ia64/ia64.c (ia64_option_optimization_table,
1512         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1513         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1514         ia64_handle_option): Move to ia64-common.c.
1515         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1516         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1517         * config/lm32/lm32.c (lm32_option_optimization_table,
1518         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1519         to lm32-common.c.
1520         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1521         m32c-common.c.
1522         * config/m32r/m32r.c (m32r_option_optimization_table,
1523         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1524         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1525         m32r_handle_option): Move to m32r-common.c.
1526         (m32r_memory_move_cost): Remove comment referring to
1527         TARGET_HANDLE_OPTION.
1528         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1529         Move to m68k-common.c.
1530         * config/mcore/mcore.c (mcore_option_optimization_table,
1531         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1532         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1533         * config/mep/mep.c (mep_option_optimization_table,
1534         mep_handle_option, TARGET_HANDLE_OPTION,
1535         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1536         Move to mep-common.c.
1537         * config/microblaze/microblaze.c
1538         (microblaze_option_optimization_table,
1539         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1540         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1541         * config/mips/mips.c (mips_handle_option,
1542         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1543         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1544         mips-common.c.
1545         * config/mmix/mmix.c (mmix_option_optimization_table,
1546         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1547         Move to mmix-common.c.
1548         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1549         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1550         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1551         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1552         * config/pa/pa.c: Include common/common-target.h.
1553         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1554         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1555         pa_handle_option): Move to pa-common.c.
1556         (pa_option_override): Use targetm_common.except_unwind_info.
1557         (pa_asm_output_mi_thunk, pa_function_section): Use
1558         targetm_common.have_named_sections.
1559         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1560         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1561         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1562         pdp11_handle_option, pdp11_option_init_struct): Move to
1563         pdp11-common.c.
1564         * config/picochip/picochip.c (picochip_option_optimization_table,
1565         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1566         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1567         * config/rs6000/rs6000.c: Include common/common-target.h.
1568         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1569         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1570         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1571         rs6000_handle_option): Move to rs6000-common.c.
1572         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1573         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1574         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1575         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1576         * config/s390/s390.c (processor_flags_table,
1577         s390_option_optimization_table, s390_option_init_struct,
1578         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1579         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1580         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1581         * config/s390/s390.h (processor_flags_table): Declare.
1582         * config/score/score.c (score_option_optimization_table,
1583         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1584         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1585         score_handle_option): Move to score-common.c.
1586         * config/sh/sh.c (sh_option_optimization_table,
1587         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1588         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1589         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1590         * config/sparc/sparc.c: Include common/common-target.h.
1591         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1592         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1593         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1594         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1595         spu_option_init_struct): Move to spu-common.c.
1596         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1597         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1598         * config/v850/v850.c (small_memory_physical_max,
1599         v850_handle_memory_optionn v850_handle_option,
1600         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1601         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1602         v850-common.c.
1603         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1604         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1605         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1606         Move to xtensa-common.c.
1607         * cfglayout.c: Include common/common-target.h.
1608         (fixup_reorder_chain): Use targetm_common.have_named_sections.
1609         * cfgrtl.c: Include common/common-target.h.
1610         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1611         targetm_common.have_named_sections.
1612         * dbxout.c: Include common/common-target.h.
1613         (dbxout_function_end): Use targetm_common.have_named_sections.
1614         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1615         targetm_common.except_unwind_info.
1616         * dwarf2out.c: Include common/common-target.h.
1617         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1618         dwarf2out_begin_prologue, dwarf2out_frame_init,
1619         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1620         targetm_common.except_unwind_info.
1621         * except.c: Include common/common-target.h.
1622         (init_eh, finish_eh_generation,
1623         output_one_function_exception_table): Use
1624         targetm_common.except_unwind_info.
1625         (switch_to_exception_section): Use targetm_common.have_named_sections.
1626         * explow.c: Include common/common-target.h.
1627         * expr.c: Include common/common-target.h.
1628         (build_personality_function): Use targetm_common.except_unwind_info.
1629         * function.c: Include common/common-target.h.
1630         (expand_function_end): Use targetm_common.except_unwind_info.
1631         * haifa-sched.c: Include common/common-target.h.
1632         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1633         * lto-opts.c: Include common/common-target.h instead of target.h.
1634         (lto_reissue_options): Use targetm_common.handle_option.
1635         * opts.c: Include common/common-target.h.
1636         (target_handle_option): Use targetm_common.handle_option.
1637         (init_options_struct): Update comment referring to
1638         targetm.target_option.optimization.  Use
1639         targetm_common.default_target_flags,
1640         targetm_common.unwind_tables_default and
1641         targetm_common.option_init_struct.
1642         (default_options_optimization): Use
1643         targetm_common.option_optimization_table.
1644         (finish_options): Use targetm_common.except_unwind_info,
1645         targetm_common.unwind_tables_default,
1646         targetm_common.have_named_sections and
1647         targetm_common.supports_split_stack.
1648         * toplev.c: Include common/common-target.h.
1649         (process_options): Use targetm_common.have_named_sections.
1650         * tree-tailcall.c: Include common/common-target.h.
1651         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
1652         * tree.c: Include common/common-target.h.
1653         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
1654         * varasm.c: Include common/common-target.h.
1655         (resolve_unique_section, hot_function_section,
1656         default_function_section): Use targetm_common.have_named_sections.
1657
1658 2011-06-14  Easwaran Raman  <eraman@google.com>
1659
1660         PR rtl-optimization/44194
1661         * dse.c: Include tree-flow.h
1662         (insn_info): Add new field non_frame_wild_read.
1663         (group_info): Add new fields escaped_n and escaped_p.
1664         (kill_on_calls): New variable.
1665         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1666         (dse_step0): Initialize kill_on_calls.
1667         (can_escape): New function.
1668         (set_usage_bits): Add additional parameter; record information
1669         about escaped locations.
1670         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
1671         (dse_step2_nospill): Set kill_on_calls based on
1672         group->escaped_n and group->escaped_n.
1673         (add_wild_read): Refactor into...
1674         (reset_active_stores): ... New function, and
1675         (free_read_records): ... New function.
1676         (add_non_frame_wild_read): New function.
1677         (scan_insn): Call add_non_frame_wild_read on non-const calls.
1678         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
1679         (dse_step5_nospill): Call scan_reads_nospill for instructions
1680         marked as non_frame_wild_read.
1681         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
1682
1683 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1684
1685         * common/common-target-def.h, common/common-target.def,
1686         common/common-target.h, common/config/default-common.c,
1687         common/config/pa/pa-common.c: New files.
1688         * Makefile.in (common_out_file, common_out_object_file,
1689         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1690         (OBJS-libcommon-target): Include $(common_out_object_file).
1691         (prefix.o): Update dependencies.
1692         ($(common_out_object_file), common/common-target-hooks-def.h,
1693         s-common-target-hooks-def-h): New.
1694         (s-tm-texi): Also check timestamp on common-target.def.
1695         (build/genhooks.o): Update dependencies.
1696         * config.gcc (common_out_file, target_has_targetm_common): Define.
1697         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1698         TARGET_ALWAYS_STRIP_DOTDOT.
1699         * configure.ac (common_out_object_file): Define.
1700         (common_out_file, common_out_object_file): Substitute.
1701         (common): Create directory.
1702         * configure: Regenerate.
1703         * doc/tm.texi.in (targetm_common): Document.
1704         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1705         * doc/tm.texi: Regenerate.
1706         * genhooks.c (hook_array): Also include common/common-target.def.
1707         * prefix.c (tm.h): Don't include.
1708         (common/common-target.h): Include.
1709         (ALWAYS_STRIP_DOTDOT): Don't define.
1710         (update_path): Use targetm_common.always_strip_dotdot instead of
1711         ALWAYS_STRIP_DOTDOT.
1712         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1713
1714 2011-06-14  David Li  <davidxl@google.com>
1715
1716         * passes.c (execute_function_todo): Remove TODO_dump_func.
1717         (execute_one_pass): Remove TODO_dump_func.
1718         (execute_function_dump): New function.
1719         * tree-vrp.c: Remove TODO_dump_func.
1720         * regrename.c: Remove TODO_dump_func.
1721         * fwprop.c: Remove TODO_dump_func.
1722         * tree-into-ssa.c: Remove TODO_dump_func.
1723         * tree-complex.c: Remove TODO_dump_func.
1724         * tracer.c: Remove TODO_dump_func.
1725         * tree-loop-distribution.c: Remove TODO_dump_func.
1726         * postreload-gcse.c: Remove TODO_dump_func.
1727         * postreload.c: Remove TODO_dump_func.
1728         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1729         * tree-tailcall.c: Remove TODO_dump_func.
1730         * ipa-cp.c: Remove TODO_dump_func.
1731         * final.c: Remove TODO_dump_func.
1732         * tree-emutls.c: Remove TODO_dump_func.
1733         * omp-low.c: Remove TODO_dump_func.
1734         * tree-ssa-dse.c: Remove TODO_dump_func.
1735         * tree-ssa-uncprop.c: Remove TODO_dump_func.
1736         * auto-inc-dec.c: Remove TODO_dump_func.
1737         * reorg.c: Remove TODO_dump_func.
1738         * tree-ssa-copyrename.c: Remove TODO_dump_func.
1739         * tree-ssa-ccp.c: Remove TODO_dump_func.
1740         * compare-elim.c: Remove TODO_dump_func.
1741         * mode-switching.c: Remove TODO_dump_func.
1742         * modulo-sched.c: Remove TODO_dump_func.
1743         * tree-call-cdce.c: Remove TODO_dump_func.
1744         * cse.c: Remove TODO_dump_func.
1745         * web.c: Remove TODO_dump_func.
1746         * tree-stdarg.c: Remove TODO_dump_func.
1747         * lto-streamer-out.c: Remove TODO_dump_func.
1748         * tree-ssa-math-opts.c: Remove TODO_dump_func.
1749         * tree-ssa-dom.c: Remove TODO_dump_func.
1750         * tree-nrv.c: Remove TODO_dump_func.
1751         * loop-init.c: Remove TODO_dump_func.
1752         * gimple-low.c: Remove TODO_dump_func.
1753         * ipa-inline.c: Remove TODO_dump_func.
1754         * tree-ssa-sink.c: Remove TODO_dump_func.
1755         * jump.c: Remove TODO_dump_func.
1756         * ifcvt.c: Remove TODO_dump_func.
1757         * tree-ssa-loop.c: Remove TODO_dump_func.
1758         * recog.c: Remove TODO_dump_func.
1759         * dse.c: Remove TODO_dump_func.
1760         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1761         * matrix-reorg.c: Remove TODO_dump_func.
1762         * tree-eh.c: Remove TODO_dump_func.
1763         * regmove.c: Remove TODO_dump_func.
1764         * function.c: Remove TODO_dump_func.
1765         * tree-vectorizer.c: Remove TODO_dump_func.
1766         * ipa-split.c: Remove TODO_dump_func.
1767         * gcse.c: Remove TODO_dump_func.
1768         * tree-if-conv.c: Remove TODO_dump_func.
1769         * init-regs.c: Remove TODO_dump_func.
1770         * tree-ssa-phiopt.c: Remove TODO_dump_func.
1771         * implicit-zee.c: Remove TODO_dump_func.
1772         * lower-subreg.c: Remove TODO_dump_func.
1773         * bt-load.c: Remove TODO_dump_func.
1774         * tree-dfa.c: Remove TODO_dump_func.
1775         * except.c: Remove TODO_dump_func.
1776         * emit-rtl.c: Remove TODO_dump_func.
1777         * store-motion.c: Remove TODO_dump_func.
1778         * cfgexpand.c: Remove TODO_dump_func.
1779         * tree-cfgcleanup.c: Remove TODO_dump_func.
1780         * cfgcleanup.c: Remove TODO_dump_func.
1781         * tree-ssa-pre.c: Remove TODO_dump_func.
1782         * tree-sra.c: Remove TODO_dump_func.
1783         * tree-mudflap.c: Remove TODO_dump_func.
1784         * tree-ssa-copy.c: Remove TODO_dump_func.
1785         * cfglayout.c: Remove TODO_dump_func.
1786         * tree-ssa-forwprop.c: Remove TODO_dump_func.
1787         * tree-ssa-dce.c: Remove TODO_dump_func.
1788         * ira.c: Remove TODO_dump_func.
1789         * tree-ssa.c: Remove TODO_dump_func.
1790         * integrate.c: Remove TODO_dump_func.
1791         * tree-optimize.c: Remove TODO_dump_func.
1792         * tree-ssa-phiprop.c: Remove TODO_dump_func.
1793         * tree-object-size.c: Remove TODO_dump_func.
1794         * combine.c: Remove TODO_dump_func.
1795         * bb-reorder.c: Remove TODO_dump_func.
1796         * cprop.c: Remove TODO_dump_func.
1797         * var-tracking.c: Remove TODO_dump_func.
1798         * tree-profile.c: Remove TODO_dump_func.
1799         * tree-vect-generic.c: Remove TODO_dump_func.
1800         * reg-stack.c: Remove TODO_dump_func.
1801         * sched-rgn.c: Remove TODO_dump_func.
1802         * tree-ssa-structalias.c: Remove TODO_dump_func.
1803         * tree-switch-conversion.c: Remove TODO_dump_func.
1804         * tree-cfg.c: Remove TODO_dump_func.
1805         * tree-ssa-reassoc.c: Remove TODO_dump_func.
1806         * combine-stack-adj.c: Remove TODO_dump_func.
1807         * dce.c: Remove TODO_dump_func.
1808         * tree-ssanames.c: Remove TODO_dump_func.
1809         * regcprop.c: Remove TODO_dump_func.
1810
1811 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1812
1813         PR middle-end/47364
1814         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1815         and properly handle result not in Pmode.
1816
1817 2011-06-14  Robert Millan  <rmh@gnu.org>
1818
1819         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1820         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1821         `config/linux.h'.
1822
1823         * config/i386/kfreebsd-gnu64.h: New file.
1824         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1825         with `i386/kfreebsd-gnu64.h'.
1826
1827         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1828         (GNU_USER_LINK_EMULATION64): New macros.
1829         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1830         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1831         of hardcoding `elf_i386' and `elf_x86_64'.
1832
1833 2011-06-14  Nick Clifton  <nickc@redhat.com>
1834
1835         PR target/49403
1836         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1837
1838         PR target/49402
1839         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1840
1841 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
1842
1843         PR fortran/49103
1844         * tree.h (DECL_NONSHAREABLE): Define.
1845         (struct tree_decl_common): Change decl_common_unused to
1846         decl_nonshareable_flag.
1847         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1848         Ignore vars with DECL_NONSHAREABLE bit set.
1849         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1850         on stores to automatic aggregate vars.
1851
1852         PR rtl-optimization/49390
1853         Revert:
1854         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
1855
1856         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1857         MEM_ALIAS_SET.
1858
1859 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
1860             Tom de Vries  <tom@codesourcery.com>
1861
1862         PR target/45098
1863         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1864         Document changed semantics.
1865         (max_stmt_executions, max_stmt_executions_int): Declare.
1866         * tree-data-ref.c (estimated_loop_iterations)
1867         (estimated_loop_iterations_int): Move functions...
1868         * tree-ssa-loop-niter.c (estimated_loop_iterations)
1869         (estimated_loop_iterations_int): here.
1870         (record_estimate): Change nb_iterations_upper_bound and
1871         nb_iterations_estimate semantics.
1872         (max_stmt_executions, max_stmt_executions_int): New function.
1873         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1874         (max_stmt_executions_tree): this.
1875         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1876         estimated_loop_iterations_tree.
1877         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1878         max_stmt_executions_int instead of estimated_loop_iterations_int.
1879         * predict.c (predict_loops): Idem.
1880         * tree-parloops.c (parallelize_loops): Idem.
1881         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1882         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1883         (init_omega_for_ddr_1): Idem.
1884         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1885         (loop_prefetch_arrays): Idem
1886         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1887         max_stmt_executions instead of estimated_loop_iterations.
1888         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1889         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1890         instead of nb_iterations_upper_bound.
1891
1892 2011-06-13  Jan Hubicka  <jh@suse.cz>
1893
1894         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1895
1896 2011-06-14  Richard Henderson  <rth@redhat.com>
1897
1898         PR debug/48459
1899         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1900         (based_loc_descr): Assert it's true.
1901         (compute_frame_pointer_to_fb_displacement): Set it, rather than
1902         aborting immediately.
1903
1904 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
1905             Mingfeng Wu  <mingfeng@faraday-tech.com>
1906
1907         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1908
1909 2011-06-13  Jan Hubicka  <jh@suse.cz>
1910
1911         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1912
1913 2011-06-13  Jan Hubicka  <jh@suse.cz>
1914
1915         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1916         similarly to DECL_COMDAT.
1917         * cgraphunit.c (cgraph_analyze_function): Likewise.
1918         * ipa.c (function_and_variable_visibility): Likewise.
1919
1920 2011-06-13  Jan Hubicka  <jh@suse.cz>
1921
1922         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1923         BINFO_VIRTUALS when streaming for ltrans unit.
1924
1925 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
1926
1927         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1928         (movdi_internal64): Same.
1929
1930 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
1931
1932         PR target/44618
1933         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1934         a set of similar patterns, where the MATCH_OPERAND for the function
1935         argument is replaced with individual references to hardware registers.
1936         (save_fpregs_<mode>): Ditto
1937         (restore_gpregs_<mode>): Ditto
1938         (return_and_restore_gpregs_<mode>): Ditto
1939         (return_and_restore_fpregs_<mode>): Ditto
1940         (return_and_restore_fpregs_aix_<mode>): Ditto
1941
1942 2011-06-13  Jan Hubicka  <jh@suse.cz>
1943
1944         * ipa-utils.c (postorder_stack): New structure.
1945         (ipa_reverse_postorder): Handle aliases.
1946
1947 2011-06-13  Jan Hubicka  <jh@suse.cz>
1948
1949         * ipa-inline.c (reset_edge_caches): Walk aliases.
1950         (update_caller_keys): Do not test inlinability of aliases.
1951         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1952         (do_estimate_growth): Fix typo.
1953
1954 2011-06-13  Jan Hubicka  <jh@suse.cz>
1955
1956         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1957         (can_remove_node_now_p): ... here; handle same comdat groups.
1958         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1959         (inline_call): Update use of can_remove_node_now_p.
1960
1961 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1962
1963         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1964         condition to disallow non-identical memory locations.
1965         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1966         preference to bit manipulation instructions.
1967
1968 2011-06-13  Jan Hubicka  <jh@suse.cz>
1969
1970         * cgraph.c (cgraph_for_node_thunks_and_aliases,
1971         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1972         (nonremovable_p): New function.
1973         (cgraph_can_remove_if_no_direct_calls_p): New function.
1974         (used_from_object_file_p): New functoin.
1975         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1976         references from aliases.
1977         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1978         * ipa-inline.c (check_caller_edge): New function.
1979         (want_inline_function_called_once_p): Use it; accept aliases called
1980         once, too.
1981         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1982
1983 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1984
1985         PR target/48454
1986         * config/arm/neon.md (vec_pack_trunc): Set the lengths
1987         correctly for the case with Quad vectors.
1988
1989 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
1990            Ira Rosen  <ira.rosen@linaro.org>
1991
1992         PR tree-optimization/49352
1993         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1994         all, make sure loop_use_stmt after the loop is a def stmt of a used
1995         SSA_NAME that is the only one defined inside of the loop.  Don't
1996         check for COND_EXPR and GIMPLE_BINARY_RHS.
1997         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1998         check_reduction is true.
1999
2000 2011-06-11  Jan Hubicka  <jh@suse.cz>
2001
2002         PR middle-end/49373
2003         * ipa.c (cgraph_externally_visible_p): Check resolution info.
2004
2005 2011-06-11  Jan Hubicka  <jh@suse.cz>
2006
2007         PR middle-end/48836
2008         * ipa-inline-transform.c: Include tree-pass.h
2009         (inline_transform): Set TODO_update_ssa_only_virtuals.
2010         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2011
2012 2011-06-11  Jan Hubicka  <jh@suse.cz>
2013
2014         PR middle-end/49378
2015         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2016         aliases and thunks.
2017
2018 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
2019
2020         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2021         Take number of iterations to peel into account for equally frequent
2022         misalignment values.
2023
2024 2011-06-11  Jan Hubicka  <jh@suse.cz>
2025
2026         * lto-streamer-out.c (produce_symtab): Stream out the newly
2027         represented aliases.
2028
2029 2011-06-11  Jan Hubicka  <jh@suse.cz>
2030
2031         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2032         varying args.
2033         (ipa_update_after_lto_read): Likewise.
2034         (ipa_write_node_info): Do not sream call_with_var_arguments.
2035         (ipa_read_node_info): Likewise.
2036
2037 2011-06-11  Jan Hubicka  <jh@suse.cz>
2038
2039         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2040
2041 2011-06-11  Jan Hubicka  <jh@suse.cz>
2042
2043         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2044         (lto_symtab_resolve_can_prevail_p): Likewise.
2045         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2046         * cgraph.c (same_body_aliases_done): New global var.
2047         (cgraph_same_body_alias_1): Rename to ...
2048         (cgraph_create_function_alias): ... this one; reorg to new
2049         representation.
2050         (cgraph_same_body_alias): Use cgraph_create_function_alias;
2051         record references when asked to.
2052         (cgraph_add_thunk): Fix formating.
2053         (cgraph_get_node): Kill same body alias code.
2054         (cgraph_node_for_asm): Likewise.
2055         (cgraph_remove_same_body_alias): Remove.
2056         (cgraph_remove_node): Kill same body alias code.
2057         (cgraph_mark_address_taken_node): Mark also the aliased function
2058         as having address taken.
2059         (dump_cgraph_node): Dump same body aliases.
2060         (cgraph_for_node_thunks_and_aliases): Update for new alias
2061         representation.
2062         (cgraph_for_node_and_aliases): Likewise.
2063         * cgraph.h (same_body): Kll pointer.
2064         (same_body_alias): Update comment.
2065         (same_body_aliases_done): Declare.
2066         (cgraph_remove_same_body_alias): Remove declaration.
2067         (cgraph_create_function_alias): Declare.
2068         (cgraph_process_same_body_aliases): Declare.
2069         (cgraph_function_with_gimple_body_p): Check for alias.
2070         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2071         (cgraph_alias_aliased_node): New function.
2072         (cgraph_function_node): Update for new aliases.
2073         (cgraph_function_or_thunk_node): Likewise.
2074         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2075         (inline_call): Remove dead aliases.
2076         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2077         name hack for same body aliases.
2078         (clone_of_p): Look through aliases.
2079         (verify_cgraph_node): Verify aliases.
2080         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2081         (cgraph_process_same_body_aliases): New function.
2082         (process_function_and_variable_attributes): Disable weakref warning on
2083         alias.
2084         (cgraph_analyze_functions): Handle aliases.
2085         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2086         (assemble_thunks): Rename to ...
2087         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2088         (cgraph_expand_function): Remove alias output code.
2089         (cgraph_output_in_order): Skip aliases.
2090         (cgraph_preserve_function_body_p): Aliases don't need preserving.
2091         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2092         (ipa_record_reference): Do not assert on alias references.
2093         (ipa_ref_has_aliases_p): New function.
2094         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2095         (ipa_ref_has_aliases_p): Declare.
2096         * lto-cgraph.c (lto_output_node): Handle aliases.
2097         (input_node): Likewise.
2098         * lto-streamer-out.c (lto_output): Skip aliases.
2099         (produce_symtab): Kill same_body_alias code.
2100         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2101         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2102         * ipa-inline.c (update_caller_keys): Walk aliases.
2103         (inline_small_functions): Fix thinko in previous patch.
2104         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2105         (function_and_variable_visibility): Do not walk same body aliases.
2106         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2107         (ipa_pta_execute): Use it.
2108
2109 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2110
2111         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2112         (*vec_dupv2df): Rename from vec_dupv2df.
2113         (vec_dupv2df): New expander.
2114
2115 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2116
2117         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2118
2119 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2120
2121         * config/i386/i386.md: Use default value in "isa" attribute.
2122         * config/i386/sse.md: Ditto.
2123         * config/i386/mmx.md: Ditto.
2124
2125 2011-06-10  Wei Guozhi  <carrot@google.com>
2126
2127         PR target/45335
2128         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2129         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2130         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2131         related peephole2.
2132         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2133         related peephole2.
2134         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2135         (arm_legitimate_ldrd_p): New prototype.
2136         (arm_output_ldrd): New prototype.
2137         * config/arm/arm.c (arm_check_ldrd_operands): New function.
2138         (arm_legitimate_ldrd_p): New function.
2139         (arm_output_ldrd): New function.
2140
2141 2011-06-10  David Li  <davidxl@google.com>
2142
2143         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2144         * passes.c (passr_eq): New function.
2145         (create_pass_tab): New function.
2146         (pass_traverse): New function.
2147         (dump_one_pass): New function.
2148         (dump_pass_list): New function.
2149         (dump_passes): New function.
2150
2151 2011-06-10  Jan Hubicka  <jh@suse.cz>
2152
2153         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2154         setting the nothrow flag.
2155         * ipa-reference.c (propagate): Skip aliases.
2156         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2157         (propagate_nothrow): Skip aliases; do not update cgraph.
2158         (local_pure_const): Do not update cgraph.
2159         * tree-profile.c (tree_profiling): Do fixup_cfg.
2160
2161 2011-06-10  Jan Hubicka  <jh@suse.cz>
2162
2163         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2164         (cgraph_local_node_p): ... here; handle aliases.
2165         (has_addr_references_p): Break out from ...;
2166         (cgraph_remove_unreachable_nodes) ... here.
2167
2168 2011-06-10  Jan Hubicka  <jh@suse.cz>
2169
2170         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2171         * common.opt (flag_inline_functions_called_once): Do not
2172         initialize to 1.
2173
2174 2011-06-10  Jan Hubicka  <jh@suse.cz>
2175
2176         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2177         (ipcp_initialize_node_lattices): Do not deal with aliases;
2178         Do not try to propagate through thunks.
2179         (ipcp_change_tops_to_bottom): Do not deal with aliases.
2180
2181 2011-06-10  Jan Hubicka  <jh@suse.cz>
2182
2183         * ipa-prop.c (ipa_write_node_info): Stream jump functions
2184         for indirect calls.
2185         (ipa_read_node_info): Likewise.
2186
2187 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2188
2189         PR lto/49302
2190         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2191         (build_and_insert_call): Likewise.
2192         (build_and_insert_ref): New.
2193         (gimple_expand_builtin_pow): Minor cleanup.
2194         (gimple_expand_builtin_cabs): New.
2195         (execute_cse_sincos): Add case for BUILT_IN_CABS.
2196
2197 2011-06-10  Jan Hubicka  <jh@suse.cz>
2198
2199         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2200         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2201         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2202         (ipcp_propagate_stage): Skip aliases when propagating.
2203         (ipcp_need_redirect_p): Skip aliases.
2204         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2205         collect_callers_of_node.
2206         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2207         for aliases.
2208         (ipa_compute_jump_functions): Look through aliases.
2209
2210 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2211
2212         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2213
2214 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2215
2216         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2217         Adjust comments.
2218         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2219
2220 2011-06-10  Jan Hubicka  <jh@suse.cz>
2221
2222         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2223         Update call of gimple_get_virt_method_for_binfo.
2224         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2225         refuse_thunks parameter.
2226         (gimple_fold_call): Update.
2227         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2228
2229 2011-06-10  Jan Hubicka  <jh@suse.cz>
2230
2231         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2232         (not_all_callers_have_enough_arguments_p): ... this one; turn into
2233         worker for cgraph_for_node_and_aliases.
2234         (convert_callers_for_node): Break out from ...
2235         (convert_callers): ... here.
2236         (modify_function): Use collect_callers_of_node.
2237         (ipa_early_sra): Use cgraph_for_node_and_aliases.
2238
2239 2011-06-10  Richard Guenther  <rguenther@suse.de>
2240
2241         PR tree-optimization/49361
2242         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2243         when not already in gimple form.
2244
2245 2011-06-10  Richard Guenther  <rguenther@suse.de>
2246
2247         PR bootstrap/49344
2248         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2249         FOR_EACH_PHI_OR_STMT_USE.
2250
2251 2011-06-10  Jan Hubicka  <jh@suse.cz>
2252
2253         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2254         (clone_inlined_nodes): ... here.
2255         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2256         to real destination prior inlining.
2257         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2258         can_early_inline_edge_p, want_early_inline_function_p,
2259         want_early_inline_function_p, want_inline_small_function_p,
2260         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2261         edge_badness, update_all_callee_keys, lookup_recursive_calls,
2262         add_new_edges_to_heap, inline_small_functions, flatten_function,
2263         inline_always_inline_functions, early_inline_small_functions): Use
2264         cgraph_function_or_thunk_node.
2265         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2266         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2267         (do_estimate_edge_growth_1): Break out from ...
2268         (do_estimate_growth) ... here; walk aliases.
2269         (inline_generate_summary): Skip aliases.
2270
2271 2011-06-10  Richard Guenther  <rguenther@suse.de>
2272
2273         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2274         forward when combining, visit inserted stmts when a stmt was changed.
2275
2276 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
2277
2278         * tree.h (error_operand_p): Add.
2279         * dbxout.c (dbxout_type_fields): Use the latter.
2280         * c-decl.c (add_stmt): Likewise.
2281         * gimplify.c (omp_add_variable, omp_notice_variable,
2282         gimplify_scan_omp_clauses): Likewise.
2283
2284 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
2285
2286         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2287         when a value is actually passed in regs.
2288
2289 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
2290             Laurent Rougé  <laurent.rouge@menta.fr>
2291
2292         * doc/invoke.texi (SPARC options): Add -mflat.
2293         * config/sparc/sparc.opt: Likewise.
2294         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2295         (sparc_flat_expand_prologue): Declare.
2296         (sparc_flat_expand_epilogue): Likewise.
2297         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2298         (CPP_ENDIAN_SPEC): Replace with...
2299         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
2300         (CPP_SPEC): Adjust to above change.
2301         (EXTRA_SPECS): Likewise.
2302         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2303         (INCOMING_REGNO): Likewise.
2304         (OUTGOING_REGNO): Likewise.
2305         (LOCAL_REGNO): Likewise.
2306         (SETUP_FRAME_ADDRESSES): Likewise.
2307         (FIXED_REGISTERS): Set 0 for %fp.
2308         (CALL_USED_REGISTERS): Likewise.
2309         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2310         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2311         (RETURN_ADDR_REGNUM): Define.
2312         (RETURN_ADDR_RTX): Use it.
2313         (INCOMING_RETURN_ADDR_REGNUM): Define.
2314         (INCOMING_RETURN_ADDR_RTX): Use it.
2315         (DWARF_FRAME_RETURN_COLUMN): Likewise.
2316         (EH_RETURN_REGNUM): Define.
2317         (EH_RETURN_STACKADJ_RTX): Use it.
2318         (EH_RETURN_HANDLER_RTX): Delete.
2319         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2320         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2321         Delete.
2322         (struct machine_function): Add frame_size, apparent_frame_size,
2323         frame_base_reg, frame_base_offset, n_global_fp_regs and
2324         save_local_in_regs_p fields.
2325         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2326         sparc_frame_base_offset, sparc_n_global_fp_regs,
2327         sparc_save_local_in_regs_p): New macros.
2328         (sparc_option_override): Error out if -fcall-saved-REG is specified
2329         for Out registers.
2330         (eligible_for_restore_insn): Fix formatting.
2331         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
2332         (eligible_for_sibcall_delay): Likewise.
2333         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2334         (sparc_legitimate_address_p): Adjust to above change.
2335         (save_global_or_fp_reg_p): New predicate.
2336         (return_addr_reg_needed_p): Likewise.
2337         (save_local_or_in_reg_p): Likewise.
2338         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
2339         (SORR_SAVE, SORR_RESTORE): Delete.
2340         (sorr_pred_t): New typedef.
2341         (sorr_act_t): New enum.
2342         (save_or_restore_regs): Rename to...
2343         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
2344         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2345         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
2346         mechanism.  Add CFI information for double-word saves in 32-bit mode.
2347         (emit_adjust_base_to_offset): New function extracted from...
2348         (emit_save_or_restore_regs): ...this.  Rename the rest to...
2349         (emit_save_or_restore_regs_global_fp_regs): ...this.
2350         (emit_save_or_restore_regs_local_in_regs): New function.
2351         (gen_create_flat_frame_[123]): New functions.
2352         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
2353         (sparc_flat_expand_prologue): New function.
2354         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2355         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
2356         (sparc_flat_expand_epilogue): New function.
2357         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2358         (output_return): Likewise.
2359         (output_sibcall): Likewise.
2360         (sparc_output_mi_thunk): Likewise.
2361         (sparc_frame_pointer_required): Likewise.
2362         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2363         function optimization.
2364         * config/sparc/sparc.md (flat): New attribute.
2365         (prologue): Add TARGET_FLAT handling.
2366         (save_register_window): Disable if TARGET_FLAT.
2367         (create_flat_frame_[123]): New patterns.
2368         (epilogue): Add TARGET_FLAT handling.
2369         (sibcall_epilogue): Likewise.
2370         (eh_return): New expander.
2371         (eh_return_internal): New insn and splitter.
2372         (return_internal): Add TARGET_FLAT handling.
2373         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2374         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2375         (nonlocal_goto): Add TARGET_FLAT handling.
2376         * config/sparc/t-elf: Add -mflat multilib.
2377         * config/sparc/t-leon: Likewise.
2378
2379 2011-06-10  Jan Hubicka  <jh@suse.cz>
2380
2381         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2382         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2383         (self_recursive_p): Use cgraph_function_node.
2384         (propagate_pure_const): Likewise.
2385         (propagate_nothrow): Likewise.
2386         * ipa-reference.c (ipa_reference_get_not_read_global): Use
2387         cgraph_function_node.
2388         (propagate_bits): Likewise.
2389         (propagate): Likewise.
2390
2391 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2392             Richard Earnshaw  <rearnsha@arm.com>
2393
2394         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2395         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2396         (*thumb2_movdi_vfp): Delete.
2397         (*arm_movdi_vfp_cortexa8): Delete.
2398         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2399         (*movdi_vfp_cortexa8): Likewise.
2400
2401 2011-06-10  Richard Guenther  <rguenther@suse.de>
2402
2403         * stor-layout.c (initialize_sizetypes): Give names to all
2404         sizetype kinds.
2405
2406 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
2407
2408         PR tree-optimization/49318
2409         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2410         irrelevant pattern statements.
2411
2412 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2413
2414         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2415
2416         PR bootstrap/49354
2417         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2418         to last assignment.
2419
2420 2011-06-09  Jan Hubicka  <jh@suse.cz>
2421
2422         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2423         do not recompute reachable flag.
2424         (cgraph_finalize_function, cgraph_analyze_functions): Set
2425         redefined_extern_inline here.
2426
2427 2011-06-09  Jan Hubicka  <jh@suse.cz>
2428
2429         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2430         (cgraph_only_called_directly_p): ... this one; bring offline.
2431         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2432         varpool_used_from_object_file_p): Drop names from the declaratoin.
2433         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2434         collect_callers_of_node): New.
2435         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2436         (cgraph_edge_recursive_p): Use cgraph_function_node.
2437         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2438         (cgraph_node_cannot_be_local_p_1): Break out from ...
2439         (cgraph_node_can_be_local_p): ... here; walk aliases.
2440         (cgraph_for_node_thunks_and_aliases): New function.
2441         (cgraph_for_node_and_aliases): New function.
2442         (cgraph_make_node_local_1): Break out from ...
2443         (cgraph_make_node_local) ... here; use
2444         cgraph_for_node_thunks_and_aliases.
2445         (cgraph_set_nothrow_flag_1): Break out from ...
2446         (cgraph_set_nothrow_flag) ... here;
2447         use cgraph_for_node_thunks_and_aliases.
2448         (cgraph_set_const_flag_1): Break out from ...
2449         (cgraph_set_const_flag) ... here;
2450         use cgraph_for_node_thunks_and_aliases.
2451         (cgraph_set_pure_flag_1): Break out from ...
2452         (cgraph_set_pure_flag) ... here;
2453         use cgraph_for_node_thunks_and_aliases.
2454         (cgraph_propagate_frequency_1): Break out from ...
2455         (cgraph_propagate_frequency) ... here; use
2456         cgraph_for_node_thunks_and_aliases.
2457         (cgraph_used_from_object_file_p): Do not care about aliases.
2458         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2459         New functions.
2460         (collect_callers_of_node_1, collect_callers_of_node): New functions.
2461
2462 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2463
2464         PR rtl-optimization/49154
2465         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2466         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2467         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2468         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2469         * config/cris/cris.h (cris_register_move_cost): Remove
2470         !TARGET_V32 code.  Tweak comments.
2471
2472 2011-06-09  Jan Hubicka  <jh@suse.cz>
2473
2474         * cgraphbuild.c (record_eh_tables): Mark personality function as having
2475         address taken.
2476
2477 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2478
2479         PR rtl-optimization/49154
2480         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2481         is a matching slot in the hashtable, assign it to classes_ptr.
2482
2483         PR rtl-optimization/49154
2484         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2485         register classes.
2486         * doc/tm.texi: Regenerate.
2487
2488 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2489
2490         PR target/49307
2491         * config/sh/sh.md (UNSPEC_CHKADD): New.
2492         (chk_guard_add): New define_insn_and_split.
2493         (symGOT_load): Use chk_guard_add instead of blockage.
2494
2495 2011-06-09  Kai Tietz  <ktietz@redhat.com>
2496
2497         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2498
2499 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2500
2501         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2502
2503 2011-06-09  Wei Guozhi  <carrot@google.com>
2504
2505         PR target/46975
2506         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2507         (peephole2 for conditional move): Generate 16 bit instructions.
2508
2509 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
2510
2511         * config/i386/i386.md (*movdi_internal_rex64): Merge
2512         alternatives 6 and 8.
2513
2514 2011-06-09  David Li  <davidxl@google.com>
2515
2516         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2517         * passes.c (passr_eq): New function.
2518         (create_pass_tab): New function.
2519         (pass_traverse): New function.
2520         (dump_one_pass): New function.
2521         (dump_pass_list): New function.
2522         (dump_passes): New function.
2523
2524 2011-06-09  David Li  <davidxl@google.com>
2525
2526         * tree-complex.c (tree_lower_complex): Gate cleanup.
2527         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2528         (execute_optimize_stdarg): Ditto.
2529         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2530         (execute_cleanup_eh_1): Ditto.
2531         (execute_cleanup_eh): Ditto.
2532         * gcse.c (gate_rtl_pre): Ditto.
2533         (execute_rtl_pre): Ditto.
2534         * except.c (finish_eh_generation): Ditto.
2535         (convert_to_eh_region_ranges): Ditto.
2536         * cprop.c (one_cprop_pass): Ditto.
2537
2538 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
2539
2540         PR target/48673
2541         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2542         in all basic blocks.
2543
2544 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2545
2546         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2547         (HAVE_ENABLE_EXECUTE_STACK): Define.
2548         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2549         (HAVE_ENABLE_EXECUTE_STACK): Define.
2550         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2551         (HAVE_ENABLE_EXECUTE_STACK): Define.
2552         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2553         (ENABLE_EXECUTE_STACK): Remove.
2554         (HAVE_ENABLE_EXECUTE_STACK): Define.
2555         [IN_LIBGCC2]: Don't include <windows.h>.
2556         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2557         (HAVE_ENABLE_EXECUTE_STACK): Define.
2558         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2559         (HAVE_ENABLE_EXECUTE_STACK): Define.
2560         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2561         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2562         (HAVE_ENABLE_EXECUTE_STACK): Define.
2563         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2564         (HAVE_ENABLE_EXECUTE_STACK): Define.
2565         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2566         (HAVE_ENABLE_EXECUTE_STACK): Define.
2567         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2568         (HAVE_ENABLE_EXECUTE_STACK): Define.
2569         * config/alpha/alpha.c (alpha_trampoline_init): Test
2570         HAVE_ENABLE_EXECUTE_STACK.
2571         * config/i386/i386.c (ix86_trampoline_init): Likewise.
2572         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2573         (sparc64_initialize_trampoline): Likewise.
2574         * libgcc2.c [L_enable_execute_stack]: Remove.
2575         * system.h (ENABLE_EXECUTE_STACK): Poison.
2576         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2577         * doc/tm.texi: Regenerate.
2578         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2579
2580 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
2581
2582         PR middle-end/49308
2583         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2584         variable.  After resetting and rescanning insn continue with previous
2585         statement.
2586
2587 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2588
2589         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2590         (gcc_cv_ld_hidden): Likewise.
2591         * configure: Regenerate.
2592         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2593         (ix86_stack_protect_fail): Mark unused.
2594         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2595         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2596         [TARGET_MACHO]: Don't define.
2597         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2598         (TARGET_STACK_PROTECT_FAIL): Likewise.
2599         (rs6000_stack_protect_fail): Mark unused.
2600         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2601         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
2602
2603 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2604
2605         * varasm.c (get_section): Print location of other conflict
2606         for section conflicts.
2607
2608 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2609
2610         * config/i386/driver-i386.c (host_detect_local_cpu):
2611         Add model 0x2d Intel CPU.
2612
2613 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2614
2615         * reginfo.c (global_regs_decl): Add.
2616         (globalize_reg): Add decl parameter. Compute location.  Pass location
2617         to warnings and add inform. Store decl in global_regs_decl.
2618         * rtl.h (globalize_reg): Update prototype.
2619         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2620
2621 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
2622
2623         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2624
2625 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2626
2627         PR target/49305
2628         * config/sh/predicates.md (general_movsrc_operand): Check
2629         mode for memory with indexed address for QI and HImode.
2630         (general_movdst_operand): Likewise.
2631
2632 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
2633
2634         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2635
2636 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
2637
2638         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2639         (num_ssa_operands): Likewise.
2640         (op_iter_init_phiuse): Forward-declare.
2641         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2642
2643 2011-06-08  Nick Clifton  <nickc@redhat.com>
2644
2645         * doc/invoke.texi (ARM Options): Update description of
2646         -mthumb-interwork.
2647
2648 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
2649
2650         * config/i386/driver-i386.c (host_detect_local_cpu): Support
2651         unknown Intel family 0x6 CPUs.
2652
2653 2011-06-08  Martin Jambor  <mjambor@suse.cz>
2654
2655         * tree-sra.c (mark_rw_status): Removed.
2656         (analyze_access_subtree): New parameter parent instead of
2657         mark_read and mark_write, propagate from that.
2658
2659 2011-06-08  Julian Brown  <julian@codesourcery.com>
2660
2661         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2662         for double-precision helper functions in hard-float mode if only
2663         single-precision arithmetic is supported in hardware.
2664
2665 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
2666
2667         PR rtl-optimization/49303
2668         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
2669         code_motion_path_driver returned 0 or 1.
2670         (sel_region_finish): Clear h_d_i_d.
2671
2672 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2673
2674         * config/sh/sh.c (prepare_move_operands): Set pic register
2675         appropriately for global and local dynamic tls models even
2676         if flag_pic is unset.
2677
2678 2011-06-07  Jason Merrill  <jason@redhat.com>
2679
2680         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2681
2682 2011-06-07  Xinliang David Li  <davidxl@google.com>
2683         * passes.c (enable_disable_pass): Handle assembler name.
2684         (is_pass_explicitly_enabled_or_disabled): Ditto.
2685
2686 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2687
2688         PR tree-optimization/48497
2689         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2690
2691 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2692
2693         PR tree-optimization/46728
2694         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2695         to use gimple_val_nonnegative_real_p.
2696         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2697         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2698
2699 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
2700
2701         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2702
2703 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
2704
2705         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2706         constant vectors.
2707
2708 2011-06-07  Richard Guenther  <rguenther@suse.de>
2709
2710         * stor-layout.c (initialize_sizetypes): Initialize all
2711         sizetypes based on target definitions.
2712         (set_sizetype): Remove.
2713         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2714         * tree.h (set_sizetype): Remove.
2715
2716 2011-06-07  Nick Clifton  <nickc@redhat.com>
2717
2718         * config.gcc: Unify V850 architecture options and add support for
2719         newer V850 architectures.
2720         * config/v850/t-v850e: Delete.
2721
2722 2011-06-07  Richard Guenther  <rguenther@suse.de>
2723
2724         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2725         Call set_sizetype from here.
2726
2727 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
2728
2729         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2730         (*maddhisi4tb, *maddhisi4tt): New define_insns.
2731
2732 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
2733             Andrew Stubbs  <ams@codesourcery.com>
2734
2735         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2736         multiplies.
2737         * doc/md.texi (Canonicalization of Instructions): Document widening
2738         multiply canonicalization.
2739
2740 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
2741
2742         PR gcov-profile/49299
2743         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2744
2745 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
2746
2747         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2748         a pointer.
2749         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2750         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2751         vect_recog_pow_pattern): Likewise.
2752         (vect_pattern_recog_1): Remove declaration.
2753         (widened_name_p): Remove declaration.  Add new argument to specify
2754         whether to check that both types are either signed or unsigned.
2755         (vect_recog_widen_mult_pattern): Update documentation.  Handle
2756         unsigned patterns and multiplication by constants.
2757         (vect_pattern_recog_1): Update vect_recog_func references.  Use
2758         statement information from the statement returned from pattern
2759         detection functions.
2760         (vect_pattern_recog): Update vect_recog_func reference.
2761         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2762         multiplication by a constant use the type of the other operand.
2763
2764 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
2765
2766         PR rtl-optimization/49145
2767         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2768
2769 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
2770
2771         PR debug/49262
2772         * dwarf2out.c (native_encode_initializer): Decrement count in each
2773         iteration.
2774
2775         PR debug/49294
2776         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2777         non-MODE_INT modes.
2778
2779         PR c++/49264
2780         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2781         if stmt folded into nothing.
2782         * tree-inline.c (fold_marked_statements): If a builtin at the end of
2783         a bb folded into nothing, just update cgraph edges and move to next bb.
2784         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2785         to be NULL.  Don't compute count and frequency if new_call is NULL.
2786
2787 2011-06-04  Diego Novillo  <dnovillo@google.com>
2788
2789         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2790         (cgraph.o): Likewise.
2791         (cgraphunit.o): Likewise.
2792         * cgraphunit.c: Include lto-streamer.h
2793         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2794         if LTO is enabled.
2795         * lto-streamer-in.c (unpack_value_fields): Call
2796         streamer_hooks.unpack_value_fields if set.
2797         (lto_materialize_tree): For unhandled nodes, first try to
2798         call lto_streamer_hooks.alloc_tree, if it exists.
2799         (lto_input_ts_decl_common_tree_pointers): Move reading of
2800         DECL_INITIAL to lto_streamer_read_tree.
2801         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2802         (lto_streamer_read_tree): New.
2803         (lto_reader_init): Rename from lto_init_reader.
2804         Move initialization code to lto/lto.c.
2805         * lto-streamer-out.c (pack_value_fields): Call
2806         streamer_hooks.pack_value_fields if set.
2807         (lto_output_tree_ref): For tree nodes that are not normally indexable,
2808         call streamer_hooks.indexable_with_decls_p before giving up.
2809         (lto_output_ts_decl_common_tree_pointers): Move handling
2810         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2811         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2812         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
2813         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2814         (lto_streamer_write_tree): New.
2815         (lto_output): Call lto_streamer_init directly.
2816         (lto_writer_init): Remove.
2817         * lto-streamer.c (streamer_hooks): New.
2818         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2819         instead of lto_preload_common_nodes.
2820         (lto_is_streamable): Move from lto-streamer.h
2821         (lto_streamer_hooks_init): New.
2822         (streamer_hooks): New.
2823         (streamer_hooks_init): New.
2824         * lto-streamer.h (struct output_block): Forward declare.
2825         (struct lto_input_block): Likewise.
2826         (struct data_in): Likewise.
2827         (struct bitpack_d): Likewise.
2828         (struct streamer_hooks): Declare.
2829         (streamer_hooks): Declare.
2830         (lto_streamer_hooks_init): Declare.
2831         (lto_streamer_write_tree): Declare.
2832         (lto_streamer_read_tree): Declare.
2833         (streamer_hooks_init): Declare.
2834         (lto_is_streamable): Move to lto-streamer.c
2835
2836 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2837
2838         * longlong.h (smul_ppmm): The resulting register pair contains the
2839         higher order word first.
2840
2841 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2842
2843         PR tree-optimization/46728
2844         * builtins.c (powi_table): Remove.
2845         (powi_lookup_cost): Remove.
2846         (powi_cost): Remove.
2847         (expand_powi_1): Remove.
2848         (expand_powi): Remove.
2849         (expand_builtin_pow_root): Remove.
2850         (expand_builtin_pow): Remove.
2851         (expand_builtin_powi): Eliminate handling of constant exponent.
2852         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2853
2854 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2855
2856         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2857
2858 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2859
2860         * dce.c (reset_unmarked_insns_debug_uses): New.
2861         (delete_unmarked_insns): Skip debug insns.
2862         (prescan_insns_for_dce): Likewise.
2863         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2864         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2865         active reg can be found.
2866         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
2867         (convert_regs_1): Use it.
2868
2869 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2870
2871         * tree-pretty-print.c (dump_function_header): Add flags.
2872         Don't dump decl_uid with nouid.
2873         * tree-pretty-print.h (dump_function_header): Adjust.
2874         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2875         * passes.c (pass_init_dump_file): Pass dump_flags on.
2876         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2877
2878 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2879
2880         PR bootstrap/49270
2881         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2882
2883 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
2884
2885         PR tree-optimization/49243
2886         * calls.c (setjmp_call_p): Also check if fndecl has the
2887         returns_twice attribute.
2888
2889 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2890
2891         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2892         -ffast-math etc.
2893
2894 2011-06-06  Richard Henderson  <rth@redhat.com>
2895             Georg-Johann Lay  <avr@gjlay.de>
2896
2897         PR target/42210
2898         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2899         New predicates.
2900         * config/avr/avr.md ("insv"): New insn expander.
2901         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2902         "*insv.not.io", "*insv.reg"): New insns.
2903
2904 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
2905
2906         PR target/49285
2907         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2908         to nonimmediate_operand from memory_operand for the operand that is to
2909         be forced to memory by the expander.  Lose the constraints.
2910
2911 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
2912
2913         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2914         EH return when delayed branches are disabled.
2915
2916 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
2917
2918         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2919         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
2920         calculation.
2921         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2922         Simplify MODE_V1DF and MODE_V2SF handling.
2923         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2924         Simplify MODE_SF handling.
2925
2926 2011-06-04  Jan Hubicka  <jh@suse.cz>
2927
2928         PR tree-optimization/48893
2929         PR tree-optimization/49091
2930         PR tree-optimization/49179
2931         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2932         Bounds check.
2933
2934 2011-06-04  Jan Hubicka  <jh@suse.cz>
2935
2936         PR lto/48954
2937         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2938         bitmaps.
2939
2940 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
2941
2942         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2943
2944 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
2945
2946         PR target/49281
2947         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2948         to be strictly smaller than 1 << shiftcount.
2949
2950 2011-06-04  Jan Hubicka  <jh@suse.cz>
2951
2952         PR tree-optimize/48929
2953         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2954         of empty predicate.
2955
2956 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
2957
2958         PR debug/48333
2959         * calls.c (emit_call_1): Prefer the __builtin declaration of
2960         builtin functions.
2961
2962 2011-06-03   Diego Novillo  <dnovillo@google.com>
2963
2964         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2965         (lto_input_tree_pointers): Likewise.
2966         * lto-streamer-out.c (pack_value_fields): Likewise.
2967         (lto_output_tree_pointers): Likewise.
2968         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2969         and OPTIMIZATION_NODE.
2970
2971 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2972
2973         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2974         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2975         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2976         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2977         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2978         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2979         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2980         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2981         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2982         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2983         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2984         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2985         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2986         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2987         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2988         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2989         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2990         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2991         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2992         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2993         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2994         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2995         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2996         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2997         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2998         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2999         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3000         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3001         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3002         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3003         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3004         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3005         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3006         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3007         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3008         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3009         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3010         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3011         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3012         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3013         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3014         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3015         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3016         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3017         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3018         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3019         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3020         * system.h (MD_UNWIND_SUPPORT): Poison.
3021         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3022         * doc/tm.texi: Regenerate.
3023         * unwind-dw2.c: Include md-unwind-support.h instead of
3024         MD_UNWIND_SUPPORT.
3025         * config/ia64/unwind-ia64.c: Likewise.
3026         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3027
3028 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
3029
3030         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3031
3032 2011-06-03  Richard Henderson  <rth@redhat.com>
3033             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3034
3035         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3036         (sigill_hdlr): Correct insn, insn size.
3037         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3038
3039 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3040
3041         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3042         t-slibgcc-dummy.
3043         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3044         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3045         * config/mips/t-iris: Remove.
3046         * config/mips/t-irix6: New file.
3047         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3048
3049 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3050
3051         * Makefile.in (LIB2ADDEHDEP): Remove.
3052         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3053         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3054         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3055         * config/t-darwin (LIB2ADDEHDEP): Remove.
3056         * config/t-freebsd (LIB2ADDEHDEP): Remove.
3057         * config/t-linux (LIB2ADDEHDEP): Remove.
3058
3059 2011-06-03  Diego Novillo  <dnovillo@google.com>
3060
3061         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3062         (lto_register_var_decl_in_symtab): Likewise.
3063         (lto_register_function_decl_in_symtab): Likewise.
3064         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3065         logic to uniquify_nodes.
3066
3067 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3068
3069         * config/alpha/t-osf5: Remove.
3070         * config/alpha/t-osf-pthread: Remove.
3071         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3072         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3073
3074 2011-06-03  Julian Brown  <julian@codesourcery.com>
3075
3076         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3077         (strongarm1110): Use strongarm tuning.
3078         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3079         * config/arm/arm.c (arm_strongarm_tune): New.
3080         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3081         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3082         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3083         setting, using previous defaults or 1 for Cortex-A5.
3084         (arm_option_override): Set max_insns_skipped from current tuning.
3085
3086 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
3087
3088         * doc/install.texi (Options specification): Document --with-specs.
3089
3090 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3091
3092         * config/arm/neon.md (orndi3_neon): Actually split it.
3093
3094 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3095
3096         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3097         * var-tracking.c (reverse_op): Limite recurse depth to 5.
3098
3099 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3100
3101         PR debug/47590
3102         * target.def (delay_sched2, delay_vartrack): New.
3103         * doc/tm.texi.in: Update.
3104         * doc/tm.texi: Rebuild.
3105         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3106         * var-tracking.c (gate_handle_var_tracking): Likewise.
3107         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3108         (bfin_flag_var_tracking): Drop.
3109         (output_file_start): Don't save and override flag_var_tracking.
3110         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3111         (bfin_reorg): Test original variables.
3112         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3113         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3114         (ia64_flag_var_tracking): Drop.
3115         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3116         (ia64_file_start): Don't save and override flag_var_tracking.
3117         (ia64_override_options_after_change): Ditto
3118         flag_schedule_insns_after_reload.
3119         (ia64_reorg): Test original variables.
3120         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3121         (picochip_flag_var_tracking): Drop.
3122         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3123         (picochip_option_override): Don't save and override
3124         flag_schedule_insns_after_reload.
3125         (picochip_asm_file_start): Ditto flag_var_tracking.
3126         (picochip_reorg): Test original variables.
3127         * config/spu/spu.c (spu_flag_var_tracking): Drop.
3128         (TARGET_DELAY_VARTRACK): Define.
3129         (spu_var_tracking): New.
3130         (spu_machine_dependent_reorg): Call it.
3131         (asm_file_start): Don't save and override flag_var_tracking.
3132
3133 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
3134
3135         PR target/49163
3136         * config/sh/predicates.md (general_movsrc_operand): Return 0
3137         for memory and memory subreg of which address is an invalid
3138         indexed address for QI and HImode.
3139         (general_movdst_operand): Likewise.
3140
3141 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3142
3143         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3144         edges only, when there is a non-local label in the function.
3145         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3146
3147 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3148
3149         * config/i386/constraints.md (Y3): New register constraint.
3150         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3151         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3152         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3153         *sse2_interleave_lowv2df.
3154
3155 2011-06-02  Julian Brown  <julian@codesourcery.com>
3156
3157         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3158         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3159         (arm_cortex_a5_tune): New.
3160
3161 2011-06-02  Julian Brown  <julian@codesourcery.com>
3162
3163         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3164         * config/arm/arm.c (arm_default_branch_cost): New.
3165         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3166         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3167         (arm_fa726_tune): Set branch_cost field using
3168         arm_default_branch_cost.
3169         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3170         current_tune structure.
3171         * dojump.c (tm_p.h): Include file.
3172
3173 2011-06-02  Julian Brown  <julian@codesourcery.com>
3174
3175         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3176         tuning.
3177         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3178         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3179         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3180         field.
3181         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3182         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3183         (arm_fa726te_tune): Add prefer_constant_pool setting.
3184         (arm_v6t2_tune, arm_cortex_tune): New.
3185         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3186         prefer_constant_pool setting.
3187
3188 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3189
3190         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3191         switch statement.
3192         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3193         (*movdf_internal) <case 6,7,8>: Ditto.
3194
3195         * config/i386/constraints.md (Y4): New register constraint.
3196         * config/i386/sse.md (vec_set<mode>_0): Merge with
3197         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3198         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3199         *vec_extractv2di_1_sse.
3200         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3201         and *vec_concatv2di_rex64_sse.
3202
3203 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
3204
3205         PR target/48807
3206         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3207         of cgraph_local_info for null before attempting to use it.
3208
3209 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3210
3211         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3212         (current_function_dynamic_alloc_count): Delete.
3213         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3214         (expand_builtin_nonlocal_goto): Remove obsolete comment.
3215         (expand_builtin_update_setjmp_buf): Remove dead code.
3216         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3217         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3218         support.
3219         * function.c (instantiate_virtual_regs): Likewise.
3220         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3221         for a block with a single abnormal incoming edge.
3222         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3223         (SETJMP_VIA_SAVE_AREA): Delete.
3224         * config/sparc/sparc-protos.h (load_got_register): Declare.
3225         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3226         (load_got_register): Make global.
3227         (sparc_frame_pointer_required): Add 'static'.
3228         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
3229         (sparc_builtin_setjmp_frame_value): New function.
3230         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3231         (save_stack_nonlocal): New expander.
3232         (restore_stack_nonlocal): Likewise.
3233         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3234         (nonlocal_goto_internal): New insn.
3235         (goto_handler_and_restore): Delete.
3236         (builtin_setjmp_setup): Likewise.
3237         (do_builtin_setjmp_setup): Likewise.
3238         (setjmp): Likewise.
3239         (builtin_setjmp_receiver): New expander.
3240
3241 2011-06-01  David Li  <davidxl@google.com>
3242
3243         PR middle-end/49261
3244         * tree-pretty-print.c (dump_function_header): Format cleanup.
3245
3246 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
3247
3248         PR target/49238
3249         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3250         needed when original operands are used for msw_skip comparison.
3251
3252 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3253
3254         PR debug/49250
3255         * var-tracking.c (add_uses, add_stores): Don't call
3256         cselib_subst_to_values on ENTRY_VALUE.
3257
3258 2011-06-01  Diego Novillo  <dnovillo@google.com>
3259
3260         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3261         output_record_start with LTO_null instead of output_zero.
3262         (lto_output_ts_binfo_tree_pointers): Likewise.
3263         (lto_output_tree): Likewise.
3264         (output_eh_try_list): Likewise.
3265         (output_eh_region): Likewise.
3266         (output_eh_lp): Likewise.
3267         (output_eh_regions): Likewise.
3268         (output_bb): Likewise.
3269         (output_function): Likewise.
3270         (output_unreferenced_globals): Likewise.
3271         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3272         instead of NUM_TREE_CODES.
3273         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3274         (lto_output_int_in_range): Change << to >> when shifting VAL.
3275
3276 2011-06-01  Diego Novillo  <dnovillo@google.com>
3277
3278         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3279         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3280
3281 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3282
3283         PR target/45074
3284         * optabs.h (valid_multiword_target_p): Declare.
3285         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3286         doing multi-word operations.
3287         * optabs.c (expand_binop): Likewise.
3288         (expand_doubleword_bswap): Likewise.
3289         (expand_absneg_bit): Likewise.
3290         (expand_unop): Likewise.
3291         (expand_copysign_bit): Likewise.
3292         (multiword_target_p): New function.
3293
3294 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3295
3296         PR rtl-optimization/48830
3297         PR rtl-optimization/48808
3298         PR rtl-optimization/48792
3299         * reload.c (push_reload): Check contains_reg_of_mode.
3300         * reload1.c (strip_paradoxical_subreg): New function.
3301         (gen_reload_chain_without_interm_reg_p): Use it to handle
3302         paradoxical subregs.
3303         (emit_output_reload_insns, gen_reload): Likewise.
3304
3305 2011-06-01  David Li  <davidxl@google.com>
3306
3307         * predict.c : Change pass name
3308         * ipa.c: Ditto.
3309         * dce.c: Ditto.
3310         * tree-profile.c: Ditto.
3311         * except.c: Ditto.
3312
3313 2011-06-01  David Li  <davidxl@google.com>
3314
3315         * tree-pretty-print.c (dump_function_header): New function.
3316         * final.c (rest_of_clean_state): Use header dumper.
3317         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3318         * passes.c (pass_init_dump_file): Use header dumper.
3319
3320 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3321
3322         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3323         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3324         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3325         New functions.
3326         (mem_loc_descriptor): Use them.
3327
3328         * var-tracking.c (create_entry_value): New function.
3329         (vt_add_function_parameter): Use it.
3330
3331 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3332
3333         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3334         Include <signal.h>, <ucontext.h>.
3335         (sigill_caught): Define.
3336         (sigill_hdlr): New function.
3337         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3338         insns can be executed.
3339         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3340         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3341
3342 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3343
3344         * config/t-slibgcc-darwin: Move to ...
3345         * config/t-slibgcc-dummy: ... this.  Clarify comments.
3346         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3347         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3348         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3349         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
3350         Remove i386/t-crtstuff from tmake_file.
3351         (i[34567]86-*-solaris2*): Remove t-svr4,
3352         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3353         t-slibgcc-dummy.
3354         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3355         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3356         sparc/t-crtfm from tmake_file.
3357         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3358         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3359         Remove extra_parts.
3360         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3361         * config/i386/t-nwld (SHLIB_LINK): Remove.
3362         * config/i386/t-rtems-i386: Rename to ...
3363         * config/i386/t-rtems: ... this.
3364         ($(T)crti.o, $(T)crtn.o): Remove.
3365         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3366         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3367         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3368         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3369         EXTRA_MULTILIB_PARTS): Remove.
3370         * config/sparc/t-sol2-64: Likewise.
3371         * config/sparc/t-sol2: Remove.
3372         * config/sparc/t-crtin: Remove.
3373         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3374         * config/i386/gmon-sol2.c: Remove.
3375         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3376         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3377         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3378         * config/i386/sol2-gc1.asm: Remove.
3379         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3380         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3381         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3382         * config/t-slibgcc-sld: Remove.
3383
3384 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3385
3386         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3387         base_type_for_mode with op_mode instead of mode.
3388
3389 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
3390
3391         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
3392         Cortex-A15.
3393         * config/arm/arm-tune.md: Regenerate.
3394         * config/arm/arm-tables.opt: Regenerate.
3395         * config/arm/arm.c (FL_DIV): Rename...
3396         (FL_THUMB_DIV): ... to this.
3397         (FL_ARM_DIV): Define.
3398         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3399         (arm_arch_hwdiv): Remove.
3400         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3401         (arm_issue_rate): Add cortexr5.
3402         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3403         __ARM_ARCH_EXT_IDIV__.
3404         (TARGET_IDIV): Define.
3405         (arm_arch_hwdiv): Remove.
3406         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3407         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3408         (divsi3, udivsi3): New patterns.
3409         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3410         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3411
3412 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3413
3414         * ipa-utils.c (ipa_dfs_info): New field scc_no.
3415         * ipa-utils.c (searchc): Set scc_no.
3416
3417 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3418
3419         * ipa-utils.c (searchc_env): New field allow_overwritable.
3420         (searchc): do not ignore edges to overwritable nodes if indicated
3421         by env->allow_overwritable.
3422         (ipa_reduced_postorder): Set env.allow_overwritable.
3423
3424 2011-06-01  Richard Guenther  <rguenther@suse.de>
3425
3426         * tree.c (free_lang_data): Do not reset boolean_type_node nor
3427         char_type_node.
3428         * lto-streamer.c (lto_record_common_node): Take node pointer,
3429         do not register types.
3430         (lto_preload_common_nodes): Explicitly skip preloading nodes
3431         that differ between frontends.
3432
3433 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3434
3435         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3436         NON_FLOAT_REGS.
3437
3438 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3439
3440         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3441         parameter value for dump. Dump cost on outermost call only.
3442         (rs6000_memory_move_cost): Dump cost on outermost call only.
3443
3444 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3445
3446         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3447         DW_OP_GNU_convert ops.
3448
3449         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3450         cselib_preserve_constants.
3451         (cselib_lookup_1): If cselib_preserve_constants,
3452         a new VALUE is being created for REG and there is a VALUE for the
3453         same register in wider mode, add another loc with lowpart SUBREG of
3454         the wider VALUE.
3455         (cselib_subst_to_values): Handle ENTRY_VALUE.
3456         * var-tracking.c  (replace_expr_with_values): Return NULL for
3457         ENTRY_VALUE too.
3458         * dwarf2out.c (convert_descriptor_to_signed): New function.
3459         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3460         instead of two shifts.
3461         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3462         the right mode if needed.
3463         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3464         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3465         convert_descriptor_to_signed.
3466         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3467         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3468
3469         PR target/48688
3470         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3471
3472 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3473
3474         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3475         of X87MODEI12 and SWI48x instead of SSEMODEI24.
3476         (SWI248x): New mode iterator, rename from X87MODEI.
3477         (X87MODEI): Remove mode iterator.
3478         (X87MODEI12): Ditto.
3479         (SSEMODEI24): Ditto.
3480
3481 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3482
3483         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3484         * doc/invoke.texi: Document max-vartrack-expr-depth.
3485         * var-tracking.c (EXPR_DEPTH): New.
3486         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3487
3488 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3489
3490         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3491         * config/i386/sse.md: Add n to negated FMA pattern names.
3492
3493 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3494
3495         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3496
3497 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3498
3499         * gengtype-state.c (read_state_params_structs): Initialize previous.
3500
3501 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3502
3503         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3504         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3505
3506 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3507
3508         * config/i386/i386.md (*movtf_internal): Avoid allocating general
3509         registers.  Penalize F*r->o alternative to prevent partial memory
3510         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
3511         CONST_DOUBLE immediates when optimizing function for size.  Do not move
3512         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3513         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3514         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3515         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3516         alternatives.
3517         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3518
3519         (fp_register_operand splitters): Use fp_register_operand
3520         constraint.  Do not use FP_REG_P in insn condition.
3521         (any_fp_register_operand splitters): Use any_fp_register_operand
3522         constraint.  Do not use ANY_FP_REG_P in insn condition.
3523
3524 2011-05-31  Jan Hubicka  <jh@suse.cz>
3525
3526         * cgraph.h (cgraph_inline_failed_t): Give enum a name
3527         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3528         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3529         (lto_output_edge): Use output_enum and var_len_unsigned.
3530         (lto_output_varpool_node): Likewise.
3531         (input_overwrite_node): Do not take resolution parameter;
3532         extract it from a bitpack.
3533         (input_node): Do not read resolution; use input_enum and
3534         var_len_unsigned.
3535         (input_varpool_node): Likewise.
3536         (input_edge): Likewise.
3537         (input_cgraph_1): Likewise.
3538
3539 2011-05-31  Richard Guenther  <rguenther@suse.de>
3540
3541         * gimple.c (gimple_register_canonical_type): Do not register
3542         any types via gimple_register_type.
3543
3544 2011-05-31  Jan Hubicka  <jh@suse.cz>
3545
3546         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3547         of thunks.
3548
3549 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3550
3551         PR rtl-optimization/49235
3552         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3553         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3554
3555 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
3556
3557         PR tree-optimization/49093
3558         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3559         data references.
3560
3561 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
3562
3563         PR debug/49047
3564         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3565         for concrete functions containing the code of cloned functions.
3566
3567 2011-05-31  Richard Guenther  <rguenther@suse.de>
3568
3569         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3570         to ...
3571         (forward_propagate_into_comparison_1): ... this.
3572         (forward_propagate_comparison): Rename to ...
3573         (forward_propagate_into_comparison): ... this.  Split out
3574         real forward propagation code to ...
3575         (forward_propagate_comparison): ... this.
3576         (forward_propagate_into_gimple_cond): Remove looping.
3577         (forward_propagate_into_cond): Likewise.
3578         (simplify_not_neg_expr): Return whether we have done something.
3579         (simplify_gimple_switch): Likewise.
3580         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3581         (ssa_forward_propagate_and_combine): ... this.  Re-structure
3582         to do a forward forward-propagation walk on BBs and a backward
3583         stmt combining walk on BBs.  Consistently re-scan changed statements.
3584         (pass_forwprop): Adjust.
3585
3586 2011-05-30  Ian Lance Taylor  <iant@google.com>
3587
3588         * godump.c (go_format_type): Correct length of name added to
3589         obstack for anonymous field.
3590
3591 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
3592
3593         PR target/49186
3594         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3595         part of the second operand is 0.
3596
3597 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
3598
3599         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3600         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
3601         to memory for !TARGET_MEMORY_MISMATCH_STALL.
3602         (*movdf_internal_rex64): Do not penalize F->r alternative.
3603         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3604         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
3605         when optimizing function for size.  Do not move CONST_DOUBLEs
3606         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3607         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
3608         SUBREGs.  Do not check for MEM_P operands in the insn condition,
3609         check for ANY_FP_REGNO_P instead.
3610         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3611         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3612         function for speed.
3613         * config/i386/i386.c (ix86_option_override_internal): Do not
3614         set TARGET_INTEGER_DFMODE_MOVES here.
3615
3616 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3617
3618         PR target/49168
3619         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3620
3621 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
3622
3623         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3624         DW_TAG_rvalue_reference_type even for
3625         -gdwarf-4 -fno-debug-types-section.
3626
3627 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3628
3629         PR tree-optimization/46728
3630         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3631         (build_and_insert_binop): New.
3632         (gimple_expand_builtin_pow): Reorder args for
3633         build_and_insert_call; use build_and_insert_binop; add more
3634         optimizations for fractional exponents.
3635
3636 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3637
3638         PR bootstrap/49190
3639
3640         Revert:
3641         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3642
3643         * tree.h (struct tree_identifier): Inherit from tree_typed, not
3644         tree_common.
3645         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3646         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3647         TS_BASE instead of TS_COMMON.
3648         * varasm.c (assemble_name): Remove assert.
3649
3650 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
3651
3652         * config.gcc: Keep obselete list sorted.
3653
3654 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
3655             Eric Botcazou  <ebotcazou@adacore.com>
3656
3657         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3658         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3659         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3660         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3661         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3662
3663 2011-05-30  Richard Guenther  <rguenther@suse.de>
3664
3665         * gimple.c (gimple_types_compatible_p_1): Compare record
3666         and union type members properly.
3667
3668 2011-05-30  Richard Guenther  <rguenther@suse.de>
3669
3670         PR tree-optimization/49210
3671         * ipa-split.c (split_function): Care for the case where the call
3672         result is not trivially convertible to the result holding variable.
3673
3674 2011-05-30  Richard Guenther  <rguenther@suse.de>
3675
3676         PR tree-optimization/49218
3677         * tree-vrp.c (adjust_range_with_scev): Properly check whether
3678         overflow occured.
3679
3680 2011-05-30  Richard Guenther  <rguenther@suse.de>
3681
3682         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3683         New function split out from ...
3684         (forward_propagate_into_gimple_cond): ... here.  Adjust.
3685         (forward_propagate_into_cond): Likewise.
3686         (forward_propagate_comparison): Also propagate into
3687         comparisons on assignment RHS.  Change return value to
3688         behave similar to forward_propagate_into_cond.
3689         (tree_ssa_forward_propagate_single_use_vars): Handle
3690         strict-overflow warnings properly for forward_propagate_comparison.
3691
3692 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3693
3694         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3695         from plugin linker.
3696         * configure: Regenerate.
3697
3698 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
3699
3700         PR tree-optimization/49199
3701         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3702         non-reduction operands are either defined in the loop or by induction.
3703
3704 2011-05-29  Xinliang David Li  <davidxl@google.com>
3705
3706         * opts-global.c (handle_common_deferred_options): Handle new options.
3707         * passes.c (register_one_dump_file): Call register_pass_name.
3708         (execute_one_pass): Check explicit enable/disable flag.
3709         (passr_hash): New function.
3710         (passr_eq): Ditto.
3711         (register_pass_name): Ditto.
3712         (get_pass_by_name): Ditto.
3713         (pass_hash): Ditto.
3714         (pass_eq): Ditto.
3715         (enable_pass): Ditto.
3716         (disable_pass): Ditto.
3717         (is_pass_explicitly_enabled_or_disabled): Ditto.
3718
3719 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
3720
3721         * config/i386/i386.md (*movoi_internal_avx): Use
3722         standard_sse_constant_opcode for alternative 0.
3723         (*movti_internal_sse): Ditto.
3724         (*movti_internal_rex64): Use standard_sse_constant_opcode for
3725         alternative 2.
3726         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3727         sselog1 type moves.
3728         (*movsi_internal): Ditto.
3729         (*movdi_internal): Ditto.  Add ssecvt type moves.
3730
3731 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
3732
3733         PR target/48830
3734         * rtlanal.c (simplify_subreg_regno): Adjust comment.
3735
3736 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
3737
3738         PR rtl-optimization/49095
3739         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3740         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3741
3742 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
3743
3744         PR target/43995
3745         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3746         recurse_p argument.  Only follow register copies if it is set,
3747         and prevent mips_find_pic_call_symbol from recursing.
3748         (mips_find_pic_call_symbol): Add a recurse_p argument.
3749         Pass it to mips_pic_call_symbol_from_set.
3750         (mips_annotate_pic_calls): Update accordingly.
3751
3752 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
3753
3754         * emit-rtl.c (try_split): Use a loop to search for
3755         NOTE_INSN_CALL_ARG_LOCATIONs.
3756
3757 2011-05-29  Richard Guenther  <rguenther@suse.de>
3758
3759         PR tree-optimization/49217
3760         * ipa-pure-const.c (propagate_pure_const): Fix typos.
3761
3762 2011-05-28  Jan Hubicka  <jh@suse.cz>
3763
3764         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3765         length.
3766         (string_slot_free): Remove
3767         (create_output_block): Initialize obstack.
3768         (destroy_output_block): Free obstack.
3769         (lto_string_index): Add PERSISTENT parameter; do not duplicate
3770         the string unless it needs to be added into the hash.
3771         (lto_output_string_with_length): Add persistent attribute;
3772         handle NULL strings.
3773         (lto_output_string): Add PERSISTENT parameter.
3774         (output_string_cst, output_identifier): Simplify.
3775         (lto_output_location_bitpack): Update.
3776         (lto_output_builtin_tree): Update.
3777         * lto-streamer.h (struct output_block): Add obstack.
3778         (lto_output_string, lto_output_string_with_length): Remove
3779         declarations; functions are static now.
3780
3781 2011-05-28  Jan Hubicka  <jh@suse.cz>
3782
3783         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3784         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3785         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3786         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3787         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3788         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3789         unpack_ts_decl_with_vis_value_fields,
3790         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3791         lto_get_builtin_tree): Use enum and variable length i/o.
3792         * basic-block.h (profile_status_d): Add PROFILE_LAST.
3793         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3794         New functions.
3795         (bp_pack_enum, bp_unpack_enum): New macros.
3796
3797 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
3798
3799         * genrecog.c: Remove redundant forward declarations.
3800
3801 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
3802
3803         * config.gcc: Deprecate mips*-*-openbsd*.
3804
3805 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
3806
3807         PR bootstrap/49195
3808         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3809         for match_op_dup.
3810
3811 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
3812
3813         PR middle-end/48981
3814         * gengtype.c (vec_prefix_type): New function.
3815         (note_def_vec): Use vec_prefix_type and change the length
3816         attribute to be based on the prefix.
3817         * vec.c: Include coretypes.h before vec.h.
3818         (struct vec_prefix): Remove.
3819         (vec_gc_p_reserve): Change the offsetof to sizeof.
3820         (vec_gc_p_reserve_exact): Likewise.
3821         (vec_heap_p_reserve): Likewise.
3822         (vec_heap_p_reserve_exact): Likewise.
3823         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3824         (vec_stack_p_reserve): Change the offsetof to sizeof.
3825         (vec_stack_p_reserve_exact): Likewise.
3826         * vec.h (struct vec_prefix): New struct definition.
3827         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3828         (VEC_T_GTY(T,B)): Likewise.
3829         (DEF_VEC_FUNC_P(T)): Use prefix field.
3830         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3831         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3832
3833 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3834
3835         PR tree-optimization/46728
3836         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3837         (powi_as_mults): Add gimple_set_location.
3838         (build_and_insert_call): New.
3839         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3840         0.5, 0.25, 0.75, 1./3., or 1./6.
3841
3842 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
3843
3844         * doc/contrib.texi: Update copyright years.
3845         (Contributors): Add Zdenek Sojka.
3846
3847 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3848
3849         * c-decl.c (c_push_function_context): Copy the current statement
3850         list stack.
3851         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3852         (finish_struct): Call building_stmt_list_p instead of checking
3853         cur_stmt_list.
3854         * c-parser.c (c_parser_postfix_expression): Likewise.
3855         * c-typeck.c (c_end_compound_stmt): Likewise.
3856         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3857         * tree-iterator.c (stmt_list_cache): Change to a VEC.
3858         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3859         (free_stmt_list): Likewise.
3860         * tree.h (struct tree_statement_list): Include typed_tree instead
3861         of tree_common.
3862         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3863         as TS_TYPED instead of TS_COMMON.
3864
3865 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3866             Uros Bizjak  <ubizjak@gmail.com>
3867
3868         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3869         (HAVE_AS_IX86_TLSGDPTL): Define.
3870         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3871         (HAVE_AS_IX86_TLSLDMPLT): Define.
3872         * configure: Regenerate.
3873         * config.in: Regenerate.
3874         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3875         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3876         TARGET_SUN_TLS, use @tlsgdplt or @plt.
3877         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3878         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3879         @tlsldmplt or @plt.
3880         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3881
3882 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
3883
3884         * sched-int.h (struct _haifa_deps_insn_data): New members cond
3885         and reverse_cond.
3886         (INSN_COND, INSN_REVERSE_COND): New macros.
3887         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3888         once.
3889         (sched_get_condition_with_rev): Cache the results, and look them up
3890         if possible.
3891         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3892         are clobbered by the current insn.
3893         * target.def (exposed_pipline): New sched data hook.
3894         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3895         * doc/tm.texi: Regenerate.
3896
3897 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3898
3899         PR tree-optimization/49170
3900         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
3901         sincos or cexp.
3902
3903 2011-05-27  Richard Guenther  <rguenther@suse.de>
3904
3905         PR middle-end/49189
3906         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3907         of comparisons.
3908
3909 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
3910
3911         * haifa-sched.c (sched_scan_info): Remove.
3912         (schedule_block): Call sched_extend_luids rather than sched_init_luids
3913         with NULL args.
3914         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3915         Remove functions.
3916         (sched_scan): Remove.
3917         (sched_extend_luids): Renamed from luids_extend_insn and no longer
3918         static.  All callers changed.
3919         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3920         static.  All callers changed.
3921         (sched_init_luids): Remove all arguments except the first.  All
3922         callers changed.  Don't use sched_scan.
3923         (haifa_init_h_i_d): Likewise.
3924         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3925         manually rather than using sched_init_luids.  Likewise with
3926         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3927         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3928         rather than sched_init_luids with NULL args.
3929         * sel-sched-ir.c (new_insns): Remove variable.
3930         (sched_scan): New static function, previously in haifa-sched.c.  Remove
3931         all arguments but the first two; all callers changed.
3932         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3933         rather than sched_init_luids.
3934         (sel_init_bbs): Remove second argument.  All callers changed.
3935         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3936         with NULL arguments.
3937         (create_insn_rtx_from_pattern): Likewise.
3938         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3939         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3940         (sched_init_insn_luid, sched_extend_luids): Declare.
3941         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3942         declarations.
3943
3944 2011-05-27  Richard Guenther  <rguenther@suse.de>
3945
3946         PR middle-end/49177
3947         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3948         A CMP B ? (T) true : (T) false for non-integral types T again.
3949
3950 2011-05-27  Jan Hubicka  <jh@suse.cz>
3951
3952         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3953         so 0 means NULL string.
3954         (lto_output_string_with_length): ... here.
3955         (lto_output_string, output_string_cst, output_identifier): Update
3956         handling of NULL strings.
3957         (lto_output_location_bitpack): New function.
3958         (lto_output_location): Use it.
3959         (lto_output_tree_ref): Use output_record_start.
3960         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3961         len values.
3962         * lto-streamer-in.c (string_for_index): Break out from ...; offset
3963         values by 1.
3964         (input_string_internal): ... here;
3965         (input_string_cst, input_identifier, lto_input_string): Update handling
3966         of NULL strings.
3967         (lto_input_location_bitpack): New function
3968         (lto_input_location): Use it.
3969         (unpack_ts_type_common_value_fields): Pack align & alias in var len
3970         values.
3971         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3972         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3973         (bp_pack_value): Sanity check the value range.
3974         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3975         New functions.
3976         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3977         New functions.
3978
3979 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
3980
3981         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3982         call_arg_location instructions down the floor.
3983
3984 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
3985
3986         PR rtl-optimization/49154
3987         * ira.c (setup_pressure_classes): Process class without sublcasses
3988         as a candidate for pressure classes.
3989
3990 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
3991
3992         PR rtl-optimization/48575
3993         * genrecog.c (position_type): New enum.
3994         (position): New structure.
3995         (decision): Use position structure instead of a string.
3996         (root_pos, peep2_insn_pos_list): New variables.
3997         (next_position, compare_positions): New functions.
3998         (new_decision): Use position structures instead of strings.
3999         (maybe_both_true): Likewise.
4000         (change_state): Likewise.
4001         (write_tree): Likewise.
4002         (make_insn_sequence): Likewise.
4003
4004 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4005
4006         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4007         TS_BASE instead of TS_COMMON.
4008         (find_decls_types_r): Check for TS_TYPED structure before looking at
4009         TREE_TYPE.
4010         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4011         Add chain field.
4012         (BLOCK_CHAIN): Use new chain field.
4013
4014 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
4015
4016         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4017         moves expensive on Power7 also.
4018
4019 2011-05-26  Richard Guenther  <rguenther@suse.de>
4020
4021         * fold-const.c (fold_unary_loc): Remove bogus code.
4022
4023 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4024
4025         * tree.h (struct tree_identifier): Inherit from tree_typed, not
4026         tree_common.
4027         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4028         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4029         TS_BASE instead of TS_COMMON.
4030         * varasm.c (assemble_name): Remove assert.
4031
4032 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4033
4034         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4035         substituted first.
4036         * libgcc-std.ver: Delete file.
4037
4038 2011-05-26  Richard Guenther  <rguenther@suse.de>
4039
4040         PR tree-optimization/48702
4041         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4042         only when we know the base address is within bounds.
4043         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4044         assume the base address of TARGET_MEM_REFs is in bounds.
4045
4046 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4047
4048         PR target/49099
4049         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4050         declaration in TARGET_SOLARIS.
4051
4052 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
4053
4054         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4055         The instruction is then expanded explicitly.
4056         (supported_compare): Callable instruction.
4057         (compare): Likewise.
4058
4059 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4060
4061         PR c++/49165
4062         * gimplify.c (shortcut_cond_r): Don't special case
4063         COND_EXPRs if they have void type on one of their arms.
4064
4065 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4066
4067         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4068         to reduce duplication, and to achieve a slightly more logical order
4069         of operations.
4070
4071 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4072
4073         PR tree-optimization/49161
4074         * tree-vrp.c (struct case_info): New type.
4075         (compare_case_labels): Sort case_info structs instead of
4076         trees, and not primarily by CASE_LABEL uids but by
4077         label_for_block indexes.
4078         (find_switch_asserts): Put case labels into struct case_info
4079         array instead of TREE_VEC, adjust sorting, compare label_for_block
4080         values instead of CASE_LABELs.
4081
4082 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4083
4084         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4085         ("orndi3_neon"): Likewise.
4086         ("bic<mode>3_neon"): Likewise.
4087
4088 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
4089
4090         PR tree-optimization/49038
4091         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4092         Ensure at least one epilogue iteration if required by data
4093         accesses with gaps.
4094         * tree-vectorizer.h (struct _loop_vec_info): Add new field
4095         to mark loops that require peeling for gaps.
4096         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4097         (vect_get_known_peeling_cost): Take peeling for gaps into
4098         account.
4099         (vect_transform_loop): Generate epilogue if required by data
4100         access with gaps.
4101         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4102         loop as requiring an epilogue if there are gaps in the end of
4103         the strided group.
4104
4105 2011-05-25  Ian Lance Taylor  <iant@google.com>
4106
4107         * godump.c (go_format_type): Output the first field with a usable
4108         Go type, if any.
4109
4110 2011-05-25  Ian Lance Taylor  <iant@google.com>
4111
4112         * godump.c (go_format_type): Check for invalid type names, pointer
4113         target types, and struct field types.
4114
4115 2011-05-25  Jason Merrill  <jason@redhat.com>
4116
4117         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4118
4119 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
4120
4121         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4122
4123 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4124
4125         * config/i386/i386.md (*movqi_extv_1)): Put back
4126         "register_operand" check in "type" calculation.
4127         (*movqi_extzv_2): Likewise.
4128
4129 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4130
4131         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4132
4133 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4134
4135         PR bootstrap/49160
4136         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4137         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4138         __divxc3, __divtc3): Wrap definitions in #ifndef.
4139
4140 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4141
4142         PR target/49142
4143         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4144         "register_operand" check and replace q_regs_operand with
4145         QIreg_operand in "type" calculation.
4146         (*movqi_extv_1): Likewise.
4147         (*movqi_extzv_2_rex64): Likewise.
4148         (*movqi_extzv_2): Likewise.
4149
4150         * config/i386/predicates.md (QIreg_operand): New.
4151
4152 2011-05-25  Richard Guenther  <rguenther@suse.de>
4153
4154         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4155         type-based offset disambiguation, streamline MEM_REF and
4156         TARGET_MEM_REF handling.
4157
4158 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4159
4160         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4161         (bdesc_special_args): Add pause intrinsic.
4162
4163         * config/i386/i386.md (UNSPEC_PAUSE): New.
4164         (pause): Likewise.
4165         (*pause): Likewise.
4166         * config/i386/ia32intrin.h (__pause): Likewise.
4167
4168         * doc/extend.texi (X86 Built-in Functions): Add documentation for
4169         pause intrinsic.
4170
4171 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4172
4173         PR tree-optimization/46728
4174         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4175         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4176
4177 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
4178
4179         * tree.h (struct tree_exp): Inherit from struct tree_typed.
4180         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4181         instead of TS_COMMON.
4182
4183 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4184
4185         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4186         LIBGCC2_GNU_PREFIX is defined.
4187         (__N): New macro.
4188         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4189         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4190         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4191         __clz_tab): Define using __N.
4192         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4193         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4194         * target.def (libfunc_gnu_prefix): New hook.
4195         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4196         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4197         * doc/tm.texi: Regenerate.
4198         * system.h (LIBGCC2_GNU_PREFIX): Poison.
4199         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4200         account.
4201         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4202         (init_optabs): Likewise for the bswap libfuncs.
4203         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4204         and divide.
4205         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4206         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4207         * libgcc-std.ver: Remove.
4208         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4209         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4210         libgcc-std.ver.
4211         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4212         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4213         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4214         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4215         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4216         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4217         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4218         * config/fixed-bit.h (FIXED_OP): Define differently depending on
4219         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4220         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4221
4222 2011-05-25  Jan Hubicka  <jh@suse.cz>
4223
4224         * lto-streamer-out.c (output_record_start): Use lto_output_enum
4225         (lto_output_tree): Use output_record_start.
4226         * lto-streamer-in.c (input_record_start): Use lto_input_enum
4227         (lto_get_pickled_tree): Use input_record_start.
4228         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4229         (lto_value_range_error): New function.
4230         * lto-streamer.h (lto_value_range_error): Declare.
4231         (lto_output_int_in_range, lto_input_int_in_range): New functions.
4232         (lto_output_enum, lto_input_enum): New macros.
4233
4234 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4235
4236         * common.opt (flag_stack_usage_info): New variable.
4237         (-Wstack-usage): New option.
4238         * doc/invoke.texi (Warning options): Document -Wstack-usage.
4239         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4240         <OPT_fstack_usage>: Likewise.
4241         * toplev.c (output_stack_usage): Handle -Wstack-usage.
4242         * calls.c (expand_call): Test flag_stack_usage_info variable instead
4243         of flag_stack_usage.
4244         (emit_library_call_value_1): Likewise.
4245         * explow.c (allocate_dynamic_stack_space): Likewise.
4246         * function.c (instantiate_virtual_regs ): Likewise.
4247         (prepare_function_start): Likewise.
4248         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4249         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4250         * config/arm/arm.c (arm_expand_prologue): Likewise.
4251         (thumb1_expand_prologue): Likewise.
4252         * config/avr/avr.c (expand_prologue): Likewise.
4253         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4254         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4255         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4256         * config/mips/mips.c (mips_expand_prologue): Likewise.
4257         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4258         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4259         * config/s390/s390.c (s390_emit_prologue): Likewise.
4260         * config/sh/sh.c (sh_expand_prologue): Likewise.
4261         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4262         * config/spu/spu.c (spu_expand_prologue): Likewise.
4263
4264 2011-05-25  Richard Guenther  <rguenther@suse.de>
4265
4266         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4267         (gimple_canonical_types_compatible_p): Likewise.
4268
4269 2011-05-25  Jan Hubicka  <jh@suse.cz>
4270
4271         PR middle-end/49062
4272         * ipa.c (function_and_variable_visibility): Only add to same
4273         comdat group list if DECL_ONE_ONLY.
4274
4275 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
4276
4277         PR rtl-optimization/49014
4278         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4279
4280 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
4281
4282         PR target/49128
4283         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4284
4285 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4286
4287         PR rtl-optimization/48757
4288         * ira-build.c (loop_with_eh_edge_p): Rename to
4289         loop_with_complex_edge_p, check edges on complexity, make function
4290         conditional.
4291         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4292         conditional.
4293
4294 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4295
4296         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4297         force flag_ira_share_save_slots to 0.
4298
4299 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4300
4301         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4302         (vt_initialize): Set PROLOGUE_BB unconditionally.
4303         Add block comment about CFA_BASE_RTX machinery.
4304         Reset FP_CFA_OFFSET to -1 on all invalid paths.
4305         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4306
4307 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
4308
4309         PR objc/48187
4310         * c-parser.c (c_parser_objc_class_instance_variables): More robust
4311         parsing of syntax error in ObjC instance variable lists.  In
4312         particular, avoid an infinite loop if there is a stray ']'.
4313         Updated error message.
4314
4315 2011-05-24  Ian Lance Taylor  <iant@google.com>
4316
4317         * godump.c (go_define): Don't accept a string immediately after
4318         another operand.
4319
4320 2011-05-24  Ian Lance Taylor  <iant@google.com>
4321
4322         * godump.c (struct godump_container): Add invalid_hash field.
4323         (go_format_type): Return false if type is found in invalid_hash.
4324         (go_output_typedef): Add invalid type to invalid_hash.
4325         (go_finish): Create and delete invalid_hash.
4326
4327 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4328
4329         PR tree-optimization/46728
4330         * tree-ssa-math-opts.c (powi_table): New.
4331         (powi_lookup_cost): New.
4332         (powi_cost): New.
4333         (powi_as_mults_1): New.
4334         (powi_as_mults): New.
4335         (gimple_expand_builtin_powi): New.
4336         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4337         (gate_cse_sincos): Remove sincos/cexp restriction.
4338
4339 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4340
4341         PR target/3746
4342         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4343         mips-tdump native.
4344         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4345         * mips-tdump.c: Likewise.
4346
4347 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4348
4349         PR target/49128
4350         * config/i386/driver-i386.c (host_detect_local_cpu): Always
4351         add -mno-XXX.  Handle FMA.
4352
4353 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4354
4355         PR rtl-optimization/48633
4356         * ira-build.c (loop_with_eh_edge_p): New function.
4357         (mark_loops_for_removal): Use it.
4358
4359 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4360
4361         PR rtl-optimization/48971
4362         * ira.c (setup_pressure_classes): Don't check register move cost
4363         for classes with one registers.  Don't add pressure class if there
4364         is a pressure class with the same available hard registers.
4365         Check contains_reg_of_mode.  Fix a typo in collecting
4366         temp_hard_regset.  Ignore hard registers not belonging to a class.
4367
4368 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
4369
4370         PR target/49133
4371         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4372
4373 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4374             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4375
4376         PR gcov-profile/48845
4377         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4378
4379 2011-05-24  Richard Guenther  <rguenther@suse.de>
4380
4381         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4382         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4383         (gimple_types_compatible_p_1): Adjust.
4384         (iterative_hash_canonical_type): Do not bother about complete vs.
4385         incomplete types.
4386         (gimple_canonical_types_compatible_p): Likewise.
4387
4388 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4389
4390         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4391
4392 2011-05-24  Richard Guenther  <rguenther@suse.de>
4393
4394         PR bootstrap/49078
4395         * gimple.c (gimple_register_canonical_type): Revert
4396         previous change.
4397         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4398         does not for a tree for the case where it matters.  Cache
4399         pointer-type alias-sets.
4400
4401 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
4402
4403         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4404         (OBJS): Remove options.o, opts-common.o and prefix.o.
4405         (OBJS-libcommon-target): New.
4406         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4407         (BACKEND): Include libcommon-target.a.
4408         (MOSTLYCLEANFILES): Include libcommon-target.a.
4409         (libcommon-target.a): New.
4410         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4411         prefix.o.
4412
4413 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
4414
4415         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
4416         parts of output shared with the driver.
4417         * optc-gen.awk: Don't generate parts of output not shared with the
4418         driver.
4419         * opth-gen.awk: Remove GCC_DRIVER conditionals.
4420         * doc/options.texi (SourcerInclude): Mention options-save.c.
4421         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4422         (OBJS): Add options-save.o.
4423         (options-save.c, options-save.o): New.
4424         (options.o): Update dependencies.
4425         (gcc-options.o): Remove.
4426         (mostlyclean): Remove options-save.c.
4427
4428 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4429
4430         PR debug/49032
4431         * dbxout.c: Include cgraph.h.
4432         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4433         and without value expr, return NULL if no varpool node exists for
4434         it or if it is not needed.
4435         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4436
4437         PR c/49120
4438         * c-decl.c (start_decl): Convert expr to void_type_node.
4439
4440 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
4441
4442         PR rtl-optimization/48826
4443         * emit-rtl.c (try_split): When splitting a call that is followed
4444         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4445
4446 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4447
4448         * cfgexpand.c (expand_debug_expr): For unused non-addressable
4449         parameters passed in memory prefer using DECL_INCOMING_RTL over
4450         the pseudos it will be copied into.
4451
4452 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4453
4454         PR target/47315
4455         * config/i386/i386.c (ix86_option_override_internal): Save the
4456         initial options after checking vzeroupper.
4457
4458 2011-05-23  David Li  <davidxl@google.com>
4459
4460         PR tree-optimization/48988
4461         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4462         Initialize has_valid_pred for each pred chain.
4463
4464 2011-05-23  Richard Guenther  <rguenther@suse.de>
4465
4466         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4467         (iterative_hash_gimple_type): Always hash type names.
4468
4469 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
4470
4471         * c-typeck.c (build_function_call_vec): Tweak call to
4472         check_function_arguments.
4473
4474 2011-05-23  Richard Guenther  <rguenther@suse.de>
4475
4476         PR tree-optimization/49115
4477         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4478         is not necessarily carried out, do not claim it kills the ref.
4479         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4480
4481 2011-05-23  Richard Guenther  <rguenther@suse.de>
4482
4483         PR middle-end/15419
4484         * builtins.c (fold_builtin_memory_op): Be less restrictive about
4485         what pointer types we accept for folding.
4486
4487 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4488
4489         * gthr-gnat.c: Remove.
4490         * gthr-gnat.h: Remove.
4491         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4492         * config/t-freebsd (LIB2ADDEH): Likewise.
4493         * config/t-linux (LIB2ADDEH): Likewise.
4494         * config/t-sol2 (LIB2ADDEH): Likewise.
4495         * config/ia64/t-vms (LIB2ADDEH): Likewise.
4496         * configure.ac (target_thread_file): Remove gnat handling.
4497         * configure: Regenerate.
4498         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4499
4500 2011-05-23  Tristan Gingold  <gingold@adacore.com>
4501             Eric Botcazou  <ebotcazou@adacore.com>
4502
4503         * gcov.c (create_file_names): If no object directory is specified,
4504         keep the directory of the file.
4505
4506 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4507
4508         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4509         * configure: Regenerate.
4510
4511 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4512
4513         PR middle-end/48973
4514         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4515         failed and the comparison has a single bit signed type, use
4516         constm1_rtx instead of const1_rtx for true value.
4517         (do_store_flag): If ops->type is single bit signed type, disable
4518         signel bit test optimization and pass -1 instead of 1 as last
4519         parameter to emit_store_flag_force.
4520
4521 2011-05-23  Tom de Vries  <tom@codesourcery.com>
4522
4523         PR target/45098
4524         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4525         function.
4526         (infer_loop_bounds_from_undefined): Use new function.
4527
4528 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4529
4530         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4531         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
4532         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4533         and -O0 otherwise.
4534         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4535
4536 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4537
4538         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4539         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4540         returns true.
4541
4542 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4543
4544         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4545
4546 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4547
4548         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4549         UNSPEC_MOVE_PIC pattern.
4550
4551 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4552
4553         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4554         (sparc-*-rtems*): Likewise.
4555         (sparc64-*-elf*): Likewise.
4556         (sparc64-*-rtems*): Likewise.
4557         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
4558         * config/sparc/t-crtin: New file.
4559         * config/sparc/t-sol2 (crti.o): Delete rule.
4560         (crtn.o): Likewise.
4561         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4562         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4563         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4564         (ENDFILE_SPEC): Add crtn.o.
4565
4566 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4567
4568         PR middle-end/48689
4569         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4570         CODE_CONTAINS_STRUCT (TS_COMMON).
4571
4572 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
4573
4574         PR middle-end/49029
4575         * expmed.c (extract_fixed_bit_field): Test whether target can be used
4576         only after deciding which mode to use.
4577
4578 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4579
4580         PR target/45098
4581         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4582         for call to get_shiftadd_cost.
4583
4584 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
4585
4586         PR target/49104
4587         * config/i386/cpuid.h (bit_MMXEXT): New define.
4588
4589 2011-05-22  Nick Clifton  <nickc@redhat.com>
4590
4591         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4592         initialisation of non-existant args[2] element.  Use args[] array
4593         not arg[] array to pass arguments to build_function_type_list.
4594
4595 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
4596
4597         PR tree-optimization/49087
4598         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4599
4600 2011-05-21  Jason Merrill  <jason@redhat.com>
4601
4602         PR c++/49092
4603         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4604         static storage duration.
4605
4606 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4607
4608         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4609         frame pointer.
4610
4611 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4612
4613         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4614         false if there are call-saved registers here...
4615         (sparc_can_use_return_insn_p): ...but here instead.
4616         (save_or_restore_regs): Fix thinko.
4617         (sparc_expand_prologue): Use current_function_is_leaf.
4618         (sparc_frame_pointer_required): Likewise.
4619
4620 2011-05-21  Nick Clifton  <nickc@redhat.com>
4621
4622         PR target/49098
4623         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4624
4625 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4626
4627         * gengtype.c (walk_type): Implemented "atomic" GTY option.
4628         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4629
4630 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
4631
4632         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
4633         * optc-gen.awk: Move common code to opt-read.awk.
4634         * opth-gen.awk: Likewise.
4635         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4636
4637 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
4638
4639         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4640
4641 2011-05-20  Tom de Vries  <tom@codesourcery.com>
4642
4643         PR target/45098
4644         * tree-ssa-loop-ivopts.c: Include expmed.h.
4645         (get_shiftadd_cost): New function.
4646         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
4647
4648 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
4649
4650         PR bootstrap/49086
4651         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4652         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4653
4654 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
4655
4656         * Makefile.in: Update comment referring to $(OBJS-common).
4657
4658 2011-05-20  Ian Lance Taylor  <iant@google.com>
4659
4660         * godump.c (go_output_typedef): Put enum constants in the macro
4661         hash table to avoid duplicate Go const definitions.
4662
4663 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
4664
4665         * Makefile.in (LIBDEPS): Add libcommon.a.
4666         (LIBS): Likewise.
4667         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4668         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4669         pretty-print.o and version.o.
4670         (OBJS-libcommon): New.
4671         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4672         (BACKEND): Add libcommon.a.
4673         (MOSTLYCLEANFILES): Likewise.
4674         (libcommon.a): New.
4675         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4676         (cpp$(exeext)): Likewise.
4677         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4678         pretty-print.o and input.o.
4679         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4680         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4681         (errors.o): Remove.
4682         (mips-tfile): Don't explicitly use version.o.
4683         (mips-tdump): Likewise.
4684         (gcov.o): Depend on $(DIAGNOSTIC_H).
4685         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4686         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4687         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4688         * gcov-dump.c: Include intl.h and diagnostic.h.
4689         (main): Initialize diagnostics.
4690         * gcov.c: Include diagnostic.h.
4691         (fnotice): Remove.
4692         (main): Initialize diagnostics.
4693         * lto-wrapper.c: Include diagnostic.h.
4694         (main): Initialize diagnostics.
4695
4696 2011-05-20  Michael Matz  <matz@suse.de>
4697
4698         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4699
4700 2011-05-20  Michael Matz  <matz@suse.de>
4701             Richard Guenther  <rguenther@suse.de>
4702
4703         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4704         use lto_streamer_cache_append directly instead of returning a VEC.
4705         (preload_common_node): Remove.
4706         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4707         track seen nodes.
4708         (lto_streamer_cache_create): Call lto_preload_common_nodes.
4709
4710 2011-05-20  Richard Guenther  <rguenther@suse.de>
4711
4712         PR tree-optimization/49079
4713         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4714         MEM_REFs correctly for the trailing array access detection.
4715         Special case constants the same way as decls for overall size
4716         constraining.
4717
4718 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
4719
4720         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4721         argument expansion.
4722
4723 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
4724
4725         PR tree-optimization/49073
4726         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4727         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4728         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4729
4730 2011-05-20  Richard Guenther  <rguenther@suse.de>
4731
4732         PR middle-end/48849
4733         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4734         of pointer types the same way the middle-end does.
4735
4736 2011-05-20  Richard Guenther  <rguenther@suse.de>
4737
4738         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4739         or pointer-to chains.  Delay all fixup to uniquify_nodes.
4740
4741 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
4742
4743         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4744         (fma4_fmaddsub): Likewise
4745
4746 2011-05-19  Jan Hubicka  <jh@suse.cz>
4747
4748         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4749         (GIMPLE_TYPE_PAIR_SIZE): New macro.
4750         (type_pair_cache): New static var.
4751         (lookup_type_pair): Use fixed sized custom hash; make inline.
4752         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4753         calls of lookup_type_pair.
4754         (print_gimple_types_stats): Remove cache stats.
4755         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4756         and gtc_ob.
4757
4758 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
4759
4760         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4761         when TARGET_RDRND is active.
4762         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4763         Generate dummy SImode target register when target is NULL.
4764
4765 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
4766
4767         * config/arm/arm-fpus.def: New.
4768         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4769         arm-fpus.def.
4770         * config/arm/arm-tables.opt: Regenerate.
4771         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4772         (arm_option_override): Don't decode FPU name to string here.
4773         * config/arm/arm.opt (mfpu=): Use Enum.
4774         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4775         Update dependencies.
4776
4777 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
4778
4779         * collect2.c: Include diagnostic.h.
4780         (fatal_perror, fatal, error, fancy_abort): Remove.
4781         (main): Set progname.  Call xmalloc_set_program_name and
4782         diagnostic_initialize.
4783         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4784         scan_libraries, resolve_lib_name): Call fatal_error instead of
4785         fatal and fatal_perror.
4786         * collect2.h (error, fatal, fatal_perror): Don't declare.
4787         * tlink.c: Include diagnostic-core.h.
4788         (recompile_files): Call fatal_error instead of fatal_perror.
4789         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4790         pretty-print.o and input.o.
4791         (collect2.o, tlink.o): Update dependencies.
4792
4793 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4794
4795         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4796
4797 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4798
4799         PR target/40483
4800         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4801         COMDAT group syntax, both SPARC and x86 variants.
4802         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4803         * configure: Regenerate.
4804         * config/sol2.h (TARGET_SOLARIS): Define.
4805         (PUSHSECTION_FORMAT): Remove.
4806         (SECTION_NAME_FORMAT): Define.
4807         * config/sol2.c: Include hashtab.h.
4808         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4809         expansion, using SECTION_NAME_FORMAT.
4810         (solaris_comdat_htab): New variable.
4811         (struct comdat_entry): Define.
4812         (comdat_hash): New function.
4813         (comdat_eq): New function.
4814         (solaris_elf_asm_comdat_section): New function.
4815         (solaris_define_comdat_signature): New function.
4816         (solaris_code_end): New function.
4817         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4818         (solaris_code_end): Declare.
4819         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4820         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4821         solaris_code_end.
4822         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4823         Remove ATTRIBUTE_UNUSED.
4824         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4825         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4826         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4827         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4828         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4829         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4830         (PUSHSECTION_FORMAT): Remove.
4831         (SECTION_NAME_FORMAT): Redefine.
4832
4833 2011-05-19  Kai Tietz  <ktietz@redhat.com>
4834
4835         * tree-cfg.c (verify_gimple_assign_binary): Barf on
4836         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4837         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4838
4839 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
4840             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4841
4842         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4843
4844 2011-05-19  Richard Guenther  <rguenther@suse.de>
4845
4846         PR middle-end/48985
4847         * tree-object-size.c (addr_object_size): If the pointed-to
4848         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4849
4850 2011-05-19  Richard Guenther  <rguenther@suse.de>
4851
4852         * gimple.c (gimple_types_compatible_p_1): Compare names of
4853         the types themselves.
4854         (iterative_hash_gimple_type): And hash them that way.
4855         (gimple_register_type_1): If we register a main variant properly
4856         initialize the leader to ourselves.
4857
4858 2011-05-19  Tom de Vries  <tom@codesourcery.com>
4859
4860         PR target/45098
4861         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4862         get_loop_invariant_expr_id.
4863         (get_loop_invariant_expr_id): Use get_expr_id.
4864         (parm_decl_cost): New function.
4865         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4866         Improve bound cost estimation.  Use different inv_expr_id for elim and
4867         express cases.
4868
4869 2011-05-19  Tom de Vries  <tom@codesourcery.com>
4870
4871         PR target/45098
4872         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4873         cost_base.cost == 0.
4874
4875 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4876
4877         PR target/49002
4878         * config/i386/sse.md
4879         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4880         load cast.
4881
4882 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
4883
4884         PR tree-optimization/49039
4885         * tree-vrp.c (extract_range_from_binary_expr): For
4886         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4887         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4888
4889 2011-05-18  Tom de Vries  <tom@codesourcery.com>
4890
4891         PR target/45098
4892         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4893
4894 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
4895
4896         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4897         (*tls_global_dynamic_64): Ditto.
4898         (*tls_local_dynamic_base_32_gnu): Ditto.
4899         (*tls_local_dynamic_base_64): Ditto.
4900         (tls_initial_exec_64_sun): Ditto.
4901
4902 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
4903
4904         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4905         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4906         bf592-none.
4907         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4908         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4909         * config/bfin/bfin.c (bfin_cpus): Add bf592.
4910         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4911         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4912         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4913         * config/bfin/elf.h (LIB_SPEC): Add bf592.
4914
4915 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
4916
4917         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4918         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4919         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4920         target_thread_pointer, arm_structure_size_boundary, struct
4921         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4922         struct abi_name, arm_all_abis): Remove.
4923         (arm_option_override) Don't process most enumerated option values here.
4924         Don't process target_fpe_name here.  Work with integer not string for
4925         structure size boundary; use separate diagnostics for each case.
4926         * config/arm/arm.h (enum float_abi_type, enum
4927         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4928         to arm-opts.h.
4929         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4930         arm_structure_size_boundary): Remove.
4931         * config/arm/arm.opt (mabi=): Use Enum and Init.
4932         (arm_abi_type): New Enum and EnumValue entries.
4933         (mfloat-abi=): Use Enum and Init.
4934         (float_abi_type): New Enum and EnumValue entries.
4935         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4936         (mfp16-format=): Use Enum and Init.
4937         (arm_fp16_format_type): New Enum and EnumValue entries.
4938         (mstructure-size-boundary=): Use UInteger and Init.
4939         (mtp=): Use Enum and Init.
4940         (arm_tp_type): New Enum and EnumValue entries.
4941
4942 2011-05-18  Richard Guenther  <rguenther@suse.de>
4943
4944         PR tree-optimization/49018
4945         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4946         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4947         gimple_has_side_effects.
4948
4949 2011-05-18  Richard Guenther  <rguenther@suse.de>
4950
4951         * gimple.c (gimple_register_type_1): New function, split out from ...
4952         (gimple_register_type): ... here.  Avoid infinite recursion.
4953
4954 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
4955
4956         PR tree-optimization/41881
4957         * tree-vectorizer.h (struct _loop_vec_info): Add new field
4958         reduction_chains along with a macro for its access.
4959         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4960         (destroy_loop_vec_info): Free reduction chains.
4961         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4962         (vect_is_slp_reduction): New function.
4963         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4964         (vect_create_epilog_for_reduction): Support SLP reduction chains.
4965         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4966         definition types for reduction chains.
4967         (vect_supported_load_permutation_p): Don't allow permutations for
4968         reduction chains.
4969         (vect_analyze_slp_instance): Support reduction chains.
4970         (vect_analyze_slp): Try to build SLP instance from reduction chains.
4971         (vect_get_constant_vectors):  Handle reduction chains.
4972         (vect_schedule_slp_instance): Mark the first statement of the
4973         reduction chain as reduction.
4974
4975 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
4976
4977         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4978         names for group elements access.
4979         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4980         reduction chains as well.  Remove data reference and interleaving
4981         related words from the fields names.
4982         * tree-vect-loop.c (vect_transform_loop): Use new names for group
4983         elements access.
4984         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4985         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4986         vect_update_interleaving_chain, vect_same_range_drs,
4987         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4988         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4989         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4990         vect_analyze_group_access, vect_analyze_data_ref_access,
4991         vect_create_data_ref_ptr, vect_transform_strided_load,
4992         vect_record_strided_load_vectors): Likewise.
4993         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4994         vect_model_load_cost, vectorizable_store, vectorizable_load,
4995         vect_remove_stores, new_stmt_vec_info): Likewise.
4996         * tree-vect-slp.c (vect_build_slp_tree,
4997         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4998
4999 2011-05-18  Richard Guenther  <rguenther@suse.de>
5000
5001         PR middle-end/48989
5002         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5003         operand verification.
5004         (verify_gimple_assign_binary): Likewise.
5005         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5006         to non-1-precision BOOLEAN_TYPEs.
5007
5008 2011-05-18  Tom de Vries  <tom@codesourcery.com>
5009
5010         PR target/45098
5011         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5012
5013 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
5014
5015         PR tree-optimization/49000
5016         * tree-ssa.c (execute_update_addresses_taken): Call
5017         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
5018         be rewritten and decl has been marked for renaming, reset
5019         the debug stmt.
5020
5021 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
5022
5023         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5024         enum_opts_set when testing if attributes have set -mfpmath=.
5025
5026 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
5027
5028         * config/mips/mips.c (mips_handle_option): Remove unused variable.
5029
5030 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5031
5032         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5033         info->entry with 0
5034         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
5035         id.transform_lang_insert_block with NULL.
5036
5037 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5038
5039         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5040         (output_fp_compare): Change args 3 and 4 to bool.
5041         (ix86_expand_call): Change arg 6 to bool.
5042         (ix86_attr_length_immediate_default): Change arg 2 to bool.
5043         (ix86_attr_length_vex_default): Change arg 3 to bool.
5044         * config/i386/i386.md: Update all uses.
5045         * config/i386/i386.c: Ditto.
5046         (ix86_flags_dependent): Change return type to bool.
5047
5048 2011-05-17  Richard Guenther  <rguenther@suse.de>
5049
5050         * gimple.c (type_hash_pair_compare): Fix comparison.
5051
5052 2011-05-17  Richard Guenther  <rguenther@suse.de>
5053
5054         * gimple.c (iterative_hash_gimple_type): Simplify singleton
5055         case some more, fix final hash value of the non-singleton case.
5056
5057 2011-05-17  Richard Guenther  <rguenther@suse.de>
5058
5059         PR bootstrap/49013
5060         Revert
5061         2011-05-16  Richard Guenther  <rguenther@suse.de>
5062
5063         * gimple.c (gimple_types_compatible_p_1): Use names of the
5064         type itself, not its main variant.
5065         (iterative_hash_gimple_type): Likewise.
5066
5067 2011-05-17  Richard Guenther  <rguenther@suse.de>
5068
5069         * gimple.c (gimple_register_canonical_type): Use the main-variant
5070         leader for computing the canonical type.
5071
5072 2011-05-17  Nick Clifton  <nickc@redhat.com>
5073
5074         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5075         moves.
5076
5077         * config/rx/rx.md: Add peephole to remove redundant extensions
5078         after loads.
5079         (bitset_in_memory): Use rx_restricted_mem_operand.
5080         (bitinvert_in_memory): Likewise.
5081         (bitclr_in_memory): Likewise.
5082
5083 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
5084             Nick Clifton  <nickc@redhat.com>
5085
5086         * config/rx/rx.md: Add peepholes to match a register move followed
5087         by a comparison of the moved register.  Replace these with an
5088         addition of zero that does both actions in one instruction.
5089
5090 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
5091
5092         PR target/48986
5093         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5094         predicate to allow CONST_INT.
5095         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5096
5097 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5098
5099         * opts-common.c (opt_enum_arg_to_value): New.
5100         * opts.h (opt_enum_arg_to_value): Declare.
5101         * config/i386/i386.opt (fpmath): Remove.
5102         (mfpmath=): Use Enum, Init and Save.
5103         (fpmath_unit): New Enum and EnumValue entries.
5104         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5105         name for function fpmath state.
5106         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5107         * config/i386/i386.c: Include diagnostic.h.
5108         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5109         (ix86_target_string): Take enum fpmath_unit value instead of string.
5110         (ix86_debug_options): Update call to ix86_target_string.
5111         (ix86_option_override_internal): Don't process fpmath strings here.
5112         (x86_function_specific_save, ix86_function_specific_restore):
5113         Don't handle fpmath state specially.
5114         (ix86_function_specific_print): Pass fpmath state to
5115         ix86_target_string instead of printing in this function.
5116         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5117         Handle enum attributes.
5118         (IX86_ATTR_ENUM, ix86_opt_enum): New.
5119         (ix86_valid_target_attribute_tree): Update option_strings
5120         handling.  Handle fpmath as enum option.
5121         (ix86_can_inline_p): Update field names for function fpmath state.
5122         (ix86_expand_builtin): Update call to ix86_target_string.
5123         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5124         (ix86_fpmath): Remove.
5125         * config/i386/t-i386 (i386.o): Update dependencies.
5126
5127 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5128
5129         PR preprocessor/48677
5130         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5131         from decoded_options[0], not from itself.
5132
5133 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
5134
5135         * config/i386/constraints.md (z): New constraint.
5136         * config/i386/i386.c (c): New mode attribute.
5137         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5138         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5139         constraint for operand 0.
5140         (*call_vzeroupper): Ditto.
5141         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
5142         (*call_rex64_ms_sysv_vzeroupper): Ditto.
5143         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5144         Use "lzm" constraint for operand 0.
5145         (*call_pop_vzeroupper): Ditto.
5146         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5147         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
5148         constraint for operand 0.
5149         (*sibcall_vzeroupper): Ditto.
5150         (*sibcall_rex64_ms_sysv): Ditto.
5151         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5152         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5153         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
5154         (*sibcall_pop_vzeroupper): Ditto.
5155         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5156         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5157         mode iterator.  Use "<c>zm" constraint for operand 1.
5158         (*call_value_vzeroupper): Ditto.
5159         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
5160         for operand 1.
5161         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5162         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5163         *call_value_pop_1.  Use "lzm" constraint for operand 1.
5164         (*call_value_pop_vzeroupper): Ditto.
5165         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5166         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5167         mode iterator.  Use "Uz" constraint for operand 1.
5168         (*sibcall_value_vzeroupper): Ditto.
5169         (*sibcall_value_rex64_ms_sysv): Ditto.
5170         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5171         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
5172         constraint for operand 1.
5173         (*sibcall_value_pop_vzeroupper): Ditto.
5174         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5175         and "z" constraint for operand 2.
5176         (*tls_global_dynamic_32_gnu): Ditto.
5177         (*tls_local_dynamic_base_32_gnu): Ditto.
5178         (*tls_local_dynamic_base_64): Ditto.
5179         (*tls_local_dynamic_32_once): Ditto.
5180         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5181         Update all callers.
5182         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5183
5184 2011-05-16  Richard Guenther  <rguenther@suse.de>
5185
5186         * gimple.c (gimple_types_compatible_p_1): Use names of the
5187         type itself, not its main variant.
5188         (iterative_hash_gimple_type): Likewise.
5189
5190 2011-05-16  Richard Guenther  <rguenther@suse.de>
5191
5192         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5193         always visit pointer target and function result and argument types.
5194
5195 2011-05-16  Jason Merrill  <jason@redhat.com>
5196
5197         PR c++/48999
5198         * tree-inline.c (copy_statement_list): Put back recursion.
5199
5200 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5201
5202         PR target/27663
5203         PR target/41076
5204         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5205         * config/avr/avr.md ("*ior<mode>qi.byte0",
5206         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5207
5208 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5209
5210         PR target/45099
5211         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5212         register is needed for a function argument.
5213
5214 2011-05-16  Richard Guenther  <rguenther@suse.de>
5215
5216         * gimple.c (struct type_hash_pair): New type.
5217         (type_hash_pair_compare): New function.
5218         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5219
5220 2011-05-16  Revital Eres  <revital.eres@linaro.org>
5221
5222         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5223
5224 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5225
5226         * config/i386/i386.md (floating point move splitters): Fix
5227         usage of standard_80387_constant_p.
5228         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5229
5230 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5231
5232         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5233
5234 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5235
5236         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5237         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5238         (tree_ssa_lim_finalize): Likewise.
5239
5240 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
5241
5242         * config/i386/constraint.md (Yd, Yx): New register constraints.
5243         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
5244         Yd conditional register constraint.
5245         (*movtf_internal): Use standard_sse_constant_opcode.
5246         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
5247         Yx conditional register constraint.
5248         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
5249         Yd conditional register constraint.  Use standard_sse_constant_p to
5250         check for valid SSE constants and call standard_sse_constant_opcode to
5251         output SSE insn.
5252         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5253         constants and call standard_sse_constant_opcode to output SSE insn.
5254         * config/i386/i386.c (ix86_option_ovverride_internal): Set
5255         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
5256         optimize_size is set.
5257         (standard_sse_constant_opcode): Output conditional AVX insn templates.
5258
5259 2011-05-14  Tobias Burnus  <burnus@net-b.de>
5260
5261         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5262
5263 2011-05-13  Martin Jambor  <mjambor@suse.cz>
5264
5265         * ipa-prop.c (ipa_cst_from_jfunc): New function.
5266         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5267         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5268         (evaluate_conditions_for_ipcp_clone): Removed.
5269         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5270         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5271         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5272
5273 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
5274
5275         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5276         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5277         lieu of MAY_HAVE_DEBUG_STMTS.
5278         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5279         debug statements if !MAY_HAVE_DEBUG_STMTS.
5280
5281 2011-05-13  Martin Thuresson  <martint@google.com>
5282
5283         PR gcov-profile/47793
5284         * libgcov.c (gcov_exit): Support relative profile paths.
5285         * doc/invoke.texi (-fprofile-dir): Update for above change.
5286
5287 2011-05-13  Richard Guenther  <rguenther@suse.de>
5288
5289         * gimple.c (gimple_canonical_types_compatible_p): Do not use
5290         type-pair caching, do not compare hashes.
5291
5292 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
5293
5294         PR middle-end/48965
5295         * tree-cfg.c (edge_to_cases_cleanup): Return true.
5296         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5297
5298 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5299
5300         * gimplify.c (gimplify_expr): Make sure operand is boolified.
5301         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5302         compatible type for TRUTH_NOT_EXPR.
5303
5304 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5305
5306         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5307         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
5308         can_create_pseudo_p ().
5309
5310 2011-05-13  Richard Guenther  <rguenther@suse.de>
5311
5312         PR lto/48978
5313         * gimple.c (iterative_hash_gimple_type): Revert change in
5314         pointer target and function result and argument hashing.
5315
5316 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
5317
5318         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5319         (*movxf_internal_nointeger): Ditto.
5320         (*movdf_internal_rex64): Ditto.
5321         (*movdf_internal): Ditto.
5322         (*movdf_internal_nointeger): Ditto.
5323         (*movsf_internal): Ditto.
5324         (sincos splitters): Use can_create_pseudo ().
5325
5326 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
5327
5328         * config/i386/i386-opts.h: New.
5329         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5330         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5331         ix86_section_threshold): Remove.
5332         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
5333         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5334         OPT_mbranch_cost_.
5335         (ix86_option_override_internal): Don't decode strings for options
5336         other than -march=, -mtune= and -mfpmath=.  Don't allow for
5337         __attribute__ uses in remaining diagnostics for options with
5338         string arguments.  Don't check for integer arguments being negative.
5339         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5340         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5341         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5342         ix86_branch_cost, ix86_section_threshold): Remove.
5343         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5344         HeaderInclude.
5345         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5346         but not Var.
5347         (masm=): Use Enum and Init.
5348         (asm_dialect): New Enum and EnumValue entries.
5349         (mbranch-cost=): Use UInteger.
5350         (mlarge-data-threshold=): Use UInteger and Init.
5351         (mcmodel=): Use Enum and Init.
5352         (cmodel): New Enum and EnumValue entries.
5353         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5354         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5355         mregparm=): Use UInteger.
5356         (mstringop-strategy=): Use Enum and Init.
5357         (stringop_alg): New Enum and EnumValue entries.
5358         (mtls-dialect=): Use Enum and Init.
5359         (tls_dialect): New Enum and EnumValue entries.
5360         (mabi=): Use Enum and Init.
5361         (calling_abi): New Enum and EnumValue entries.
5362         (mveclibabi=): Use Enum and Init.
5363         (ix86_veclibabi): New Enum and EnumValue entries.
5364
5365 2011-05-13  Nick Clifton  <nickc@redhat.com>
5366
5367         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5368         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5369
5370 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5371
5372         PR middle-end/48984
5373         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5374         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5375         (gimple_boolify): Check for cast for boolean_type_node instead for
5376         BOOLEAN_TYPE.
5377
5378 2011-05-13  Richard Guenther  <rguenther@suse.de>
5379
5380         PR tree-optimization/48172
5381         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5382         multiplying by number of iterations for equal step.
5383         (vect_create_cond_for_alias_checks): Likewise.
5384
5385 2011-05-13  Andreas Schwab  <schwab@redhat.com>
5386
5387         * configure.ac: Use AS_HELP_STRING throughout.
5388         * configure: Regenerate.
5389
5390 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5391
5392         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5393         (ix86_emit_restore_regs_using_mov): Likewise.
5394         (ix86_emit_restore_sse_regs_using_mov): Likewise.
5395
5396 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
5397
5398         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5399         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5400         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5401         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5402         RTX_OK_FOR_OLO10_P): ...here.
5403         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5404         SYMBOLIC_CONST.
5405
5406 2011-05-12  Kai Tietz  <ktietz@redhat.com>
5407
5408         * gimplify.c (gimple_boolify): Re-boolify expression
5409         arguments even if expression type is of kind BOOLEAN_TYPE.
5410         (gimplify_boolean_expr): Removed.
5411         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5412         and XOR. Additional take care that we keep expression's type.
5413         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5414         of TRUTH_AND|OR|XOR_EXPR.
5415
5416 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5417
5418         PR tree-optimization/48975
5419         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5420         on all bbs here and free and clear ifc_bbs at the end.
5421
5422 2011-05-12  Richard Guenther  <rguenther@suse.de>
5423
5424         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5425         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
5426         until after simple checks.
5427         (gimple_types_compatible_p): Likewise.
5428         (iterative_hash_gimple_type): Always hash pointer targets
5429         and function return and argument types.
5430         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5431         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
5432         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5433         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
5434         completely in the simple compare section.
5435         (gimple_register_canonical_type): Query the cache again after
5436         registering.
5437
5438 2011-05-12  Richard Guenther  <rguenther@suse.de>
5439
5440         PR tree-optimization/48172
5441         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5442         the number of iterations from the segment size calculation.
5443         (vect_create_cond_for_alias_checks): Adjust.
5444
5445 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5446
5447         PR debug/48967
5448         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5449         if validate_subreg fails.
5450
5451 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
5452
5453         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5454         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5455         early.
5456
5457 2011-05-12  DJ Delorie  <dj@redhat.com>
5458
5459         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5460         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5461         created builtin into rx_builtins array.
5462         (rx_builtin_decl): New function.
5463         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
5464
5465 2011-05-12  DJ Delorie  <dj@redhat.com>
5466             Nick Clifton  <nickc@redhat.com>
5467
5468         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5469         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5470         (rx_is_legitimate_address): Add pre-decrement and post-increment
5471         addressing in HImode and QImode.  Fix test for out of range
5472         REG+INT addressing.
5473         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5474         (rx_align_for_label): Test label before extracting its usage count.
5475         (rx_adjust_insn_lengths): Fix selection of insn codes.
5476         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5477
5478 2011-05-11  Jason Merrill  <jason@redhat.com>
5479
5480         * tree.c (type_hash_canon): Use struct tree_type_non_common.
5481
5482 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5483
5484         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5485         reindent the subsequent block.
5486
5487 2011-05-11  Satoru Takabayashi  <satorux@google.com>
5488             Paul Pluzhnikov  <ppluzhnikov@google.com>
5489
5490         * doc/install.texi (Configuration): Document --with-linker-hash-style.
5491         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5492         * config.in: Add LINKER_HASH_STYLE.
5493         * configure.ac: Add --with-linker-hash-style.
5494         * configure: Regenerate.
5495
5496 2011-05-11  Richard Guenther  <rguenther@suse.de>
5497
5498         PR middle-end/48964
5499         * gimple.c (iterative_hash_canonical_type): Fix typo.
5500
5501 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
5502
5503         * config/i386/i386.c (legitimize_tls_address)
5504         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5505         expanders directly for TARGET_GNU2_TLS.  Determine pic and
5506         __tls_get_addr symbol reference here.  Update call to
5507         gen_tls_global_dynamic_{32,64} for added arguments.
5508         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5509         expanders directly for TARGET_GNU2_TLS.  Determine
5510         __tls_get_addr symbol reference here.  Update call to
5511         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
5512         unique UNSPEC REG_EQUIV to libcall block.
5513         (ix86_tls_get_addr): Declare static.
5514         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5515         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5516         Do not determine pic and __tls_get_addr symbol reference here. Do not
5517         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5518         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5519         (tls_global_dynamic_64): Add operand 2.  Do not determine
5520         __tls_get_addr symbol reference here.  Do not call
5521         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5522         (tls_local_dynamic_base64): Ditto for operand 1.
5523
5524 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5525
5526         * function.c (expand_function_start): Initialize stack_check_probe_note
5527         only if the generic stack checking mechanism is used.
5528
5529 2011-05-11  Richard Guenther  <rguenther@suse.de>
5530
5531         PR tree-optimization/15256
5532         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5533         (A & B) | C, combine (A op CST1) op CST2.
5534         (tree_ssa_forward_propagate_single_use_vars): Only bother to
5535         visit assigns that have uses.
5536
5537 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
5538
5539         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5540         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5541         (unpack_ts_type_common_value_fields): ...this.  Update comment.
5542         (unpack_value_fields): Adjust for renaming.
5543         (lto_input_ts_type_tree_pointers): Split into...
5544         (lto_input_ts_type_common_tree_pointer): ...this and...
5545         (lto_input_ts_type_non_common_tree_pointers): ...this.
5546         (lto_input_tree_pointers): Adjust for above split.
5547         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5548         (pack_ts_type_common_value_fields): ...this.  Update comment.
5549         (lto_output_ts_type_tree_pointers): Split into...
5550         (lto_output_ts_type_common_tree_pointers): ...this and...
5551         (lto_output_ts_type_non_common_tree_pointers): ...this.
5552         (lto_output_tree_pointers): Adjust for above split.
5553         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5554         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5555         * stor-layout.c (vector_type_mode): Adjust location of mode field.
5556         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5557         Define.
5558         (struct tree_type): Split into...
5559         (struct tree_type_common: ...this and...
5560         (struct tree_type_with_lang_specific): ...this and...
5561         (struct tree_type_non_common): ...this.  Adjust accessor macros
5562         accordingly.
5563         (TYPE_VALUES_RAW): Define.
5564         (union tree_node): Update for above changes.
5565         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5566         TS_TYPE_NON_COMMON.
5567         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5568         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5569         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5570         * treestructu.def (TS_TYPE): Remove.
5571         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5572         Define.
5573
5574 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
5575
5576         PR debug/48159
5577         * tree-ssa.c (reset_debug_uses): New function.
5578         * tree-flow.h (reset_debug_uses): New prototype.
5579         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5580         * tree-loop-distribution.c (generate_loops_for_partition): Call
5581         reset_debug_uses on the stmts that will be removed.  Keep around
5582         all debug stmts, don't count them as bits in partition bitmap.
5583         (generate_builtin): Don't count debug stmts or labels as bits in
5584         partition bitmap.
5585
5586 2011-05-11  Richard Guenther  <rguenther@suse.de>
5587
5588         * gimple.c (gimple_type_hash_1): Merge with ...
5589         (gimple_type_hash): ... this.
5590         (gtc_visit): Remove mode parameter and simplify accordingly.
5591         (gimple_types_compatible_p_1): Likewise.
5592         (gimple_types_compatible_p): Likewise.
5593         (iterative_hash_gimple_type): Likewise.
5594         (visit): Likewise.
5595         (gimple_type_eq): Adjust.
5596
5597 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5598
5599         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5600         enters the branch create an anti edge in the opposite direction
5601         to prevent the creation of reg-moves.
5602         * modulo-sched.c: Adjust comment to reflect the fact we are
5603         scheduling closing branch.
5604         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5605         (stage_count): New field in struct partial_schedule.
5606         (calculate_stage_count): New function.
5607         (normalize_sched_times): Rename to reset_sched_times and handle
5608         incrementing the sched time of the nodes by a constant value
5609         passed as parameter.
5610         (duplicate_insns_of_cycles): Skip closing branch.
5611         (sms_schedule_by_order): Schedule closing branch.
5612         (ps_insn_find_column): Handle closing branch.
5613         (sms_schedule): Call reset_sched_times and adjust the code to
5614         support scheduling of the closing branch.
5615         (ps_insert_empty_row): Update calls to normalize_sched_times
5616         and rotate_partial_schedule functions.
5617
5618 2011-05-11  Richard Guenther  <rguenther@suse.de>
5619
5620         PR middle-end/48953
5621         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5622
5623 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
5624
5625         * opts.c (finish_options): Move warning settings from process_options.
5626         * toplev.c (process_options): Move warning settings to finish_options.
5627
5628 2011-05-11  Richard Guenther  <rguenther@suse.de>
5629
5630         PR tree-optimization/18041
5631         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5632         (simplify_bitwise_binary): ... this.  Handle operand conversions
5633         by applying them to the result instead.
5634         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
5635
5636 2011-05-11  Richard Guenther  <rguenther@suse.de>
5637
5638         * gimple.c (gimple_canonical_types_compatible_p): Split out
5639         from gimple_types_compatible_p and friends.  Do not recurse
5640         to pointed-to types.
5641         (gimple_canonical_type_eq): Use it.
5642         (iterative_hash_canonical_type): Split out from
5643         iterative_hash_gimple_type and friends.  Do not recurse
5644         to pointed-to types.
5645         (gimple_canonical_type_hash): Use it, allocate the hash here.
5646
5647 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5648
5649         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5650         recognizing doloop.
5651
5652 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5653
5654         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5655         instead of PREV_INSN.
5656
5657 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5658
5659         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5660         * loop-doloop.c (doloop_condition_get): Likewise.
5661         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5662         (doloop_end): New.
5663         * config/arm/arm.md (*addsi3_compare0): Remove "*".
5664
5665 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
5666
5667         * tree.def (CASE_LABEL_EXPR): Add an operand.
5668         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5669
5670 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5671
5672         * c-decl.c (c_override_global_bindings_to_false): Remove.
5673         (global_bindings_p): Don't check
5674         c_override_global_bindings_to_false.
5675         * c-tree.h (c_override_global_bindings_to_false): Remove.
5676         * c-typeck.c (composite_type): Don't set
5677         c_override_global_bindings_to_false.
5678
5679 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5680
5681         PR target/48857, 48495
5682         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5683         (VSX_MODE): Ditto.
5684         (VSX_MOVE_MODE): Ditto.
5685         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5686         VSX vector types.  Add V2DImode.
5687         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5688         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5689         (MODES_TIEABLE_P): Ditto.
5690
5691         * config/rs6000/rs6000.c (rs6000_emit_move): Use
5692         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5693         VSX_VECTOR_MODE.
5694         (init_cumulative_args): Ditto.
5695         (rs6000_function_arg_boundary): Ditto.
5696         (rs6000_function_arg_advance_1): Ditto.
5697         (rs6000_function_arg): Ditto.
5698         (rs6000_function_ok_for_sibcall): Ditto.
5699         (emit_frame_save): Ditto.
5700         (rs6000_function_value): Ditto.
5701         (rs6000_libcall_value): Ditto.
5702
5703 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5704
5705         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5706         i386/darwin-lib.h to $libgcc_tm_file.
5707         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5708
5709 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5710
5711         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5712
5713 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5714
5715         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5716         * config/rs6000/rs6000-tables.opt: New file (generated).
5717         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5718         rs6000/rs6000-tables.opt to extra_options.
5719         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5720         * config/rs6000/rs6000.c (rs6000_select): Remove.
5721         (processor_target_table): Move contents to rs6000-cpus.def.
5722         (darwin_rs6000_override_options): Check
5723         global_options_set.x_rs6000_cpu_index instead of
5724         rs6000_select[1].string.
5725         (rs6000_option_override_internal): Likewise.
5726         (rs6000_handle_option): Don't assert that global structures are in
5727         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
5728         (rs6000_default_cpu): New variable.
5729         (rs6000_file_start): Set it instead of local default_cpu.  Check
5730         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5731         global_options_set.x_rs6000_tune_index instead of rs6000_select.
5732         (rs6000_darwin_file_start): Check rs6000_default_cpu and
5733         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5734         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5735         rs6000_select): Remove.
5736         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5737         Remove.
5738         (mcpu=, mtune=): Use Var, Init, Enum and Save.
5739         * config/rs6000/t-rs6000
5740         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5741         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5742         global_options_set.x_rs6000_cpu_index instead of
5743         rs6000_select[1].string.
5744         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5745         global_options_set.x_rs6000_cpu_index instead of
5746         rs6000_select[1].string.
5747
5748 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5749
5750         * config.gcc (libgcc_tm_file): Define instead of including files
5751         from ../../libgcc/config/ in tm_file.
5752         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
5753         * configure: Regenerate.
5754         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5755         libgcc_tm.h, cs-libgcc_tm.h): New.
5756         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5757         (clean): Remove libgcc_tm.h.
5758         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5759         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5760         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5761
5762 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
5763
5764         PR target/48896
5765         * config/avr/avr.c (avr_ret_register): Return unsigned int
5766         instead of int.
5767         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5768         it to avr_libcall_value.
5769         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5770         expand_expr.
5771         (avr_expand_binop_builtin): Ditto.
5772         (avr_expand_unop_builtin): Ditto.
5773
5774 2011-05-10  DJ Delorie  <dj@redhat.com>
5775
5776         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5777         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5778         * config/rx/rx.c (rx_align_for_label): Add label and
5779         uses_threshold parameters.  Do not align when the label is not
5780         used enough.
5781         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5782
5783 2011-05-10  Richard Guenther  <rguenther@suse.de>
5784
5785         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5786         a series of conversions and apply foldings similar to what
5787         fold-const does.
5788         (tree_ssa_forward_propagate_single_use_vars): Call it.
5789
5790 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
5791
5792         PR tree-optimization/48611
5793         PR tree-optimization/48794
5794         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5795         referenced from RESX or EH_DISPATCH arguments.
5796
5797         PR debug/48928
5798         * dfp.c (decimal_to_decnumber): Handle conversion from
5799         dconst{1,2,m1,half}.
5800
5801 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5802
5803         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5804         for !flag_prefer_avx128.
5805         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5806
5807 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
5808
5809         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5810         (fold_ternary_loc): Use expr_location_or.
5811
5812 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5813
5814         PR debug/48853
5815         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5816         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5817         Pmode and mem_mode is not VOIDmode.
5818
5819 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
5820
5821         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5822         TYPE_QUAL_RESTRICT): Convert to enum.
5823
5824 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5825
5826         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5827         (const_pow2_1_to_8_operand): Ditto.
5828         (const_pow2_1_to_128_operand): Ditto.
5829         (const_pow2_1_to_32768_operand): Ditto.
5830         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5831         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
5832         in insn constraint to check integer value of operand 3.
5833         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5834
5835         (PINSR_MODE): New mode iterator.
5836         (sse2p4_1): New mode attribute.
5837         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5838         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5839         iterator.  Use const_int_operand instead of
5840         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
5841         exact_log2 in insn constraint to check integer value of operand 3.
5842
5843 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5844
5845         * config/i386/sse.md (blendbits): Remove mode attribute.
5846         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5847         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5848         Check integer value of operand 3 in insn constraint.
5849
5850 2011-05-09  Richard Guenther  <rguenther@suse.de>
5851
5852         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5853         for diagnostics.
5854         (lto_symtab_merge): Likewise.  Do not register types here.
5855         (lto_symtab_merge_decls_2): Likewise.
5856         (lto_symtab_merge_decls_1): Likewise.
5857         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5858         * gimple.c (enum gtc_mode): Declare.
5859         (gimple_types_compatible_p): Make static.
5860
5861 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5862
5863         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5864         temporary register to match Pmode.
5865
5866 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5867
5868         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5869         and *vec_concatv4si_1_avx.
5870
5871 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5872
5873         PR rtl-optimization/48927
5874         * ira-conflicts.c (commutative_constraint_p): Use
5875         recog_data.alternative_enabled_p to disable alternatives where
5876         "enabled" attribute is false.
5877         (get_dup_num): Ditto.
5878         * ira-lives.c (single_reg_class): Ditto.
5879         (ira_implicitly_set_insn_hard_regs): Ditto.
5880
5881 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
5882
5883         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5884         (dataflow_set_preserve_mem_locs): Likewise.
5885
5886 2011-05-09  Philipp Thomas  <pth@suse.de>
5887
5888         * config/mep/mep.c (mep_validate_vliw): Syntax description
5889         should not be translated.
5890
5891 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
5892
5893         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5894         * config/mips/mips-tables.opt: New file (generated).
5895         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5896         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5897         MIPS_ARCH_OPTION_NATIVE): Define.
5898         * config/mips/mips.c (mips_cpu_info_table): Move contents to
5899         mips-cpus.def.
5900         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5901         mips_parse_cpu): Remove.
5902         (mips_cpu_info_from_opt, mips_default_arch): New.
5903         (mips_handle_option): Don't assert that global structures are in
5904         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5905         (mips_option_override): Use new variables and functions to set
5906         state of these options.  Use strcmp to check for individual CPU names.
5907         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5908         definition.
5909         * config/mips/mips.opt (march=): Use ToLower and Enum.
5910         (mips): Use ToLower, Enum and Var.
5911         (mtune=): Use ToLower and Enum.
5912         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5913
5914 2011-05-08  Jan Hubicka  <jh@suse.cz>
5915
5916         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5917         Arrange type pairs to be UID ordered.
5918         (gimple_lookup_type_leader): Make inline.
5919
5920 2011-05-09  Nick Clifton  <nickc@redhat.com>
5921
5922         PR target/48899
5923         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5924         PROCESSOR_DEFAULT.
5925
5926         PR target/48897
5927         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5928         variable 's'.
5929
5930 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
5931
5932         * combine.c (simplify_comparison): Abstract out parts into...
5933         (simplify_compare_const): ... new function.
5934         (try_combine): Generalize parallel arithmetic/compare combining
5935         to call simplify_compare_const() and CANONICALIZE_COMPARE().
5936
5937 2011-05-08  Jan Hubicka  <jh@suse.cz>
5938
5939         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5940         (cgraph_create_virtual_clone): Call hooks once virtual clone
5941         is finished.
5942         * cgraph.h (cgraph_clone_node): Update prototype.
5943         * ipa-cp.c (ipcp_estimate_growth): Use
5944         estimate_ipcp_clone_size_and_time.
5945         * ipa-inline-transform.c (clone_inlined_nodes): Update.
5946         * lto-cgraph.c (input_node): Update.
5947         * ipa-inline.c (recursive_inlining): Update.
5948         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5949         (evaluate_conditions_for_known_args): Break out from ...
5950         (evaluate_conditions_for_edge): ... here.
5951         (evaluate_conditions_for_ipcp_clone): New function.
5952         (inline_node_duplication_hook): Update clone summary based
5953         on parameter map.
5954         (estimate_callee_size_and_time): Rename to ...
5955         (estimate_node_size_and_time): take NODE instead of EDGE;
5956         take POSSIBLE_TRUTHS as argument.
5957         (estimate_callee_size_and_time): Update.
5958         (estimate_ipcp_clone_size_and_time): New function.
5959         (do_estimate_edge_time): Update.
5960
5961 2011-05-08  Richard Guenther  <rguenther@suse.de>
5962
5963         PR middle-end/48908
5964         PR middle-end/48905
5965         * expmed.c (expand_shift_1): Compute adjusted constant shift
5966         amount manually.
5967
5968 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
5969
5970         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5971
5972 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
5973
5974         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5975
5976 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
5977
5978         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5979
5980 2011-05-07  Jan Hubicka  <jh@suse.cz>
5981
5982         * ipa-inline-transform.c (inline_call): Account when program size
5983         decreases.
5984         * ipa-inline.c (relative_time_benefit): New function.
5985         (edge_badness): Reorganize to be power 2 based; fix thinko when
5986         computing badness for negative growth; update comments to match
5987         reality; better dumps.
5988
5989 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
5990
5991         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5992         type to bool and adjust comment.
5993         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5994         (fold_mathfn_compare): Remove calls to global_bindings_p.
5995         (fold_inf_compare): Likewise.
5996         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5997         * c-tree.h (global_bindings_p): Adjust prototype.
5998         * c-decl.c (global_bindings_p): Return bool and simplify.
5999
6000 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
6001
6002         PR tree-optimization/48837
6003         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6004         when accumulator transformation is performed.
6005
6006 2011-05-06  Jan Hubicka  <jh@suse.cz>
6007
6008         * i386.h (ix86_tune_indices): Add
6009         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6010         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6011         * i386.c (initial_ix86_tune_features): Add
6012         X86_SOFTARE_PREFETCHING_BENEFICIAL.
6013         (software_prefetching_beneficial_p): Remove predicate.
6014         (ix86_option_override_internal): Use new macro.
6015
6016 2011-05-06  Jan Hubicka  <jh@suse.cz>
6017
6018         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6019
6020 2011-05-06  Jan Hubicka  <jh@suse.cz>
6021
6022         * cgraph.c (cgraph_add_thunk): Create real function node instead
6023         of alias node; finalize it and mark needed/reachale; arrange visibility
6024         to be right and add it into the corresponding same comdat group list.
6025         (dump_cgraph_node): Dump thunks.
6026         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6027         cgraph_function_with_gimple_body_p,
6028         cgraph_first_function_with_gimple_body,
6029         cgraph_next_function_with_gimple_body): New functions.
6030         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6031         New macros.
6032         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6033         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6034         * cgraphunit.c (cgraph_finalize_function): Only look into possible
6035         devirtualization when optimizing.
6036         (verify_cgraph_node): Verify thunks.
6037         (cgraph_analyze_function): Analyze thunks.
6038         (cgraph_mark_functions_to_output): Output thunks only in combination
6039         with function they are assigned to.
6040         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6041         alias into normal node.
6042         (assemble_thunks): New functoin.
6043         (cgraph_expand_function): Use it.
6044         * lto-cgraph.c (lto_output_node): Stream thunks.
6045         (input_overwrite_node): Stream in thunks.
6046         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6047         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6048         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6049         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6050         (inline_analyze_function): Do not care about thunk jump functions.
6051         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6052         * ipa-prop.c (ipa_prop_write_jump_functions): Use
6053         cgraph_function_with_gimple_body_p.
6054         * passes.c (do_per_function_toporder): Use
6055         cgraph_function_with_gimple_body_p.
6056         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6057         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6058         (function_called_by_processed_nodes_p): Likewise.
6059
6060 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6061
6062         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6063         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6064         entries.
6065         (mabi=): Replace with separate entries for mabi=altivec,
6066         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6067         mabi=ieeelongdouble and mabi=ibmlongdouble.
6068         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6069         check for -mabi=spe without SPE ABI support here.
6070         (rs6000_handle_option): Replace OPT_mabi_ handling with
6071         OPT_mabi_altivec and OPT_mabi_spe handling.
6072
6073 2011-05-06  Cary Coutant  <ccoutant@google.com>
6074
6075         * dwarf2out.c (contains_subprogram_definition): New function.
6076         (should_move_die_to_comdat): Call it.
6077
6078 2011-05-06  Jeff Law  <law@redhat.com>
6079
6080         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6081         remove_ctrl_stmt_and_useless_edges.
6082         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6083         (fixup_template_block, thread_single_edge): Likewise.
6084         (mark_threaded_blocks): Use THREAD_TARGET.
6085
6086 2011-05-06  Alan Modra  <amodra@gmail.com>
6087
6088         PR target/48900
6089         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6090         const0_rtx as the arg to the dummy __tls_get_addr libcall.
6091
6092 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6093
6094         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6095         constraint modifier to "r".
6096
6097 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6098
6099         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6100         fall through for OPT_mcmodel_.
6101
6102 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6103
6104         * config/s390/s390.c (s390_asm_trampoline_template): Comment
6105         instruction sizes.
6106         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6107
6108 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6109
6110         PR target/47930
6111         * config/arm/arm.opt (marm): Document it.
6112         (mthumb): Reject negative variant.
6113
6114 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6115
6116         PR target/48898
6117         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6118         Fix typo in "ccvt" variable name.
6119
6120 2011-05-06  Tristan Gingold  <gingold@adacore.com>
6121
6122         PR target/48895
6123         * config/vms/vms-ar.c (main): Remove cwd variable.
6124
6125 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
6126
6127         PR debug/48902
6128         * var-tracking.c (prepare_call_arguments): Move else before #endif.
6129
6130 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
6131
6132         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6133         * gimplify.c (gimplify_switch_expr): Likewise.
6134         * omp-low.c (expand_omp_sections): Likewise.
6135         * tree-eh.c (lower_try_finally_switch): Likewise.
6136         (lower_eh_dispatch): Likewise.
6137         * tree.h (build_case_label): Declare.
6138         * tree.c (build_case_label): Define.
6139
6140 2011-05-05  Jason Merrill  <jason@redhat.com>
6141
6142         PR c++/40975
6143         * tree-inline.c (copy_tree_r): Use copy_statement_list.
6144         (copy_statement_list): Don't recurse.
6145         * stor-layout.c (copy_self_referential_tree_r): Don't allow
6146         STATEMENT_LIST.
6147
6148 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6149
6150         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6151         through from -mfpu= handling.
6152         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6153
6154 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
6155
6156         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6157         POST_MODIFY.
6158
6159 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
6160
6161         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6162         for 11.31.
6163         (hppa[12]*-*-hpux11*): Ditto.
6164         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6165         * config/ia64/hpux-unix2003.h: New.
6166         * config/pa/pa-hpux1131.opt: New.
6167         * config/pa/pa-hpux1131.h: New.
6168         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6169         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6170         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6171
6172 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6173
6174         PR debug/48853
6175         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6176         instead of mode as 3rd argument to recursive call.
6177         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6178         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6179         VOIDmode.
6180         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6181         don't give up if mode is Pmode and mem_mode is not VOIDmode.
6182         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6183         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6184
6185 2011-05-05  Julian Brown  <julian@codesourcery.com>
6186
6187         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6188         parenthesis in D-register case.
6189
6190 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6191
6192         * opt-functions.awk (var_type_struct): Handle Enum options.
6193         * optc-gen.awk: Don't check range of variables of character type.
6194         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6195         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6196         rs6000_sdata_name, rs6000_explicit_options): Remove.
6197         (rs6000_option_override_internal): Check for -malign-power here.
6198         Use global_options_set instead of rs6000_explicit_options.
6199         (rs6000_parse_fpu_option): Remove.
6200         (rs6000_handle_option): Access variables via opts and opts_set
6201         pointers.  Use error_at and warning_at.  Add fall-through
6202         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6203         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6204         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6205         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6206         here.  Don't use rs6000_parse_fpu_option.
6207         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6208         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6209         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6210         (mrecip=): Use Var.
6211         (mspe): Use Var and Save.
6212         (mtraceback=): Use Enum and Var.
6213         (rs6000_traceback_type): New Enum and EnumValue entries.
6214         (mfloat-gprs=): Use Enum, Var and Save.
6215         (rs6000_float_gprs): New Enum and EnumValue entries.
6216         (mlong-double-): use Var and Save.
6217         (msched-costly-dep=, minsert-sched-nops=): Use Var.
6218         (malign-): Use Enum and Var.
6219         (rs6000_alignment_flags): New Enum and EnumValue entries.
6220         (mfpu=): Use Enum.
6221         (fpu_type_t): New Enum and EnumValue entries.
6222         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6223         global_options_set instead of rs6000_explicit_options.
6224         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6225         global_options_set instead of rs6000_explicit_options.
6226         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6227         global_options_set instead of rs6000_explicit_options.
6228         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6229         global_options_set instead of rs6000_explicit_options.
6230         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6231         global_options_set instead of rs6000_explicit_options.
6232         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6233         global_options_set instead of rs6000_explicit_options.
6234         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6235         definition.
6236         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6237         global_options_set instead of rs6000_explicit_options.
6238         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6239         (rs6000_cmodel): New Enum and EnumValue entries.
6240         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6241         global_options_set instead of rs6000_explicit_options.
6242         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6243         (mtls-size=): Use Enum and Var.
6244         (rs6000_tls_size): New Enum and EnumValue entries.
6245
6246 2011-05-05  Michael Matz  <matz@suse.de>
6247
6248         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6249         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6250         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6251         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6252         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6253         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6254         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6255         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6256         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6257         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6258         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6259         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6260         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6261         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6262         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6263         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6264
6265 2011-05-05  Richard Guenther  <rguenther@suse.de>
6266
6267         * expmed.c (expand_variable_shift): Rename to ...
6268         (expand_shift_1): ... this.  Take an expanded shift amount.
6269         For rotates recurse directly not building trees for the shift amount.
6270         (expand_variable_shift): Wrap around expand_shift_1.
6271         (expand_shift): Adjust.
6272
6273 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6274
6275         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6276
6277 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
6278
6279         * tree.h (get_pending_sizes): Remove prototype.
6280         (put_pending_size): Likewise.
6281         (put_pending_sizes): Likewise.
6282         * stor-layout.c (pending_sizes): Delete.
6283         (get_pending_sizes): Likewise.
6284         (put_pending_size): Likewise.
6285         (put_pending_sizes): Likewise.
6286         (variable_size): Do not call put_pending_size and tidy up.
6287         * function.h (struct function): Remove dont_save_pending_sizes_p.
6288         * lto-streamer-in.c (input_function): Do not stream it.
6289         * lto-streamer-out.c (output_function): Likewise.
6290         * tree-inline.c (initialize_cfun): Do not copy it.
6291         * c-decl.c (store_parm_decls): Do not set it.
6292         * omp-low.c (create_task_copyfn): Likewise.
6293         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6294
6295 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
6296
6297         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6298         conditions.
6299         (*movdf_internal): Ditto.
6300         (*movdf_internal_nointeger): Ditto.
6301         (*movsf_internal): Ditto.
6302
6303 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6304
6305         * c-decl.c (finish_decl): Don't call get_pending_sizes.
6306         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
6307         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
6308         (c_variable_size): Remove.
6309         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
6310         call put_pending_sizes.
6311         (get_parm_info): Add parameter expr.  Use it to set
6312         arg_info->pending_sizes.
6313         (store_parm_decls): Use arg_info->pending_sizes instead or calling
6314         get_pending_sizes.
6315         * c-parser.c (c_parser_parms_declarator): Update call to
6316         c_parser_parms_list_declarator.
6317         (c_parser_parms_list_declarator): Take parameter expr.  Update
6318         call to push_parm_decl.  Update recursive call.  Don't call
6319         get_pending_sizes.  Update calls to get_parm_info.
6320         (c_parser_objc_method_definition): Update calls to
6321         c_parser_objc_method_decl and objc_start_method_definition.
6322         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6323         (c_parser_objc_method_decl): Add parameter expr.  Update call to
6324         grokparm.
6325         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6326         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6327         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6328
6329 2011-05-05  Michael Hope  <michael.hope@linaro.org>
6330
6331         PR pch/45979
6332         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6333         __ARM_EABI__ hosts.
6334
6335 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6336
6337         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6338         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6339         (spu_output_mi_thunk): New function.
6340
6341 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6342
6343         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6344         targetm.asm_out.print_operand.
6345         * config/sol2.c: Include target.h.
6346
6347 2011-05-04  Jan Hubicka  <jh@suse.cz>
6348
6349         * ipa-inline.c (reset_edge_caches): New function.
6350         (update_caller_keys): Add check_inlinablity_for; do not
6351         reset edge caches; remove now unnecesary loop.
6352         (update_callee_keys): Add comments; reset node_growth_cache of callee.
6353         (update_all_callee_keys): Likewise.
6354         (inline_small_functions): Sanity check cache; update code
6355         recomputing it.
6356
6357 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
6358
6359         PR rtl-optimization/47612
6360         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6361         as the last insn of the sequence to be moved.
6362
6363 2011-05-04  Tobias Burnus  <burnus@net-b.de>
6364
6365         PR fortran/48864
6366         * doc/invoke.texi (Ofast): Document that it
6367         enables Fortran's -fno-protect-parens.
6368
6369 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6370
6371         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6372
6373 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
6374
6375         * stor-layout.c (variable_size): Do not issue errors.
6376
6377 2011-05-04  Richard Guenther  <rguenther@suse.de>
6378
6379         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6380         for array-ref indices.
6381         (tree_coverage_counter_addr): Likewise.
6382         (build_fn_info_type): Use size_int for index types.
6383         (build_gcov_info): Likewise.
6384
6385 2011-05-04  Richard Guenther  <rguenther@suse.de>
6386
6387         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6388         to build_int_cst.
6389         * c-typeck.c (really_start_incremental_init): Use bitsize_int
6390         for constructor indices.
6391         (push_init_level): Likewise.
6392
6393 2011-05-04  Richard Guenther  <rguenther@suse.de>
6394
6395         * explow.c (promote_mode): Move variable declarations before code.
6396
6397 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
6398
6399         * tree.h (build_function_type_array): Declare.
6400         (build_varargs_function_type_array): Declare.
6401         (build_function_type_vec, build_varargs_function_type_vec): Define.
6402         * tree.c (build_function_type_array_1): New function.
6403         (build_function_type_array): New function.
6404         (build_varargs_function_type_array): New function.
6405
6406 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
6407
6408         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6409         before setting STMT_VINFO_TYPE.
6410
6411 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6412
6413         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6414         instead of spu_pass_by_reference.
6415
6416 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6417
6418         * calls.c (emit_library_call_value_1): Invoke
6419         promote_function_mode hook on libcall arguments.
6420         * explow.c (promote_function_mode, promote_mode): Handle TYPE
6421         argument being NULL.
6422         * targhooks.c (default_promote_function_mode): Lisewise.
6423         * config/s390/s390.c (s390_promote_function_mode): Likewise.
6424         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6425
6426         * doc/tm.texi: Document that TYPE argument might be NULL.
6427
6428 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6429
6430         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6431
6432 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6433
6434         From Bernd Schmidt
6435         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6436
6437 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6438
6439         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6440         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6441         Move ...
6442         * mips-tfile.c: ... here.
6443         Don't include coretypes.h, tm.h, filenames.h.
6444         (saber_stop): Remove definition and all calls.
6445         [__SABER__]: Remove.
6446         (__LINE__): Remove default.
6447         (Size_t, Ptrdiff_t): Remove definitions.
6448         Replace by size_t, ptrdiff_t.
6449         [!MIPS_DEBUGGING_INFO]: Remove.
6450         (SHASH_SIZE, THASH_SIZE): Remove defaults.
6451         (progname): Add const.
6452         (STATIC): Remove.
6453         Replace all uses by static.
6454         (ALIGN_SYMTABLE_OFFSET): Remove default.
6455         * mips-tdump.c: Don't include coretypes.h, tm.h.
6456         Remove !MIPS_IS_STAB guard.
6457         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6458         $(TM_H), filenames.h dependencies.
6459         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6460
6461 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6462
6463         From Jie Zhang
6464         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6465         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6466
6467 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6468
6469         From Bernd Schmidt
6470         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6471         account and save/restore RETS.
6472         (PROFILE_BEFORE_PROLOGUE): Define.
6473         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
6474         the push insn to use predecrement.
6475
6476 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6477
6478         From Jie Zhang
6479         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6480
6481 2011-05-04  Nick Clifton  <nickc@redhat.com>
6482
6483         * config/mn10300/mn10300.c: Include cfgloop.h.
6484         (DUMP): New macro.
6485         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
6486         Lcc or a FLcc insn into the instruction stream.
6487         (mn10300_block_contains_call): New function.  Returns true if the
6488         given basic block contains a CALL insn.
6489         (mn10300_loop_contains_call_insn): New function.  Returns true if
6490         the given loop contains a CALL insn.
6491         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
6492         to use the SETLB and Lcc or FLcc insns.
6493         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6494         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6495         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
6496         disable the SETLB optimization.
6497         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6498         __SETLB__ or __NO_SETLB__.
6499         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6500         (movsf_internal): Handle MDR register.
6501         (cmpsi): Make visible.
6502         (setlb): New pattern.
6503         (Lcc): New pattern.
6504         (FLcc): New pattern.
6505
6506 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6507
6508         PR target/48860
6509         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6510         for reg<->xmm moves.
6511         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6512         (vec_concatv2di_rex64_sse): Ditto.
6513         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6514         (*vec_extractv2di_1_rex64): Ditto.
6515
6516         Revert:
6517         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6518
6519         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6520         reg<->xmm moves.
6521         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6522
6523 2011-05-04  Richard Guenther  <rguenther@suse.de>
6524
6525         * tree.h (int_const_binop): Remove notrunc argument.
6526         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
6527         create integer constants that are properly truncated.
6528         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6529         (const_binop): Remove zero notrunc argument to int_const_binop.
6530         (size_binop_loc): Likewise.
6531         (fold_div_compare): Likewise.
6532         (maybe_canonicalize_comparison_1): Likewise.
6533         (fold_comparison): Likewise.
6534         (fold_binary_loc): Likewise.
6535         (multiple_of_p): Likewise.
6536         * expr.c (store_constructor): Likewise.
6537         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6538         (maybe_fold_stmt_addition): Likewise.
6539         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6540         * stor-layout.c (layout_type): Likewise.
6541         * tree-data-ref.c (tree_fold_divides_p): Likewise.
6542         * tree-sra.c (build_ref_for_offset): Likewise.
6543         (build_user_friendly_ref_for_offset): Likewise.
6544         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6545         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6546         * tree-ssa-loop-niter.c (inverse): Likewise.
6547         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6548         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6549         * tree-switch-conversion.c (check_range): Likewise.
6550         (build_constructors): Likewise.
6551         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6552         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6553         (extract_range_from_assert): Likewise.
6554         (vrp_int_const_binop): Likewise.
6555         (extract_range_from_binary_expr): Likewise.
6556         (extract_range_from_unary_expr): Likewise.
6557         (check_array_ref): Likewise.
6558         (find_case_label_range): Likewise.
6559         (simplify_div_or_mod_using_ranges): Likewise.
6560         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6561         comparing case labels for merging.
6562
6563 2011-05-03  Mark Wielaard  <mjw@redhat.com>
6564
6565         * dwarf2out.c (debug_str_hash_forced): Removed.
6566         (gen_label_for_indirect_string): Removed.
6567         (get_debug_string_label): Removed.
6568         (AT_string_form): Generate label directly.
6569         (output_indirect_string): Test indirect_string_node for
6570         DW_FORM_strp instead of checking label and refcount.
6571         (prune_indirect_string): Removed.
6572         (prune_unused_types): Don't check debug_str_hash_forced or
6573         call prune_indirect_string.
6574
6575 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6576
6577         PR other/48093
6578         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6579
6580 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6581
6582         PR debug/47994
6583         PR debug/47919
6584         * combine.c (try_combine): Skip debug insns at m_split tests.
6585
6586 2011-04-26  Mark Wielaard  <mjw@redhat.com>
6587
6588         PR42288
6589         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6590         when info_section_emitted.
6591
6592 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
6593
6594         * config/mips/mips-opts.h: New.
6595         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6596         to mips-opts.h.
6597         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6598         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6599         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
6600         via opts pointer.
6601         * config/mips/mips.h (enum mips_code_readable_setting): Move to
6602         mips-opts.h.
6603         (mips_abi, mips_code_readable): Don't declare.
6604         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6605         (mabi=): Use Enum and Var.
6606         (mips_abi): New Enum and EnumValue entries.
6607         (mcode-readable=): Use Enum and Var.
6608         (mips_code_readable_setting): New Enum and EnumValue entries.
6609         (mr10k-cache-barrier=): Use Enum and Var.
6610         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6611
6612 2011-05-03  Jan Hubicka  <jh@suse.cz>
6613
6614         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6615         replace hash by pointer map.
6616         (cgraph_node_set_element_def, cgraph_node_set_element,
6617         const_cgraph_node_set_element, varpool_node_set_element_def,
6618         varpool_node_set_element, const_varpool_node_set_element): Remove.
6619         (free_cgraph_node_set, free_varpool_node_set): New function.
6620         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6621         * tree-emutls.c: Free varpool node set.
6622         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6623         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6624         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6625         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6626         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6627         Move here from ipa.c; implement using pointer_map
6628         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6629         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6630         debug_cgraph_node_set, varpool_node_set_new,
6631         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6632         dump_varpool_node_set, debug_varpool_node_set):
6633         Move to ipa-uitls.c.
6634         * passes.c (ipa_write_summaries): Update.
6635
6636 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6637
6638         From Mike Frysinger:
6639         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6640         bf542/bf544/bf547/bf548/bf549.
6641
6642 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
6643
6644         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6645
6646 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6647
6648         From Bernd Schmidt:
6649         * config/bfin/bfin.md (MOVCC): New mode_macro.
6650         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6651         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
6652         comments from generated assembly.
6653
6654 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6655
6656         From Bernd Schmidt
6657         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6658         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6659         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6660         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6661         * config/bfin/lib1funcs.asm (___muldi3): New function.
6662
6663 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6664
6665         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6666         build_function_type_list instead of build_function_type.
6667         Rearrange initialization of `args' to do so.
6668
6669 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6670
6671         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6672         instead of build_function_type.
6673
6674 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6675
6676         * config/rs6000/rs6000.c (spe_init_builtins): Call
6677         build_function_type_list instead of build_function_type.
6678         (paired_init_builtins, altivec_init_builtins): Likewise.
6679         (builtin_function_type): Likewise.
6680
6681 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6682
6683         * config/sh/sh.c (sh_media_init_builtins): Call
6684         build_function_type_list instead of build_function_type.
6685
6686 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6687
6688         * config/sparc/sparc.c (sparc_file_end): Call
6689         build_function_type_list instead of build_function_type.
6690
6691 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6692
6693         * config/alpha/alpha.c (alpha_init_builtins): Call
6694         build_function_type_list instead of build_function_type.
6695
6696 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6697
6698         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6699         build_function_type_list instead of build_function_type.
6700
6701 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6702
6703         * config/iq2000/i2000.c (iq2000_init_builtins): Call
6704         build_function_type_list instead of build_function_type.
6705         Delete `endlink' variable.
6706
6707 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6708
6709         * config/avr/avr.c (avr_init_builtins): Call
6710         build_function_type_list instead of build_function_type.
6711
6712 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6713
6714         * config/picochip/picochip.c (picochip_init_builtins): Call
6715         build_function_type_list instead of build_function_type.
6716         Delete `endlink' variable.
6717
6718 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6719
6720         * config/bfin/bfin.c (bfin_init_builtins): Call
6721         build_function_type_list instead of build_function_type.
6722
6723 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6724
6725         From Bernd Schmidt
6726         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6727         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
6728
6729 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6730
6731         From Jie Zhang:
6732         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6733         libbffastfp overrides libgcc when -mfast-fp.
6734
6735 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6736
6737         Originally from Bernd Schmidt
6738         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6739         * config/bfin/bfin.c (override_options): Test it and error if
6740         TARGET_FDPIC.
6741
6742 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6743
6744         Originally From Bernd Schmidt
6745         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6746         FD-PIC.
6747
6748 2011-05-03  Jeff Law  <law@redhat.com>
6749
6750         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6751         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6752         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6753         than accessing AUX field directly.  Free the AUX field before
6754         clearing it.
6755         (thread_block, thread_through_loop_header): Likewise.
6756         (thread_single_edge, mark_threaded_blocks): Likewise.
6757         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
6758         (register_jump_thread): Do not attempt to thread to a NULL edge.
6759
6760 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
6761
6762         * function.c (init_function_start): Call decide_function_section.
6763         * varasm.c (decide_function_section): New function.
6764         (assemble_start_function): When not using
6765         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6766         or first_function_block_is_cold.
6767         * rtl.h (decide_function_section): Declare.
6768
6769 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
6770             Jakub Jelinek  <jakub@redhat.com>
6771
6772         PR target/48774
6773         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6774         only succeed if req_mode is the same as set_mode.
6775
6776 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
6777
6778         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6779         * genemit.c (gen_exp): Handle RETURN.
6780         * emit-rtl.c (verify_rtx_sharing): Likewise.
6781         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6782         * rtl.c (copy_rtx): RETURN is shared.
6783         * rtl.h (enum global_rtl_index): Add GR_RETURN.
6784         (ret_rtx): New.
6785         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6786         * config/s390/s390.c (s390_emit_epilogue): Likewise.
6787         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6788         * config/cris/cris.c (cris_expand_return): Likewise.
6789         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6790         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6791         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6792         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6793         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6794         Likewise.
6795         * config/v850/v850.c (expand_epilogue): Likewise.
6796         * config/bfin/bfin.c (bfin_expand_call): Likewise.
6797         * config/arm/arm.md (epilogue): Likewise.
6798         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6799         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6800         variable to ret_reg.
6801
6802 2011-05-03  Richard Guenther  <rguenther@suse.de>
6803
6804         PR lto/48846
6805         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6806         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6807         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6808
6809 2011-05-03  Richard Guenther  <rguenther@suse.de>
6810
6811         * c-decl.c (grokdeclarator): Instead of looking at
6812         TREE_OVERFLOW check if the constant fits in the index type.
6813
6814 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6815
6816         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6817         (vec_store_lanes<mode><mode>): Likewise.
6818
6819 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6820
6821         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6822         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6823         convert_optab_index values.
6824         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6825         * genopinit.c (optabs): Initialize the new optabs.
6826         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6827         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6828         (expand_STORE_LANES): New functions.
6829         * tree.h (build_array_type_nelts): Declare.
6830         * tree.c (build_array_type_nelts): New function.
6831         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6832         (vect_model_load_cost): Likewise.
6833         (vect_store_lanes_supported, vect_load_lanes_supported)
6834         (vect_record_strided_load_vectors): Declare.
6835         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6836         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6837         (vect_transform_strided_load): Split out statement recording into...
6838         (vect_record_strided_load_vectors): ...this new function.
6839         * tree-vect-stmts.c (create_vector_array, read_vector_array)
6840         (write_vector_array, create_array_ref): New functions.
6841         (vect_model_store_cost): Add store_lanes_p argument.
6842         (vect_model_load_cost): Add load_lanes_p argument.
6843         (vectorizable_store): Try to use store-lanes functions for
6844         interleaved stores.
6845         (vectorizable_load): Likewise load-lanes and loads.
6846         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6847         to vect_model_store_cost.
6848         (vect_build_slp_tree): Likewise vect_model_load_cost.
6849
6850 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6851
6852         * hooks.h (hook_bool_mode_uhwi_false): Declare.
6853         * hooks.c (hook_bool_mode_uhwi_false): New function.
6854         * target.def (array_mode_supported_p): New hook.
6855         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6856         * doc/tm.texi: Regenerate.
6857         * stor-layout.c (mode_for_array): New function.
6858         (layout_type): Use it.
6859         * config/arm/arm.c (arm_array_mode_supported_p): New function.
6860         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6861
6862 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
6863
6864         PR target/48723
6865         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6866         for -fstack-check if the size to allocate is negative.
6867
6868 2011-05-02  Lawrence Crowl  <crowl@google.com>
6869
6870         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6871         (timevar_cond_start): New for starting a timer only when it is not
6872         already running.
6873         (timevar_cond_stop): New for stopping a timer when it was not already
6874         running.
6875
6876         * timevar.c (timevar_stop): Enable start/stop timers to start again.
6877         (timevar_cond_start): New as above.
6878         (timevar_cond_stop): New as above.
6879
6880         * timevar.def: Add start/stop timers for compiler phases,
6881         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6882         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6883         and TV_PHASE_FINALIZE.
6884         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6885         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6886         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6887         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6888         Make unused TV_OVERLOAD into a start/stop timer.
6889
6890         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6891         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6892         to indicate that they are start/stop timers.
6893
6894         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6895         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6896         Move initialization to do_compile.
6897         (do_compile): Add initialization from above.
6898         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6899
6900         * c-decl.c (c_write_global_declarations): Add start/stop of
6901         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6902
6903         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6904         or TV_PARSE_INLINE, as appropriate.
6905         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6906         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6907
6908 2011-05-02  Jason Merrill  <jason@redhat.com>
6909
6910         PR c++/40975
6911         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6912
6913 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
6914
6915         PR c/35445
6916         * c-decl.c (finish_decl): Only create a composite if the types are
6917         compatible.
6918
6919 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
6920
6921         * config/fr30/fr30-protos.h (Mmode): Don't define.
6922         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
6923         definition where used.
6924         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6925         define.  Expand definitions where used.
6926         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6927         Expand definitions where used.
6928         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6929         rx_function_arg, rx_function_arg_advance,
6930         rx_function_arg_boundary): Expand definitions of those macros.
6931         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
6932         definition where used.
6933
6934 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6935
6936         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6937         reg<->xmm moves.
6938         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6939         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
6940         with *movv2sf_internal_rex64_avx.
6941         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6942         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6943         Use %v prefix in insn mnemonic to handle TARGET_AVX.
6944         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
6945         "vex" in "prefix" attribute calculation.
6946         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
6947
6948 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
6949
6950         PR target/47951
6951         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6952         inputs match the output.
6953
6954 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
6955
6956         PR target/47955
6957         * config/m68k/m68k.c (m68k_expand_prologue): Set
6958         current_function_static_stack_size.
6959
6960 2011-05-02   Jan Hubicka  <jh@suse.cz>
6961
6962         * lto-streamer.c (lto_streamer_cache_insert_1,
6963         lto_streamer_cache_lookup, lto_streamer_cache_create,
6964         lto_streamer_cache_delete): Use pointer map instead of hashtable.
6965         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6966
6967 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
6968
6969         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6970         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6971         config/m68k/t-opts: New files.
6972         * config/m68k/m68k-tables.opt: New file (generated).
6973         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6974         extra_options and m68k/t-opts to tmake_file.
6975         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6976         (all_isas): Initialize using m68k-isas.def.
6977         (all_microarchs): Initialize using m68k-microarchs.def.
6978         (m68k_find_selection): Remove.
6979         (m68k_handle_option): Don't assert that global structures are in
6980         use.  Use error_at.  Access variables via opts pointer.  Don't
6981         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
6982         directly for -m68020-40 and -m68020-60.
6983         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6984         m68k_tune_entry here.
6985         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6986         to m68k-opts.h.
6987         (m68k_library_id_string): Remove declaration.
6988         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6989         (m68k_library_id_string): New Variable.
6990         (march=, mcpu=, mtune=): Use Enum and Var.
6991
6992 2011-05-02  Richard Guenther  <rguenther@suse.de>
6993
6994         * varasm.c (output_constructor_regular_field): Compute zero-based
6995         index with double-ints.  Make sure to ICE instead of producing
6996         wrong code.
6997         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6998         in asserts.  Properly use a signed type.
6999
7000 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7001
7002         * config/i386/sse.md (V): New mode iterator.
7003         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
7004         TARGET_SSE2.
7005         (V_256): Rename from AVX256MODE.
7006         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
7007         condition to all users.
7008         (VF1): Ditto.
7009         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
7010         condition to all users.
7011         (VF_128): Make V4SF mode unconditional.
7012         (VF_256): Rename from AVX256MODEF2P.
7013         (VI4F_128): Rename from SSEMODE4S.
7014         (VI8F_128): Rename from SSEMODE2D.
7015         (VI4F_256): Rename from AVX256MODE8P.
7016         (VI8F_256): Rename from AVX256MODE4P.
7017         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7018         (ssescalarmodesuffix): Remove SF and DF modes.
7019         (SSEMODE124): Remove.
7020         (SSEMODE1248): Ditto.
7021         (SSEMODEF2P): Ditto.
7022         (AVXMODEF2P): Ditto.
7023         (AVXMODEFDP): Ditto.
7024         (AVXMODEFSP): Ditto.
7025         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7026         unconditional.
7027         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
7028         unconditional.
7029         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7030         xop_pcmov_<mode>256.  Use V mode iterator.
7031
7032         Adjust RTX patterns globally for renamed mode attributes.
7033
7034 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7035
7036         * haifa-sched.c (sched_emit_insn): Emit insn before first
7037         non-scheduled insn.  Inform back-end about new insn.  Add
7038         new insn to scheduled_insns list.
7039
7040 2011-05-02  Richard Guenther  <rguenther@suse.de>
7041
7042         PR tree-optimization/48822
7043         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7044         (process_scc): Indicate which iteration we start.
7045
7046 2011-05-02  Jan Hubicka  <jh@suse.cz>
7047
7048         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7049         (lto_section_overrun): New.
7050         * lto-section-out.c (append_block): Rename to ...
7051         (lto_append_block): ... this one; export.
7052         (lto_output_1_stream): Move lto lto-streamer.h
7053         (lto_output_data_stream): Update.
7054         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7055         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7056         functions.
7057
7058 2011-05-02  Richard Guenther  <rguenther@suse.de>
7059
7060         * tree.c (tree_code_counts): New global array.
7061         (record_node_allocation_statistics): Count individual tree codes.
7062         (dump_tree_statistics): Dump individual code stats.
7063
7064 2011-05-01  Jan Hubicka  <jh@suse.cz>
7065
7066         * ipa-inline.c (caller_growth_limits): Fix thinko when
7067         looking for largest stack frame.
7068         * ipa-inline.h (dump_inline_summary): Declare.
7069         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7070         on stack usage.
7071         (dump_inline_summary): Export.
7072         (debug_inline_summary): Declare as DEBUG_FUNCTION.
7073
7074 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
7075
7076         * reginfo.c (memory_move_cost): Change rclass argument type form
7077         'enum reg_class' to reg_class_t.
7078         * reload.h (memory_move_cost): Update prototype.
7079         * postreload.c reload_cse_simplify_set): Change type dclass var to
7080         reg_class_t.
7081         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7082         Update prototype.
7083         (ira_allocate_and_set_costs): Change aclass argument type form
7084         'enum reg_class' to reg_class_t.
7085         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7086         Change aclass argument type to reg_class_t.
7087         (update_conflict_hard_reg_costs): Change type aclass and pref vars
7088         to reg_class_t.
7089         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7090         memory_move_cost call.
7091
7092         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7093         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7094         Change type tmp var to reg_class_t.
7095
7096 2011-04-30  Jan Hubicka  <jh@suse.cz>
7097
7098         * ipa-inline.c (can_inline_edge_p): Disregard limits when
7099         inlining into function with flatten attribute.
7100         (want_inline_small_function_p): Be more realistic about inlining
7101         cold calls where callee size grows.
7102
7103 2011-04-30  Jan Hubicka  <jh@suse.cz>
7104
7105         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7106         flags.
7107
7108 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
7109
7110         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7111         PRINT_OPERAND_PUNCT_VALID_P): Remove.
7112         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7113         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7114         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7115         (print_operand): Rename to...
7116         (sparc_print_operand): ...this. Make static. Adjust
7117         sparc_print_operand function call.
7118         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7119         functions.
7120
7121 2011-04-30  Jan Hubicka  <jh@suse.cz>
7122
7123         PR middle-end/48752
7124         * ipa-inline.c (early_inliner): Disable when doing late
7125         addition of function.
7126
7127 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
7128
7129         * dwarf2out.c (get_address_mode): New inline.
7130         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7131         if not dwarf_strict emit
7132         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7133         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7134         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
7135         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7136         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7137         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7138         mem_loc_descriptor callers.
7139         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7140         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7141         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7142         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7143         (base_types): New variable.
7144         (get_base_type_offset, calc_base_type_die_sizes,
7145         base_type_for_mode, mark_base_types, base_type_cmp,
7146         move_marked_base_types): New functions.
7147         (calc_die_sizes): Assert that die_offset is 0 or equal to
7148         next_die_offset.
7149         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7150         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
7151         callers.  If not dwarf_strict, call mem_loc_descriptor even for
7152         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7153         (gen_subprogram_die): Don't give up on call site parameters
7154         with non-integral or large integral modes.  Adjust
7155         mem_loc_descriptor callers.
7156         (prune_unused_types): Call prune_unused_types_mark on base_types
7157         vector entries.
7158         (resolve_addr): Call mark_base_types.
7159         (dwarf2out_finish): Call move_marked_base_types.
7160
7161         PR tree-optimization/48809
7162         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7163         type.
7164         (gen_inbound_check): Don't compute index_expr - range_min in utype
7165         again, instead reuse SSA_NAME initialized in build_arrays.
7166         Remove two useless gsi_for_stmt calls.
7167
7168 2011-04-29  Jeff Law  <law@redhat.com>
7169
7170         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7171
7172 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7173
7174         * cgraph.h (cgraph_postorder): Remove declaration.
7175         * ipa-utils.h (ipa_free_postorder_info): Declare.
7176         (ipa_reverse_postorder): Likewise.
7177         * cgraphunit.c: Include ipa-utils.h.
7178         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7179         * ipa-inline.c: Include ipa-utils.h.
7180         (ipa_inline): Update call to ipa_reverse_postorder.
7181         * ipa-pure-const.c (propagate_pure_const): Update call to
7182         ipa_reduced_postorder and ipa_print_order.  Call
7183         ipa_free_postorder_info to clean up.
7184         (propagate_nothrow): Likewise.
7185         * ipa-reference.c (propagate): Removed a useless call to
7186         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7187         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
7188         * ipa.c: Include ipa-utils.h.
7189         (ipa_profile): Update call to ipa_reverse_postorder.
7190         (cgraph_postorder): Moved to...
7191         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7192         (ipa_utils_print_order): Renamed to ipa_print_order.
7193         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7194         comments.
7195         (ipa_free_postorder_info): New function.
7196         * passes.c: Include ipa-utils.h.
7197         (do_per_function_toporder): Update call to ipa_reverse_postorder.
7198         (ipa_write_summaries): Likewise.
7199         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7200         (cgraphunit.o): Likewise.
7201         (ipa.o): Likewise.
7202         (ipa-inline.o): Likewise.
7203
7204 2011-04-29  Jan Hubicka  <jh@suse.cz>
7205
7206         * gcc.dg/tree-ssa/inline-10.c: New testcase.
7207         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7208         * ipa-inline.h (clause_t): Turn into unsigned int.
7209         * ipa-inline-analysis.c (add_clause): Do more simplification.
7210         (and_predicates): Shortcut more cases.
7211         (predicates_equal_p): Move forward; check that clauses are properly
7212         ordered.
7213         (or_predicates): Shortcut more cases.
7214         (edge_execution_predicate): Rewrite as...
7215         (set_cond_stmt_execution_predicate): ... this function; handle
7216         __builtin_constant_p.
7217         (set_switch_stmt_execution_predicate): New .
7218         (compute_bb_predicates): New.
7219         (will_be_nonconstant_predicate): Update TODO.
7220         (estimate_function_body_sizes): Use compute_bb_predicates
7221         and free them later, always try to estimate if stmt is constant.
7222         (estimate_time_after_inlining, estimate_size_after_inlining):
7223         Gracefully handle optimized out edges.
7224         (read_predicate): Fix off by one error.
7225
7226 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7227
7228         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7229
7230 2011-04-27  Xinliang David Li  <davidxl@google.com>
7231
7232         * tree-profile.c (init_ic_make_global_vars): Set
7233         tls attribute on ic vars.
7234         * coverage.c (coverage_end_function): Initialize
7235         function_list with zero.
7236
7237 2011-04-29  Richard Guenther  <rguenther@suse.de>
7238
7239         * builtins.c (fold_builtin_classify_type): Use integer_type_node
7240         for the type of the result.
7241         (fold_builtin_isascii): Likewise.
7242         (fold_builtin_toascii): Use integer_type_node where appropriate.
7243         (fold_builtin_logb): Likewise.
7244         (fold_builtin_frexp): Likewise.
7245         (fold_builtin_strstr): Likewise.
7246         (fold_builtin_strpbrk): Likewise.
7247         (fold_builtin_fputs): Likewise.
7248         (fold_builtin_sprintf): Likewise.
7249         (fold_builtin_snprintf): Likewise.
7250         (fold_builtin_printf): Likewise.
7251         (do_mpfr_remquo): Use a proper type for the assigned constant.
7252         (do_mpfr_lgamma_r): Likewise.
7253         * dwarf2out.c (resolve_one_addr): Use size_int.
7254         * except.c (init_eh): Likewise.
7255         (assign_filter_values): Use integer_type_node for filter values.
7256         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7257         indices.
7258         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7259         for EH region numbers.
7260         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7261         for the shift amount.
7262
7263 2011-04-29  Richard Guenther  <rguenther@suse.de>
7264
7265         * expr.h (expand_shift): Rename to ...
7266         (expand_variable_shift): ... this.
7267         (expand_shift): Take a constant shift amount.
7268         * expmed.c (expand_shift): Rename to ...
7269         (expand_variable_shift): ... this.
7270         (expand_shift): New wrapper around expand_variable_shift.
7271         * expr.c (convert_move, emit_group_load_1, emit_group_store,
7272         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7273         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7274         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7275         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7276         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7277         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7278         emit_store_flag_1, emit_store_flag): Likewise.
7279         * builtins.c (expand_builtin_signbit): Likewise.
7280         * calls.c (load_register_parameters): Likewise.
7281         * function.c (assign_parm_setup_block): Likewise.
7282         * lower-subreg.c (resolve_shift_zext): Likewise.
7283         * optabs.c (widen_bswap, expand_abs_nojump,
7284         expand_one_cmpl_abs_nojump, expand_float): Likewise.
7285         * spu/spu.c (spu_expand_extv): Likewise.
7286         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7287
7288 2011-04-29  Richard Guenther  <rguenther@suse.de>
7289
7290         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7291         for the remapped region number.
7292         * predict.c (build_predict_expr): Use integer_type_node for the
7293         predict kind.
7294         * fold-const.c (fold_binary_loc): Use integer_type_node for
7295         the shift amount.  Use a proper type for the PLUS_EXPR operand.
7296
7297 2011-04-29  Michael Matz  <matz@suse.de>
7298
7299         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7300         other trees that just builtins.
7301         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7302
7303 2011-04-29  Richard Guenther  <rguenther@suse.de>
7304
7305         * tree-nested.c (get_trampoline_type): Use size_int.
7306         (get_nl_goto_field): Likewise.
7307         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7308         for all indexes.
7309         (lower_eh_constructs_2): Likewise.
7310         (lower_resx): Likewise.
7311         (lower_eh_dispatch): Likewise.
7312         * tree-mudflap.c (mf_build_string): Use size_int.
7313         (mudflap_register_call): Use integer_type_node for the flag.
7314         (mudflap_enqueue_constant): Use size_int.
7315         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7316         instead of rebuilding it.
7317
7318 2011-04-29  Richard Guenther  <rguenther@suse.de>
7319
7320         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7321         Handle OBJ_TYPE_REF.
7322         (find_func_aliases_for_call): Use it more consistently.
7323
7324 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
7325
7326         * haifa-sched.c (last_nondebug_scheduled_insn): New.
7327         (rank_for_schedule): Use it.
7328         (schedule_block): Set it.
7329
7330 2011-04-28  David Li  <davidxl@google.com>
7331
7332         * tree.c (crc32_string): Use crc32_byte.
7333         (crc32_byte): New function.
7334         * tree.h (crc32_byte): New function.
7335         * gcov.c (read_graph_file): Handle new cfg_cksum.
7336         (read_count_file): Ditto.
7337         * profile.c (instrument_values): Ditto.
7338         (get_exec_counts): Ditto.
7339         (read_profile_edge_counts): Ditto.
7340         (compute_branch_probabilities): Ditto.
7341         (compute_value_histograms): Ditto.
7342         (branch_prob): Ditto.
7343         (end_branch_prob): Ditto.
7344         * coverage.c (read_counts_file): Ditto.
7345         (get_coverage_counts): Ditto.
7346         (tree_coverage_counter_addr): Ditto.
7347         (coverage_checksum_string): Ditto.
7348         (coverage_begin_output): Ditto.
7349         (coverage_end_function): Ditto.
7350         (build_fn_info_type): Ditto.
7351         (build_fn_info_value): Ditto.
7352         * libgcov.c (gcov_exit): Ditto.
7353         * gcov-dump.c (tag_function): Ditto.
7354         (compute_checksum): Remove.
7355
7356 2011-04-29  Alan Modra  <amodra@gmail.com>
7357
7358         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7359         unspec plus offset.  Tidy macho code.
7360
7361 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7362
7363         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7364         node instead of a decl.  Update all callers.
7365         * cgraph.h: Update declaration.
7366
7367 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
7368
7369         PR tree-optimization/48765
7370         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7371         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7372         to indicate if loop aware SLP is being used.  Scan the statements
7373         and update the vectorization factor according to the type of
7374         vectorization before statement analysis.
7375         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7376         pass it to vect_analyze_loop_operations.
7377         (vectorizable_reduction): Set number of copies to 1 in case of pure
7378         SLP statement.
7379         * tree-vect-stmts.c (vectorizable_conversion,
7380         vectorizable_assignment, vectorizable_shift,
7381         vectorizable_operation, vectorizable_type_demotion,
7382         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7383         Likewise.
7384         (vectorizable_condition): Move the check that it is not SLP
7385         vectorization before the number of copies check.
7386         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7387         to vectorize the loop using SLP.
7388
7389 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
7390
7391         PR middle-end/48597
7392         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7393         inline asm.
7394
7395 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
7396
7397         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7398         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7399         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7400         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7401         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7402         linux*.h headers.
7403         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7404         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7405         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7406         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7407         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7408         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7409         REG_NAME.
7410         * config/i386/linux.h (REG_NAME): Don't define.
7411         * config/i386/linux64.h (REG_NAME): Don't define.
7412         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7413         Undefine before defining.
7414
7415 2011-04-28  Jan Hubicka  <jh@suse.cz>
7416
7417         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7418         nonconstant_names array.
7419         (estimate_function_body_sizes): Build nonconstant_names array; handle
7420         BUILT_IN_CONSTANT_P.
7421
7422 2011-04-28  Richard Guenther  <rguenther@suse.de>
7423
7424         PR bootstrap/48804
7425         Revert
7426         2011-04-28  Richard Guenther  <rguenther@suse.de>
7427
7428         * tree-ssa-structalias.c (solve_constraints): Build succ graph
7429         as late as possible.
7430
7431 2011-04-28  Richard Guenther  <rguenther@suse.de>
7432
7433         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7434         (debug_constraint): Do it here.
7435         (dump_constraints): And here.
7436         (rewrite_constraints): And here.
7437         (dump_constraint_edge): Remove.
7438         (dump_constraint_graph): Rewrite to produce DOT output.
7439         (solve_constraints): Build succ graph as late as possible.
7440         Dump constraint graphs before and after solving.
7441
7442 2011-04-28  Richard Guenther  <rguenther@suse.de>
7443
7444         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7445         New function split out from ...
7446         (find_func_aliases): ... here.  Call it.
7447         (find_func_aliases_for_call): Likewise.
7448
7449 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7450
7451         * internal-fn.h (internal_fn_name_array): Declare.
7452         (internal_fn_flags_array): Likewise.
7453
7454 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7455
7456         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
7457         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7458         Move from sse.md.
7459         (ssemodefsuffix): Remove.
7460         (ssevecmodesuffix): New mode attribute.
7461         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7462         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7463         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7464         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7465         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7466         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7467         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7468         ssemodesuffix mode attribute.
7469         (float splitters): Use ssevecmodesuffix mode attribute.
7470         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7471         (sseinsmode): Rename from avxvecmode.
7472         (avxsizesuffix): Rename from avxmodesuffix.
7473         (sseintvecmode): Rename from avxpermvecmode.
7474         (ssedoublevecmode): Rename from ssedoublesizemode.
7475         (ssehalfvecmode): Rename from avxhalfvecmode.
7476         (ssescalarmode): Rename from avxscalarmode.
7477         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7478         templates for ssemodesuffix mode attribute.
7479         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7480         mode attribute.
7481
7482         Adjust RTX patterns globally for renamed mode attributes.
7483
7484 2011-04-27  Jan Hubcika  <jh@suse.cz>
7485
7486         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7487         * ipa-inline-analysis.c: Include alloc-pool.h.
7488         (edge_predicate_pool): New.
7489         (trye_predicate_p): New function
7490         (false_predicate_p): New function.
7491         (add_clause): Sanity check that false clauses are "optimized";
7492         never add clauses to predicate that is already known to be false.
7493         (and_predicate): Use flase_predicate_p.
7494         (evaulate_predicate): Rename to ...
7495         (evaluate_predicate): ... this one; update all callers; assert
7496         that false is not listed among possible truths.
7497         (dump_predicate): Use true_predicate_p.
7498         (account_size_time): Use false_predicate_p.
7499         (evaulate_conditions_for_edge): Rename to ...
7500         (evaluate_conditions_for_edge) ... this one.
7501         (edge_set_predicate): New function.
7502         (inline_edge_duplication_hook): Duplicate edge predicates.
7503         (inline_edge_removal_hook): Free edge predicates.
7504         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7505         (dump_inline_summary): Update.
7506         (estimate_function_body_sizes): Set edge predicates.
7507         (estimate_calls_size_and_time): Handle predicates.
7508         (estimate_callee_size_and_time): Update.
7509         (remap_predicate): Add toplev_predicate; update comment.
7510         (remap_edge_predicates): New function.
7511         (inline_merge_summary): Compute toplev predicate; update.
7512         (read_predicate): New function.
7513         (read_inline_edge_summary): Use it.
7514         (inline_read_section): Likewise.
7515         (write_predicate): New function.
7516         (write_inline_edge_summary): Use it.
7517         (inline_write_summary): Likewise.
7518         (inline_free_summary): Free alloc pool and edge summary vec.
7519
7520 2011-04-27  Richard Guenther  <rguenther@suse.de>
7521
7522         * tree-ssa-structalias.c (changed_count): Remove.
7523         (changed): Use a bitmap.
7524         (unify_nodes): Adjust.
7525         (do_sd_constraint): Likewise.
7526         (do_ds_constraint): Likewise.
7527         (do_complex_constraint): Likewise.
7528         (solve_graph): Likewise.
7529
7530 2011-04-27  Jan Hubicka  <jh@suse.cz>
7531
7532         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7533
7534 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7535
7536         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7537         (avx_vperm2f128_*_operand): Ditto.
7538         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7539         Use avx_vpermilp_parallel in insn condition.
7540         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7541         Use avx_vperm2f128_parallel in insn condition.
7542
7543 2011-04-27  Richard Guenther  <rguenther@suse.de>
7544
7545         * Makefile.in (tree-ssa-structalias.o): Remove
7546         gt-tree-ssa-structalias.h dependency.
7547         (GTFILES): Remove tree-ssa-structalias.c.
7548         * tree.c (allocate_decl_uid): New function.
7549         (make_node_stat): Use it.
7550         (copy_node_stat): Likewise.
7551         * tree.h (allocate_decl_uid): Declare.
7552         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7553         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7554         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7555         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7556         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7557         (struct heapvar_map): Likewise.
7558         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7559         heapvar_insert): Likewise.
7560         (make_heapvar_for): Rename to ...
7561         (make_heapvar): ... this.  Simplify.
7562         (fake_var_decl_obstack): New global var.
7563         (build_fake_var_decl): New function.
7564         (make_constraint_from_heapvar): Adjust.
7565         (handle_lhs_call): Likewise.
7566         (create_function_info_for): Likewise.
7567         (intra_create_variable_infos): Likewise.
7568         (init_alias_vars): Allocate fake_var_decl_obstack.
7569         (init_alias_heapvars, delete_alias_heapvars): Remove.
7570         (compute_points_to_sets): Do not call init_alias_heapvars.
7571         (ipa_pta_execute): Likewise.
7572         (delete_points_to_sets): Free fake_var_decl_obstack.
7573
7574 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7575
7576         * config/spu/divmovti4.c (union qword_UTItype): New data type.
7577         (si_from_UTItype, si_to_UTItype): New functions.
7578         (__udivmodti4): Use them to implement type-punning.
7579         * config/spu/multi3.c (union qword_TItype): New data type.
7580         (si_from_TItype, si_to_TItype): New functions.
7581         (__multi3): Use them to implement type-punning.
7582
7583 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7584
7585         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7586
7587 2011-04-27  Jan Hubicka  <jh@suse.cz>
7588
7589         * ipa-prop.c (function_insertion_hook_holder): New holder.
7590         (ipa_add_new_function): New function.
7591         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7592         Register/deregister holder.
7593
7594 2011-04-27  Richard Guenther  <rguenther@suse.de>
7595
7596         PR tree-optimization/48772
7597         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7598
7599 2011-04-27  Richard Guenther  <rguenther@suse.de>
7600
7601         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7602         TARGET_MEM_REF handling.
7603
7604 2011-04-27  Nick Clifton  <nickc@redhat.com>
7605
7606         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7607         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7608         (REG_CLASS_NAMES): Likewise.
7609         (REG_CLASS_CONTENTS): Likewise.
7610         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7611         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7612         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
7613         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
7614         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
7615         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7616         duplicate register classes.
7617         (frv_class_likely_spilled_p): Likewise.
7618         (frv_register_move_cost): Likewise.
7619
7620         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7621         end of the regno_reg_class array.
7622
7623 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
7624
7625         PR c/48742
7626         * c-typeck.c (build_binary_op): Don't wrap arguments if
7627         int_operands is true.
7628
7629 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
7630
7631         PR target/48767
7632         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7633         targetm.calls.must_pass_in_stack for void type.
7634
7635 2011-04-26  Jan Hubicka  <jh@suse.cz>
7636
7637         * cgraphbuild.c (build_cgraph_edges): Update call
7638         of cgraph_create_edge and cgraph_create_indirect_edge.
7639         * cgraph.c (cgraph_create_edge_including_clones,
7640         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7641         cgraph_update_edges_for_call_stmt_node): Do not take nest
7642         argument; do not initialize call_stmt_size/time.
7643         (dump_cgraph_node): Do not dump nest.
7644         (cgraph_clone_edge): Do not take loop_nest argument;
7645         do not propagate it; do not clone call_stmt_size/time.
7646         (cgraph_clone_node): Likewise.
7647         (cgraph_create_virtual_clone): Update.
7648         * cgraph.h (struct cgraph_edge): Remove
7649         call_stmt_size/call_stmt_time/loop_nest.
7650         (cgraph_create_edge, cgraph_create_indirect_edge,
7651         cgraph_create_edge_including_clones, cgraph_clone_node): Update
7652         prototype.
7653         * tree-emutls.c (gen_emutls_addr): Update.
7654         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7655         loop_nest; handle indirect calls, too.
7656         (clone_inlined_nodes): Do not care about updating inline summaries.
7657         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7658         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7659         stream call_stmt_size/call_stmt_time/loop_nest.
7660         * ipa-inline.c (edge_badness): Update.
7661         (ipa_inline): dump summaries after inlining.
7662         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7663         New.
7664         (inline_edge_summary): New function.
7665         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7666         (inline_edge_removal_hook): Handle edge summaries.
7667         (inline_edge_duplication_hook): New hook.
7668         (inline_summary_alloc): Alloc hooks.
7669         (initialize_growth_caches): Do not register removal hooks.
7670         (free_growth_caches); Do not free removal hook.
7671         (dump_inline_edge_summary): New function.
7672         (dump_inline_summary): Use it.
7673         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7674         (inline_update_callee_summaries): New function.
7675         (inline_merge_summary): Use it.
7676         (do_estimate_edge_time, do_estimate_edge_growth): Update.
7677         (read_inline_edge_summary): New function.
7678         (inline_read_section): Use it.
7679         (write_inline_edge_summary): New function.
7680         (inline_write_summary): Use it.
7681         (inline_free_summary): Free edge new holders.
7682         * tree-inline.c (copy_bb): Update.
7683
7684 2011-04-26  Jason Merrill  <jason@redhat.com>
7685
7686         * tree-eh.c (lower_try_finally_switch): Create the label along with
7687         the CASE_LABEL_EXPR.
7688
7689 2011-04-26  David S. Miller  <davem@davemloft.net>
7690             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7691
7692         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7693         * configure: Regenerate.
7694
7695 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7696
7697         PR target/48258
7698         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7699         reduction.
7700         (VEC_reduc): New code iterator and splitters for vector reduction.
7701         (VEC_reduc_name): Ditto.
7702         (VEC_reduc_rtx): Ditto.
7703         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7704         (reduc_<VEC_reduc_name>_v4sf): Ditto.
7705
7706         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7707         support for extracting SF on VSX.
7708
7709         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7710         generating xscvspdp.
7711         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7712         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7713         double add, minimum, maximum vector reduction.
7714         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7715         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7716         optimize double vector reduction.
7717         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7718
7719 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
7720
7721         * config/fr30/fr30.h (inhibit_libc): Don't define.
7722         * config/m32r/m32r-protos.h: Correct comment.
7723         * config/v850/v850.h (GHS_default_section_names,
7724         GHS_current_section_names): Use tree, not union tree_node *.
7725
7726 2011-04-26  Xinliang David Li  <davidxl@google.com>
7727
7728         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7729         * c-family/c-opts.c (c_common_handle_option): Set
7730         warn_maybe_uninitialized.
7731         * opts.c (common_handle_option): Ditto.
7732         * common.opt:  New option.
7733         * tree-ssa.c (warn_uninit): Add one more parameter.
7734         (warn_uninitialized_var): Pass warning code.
7735         * tree-flow.h: Interface change.
7736
7737 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7738
7739         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7740         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7741         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7742
7743 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7744
7745         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7746         * config/mips/mips.opt (mmips-tfile): Remove.
7747
7748         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7749         mips-tdump reference to ...
7750         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
7751         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7752         reference by Tru64 UNIX.
7753
7754 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
7755
7756         PR debug/48768
7757         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7758         is error_mark_node, set value to NULL.
7759
7760         PR tree-optimization/48734
7761         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7762         if return value from maybe_fold_*_comparsions isn't something
7763         the code is prepared to handle.
7764
7765 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
7766
7767         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7768         mode check.
7769         (ext_QIreg_nomode_operands): Remove.
7770         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7771         (*andsi_1): Ditto.
7772         (*andhi_1): Ditto.
7773
7774 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
7775
7776         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7777
7778 2011-04-26  Richard Guenther  <rguenther@suse.de>
7779
7780         * c-typeck.c (build_unary_op): Do not expand array-refs via
7781         pointer arithmetic.  Only adjust qualifiers for function types.
7782
7783 2011-04-26  Richard Guenther  <rguenther@suse.de>
7784
7785         PR middle-end/48694
7786         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7787         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7788         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
7789         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7790
7791 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
7792
7793         * doc/extend.texi: Document __underlying_type.
7794
7795 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
7796
7797         * config/rs6000/titan.md (automata_option "progress"): Remove.
7798
7799 2011-04-25  Jeff Law  <law@redhat.com>
7800
7801         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7802
7803 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7804
7805         * system.h (ENUM_BITFIELD): Remove.
7806
7807 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
7808             Eric Botcazou  <ebotcazou@adacore.com>
7809
7810         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7811         for STORE_FLAG_VALUE==-1 case.
7812
7813 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
7814
7815         PR target/43804
7816         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7817         LEGITIMATE_PIC_OPERAND_P.
7818
7819 2011-04-24  Jan Hubicka  <jh@suse.cz>
7820
7821         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7822         WPA hack.
7823         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7824         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7825         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7826         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7827         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7828         Sanity check predicate length.
7829         (remap_predicate): Likewise; sanity check jump functions.
7830         (inline_read_section, inline_write_summary): Sanity check
7831         predicate length.
7832
7833 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7834
7835         PR other/48748
7836         * doc/extend.texi (Type Traits): Document __is_standard_layout,
7837         __is_literal_type, and __is_trivial; update throughout about
7838         possibly cv-qualified void types.
7839
7840 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
7841
7842         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7843         testsuite and make it version agnostic.
7844
7845 2011-04-22  Jan Hubicka  <jh@suse.cz>
7846
7847         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7848
7849 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
7850
7851         PR c/48685
7852         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7853         to VOID_TYPE even around MODIFY_EXPR.
7854
7855 2011-04-22  Mike Stump  <mikestump@comcast.net>
7856
7857         * gensupport.c (read_md_rtx): Fix typo in comment.
7858         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7859         comment.
7860
7861 2011-04-22  Jan Hubicka  <jh@suse.cz>
7862
7863         * gengtype.c (open_base_files): Add ipa-inline.h include.
7864         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7865         ipa-prop.c; update all uses.
7866         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7867         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7868         merge summary of inlined function into former caller.
7869         * ipa-inline.c (max_benefit): Remove.
7870         (edge_badness): Compensate for removal of benefits.
7871         (update_caller_keys): Use
7872         reset_node_growth_cache/reset_edge_growth_cache.
7873         (update_callee_keys): Likewise.
7874         (update_all_callee_keys): Likewise.
7875         (inline_small_functions): Do not collect max_benefit; do not reset
7876         estimated_growth; call free_growth_caches and initialize_growth_caches.
7877         * ipa-inline.h (struct condition, type clause_t, struct predicate,
7878         struct size_time_entry): New structures.
7879         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7880         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7881         and estimated_growth.
7882         (edge_growth_cache_entry): New structure.
7883         (node_growth_cache, edge_growth_cache): New global vars.
7884         (estimate_growth): Turn into inline.
7885         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7886         initialize_growth_caches, free_growth_caches): Declare.
7887         (estimate_edge_growth): Rewrite.
7888         (estimate_edge_time): Implement as inline cache lookup.
7889         (reset_node_growth_cache, reset_edge_growth_cache): New inline
7890         functions.
7891         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7892         (NUM_CONDITIONS): New constant.
7893         (predicate_conditions): New enum.
7894         (IS_NOT_CONSTANT): New constant.
7895         (edge_removal_hook_holder): New var.
7896         (node_growth_cache, edge_growth_cache): New global vars.
7897         (true_predicate, single_cond_predicate, false_predicate,
7898         not_inlined_predicate, add_condition, add_clause, and_predicates,
7899         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7900         dump_clause, dump_predicate, account_size_time,
7901         evaulate_conditions_for_edge): New functions.
7902         (inline_summary_alloc): Move to heap.
7903         (inline_node_removal_hook): Clear condition and entry vectors.
7904         (inline_edge_removal_hook): New function.
7905         (initialize_growth_caches, free_growth_caches): New function.
7906         (dump_inline_summary): Update.
7907         (edge_execution_predicate): New function.
7908         (will_be_nonconstant_predicate): New function.
7909         (estimate_function_body_sizes): Compute BB and constantness predicates.
7910         (compute_inline_parameters): Do not clear estimated_growth.
7911         (estimate_edge_size_and_time): New function.
7912         (estimate_calls_size_and_time): New function.
7913         (estimate_callee_size_and_time): New function.
7914         (remap_predicate): New function.
7915         (inline_merge_summary): New function.
7916         (do_estimate_edge_time): New function based on...
7917         (estimate_edge_time): ... this one.
7918         (do_estimate_edge_growth): New function.
7919         (do_estimate_growth): New function based on....
7920         (estimate_growth): ... this one.
7921         (inline_analyze_function): Analyze after deciding on jump functions.
7922         (inline_read_section): New function.
7923         (inline_read_summary): Use it.
7924         (inline_write_summary): Write all the new data.
7925         * ipa-prop.c (ipa_get_param_decl_index): Export.
7926         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7927         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7928         Declare.
7929         (ipa_get_lattice): Move here from ipa-cp.c
7930         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7931         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7932         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7933         cgraph_edge_inlinable_p): Remove.
7934         * cgraphunit.c: Include ipainline.h
7935         (cgraph_process_new_functions): Update call of
7936         compute_inline_parameters.
7937
7938 2011-04-22  Richard Guenther  <rguenther@suse.de>
7939
7940         * tree.c (build_int_cst): Properly create canonicalized integer
7941         constants.
7942         (build_int_cst_type): Remove scary comments.
7943
7944 2011-04-22  Xinliang David Li  <davidxl@google.com>
7945
7946         * toplev.c (process_options): Enable -Werror=coverage-mismatch
7947         by default when -Wno-error is not specified.
7948         * opts-global.c (decode_options): Remove call to
7949         control_warning_options.
7950
7951 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
7952
7953         PR tree-optimization/48717
7954         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7955         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7956
7957 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
7958
7959         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
7960         definition where used.
7961
7962 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
7963
7964         PR c/48716
7965         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7966         TREE_STATIC variables declared inside of some OpenMP construct.
7967
7968 2011-04-22  Martin Jambor  <mjambor@suse.cz>
7969
7970         PR middle-end/48585
7971         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7972
7973 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
7974
7975         PR c/36750
7976         * c-typeck.c (pop_init_level): Do not warn about initializing
7977         with ` = {0}'.
7978
7979 2011-04-22  Alan Modra  <amodra@gmail.com>
7980
7981         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7982         when returning call_cookie.
7983         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7984         pointers, to functions with no more vector args than the current
7985         function, and some non-local calls for ABI_V4.
7986         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7987         sibcall_nonlocal_aix64): Combine to ..
7988         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
7989         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7990         (sibcall_value_nonlocal_aix<mode>): ..likewise.
7991         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7992         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
7993         operand.
7994         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7995         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7996         sibcall_value_symbolic_64): Delete.
7997
7998 2011-04-21  Xinliang David Li  <davidxl@google.com>
7999
8000         * cgraph.h: Remove pid.
8001         * cgraph.c: Remove pid.
8002         * value-prof.c (init_node_map): New function.
8003         (del_node_map): New function.
8004         (find_func_by_funcdef_no): New function.
8005         (gimple_ic_transform): Call new function.
8006         * cgraphunit.c (cgraph_finalize_function): Remove pid.
8007         * function.c (get_last_funcdef_no): New function.
8008         * function.h (get_last_funcdef_no): New function.
8009         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8010         to libgcov function.
8011         (tree-profiling): Call node map init and delete function.
8012
8013 2011-04-21  Ian Lance Taylor  <iant@google.com>
8014
8015         * godump.c (go_format_type): Use exported Go name for anonymous
8016         field name.
8017
8018 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8019
8020         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8021         Call builtin_function_type_list instead of builtin_function_type.
8022         (UNARY, BINARY, TRINARY, QUAD): Likewise.
8023
8024 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8025
8026         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8027         build_function_type_list instead of build_function_type.
8028         Delete variable `endlink'.
8029
8030 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8031
8032         * config/s390/s390.c (s390_init_builtins): Call
8033         build_function_type_list instead of build_function_type.
8034
8035 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8036
8037         * config/ia64/ia64.c (ia64_init_builtins): Call
8038         build_function_type_list instead of builtin_function_type.
8039
8040 2011-04-21  Easwaran Raman  <eraman@google.com>
8041
8042         * cfgexpand.c (stack_var): Remove OFFSET...
8043         (add_stack_var): ...and its reference here...
8044         (expand_stack_vars): ...and here.
8045         (stack_var_cmp): Sort by descending order of size.
8046         (partition_stack_vars): Change heuristic.
8047         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8048         (dump_stack_var_partition): Add newline after each partition.
8049
8050 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
8051             Jeff Law  <law@redhat.com>
8052
8053         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8054         * gengtype.c (matching_file_name_substitute): Likewise.
8055
8056 2011-04-21  Richard Guenther  <rguenther@suse.de>
8057
8058         PR lto/48703
8059         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8060
8061 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
8062
8063         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8064
8065 2011-04-21  Richard Guenther  <rguenther@suse.de>
8066
8067         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8068         file name.
8069
8070 2011-04-21  Richard Guenther  <rguenther@suse.de>
8071
8072         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8073         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8074         Use DECL_P, not SSA_VAR_P.
8075         (ptr_derefs_may_alias_p): Likewise.
8076         (ptr_deref_may_alias_ref_p_1): Likewise.
8077         (decl_refs_may_alias_p): Likewise.
8078         (refs_may_alias_p_1): Likewise.
8079         (ref_maybe_used_by_call_p_1): Likewise.
8080         (call_may_clobber_ref_p_1): Likewise.
8081         (indirect_ref_may_alias_decl_p): Assume indirect refrences
8082         are either MEM_REF or TARGET_MEM_REF.
8083         (indirect_refs_may_alias_p): Likewise.
8084         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8085         for MEM_EXPR of indirect calls.
8086
8087 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8088
8089         * vmsdbgout.c (write_srccorr): Compute file length from the string.
8090         (dst_file_info_struct): Remove flen field.
8091         (lookup_filename): Remove code that set flen field.
8092
8093 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8094
8095         * config/ia64/ia64.c (ia64_start_function): Add a guard.
8096
8097 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
8098
8099         PR target/48708
8100         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8101         vec_extract and vec_concat for non-SSE4_1 targets.
8102
8103 2011-04-21  Richard Guenther  <rguenther@suse.de>
8104
8105         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8106         return statements.
8107
8108 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8109
8110         * config/i386/cygming.h (union tree_node, TREE): Don't define or
8111         undefine.
8112         (FILE): Don't undefine.
8113
8114 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8115
8116         * config/alpha/alpha.c (struct machine_function): Use rtx, not
8117         struct rtx_def *.
8118         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8119         struct rtx_def *.
8120         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8121         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8122         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8123         rtx_def *.
8124         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
8125         definitions where used.
8126         * config/microblaze/microblaze.h (struct microblaze_args): Use
8127         rtx, not struct rtx_def *.
8128         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8129         rtx_def *.
8130         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8131         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8132         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8133         not struct rtx_def *.
8134         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8135         struct rtx_def *.
8136         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8137         rtx_def *.
8138         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8139
8140 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8141
8142         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8143         operand_equal_p to compare DR_BASE_ADDRESSes.
8144         (vect_check_interleaving): Likewise.
8145
8146 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8147
8148         PR target/46329
8149         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8150         for all Neon struct constants.
8151
8152 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8153
8154         * target.def (legitimate_constant_p): New hook.
8155         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8156         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8157         * doc/tm.texi: Regenerate.
8158         * hooks.h (hook_bool_mode_rtx_true): Declare.
8159         * hooks.c (hook_bool_mode_rtx_true): Define.
8160         * system.h (LEGITIMATE_CONSTANT_P): Poison.
8161         * calls.c (precompute_register_parameters): Replace uses of
8162         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8163         (emit_library_call_value_1): Likewise.
8164         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8165         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8166         * ira-costs.c (scan_one_insn): Likewise.
8167         * recog.c (general_operand, immediate_operand): Likewise.
8168         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8169         * reload1.c (init_eliminable_invariants): Likewise.
8170
8171         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8172         mode argument.
8173         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8174         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8175         argument.
8176         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8177         * config/alpha/predicates.md (input_operand): Update call to
8178         alpha_legitimate_constant_p.
8179
8180         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8181         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8182         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8183         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8184         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8185         (arm_legitimate_constant_p): New functions.
8186         (arm_cannot_force_const_mem): Make static.
8187
8188         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8189
8190         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8191         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8192         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8193         instead of bfin_legitimate_constant_p.
8194         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
8195         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8196
8197         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8198
8199         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8200
8201         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8202         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8203         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8204         (frv_legitimate_constant_p): Make static.  Add a mode argument.
8205
8206         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8207         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8208         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8209
8210         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8211         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8212         * config/i386/i386.c (legitimate_constant_p): Rename to...
8213         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
8214         argument.
8215         (ix86_cannot_force_const_mem): Update accordingly.
8216         (ix86_legitimate_address_p): Likewise.
8217         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8218         * config/i386/i386.md: Update commentary.
8219
8220         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8221         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8222         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8223         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
8224
8225         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8226
8227         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8228         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8229         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8230         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
8231
8232         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8233         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8234         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8235
8236         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8237         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8238         (m32r_legitimate_constant_p): New function.
8239
8240         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8241         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8242         LEGITIMATE_CONSTANT_P.
8243         (LEGITIMATE_CONSTANT_P): Delete.
8244         * config/m68k/m68k.c (m68k_expand_prologue): Call
8245         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8246         (m68k_legitimate_constant_p): New function.
8247         * config/m68k/m68k.md: Update comments.
8248
8249         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8250         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8251         (mcore_legitimate_constant_p): New function.
8252
8253         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8254         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8255         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8256         Add a mode argument.
8257         (mep_legitimate_address): Update accordingly.
8258         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8259
8260         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8261         Delete.
8262         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8263         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8264         static.  Check OP's mode for VOIDmode.
8265         (microblaze_legitimate_constant_p): New function.
8266         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8267
8268         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8269         * config/mips/mips.c (mips_legitimate_constant_p): New function.
8270         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8271         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8272         * config/mips/predicates.md: Update comments.
8273
8274         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8275         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8276         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8277         (mmix_legitimate_constant_p): Make static, return a bool, and take
8278         a mode argument.
8279         (mmix_print_operand_address): Update accordingly.
8280
8281         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8282         Delete.
8283         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8284         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8285         static.  Add a mode argument.
8286         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8287
8288         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8289
8290         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8291         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8292         (pa_legitimate_constant_p): New function.
8293
8294         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8295
8296         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8297         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8298         (pdp11_legitimate_constant_p): New function.
8299
8300         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8301         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8302         (rs6000_legitimate_constant_p): New function.
8303
8304         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8305         (rx_legitimate_constant_p): ...this.
8306         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8307         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8308         (rx_legitimate_constant_p): ...this.
8309         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8310         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8311
8312         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8313         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8314         * config/s390/s390.c (legitimate_constant_p): Rename to...
8315         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
8316         and add a mode argument.
8317         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8318
8319         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8320
8321         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8322         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8323         (sh_legitimate_constant_p): New function.
8324
8325         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8326         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8327         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8328         (legitimate_constant_p): Rename to...
8329         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
8330         argument.
8331         (constant_address_p): Update accordingly.
8332
8333         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8334         argument and return a bool.
8335         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8336         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8337         (spu_legitimate_constant_p): Add a mode argument and return a bool.
8338         (spu_rtx_costs): Update accordingly.
8339         * config/spu/predicates.md (vec_imm_operand): Likewise.
8340
8341         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8342
8343         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8344         * config/v850/v850.c (v850_legitimate_constant_p): New function.
8345         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8346
8347         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8348         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8349         * config/vax/vax.c (legitimate_constant_p): Likewise.
8350
8351         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8352         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8353         (xtensa_legitimate_constant_p): New function.
8354
8355 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8356
8357         * target.def (cannot_force_const_mem): Add a mode argument.
8358         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8359         * doc/tm.texi: Regenerate.
8360         * hooks.h (hook_bool_mode_rtx_false): Declare.
8361         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8362         (hook_bool_mode_const_rtx_true): Likewise.
8363         (hook_bool_mode_rtx_false): New function.
8364         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8365         to be non-VOID.  Update call to cannot_force_const_mem.
8366         (find_reloads): Update accordingly.
8367         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8368         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8369         argument.
8370         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8371         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8372         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8373         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8374         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8375         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8376         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8377         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8378         (m68k_cannot_force_const_mem): ...this new function.
8379         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8380         argument.
8381         (mips_const_insns, mips_legitimize_const_move): Update calls.
8382         (mips_secondary_reload_class): Likewise.
8383         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8384         (pa_cannot_force_const_mem): ...this new function.
8385         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8386         (rs6000_cannot_force_const_mem): ...this new function.
8387         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8388         argument.
8389         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8390         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8391         to...
8392         (xtensa_cannot_force_const_mem): ...this new function.
8393
8394 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8395
8396         * config/mips/mips.c (mips16_build_function_stub): Call
8397         build_function_type_list instead of build_function_type.
8398         (mips16_build_call_stub): Likewise.
8399
8400 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8401
8402         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8403         instead of build_function_type.
8404
8405 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8406
8407         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8408         instead of build_function_type.
8409
8410 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
8411
8412         PR target/48678
8413         * config/i386/i386.md (insv): Change operand 0 constraint to
8414         "register_operand".  Change operand 1 and 2 constraint to
8415         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
8416         * config/i386/sse.md (sse4_1_pinsrb): Export.
8417         (sse2_pinsrw): Ditto.
8418         (sse4_1_pinsrd): Ditto.
8419         (sse4_1_pinsrq): Ditto.
8420         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8421         * config/i386/i386.c (ix86_expand_pinsr): New.
8422
8423 2011-04-20  Easwaran Raman  <eraman@google.com>
8424
8425         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8426         containing union type only with -fstrict-aliasing.
8427
8428 2011-04-20  Jim Meyering  <meyering@redhat.com>
8429
8430         Remove useless if-before-free tests.
8431         * calls.c (expand_call, save_area): Likewise.
8432         * cfgcleanup.c (try_forward_edges): Likewise.
8433         * collect2.c (collect_execute): Likewise.
8434         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8435         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8436         * coverage.c (coverage_checksum_string): Likewise.
8437         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8438         * cselib.c (cselib_init): Likewise.
8439         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8440         (df_set_clean_cfg): Likewise.
8441         * function.c (free_after_compilation): Likewise.
8442         * gcc.c (do_spec_1, main): Likewise.
8443         * gcov.c (create_file_names): Likewise.
8444         * gensupport.c (identify_predicable_attribute): Likewise.
8445         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8446         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8447         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8448         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8449         * ipa-pure-const.c (local_pure_const): Likewise.
8450         * ipa-reference.c (propagate): Likewise.
8451         * ira-costs.c (free_ira_costs): Likewise.
8452         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8453         * matrix-reorg.c (mat_free): Likewise.
8454         * prefix.c (get_key_value): Likewise.
8455         * profile.c (compute_value_histograms): Likewise.
8456         * reload1.c (free_reg_equiv): Likewise.
8457         * sched-deps.c (free_deps): Likewise.
8458         * sel-sched-ir.c (fence_clear): Likewise.
8459         * sese.c (set_rename, if_region_set_false_region): Likewise.
8460         * tree-data-ref.c (free_rdg): Likewise.
8461         * tree-eh.c (lower_try_finally): Likewise.
8462         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8463         * tree-ssa-live.c (delete_var_map): Likewise.
8464         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8465         * tree-ssa-pre.c (phi_trans_add): Likewise.
8466
8467 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
8468
8469         PR tree-optimization/48611
8470         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8471         beyond ERT_MUST_NOT_THROW region.
8472
8473 2011-04-20  Catherine Moore  <clm@codesourcery.com>
8474
8475         * config/mips/mips.opt (mfix-24k): New.
8476         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8477         * config/mips/mips.md (length): Increase by 4 for stores if
8478         fixing 24K errata.
8479         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8480         all noreorder if fixing 24K errata.
8481         * doc/invoke.texi: Document mfix-24k.
8482
8483 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
8484
8485         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8486         quad-word modes, reduce to 9-bit index range when above 1016 limit.
8487
8488 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8489
8490         * config/arm/arm.c (arm_gen_constant): Move movw support ....
8491         (const_ok_for_op): ... to here.
8492
8493 2011-04-20  Kai Tietz  <ktietz@redhat.com>
8494
8495         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8496         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8497
8498 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8499
8500         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8501
8502 2011-04-20  Richard Guenther  <rguenther@suse.de>
8503
8504         PR tree-optimization/47892
8505         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8506         are if-convertible.
8507
8508 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8509
8510         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8511
8512 2011-04-20  Tristan Gingold  <gingold@adacore.com>
8513
8514         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8515
8516 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
8517
8518         PR target/18145
8519
8520         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8521         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8522         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8523         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8524         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8525
8526         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8527         New prototype.
8528
8529         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8530         (avr_asm_named_section, avr_asm_output_aligned_common,
8531         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8532         New functions to update...
8533         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8534         (avr_asm_init_sections): Overwrite section callbacks for
8535         data_section, bss_section.
8536         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8537         from here to...
8538         (avr_file_end): ...here.
8539
8540 2011-04-20  Richard Guenther  <rguenther@suse.de>
8541
8542         PR middle-end/48695
8543         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8544         objects and types here.  Adjust for their offset before comparing.
8545
8546 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8547
8548         * tree-vect-stmts.c (vectorizable_store): Only chain one related
8549         statement per copy.
8550
8551 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8552
8553         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8554         (GIMPLE_H): Include $(INTERNAL_FN_H).
8555         (OBJS-common): Add internal-fn.o.
8556         (internal-fn.o): New rule.
8557         * internal-fn.def: New file.
8558         * internal-fn.h: Likewise.
8559         * internal-fn.c: Likewise.
8560         * gimple.h: Include internal-fn.h.
8561         (GF_CALL_INTERNAL): New gf_mask.
8562         (gimple_statement_call): Put fntype into a union with a new
8563         internal_fn field.
8564         (gimple_build_call_internal): Declare.
8565         (gimple_build_call_internal_vec): Likewise.
8566         (gimple_call_same_target_p): Likewise.
8567         (gimple_call_internal_p): New function.
8568         (gimple_call_internal_fn): Likewise.
8569         (gimple_call_fntype): Return null for internal calls.
8570         (gimple_call_set_fntype): Assert that the function is not internal.
8571         (gimple_call_set_fn): Likewise.
8572         (gimple_call_set_fndecl): Likewise.
8573         (gimple_call_set_internal_fn): New function.
8574         (gimple_call_addr_fndecl): Handle null functions.
8575         (gimple_call_return_type): Likewise null types.
8576         * gimple.c (gimple_build_call_internal_1): New function.
8577         (gimple_build_call_internal): Likewise.
8578         (gimple_build_call_internal_vec): Likewise.
8579         (gimple_call_same_target_p): Likewise.
8580         (gimple_call_flags): Handle calls to internal functions.
8581         (gimple_call_fnspec): New function.
8582         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8583         (gimple_has_side_effects): Handle null functions.
8584         (gimple_rhs_has_side_effects): Likewise.
8585         (gimple_call_copy_skip_args): Handle calls to internal functions.
8586         * cfgexpand.c (expand_call_stmt): Likewise.
8587         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8588         * gimple-fold.c (gimple_fold_call): Handle null functions.
8589         (gimple_fold_stmt_to_constant_1): Don't fold
8590         calls to internal functions.
8591         * gimple-low.c (gimple_check_call_args): Handle calls to internal
8592         functions.
8593         * gimple-pretty-print.c (dump_gimple_call): Likewise.
8594         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8595         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8596         (do_warn_unused_result): Likewise.
8597         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8598         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8599         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8600         the target of a call.
8601         (initialize_hash_element): Update accordingly.
8602         (hashable_expr_equal_p): Use gimple_call_same_target_p.
8603         (iterative_hash_hashable_expr): Handle calls to internal functions.
8604         (print_expr_hash_elt): Likewise.
8605         * tree-ssa-pre.c (can_value_number_call): Likewise.
8606         (eliminate): Handle null functions.
8607         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8608         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8609         (find_func_aliases): Likewise.
8610         * value-prof.c (gimple_ic_transform): Likewise.
8611         (gimple_indirect_call_to_profile): Likewise.
8612         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8613         * lto-streamer-out.c (output_gimple_stmt): Likewise.
8614
8615 2011-04-19  Jan Hubicka  <jh@suse.cz>
8616
8617         * ipa-inline-transform.c (save_inline_function_body): Add comments.
8618         * ipa-inline.c (inline_small_functions): Compute summaries first,
8619         populate heap later.
8620
8621 2011-04-19  Jan Hubicka  <jh@suse.cz>
8622
8623         * cgraph.h (save_inline_function_body): Remove.
8624         * ipa-inline-transform.c: New file, broke out of...
8625         * ipa-inline.c: ... this one; Update toplevel comment.
8626         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8627         make global.
8628         (update_noncloned_frequencies): Move to ipa-inline-transform.c
8629         (cgraph_mark_inline_edge): Rename to inline_call; move to
8630         ipa-inline-transform.c.
8631         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8632         move to ipa-inline-transform.c
8633         (recursive_inlining, inline_small_functions, flatten_function,
8634         ipa_inline, inline_always_inline_functions,
8635         early_inline_small_functions): Update.
8636         (inline_transform): Move to ipa-inline-transform.c.
8637         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8638         Declare.
8639         * Makefile.in (ipa-inline-transform.o): New file.
8640         * cgraphunit.c (save_inline_function_body): Move to
8641         ipa-inline-transform.c
8642
8643 2011-04-19  DJ Delorie  <dj@redhat.com>
8644
8645         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8646         registers if we already know there aren't any.
8647         (m32c_emit_epilogue): Don't emit a barrier here.
8648         (m32c_emit_eh_epilogue): Likewise.
8649         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8650         operands at expand time.
8651         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8652         int" wchar type.
8653         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8654         duplicates.  Provide aliases instead.
8655         * config/m32c/prologue.md (eh_return): Emit a barrier here.
8656         (eh_epilogue): Add a "(return)" here as a hint to other parts of
8657         the compiler.
8658
8659 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
8660
8661         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8662         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8663         (general_or_i64_p, sparc_register_move_cost): New function.
8664
8665 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8666
8667         * doc/install.texi (Configuration, --enable-threads): Remove mach.
8668         Add lynx, mipssde.  Sort table.
8669
8670 2011-04-19  Xinliang David Li  <davidxl@google.com>
8671
8672         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8673         not negative.
8674
8675 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
8676
8677         PR target/48678
8678         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8679         is a SUBREG with non-MODE_INT mode inside of it.
8680
8681 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8682
8683         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8684         also according to actual contants.
8685         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8686         (gimple_fold_call): Use it.
8687         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8688
8689 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8690
8691         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8692         non-pointer assignments.
8693
8694 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8695
8696         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8697         account anc_offset and otr_type from the indirect edge info.
8698         * ipa-prop.c (get_ancestor_addr_info): New function.
8699         (compute_complex_ancestor_jump_func): Assignment analysis moved to
8700         get_ancestor_addr_info, call it.
8701         (ipa_note_param_call): Do not initialize information about polymorphic
8702         calls, return the indirect call graph edge.  Remove the last
8703         parameter, adjust all callers.
8704         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8705         parameters.  Initialize polymorphic information in the indirect edge.
8706
8707 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8708
8709         PR lto/48148
8710         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8711         the types if they have different enumeration identifiers.
8712
8713 2011-04-19  Jan Hubicka  <jh@suse.cz>
8714
8715         * cgraph.h (cgraph_optimize_for_size_p): Declare.
8716         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8717         * predict.c (cgraph_optimize_for_size_p): Break out from ...
8718         (optimize_function_for_size_p) ... here.
8719
8720 2011-04-19  Richard Guenther  <rguenther@suse.de>
8721
8722         PR lto/48207
8723         * tree.c (free_lang_data): Do not reset the decl-assembler-name
8724         langhook.
8725
8726 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8727
8728         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8729         if DECL_NO_INLINE_WARNING_P is set on the function.
8730
8731 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
8732
8733         PR fortran/47976
8734         * reload1.c (inc_for_reload): Return void. All callers changed.
8735         (emit_input_reload_insns): Don't try to delete previous output
8736         reloads to a register, or record spill_reg_store for autoincs.
8737
8738 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
8739
8740         * gengtype.h: Updated copyright year.
8741         (struct input_file_st): Add inpisplugin field.
8742         (type_fileloc): New function.
8743         * gengtype.c
8744         (write_typed_struct_alloc_def): Add gcc_assert.
8745         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8746         (write_typed_alloc_defns): Don't output for plugin files.
8747         (input_file_by_name): Clear inpisplugin field.
8748         (main): Set inpisplugin field for plugin files.
8749
8750 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
8751
8752         * gengtype-state.c (string_eq): New.
8753         (read_state): Use string_eq instead of strcmp when creating the
8754         state_ident_tab.
8755
8756 2011-04-19  Wei Guozhi  <carrot@google.com>
8757
8758         PR target/47855
8759         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8760         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8761         linkage.
8762         * config/arm/constraints.md (Uu): New constraint.
8763         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8764
8765 2011-04-19  Tristan Gingold  <gingold@adacore.com>
8766
8767         * config.gcc (-*-*-*vms): Added.
8768         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8769         definitions moved.
8770         * config/vms/vms-ld.c: New file.
8771         * config/vms/vms-ar.c: New file.
8772         * config/vms/t-vmsnative: New file.
8773
8774 2011-04-18  Xinliang David Li  <davidxl@google.com>
8775
8776         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8777
8778 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
8779
8780         PR middle-end/48661
8781         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8782         if TREE_TYPE (v) is non-NULL.
8783
8784         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8785         gimple_get_virt_mehtod_for_binfo.
8786         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8787         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8788         callers.
8789         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8790
8791 2011-04-18  Michael Matz  <matz@suse.de>
8792             Steve Ellcey  <sje@cup.hp.com>
8793
8794         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8795         use its mode as source mode if it isn't VOIDmode.
8796
8797 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
8798
8799         * doc/passes.texi: Fill crossref nodes.
8800
8801 2011-04-18  Jim Meyering  <meyering@redhat.com>
8802
8803         Fix doubled-word typos in comments and strings
8804         * config/alpha/vms-unwind.h: s/for for/for/
8805         * config/arm/unwind-arm.h: Likewise.
8806         * config/microblaze/microblaze.c: Likewise.
8807         * config/sh/constraints.md: s/in in/in/
8808         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8809
8810 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
8811
8812         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8813         (AVX_FLOAT_MODE_P): Ditto.
8814         (AVX128_VEC_FLOAT_MODE_P): Ditto.
8815         (AVX256_VEC_FLOAT_MODE_P): Ditto.
8816         (AVX_VEC_FLOAT_MODE_P): Ditto.
8817         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8818         (UNSPEC_MASKSTORE): Ditto.
8819         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8820         Merge from <sse>_movmsk<ssemodesuffix> and
8821         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
8822         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
8823         iterator.
8824         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8825         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8826         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8827
8828 2011-04-18  Jan Hubicka  <jh@suse.cz>
8829
8830         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8831
8832         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8833         (want_inline_function_called_once_p): Break out the logic from
8834         ipa_inline.
8835         (edge_badness): Ensure that profile is not misupdated.
8836         (lookup_recursive_calls): Prioritize by call frequencies.
8837         (inline_small_functions): Move program size estimates here;
8838         actually process whole queue even when unit growth has been
8839         met. (to properly compute inline_failed reasons and for the
8840         case unit size decrease.) Revisit comments on recursive inlining.
8841         (ipa_inline): Remove unit summary code; first inline hot calls
8842         of functions called once, cold calls next.
8843         (order, nnodes): Remove unused variables.
8844         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8845         (GTFILES): Remove ipa-inline.c
8846         * sel-sched.c (fill_insns): Silence uninitialized var warning.
8847
8848 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8849
8850         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8851
8852 2011-04-18  Jie Zhang  <jie@codesourcery.com>
8853             Richard Earnshaw  <rearnsha@arm.com>
8854
8855         * arm.c (neon_builtin_type_bits): Remove.
8856         (typedef enum neon_builtin_mode): New.
8857         (T_MAX): Don't define.
8858         (typedef enum neon_builtin_datum): Remove bits, codes[],
8859         num_vars and base_fcode.  Add mode, code and fcode.
8860         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8861         VAR10): Change accordingly.
8862         (neon_builtin_data[]): Change accordingly
8863         (arm_init_neon_builtins): Change accordingly.
8864         (neon_builtin_compare): Remove.
8865         (locate_neon_builtin_icode): Remove.
8866         (arm_expand_neon_builtin): Change accordingly.
8867
8868         * arm.h (enum arm_builtins): Move to ...
8869         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8870
8871         * arm.c (arm_builtin_decl): Declare.
8872         (TARGET_BUILTIN_DECL): Define.
8873         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8874         (arm_builtin_decls[]): New.
8875         (arm_init_neon_builtins): Store builtin declarations in
8876         arm_builtin_decls[].
8877         (arm_init_tls_builtins): Likewise.
8878         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
8879         (arm_builtin_decl): New.
8880
8881 2011-04-18  Richard Guenther  <rguenther@suse.de>
8882
8883         * tree.c (upper_bound_in_type): Build properly canonicalized
8884         INTEGER_CSTs.
8885         (lower_bound_in_type): Likewise.
8886
8887 2011-04-18  Richard Guenther  <rguenther@suse.de>
8888
8889         * gimple.h (gimple_call_addr_fndecl): New function.
8890         (gimple_call_fndecl): Use it.
8891         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8892         for direct calls.
8893         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8894         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8895
8896 2011-04-18  Richard Guenther  <rguenther@suse.de>
8897
8898         PR middle-end/48650
8899         * tree.c (build_string): STRING_CST is now derived from tree_typed.
8900
8901 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8902
8903         PR lto/48492
8904         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8905         DECL_IN_CONSTANT_POOL without RTL.
8906
8907 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
8908             Ira Rosen  <ira.rosen@linaro.org>
8909
8910         PR target/48252
8911         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8912         to match neon_vzip/vuzp/vtrn_internal.
8913         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8914         outputs explicitly dependent on both inputs.
8915         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8916
8917 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
8918
8919         PR tree-optimization/48616
8920         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8921         whether the shift is by scalar or vector based on whether all SLP
8922         scalar stmts have the same rhs.
8923
8924 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
8925
8926         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8927         memory operands.
8928
8929 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
8930
8931         PR target/43700
8932         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8933         registers.
8934
8935 2011-04-17  Jan Hubicka  <jh@suse.cz>
8936
8937         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8938         * cgrpahunit.c (cgraph_finalize_function): Do not set
8939         finalized_by_frontend.
8940         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8941         finalized_by_frontend.
8942
8943 2011-04-17  Jan Hubicka  <jh@suse.cz>
8944
8945         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8946         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8947         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8948         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8949         method.
8950         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8951         gimple-fold.c
8952         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8953
8954 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8955
8956         PR lto/48538
8957         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8958         is non-null before accessing it.
8959         (input_cgraph): Remove trailing spaces.
8960
8961 2011-04-17  Revital Eres  <revital.eres@linaro.org>
8962
8963         * params.def (sms-min-sc): New param flag.
8964         * modulo-sched.c (sms_schedule): Use it.
8965         * doc/invoke.texi (sms-min-sc): Document it.
8966
8967 2011-04-17  Jan Hubicka  <jh@suse.cz>
8968
8969         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8970         present, also set gimple_call_set_cannot_inline.
8971         * ipa-inline.c: Update toplevel comment.
8972         (MAX_TIME): Remove.
8973         (cgraph_clone_inlined_nodes): Fix linebreaks.
8974         (cgraph_check_inline_limits): Restructure to ...
8975         (caller_growth_limits): ... this one; be more tolerant
8976         on growth in nested inline chains; add explanatory comment;
8977         fix stack accounting thinko introduced by previous patch.
8978         (cgraph_default_inline_p): Remove.
8979         (report_inline_failed_reason): New function.
8980         (can_inline_edge_p): New function.
8981         (can_early_inline_edge_p): New function.
8982         (leaf_node_p): Move upwards in file.
8983         (want_early_inline_function_p): New function.
8984         (want_inline_small_function_p): New function.
8985         (want_inline_self_recursive_call_p): New function.
8986         (cgraph_edge_badness): Rename to ...
8987         (edge_badness) ... this one; fix linebreaks.
8988         (update_edge_key): Update call of edge_baddness; add
8989         detailed dump about queue updates.
8990         (update_caller_keys): Use can_inline_edge_p and
8991         want_inline_small_function_p.
8992         (cgraph_decide_recursive_inlining): Rename to...
8993         (recursive_inlining): Use can_inline_edge_p and
8994         want_inline_self_recursive_call_p; simplify and remove no longer
8995         valid FIXME.
8996         (cgraph_set_inline_failed): Remove.
8997         (add_new_edges_to_heap): Use can_inline_edge_p and
8998         want_inline_small_function_p.
8999         (cgraph_decide_inlining_of_small_functions): Rename to ...
9000         (inline_small_functions): ... this one; cleanup; use
9001         can/want predicates; cleanup debug ouput; work edges till fibheap
9002         is exhausted and do not stop once unit growth is reached; remove
9003         later loop processing remaining edges.
9004         (cgraph_flatten): Rename to ...
9005         (flatten_function): ... this one; use can_inline_edge_p
9006         and can_early_inline_edge_p predicates.
9007         (cgraph_decide_inlining): Rename to ...
9008         (ipa_inline): ... this one; remove unreachable nodes before
9009         inlining functions called once; simplify the pass.
9010         (cgraph_perform_always_inlining): Rename to ...
9011         (inline_always_inline_functions): ... this one; use
9012         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9013         (cgraph_decide_inlining_incrementally): Rename to ...
9014         (early_inline_small_functions): ... this one; simplify
9015         using new predicates; cleanup; make dumps prettier.
9016         (cgraph_early_inlining): Rename to ...
9017         (early_inliner): newer inline regular functions into always-inlines;
9018         fix updating of call stmt summaries.
9019         (pass_early_inline): Update for new names.
9020         (inline_transform): Fix formating.
9021         (gate_cgraph_decide_inlining): Rename to ...
9022         (pass_ipa_inline): ... this one.
9023         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9024         * ipa-inline-analysis.c (dump_inline_summary): Update.
9025         (compute_inline_parameters): Do not compute disregard_inline_limits;
9026         look for mismatching arguments.
9027         (estimate_growth): Fix handlig of non-trivial self recursion.
9028         (inline_read_summary): Do not read info->disregard_inline_limits.
9029         (inline_write_summary): Do not write info->disregard_inline_limits.
9030         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9031         and move all checks into can_inline_edge_p predicate; re-enable code
9032         comparing optimization levels.
9033         (expand_call_inline): Do not test inline_forbidden_into_p.
9034         * Makefile.in (ipa-inline.o): Update arguments.
9035
9036 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9037
9038         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9039
9040 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9041
9042         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9043
9044 2011-04-17  Michael Matz  <matz@suse.de>
9045
9046         PR tree-optimization/48622
9047         PR lto/48645
9048         * ipa-inline-analysis.c (inline_read_summary): Read size/time
9049         in same order as they're written.
9050
9051 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9052
9053         * config/pa/predicates.md: Reorganize and simplify predicates.
9054         Eliminate duplicate code checks.
9055         (arith_operand): Rename to arith14_operand
9056         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9057         * config/pa/pa.md: Use renamed operands.
9058         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9059         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9060         arith11_operand, adddi3_operand, indexed_memory_operand,
9061         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9062         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9063         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9064         move_dest_operand, move_src_operand, prefetch_cc_operand,
9065         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9066         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9067         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9068         div_operand, int5_operand, movb_comparison_operator,
9069         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9070         arith_double_operand, ireg_operand, lhs_lshift_operand,
9071         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9072         integer_store_memory_operand): Likewise.
9073         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9074         (integer_store_memory_operand, read_only_operand,
9075         function_label_operand, borx_reg_operand,
9076         non_hard_reg_operand): Likewise.
9077         (eq_neq_comparison_operator): Delete unused operator.
9078         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9079         function_label_operand.
9080         (emit_move_sequence): Likewise.
9081
9082 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9083
9084         * config/i386/sse.md (sseunpackmode): New mode attribute.
9085         (ssepackmode): Ditto.
9086         (vec_pack_trunc_<mode>): Macroize expander from
9087         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9088         (vec_unpacks_lo_<mode>): Macroize expander from
9089         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9090         (vec_unpacks_hi_<mode>): Macroize expander from
9091         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9092         (vec_unpacku_lo_<mode>): Macroize expander from
9093         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9094         (vec_unpacku_hi_<mode>): Macroize expander from
9095         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9096         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9097         ix86_expand_sse4_unpack.
9098         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9099
9100 2011-04-16  Jan Hubicka  <jh@suse.cz>
9101
9102         * cgraphbuild.c: Include ipa-inline.h.
9103         (reset_inline_failed): Use initialize_inline_failed.
9104         * cgraph.c: Include ipa-inline.h.
9105         (cgraph_create_node_1): Do not initialize estimated_growth.
9106         (initialize_inline_failed): More to ipa-inline-analysis.c
9107         (dump_cgraph_node): Do not dump inline flags.
9108         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9109         and disregard_inline_limits flags.
9110         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9111         time, size, estimated_growth.
9112         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9113         Update.
9114         * cgraphunit.c (cgraph_decide_is_function_needed): Use
9115         DECL_DISREGARD_INLINE_LIMITS.
9116         (cgraph_analyze_function): Do not initialize
9117         node->local.disregard_inline_limits.
9118         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9119         inlinable, versionable and disregard_inline_limits.
9120         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9121         cgraph_check_inline_limits, cgraph_default_inline_p,
9122         cgraph_edge_badness, update_caller_keys, update_callee_keys,
9123         add_new_edges_to_heap): Update.
9124         (cgraph_decide_inlining_of_small_function): Update; set
9125         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9126         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9127         cgraph_decide_inlining_incrementally): Update.
9128         * ipa-inline.h (inline_summary): Add inlinable, versionable,
9129         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9130         time, size and estimated_growth parameters.
9131         (estimate_edge_growth): Update.
9132         (initialize_inline_failed): Declare.
9133         * ipa-split.c: Include ipa-inline.h
9134         (execute_split_functions): Update.
9135         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9136         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9137         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9138         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9139         estimated_growth to INT_MIN.
9140         (inline_node_duplication_hook): Likewise.
9141         (dump_inline_summary): Dump new fields.
9142         (compute_inline_parameters): Update.
9143         (estimate_edge_time, estimate_time_after_inlining,
9144         estimate_size_after_inlining, estimate_growth, inline_read_summary,
9145         inline_write_summary):
9146         (initialize_inline_failed): Move here from cgraph.c.
9147         * tree-sra.c: Include ipa-inline.h.
9148         (ipa_sra_preliminary_function_checks): Update.
9149         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9150         ipa-inline.h.
9151
9152 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9153
9154         * config/i386/sse.md (V16): New mode iterator.
9155         (VI1, VI8): Ditto.
9156         (AVXMODEQI, AVXMODEDI): Remove.
9157         (sse2, sse3): New mode attribute.
9158         (mov<mode>): Use V16 mode iterator.
9159         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9160         (push<mode>1): Use V16 mode iterator.
9161         (movmisalign<mode>): Ditto.
9162         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9163         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9164         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9165         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9166         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9167         avx_movdqu<avxmodesuffix>.
9168         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9169         *avx_movdqu<avxmodesuffix>.
9170         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9171         avx_lddqu<avxmodesuffix>.
9172         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9173         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9174         avx_movnt<AVXMODEDI:mode>.
9175         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9176         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9177
9178 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
9179
9180         PR target/48629
9181         * haifa-sched.c (prune_ready_list, schedule_block): Use
9182         sched_pressure_p rather than flag_sched_pressure.
9183
9184 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
9185
9186         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9187         cgraph_get_node instead of cgraph_get_create_node.
9188
9189 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
9190
9191         * cfgexpand.c (expand_debug_expr): Use
9192         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9193
9194 2011-04-15  Michael Matz  <matz@suse.de>
9195
9196         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9197         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9198         * function.c (gimplify_parameters): Ditto.
9199         * gimplify.c (gimplify_vla_decl): Ditto.
9200
9201         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9202         (gimple_call_set_alloca_for_var): New inline function.
9203         (gimple_call_alloca_for_var_p): Ditto.
9204         * gimple.c (gimple_build_call_from_tree): Remember
9205         CALL_ALLOCA_FOR_VAR_P state.
9206         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9207
9208         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9209         calls if they were for VLA objects.
9210
9211 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9212
9213         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9214         of ADR_EXPRs.
9215
9216 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9217
9218         PR middle-end/48601
9219         * tree-emutls.c (lower_emutls_function_body): Call
9220         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
9221         result is non-NULL.
9222
9223 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
9224
9225         * c-decl.c (detect_field_duplicates): Call
9226         objc_detect_field_duplicates instead of objc_get_interface_ivars.
9227
9228 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
9229
9230         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9231         * gimple.c (gimple_asm_clobbers_memory_p): Define.
9232         * ipa-pure-const.c (check_stmt): Call it.
9233         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9234
9235 2011-04-15  Richard Guenther  <rguenther@suse.de>
9236
9237         PR tree-optimization/48290
9238         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9239         Properly decide inhibiting propagation based on the valueized
9240         operand.  Do loop-closed SSA form preserving here ...
9241         (init_copy_prop): ... not here.
9242
9243 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
9244
9245         PR target/48612
9246         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9247         (*ieee_smax<mode>3): Likewise.
9248
9249 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9250
9251         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9252         Replace match_operand with match_dup for the third operand in
9253         these expanders.
9254
9255 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9256
9257         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9258         to track processing of conditionals.  Update all callers.
9259         (try_combine, simplify_if_then_else): Update.
9260
9261 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9262
9263         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9264         -fsched-pressure.
9265
9266 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
9267
9268         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9269         instead of match_operand for operand 3.
9270
9271 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
9272
9273         * recog.h (insn_operand_data): Add an "allows_mem" field.
9274         * genoutput.c (output_operand_data): Initialize it.
9275         * optabs.c (maybe_legitimize_operand_same_code): New function.
9276         (maybe_legitimize_operand): Use it when matching the original
9277         op->value.
9278
9279 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9280
9281         * gimplify.c: Fix issues in comments throughout.
9282         (voidify_wrapper_expr): Fix long line.
9283         (build_stack_save_restore): Likewise.
9284         (gimplify_loop_expr): Likewise.
9285         (gimplify_compound_lval): Likewise.
9286         (gimplify_init_ctor_eval): Likewise.
9287         (gimplify_modify_expr_rhs): Likewise.
9288         (omp_notice_threadprivate_variable): Likewise.
9289
9290 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9291
9292         * cfgexpand.c (expand_call_stmt): Convert the function type to the
9293         original one if this is not a builtin function.
9294
9295 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
9296
9297         PR target/48605
9298         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9299         offset it as needed based on top 2 bits in operands[3], change
9300         MEM mode to SFmode and mask those 2 bits away from operands[3].
9301
9302 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9303
9304         * c-parser.c (c_parser_objc_protocol_definition): Updated for
9305         change from objc_declare_protocols() to objc_declare_protocol().
9306
9307 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
9308
9309         * config/i386/sse.md (sse4_1): New mode attribute.
9310         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9311         avx_blend<ssemodesuffix><avxmodesuffix> and
9312         sse4_1_blend<ssemodesuffix> using VF mode iterator.
9313         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9314         avx_blendv<ssemodesuffix><avxmodesuffix> and
9315         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9316         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9317         avx_dp<ssemodesuffix><avxmodesuffix> and
9318         sse4_1_dp<ssemodesuffix> using VF mode iterator.
9319         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9320         (sse4_1_packusdw): Merge with *avx_packusdw.
9321         (sse4_1_pblendvb): Merge with *avx_pblendvb.
9322         (sse4_1_pblendw): Merge with *avx_pblendw.
9323         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9324         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9325         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9326         VF mode iterator.
9327         (sse4_1_round<ssescalarmodesuffix>): Merge with
9328         *avx_round<ssescalarmodesuffix>.
9329         (aesenc): Merge with *avx_aesenc.
9330         (aesenclast): Merge with *avx_aesenclast.
9331         (aesdec): Merge with *avx_aesdec.
9332         (aesdeclast): Merge with *avx_aesdeclast.
9333         (pclmulqdq): Merge with *pclmulqdq.
9334         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9335         New predicate.
9336         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9337
9338 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
9339
9340         PR middle-end/48608
9341         * cfgexpand.c (get_decl_align_unit): Renamed to ...
9342         (align_local_variable): This.  Update DECL_ALIGN.
9343         (add_stack_var): Updated.
9344         (expand_one_stack_var): Likewise.
9345
9346 2011-04-14  Richard Guenther  <rguenther@suse.de>
9347
9348         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9349         Remove.
9350         (dse_initialize_block_local_data, dse_leave_block,
9351         record_voperand_set, get_stmt_uid): Likewise.
9352         (dse_possible_dead_store_p): Allow any kind of killing stmt.
9353         (dse_optimize_stmt): Remove voperand set handling code.
9354         Simplify and improve to handle any kind of killing stmt.
9355         (dse_record_phi): Remove.
9356         (dse_enter_block): Simplify.
9357         (tree_ssa_dse): Likewise.
9358         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9359
9360 2011-04-14  Jan Hubicka  <jh@suse.cz>
9361
9362         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9363         * cgraph.h (struct inline_summary): Move to ipa-inline.h
9364         (cgraph_local_info): Remove inline_summary.
9365         * ipa-cp.c: Include ipa-inline.h.
9366         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9367         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9368         accesor.
9369         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9370         (input_overwrite_node): Do not set inline summary.
9371         (input_node): Do not stream inline summary.
9372         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9373         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9374         growth; we do not have inline parameters computed for that anyway.
9375         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9376         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9377         (inline_summary_t): New type and VECtor.
9378         (debug_inline_summary, dump_inline_summaries): Declare.
9379         (inline_summary): Use VOCtor.
9380         (estimate_edge_growth): Kill hack computing call stmt size directly.
9381         * lto-section-in.c (lto_section_name): Add inline section.
9382         * ipa-inline-analysis.c: Include lto-streamer.h
9383         (node_removal_hook_holder, node_duplication_hook_holder): New holders
9384         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9385         (inline_summary_vec): Define.
9386         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9387         dump_inline_summaries): New functions.
9388         (estimate_function_body_sizes): Properly compute size/time of outgoing
9389         calls.
9390         (compute_inline_parameters): Alloc inline_summary; do not compute
9391         size/time of incomming calls.
9392         (estimate_edge_time): Avoid missing time summary hack.
9393         (inline_read_summary): Read inline summary info.
9394         (inline_write_summary): Write inline summary info.
9395         (inline_free_summary): Free all hooks and inline summary vector.
9396         * lto-streamer.h: Add LTO_section_inline_summary section.
9397         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9398         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9399
9400 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9401
9402         * tree-vectorizer.h (vect_strided_store_supported): Add a
9403         HOST_WIDE_INT argument.
9404         (vect_strided_load_supported): Likewise.
9405         (vect_permute_store_chain): Return void.
9406         (vect_transform_strided_load): Likewise.
9407         (vect_permute_load_chain): Delete.
9408         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9409         count argument.  Check that the count is a power of two.
9410         (vect_strided_load_supported): Likewise.
9411         (vect_permute_store_chain): Return void.  Update after above changes.
9412         Assert that the access is supported.
9413         (vect_permute_load_chain): Likewise.
9414         (vect_transform_strided_load): Return void.
9415         * tree-vect-stmts.c (vectorizable_store): Update calls after
9416         above interface changes.
9417         (vectorizable_load): Likewise.
9418         (vect_analyze_stmt): Don't check for strided powers of two here.
9419
9420 2011-04-14  Richard Guenther  <rguenther@suse.de>
9421
9422         PR tree-optimization/48590
9423         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9424         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9425         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9426         BUILT_IN_STACK_SAVE.
9427         * tree-ssa-dce.c (propagate_necessity): Handle
9428         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9429
9430 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9431
9432         * c-parser.c (c_parser_objc_class_declaration): Updated call to
9433         objc_declare_class.
9434
9435 2011-04-14  Richard Guenther  <rguenther@suse.de>
9436
9437         * tree.h (get_object_alignment_1): Declare.
9438         * builtins.c (get_object_alignment_1): Split out worker from ...
9439         (get_object_alignment): ... here.
9440         * fold-const.c (get_pointer_modulus_and_residue): Use
9441         get_object_alignment_1.
9442
9443 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9444
9445         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9446         type parameter.
9447         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9448         parameter.  Generalise code to handle arrays as well as vectors.
9449         (vect_setup_realignment): Update accordingly.
9450         * tree-vect-stmts.c (vectorizable_store): Likewise.
9451         (vectorizable_load): Likewise.
9452
9453 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9454
9455         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9456         within the per-copy loop.
9457
9458 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9459
9460         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9461         in the dump file.
9462
9463 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9464
9465         * doc/options.texi (Negative): Explicitly mention that the
9466         Negative chain must be circular.
9467
9468 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
9469
9470         * function.h (block_chainon): Declare.
9471         * function.c (block_chainon): Define.
9472
9473 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
9474             Eric Weddington  <eric.weddington@atmel.com>
9475             Georg-Johann Lay  <avr@gjlay.de>
9476
9477         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9478         New Includes
9479         (avr_init_builtins, avr_expand_builtin,
9480         avr_expand_delay_cycles, avr_expand_unop_builtin,
9481         avr_expand_binop_builtin ): New functions.
9482         (avr_builtin_id): New enum
9483         (struct avr_builtin_description): New struct
9484         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9485         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9486
9487         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9488         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9489         UNSPECV_DELAY_CYCLES): new enumeration values
9490         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9491         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9492         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9493         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9494         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9495         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9496         "fmulsu"): New insns
9497
9498         * config/avr/avr-c.c: fix line endings
9499         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9500         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9501         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9502         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9503         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9504
9505         * doc/extend.texi (AVR Built-in Functions): New node
9506         (Target Builtins): Add documentation of AVR
9507         built-in functions.
9508
9509 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
9510
9511         PR target/44643
9512         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9513         alone. Error if non-const data has attribute progmem.
9514
9515 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9516
9517         * tree.h (struct tree_constructor): Include tree_typed instead of
9518         tree_common.
9519         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9520         TS_TYPED instead of TS_COMMON.
9521
9522 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9523
9524         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9525         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9526         (sse2_psadbw): Merge with *avx_psadbw.
9527         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9528         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9529         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9530         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9531         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9532         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9533         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9534         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9535         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9536         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9537         (ssse3_palignrti): Merge with *avx_palignrti.
9538
9539 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9540
9541         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9542         * tree-ssanames.c (fini_ssanames): VEC_free it.
9543         (make_ssa_name_fn): Update for VECness of free_ssanames.
9544         (release_ssa_name, release_dead_ssa_names): Likewise.
9545         * tree.h (struct tree_ssa_name): Include tree_typed instead of
9546         tree_common.
9547         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9548         TS_TYPED instead of TS_COMMON.
9549
9550 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9551
9552         * postreload-gcse.c (gcse_after_reload_main): Add calls to
9553         statistics_counter_event.
9554         * tree-ssa-copyrename.c (stats): Define.
9555         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
9556         statistics_counter_event.
9557         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9558         (bswap_stats, widen_mul_stats): Define.
9559         (insert_reciprocals): Increment rdivs_inserted.
9560         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
9561         rfuncs_inserted.  Add calls to statistics_counter_event.
9562         (execute_cse_sincos_1): Increment inserted.
9563         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
9564         statistics_counter_event.
9565         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
9566         of bswap_stats.  Add calls to statistics_counter_event.
9567         (convert_mult_to_widen): Increment widen_mults_inserted.
9568         (convert_plusminus_to_widen): Increment maccs_inserted.
9569         (convert_mult_to_fma): Increment fmas_inserted.
9570         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
9571         calls to statistics_counter_event.
9572
9573 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
9574
9575         PR rtl-optimization/48455
9576         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9577         `temp_costs->mem_cost'.
9578
9579 2011-04-13  Jan Hubicka  <jh@suse.cz>
9580
9581         * ipa-inline.h: New file.
9582         * ipa-inline-analysis.c: New file. Broken out of ...
9583         * ipa-inline.c: ... this file; update toplevel comment;
9584         include ipa-inline.h
9585         (inline_summary): Move to ipa-inline.h
9586         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9587         ipa-inline-analysis.c.
9588         (cgraph_estimate_time_after_inlining): Rename to
9589         estiamte_time_after_inlining; move to ipa-inline-analysis.c
9590         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9591         to estimate_edge_growth.
9592         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9593         rename to estimate_size_after_inlining.
9594         (cgraph_mark_inline_edge): Update for new naming convention.
9595         (cgraph_check_inline_limits): Likewise.
9596         (cgraph_edge_badness): Likewise.
9597         (cgraph_decide_recursive_inlining): Likewise.
9598         (cgraph_decide_inlining_of_small_functions): Likewise.
9599         (cgraph_decide_inlining_incrementally): Likewise.
9600         (cgraph_estimate_growth): Rename to estimate_growth; move to
9601         ipa-inline-analysis.c.
9602         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9603         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9604         (compute_inline_parameters): Likewise.
9605         (compute_inline_parameters_for_current): Likewise.
9606         (pass_inline_parameters): Likewise.
9607         (inline_indirect_intraprocedural_analysis): Likewise.
9608         (analyze_function): Rename to inline_analyze_function; likewise.
9609         (add_new_function): Move to ipa-inline-analysis.c.
9610         (inline_generate_summary): Likewise.
9611         (inline_read_summary): Likewise.
9612         (inline_write_summary): Likewise.
9613         * Makefile.in (ipa-inline-analysis.c): New file.
9614
9615 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9616
9617         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9618         * configure: Regenerate.
9619
9620 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9621
9622         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9623         instead of tree_common.
9624         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9625         Likewise.
9626         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9627         TS_TYPED rather than TS_COMMON.
9628         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9629
9630 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
9631
9632         PR target/45263
9633         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9634         r20 around calls of __tablejump_elpm__
9635
9636 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
9637
9638         PR middle-end/48591
9639         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9640         NULL.
9641         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9642
9643 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
9644
9645         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9646         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9647         (cfi_vec): New typedef.
9648         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9649         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9650         (cie_cfi_vec): New static variable.
9651         (cie_cfi_head): Delete.
9652         (add_cfi): Accept a cfi_vec * as first argument. All callers and
9653         declaration changed. Use vector rather than list operations.
9654         (new_cfi): Don't initialize the dw_cfi_next field.
9655         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9656         rather than list operations.
9657         (lookup_cfa): Use vector rather than list operations.
9658         (output_cfis): New argument upto. Accept a cfi_vec rather than
9659         a dw_cfi_ref list head as argument. All callers changed.
9660         Iterate over the vector using upto as a maximum index.
9661         (output_all_cfis): New static function.
9662         (output_fde): Use vector rather than list operations. Use the
9663         new upto argument for output_cfis rather than manipulating a
9664         list.
9665         (dwarf2out_begin_prologue): Change initializations to match
9666         new struct members.
9667         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9668         from the vector length rather than searching for the end of a list.
9669         Use output_all_cfis.
9670         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9671
9672 2011-04-13  Nick Clifton  <nickc@redhat.com>
9673
9674         * config/rx/rx.md (movmemsi): Do not use this pattern when
9675         volatile pointers are involved.
9676
9677 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9678
9679         * config/i386/sse.md (pinsrbits): Remove.
9680         (sse2_packsswb): Merge with *avx_packsswb.
9681         (sse2_packssdw): Merge with *avx_packssdw.
9682         (sse2_packuswb): Merge with *avx_packuswb.
9683         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9684         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9685         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9686         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9687         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9688         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9689         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9690         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9691         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9692         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9693         (sse2_loadld): Merge with *avx_loadld.
9694         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9695         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9696         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9697         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9698         (vec_concatv2di): Merge with *vec_concatv2di_avx.
9699
9700 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
9701
9702         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9703         calling TREE_CHAIN.
9704         * print-tree.c (print_node): Likewise.
9705         * tree-inline.c (copy_tree_r): Likewise.
9706         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9707         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9708         instead of TS_COMMON.
9709         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9710         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9711         (copy_node_stat): Zero TREE_CHAIN only if necessary.
9712         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9713         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9714         ...and these...
9715         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9716         * tree.h: ...here.
9717         (TREE_CHAIN): Check for a TS_COMMON structure.
9718         (TREE_TYPE): Check for a TS_TYPED structure.
9719
9720 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
9721
9722         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9723         cgraph_get_create_node instead of cgraph_node.
9724
9725 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
9726
9727         * c-parser.c (c_parser_initelt): Updated call to
9728         objc_build_message_expr.
9729         (c_parser_postfix_expression): Likewise.
9730
9731 2011-04-12  Kai Tietz  <ktietz@redhat.com>
9732
9733         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9734         MASK_MS_BITFIELD_LAYOUT bit.
9735
9736 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9737
9738         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9739         assert it is always true.
9740         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9741         moves.
9742
9743 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
9744
9745         * c-parser.c (c_lex_one_token): Rewritten conditional used when
9746         compiling Objective-C to be more efficient.
9747
9748 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
9749
9750         * opts-common.c (decode_cmdline_options_to_array): Remove variable
9751         argv_copied.
9752
9753 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9754
9755         * recog.h, genoutput.c, optabs.c: Revert last patch.
9756
9757 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9758
9759         PR target/48090
9760         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
9761
9762 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9763
9764         * recog.h (insn_operand_data): Add an "allows_mem" field.
9765         * genoutput.c (output_operand_data): Initialize it.
9766         * optabs.c (maybe_legitimize_operand_same_code): New function.
9767         (maybe_legitimize_operand): Use it when matching the original
9768         op->value.
9769
9770 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9771
9772         * genpreds.c (process_define_predicate): Move most processing
9773         to gensupport.c.  Continue to validate the expression.
9774         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9775         (process_define_predicate): Move processing to gensupport.c.
9776         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9777         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9778         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
9779         argument.
9780         (valid_predicate_name_p): New function, split out from old
9781         genpreds.c:process_define_predicate.
9782         (process_define_predicate): New function, combining code from
9783         old genpreds.c and genrecog.c functions.
9784         (process_rtx): Call it for DEFINE_PREDICATE and
9785         DEFINE_SPECIAL_PREDICATE.
9786
9787 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9788
9789         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9790         size of a '%A' memory reference.
9791         (T_DREG, T_QREG): New neon_builtin_type_bits.
9792         (arm_init_neon_builtins): Assert that the load and store operands
9793         are neon_struct_operands.
9794         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9795         (NEON_ARG_MEMORY): New builtin_arg.
9796         (neon_dereference_pointer): New function.
9797         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9798         Handle NEON_ARG_MEMORY.
9799         (arm_expand_neon_builtin): Update after above interface changes.
9800         Use NEON_ARG_MEMORY for loads and stores.
9801         * config/arm/predicates.md (neon_struct_operand): New predicate.
9802         * config/arm/iterators.md (V_two_elem): Tweak formatting.
9803         (V_three_elem): Use BLKmode for accesses that have no associated mode.
9804         (V_four_elem): Tweak formatting.
9805         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9806         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9807         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9808         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9809         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9810         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9811         (neon_vst4<mode>): Replace pointer operand with a memory operand.
9812         Use %A in the output template.
9813         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9814         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9815         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9816         the width of the memory access.  Remove post-increment.
9817         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9818
9819 2011-04-12  Nick Clifton  <nickc@redhat.com>
9820
9821         * config/v850/v850.c (expand_prologue): Do not use the CALLT
9822         instruction for interrupt handlers if the target is the basic V850
9823         architecture.
9824         (expand_epilogue): Likewise.
9825
9826 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9827
9828         PR rtl-optimization/48549
9829         * combine.c (propagate_for_debug): Also stop after BB_END of
9830         this_basic_block.  Process LAST and just stop processing after it.
9831         (combine_instructions): If last_combined_insn has been deleted,
9832         set last_combined_insn to its PREV_INSN.
9833
9834 2011-04-12  Richard Guenther  <rguenther@suse.de>
9835
9836         PR tree-optimization/46076
9837         * gimple.h (struct gimple_statement_call): Add fntype field.
9838         (gimple_call_fntype): Adjust.
9839         (gimple_call_set_fntype): New function.
9840         * gimple.c (gimple_build_call_1): Set the call function type.
9841         * gimplify.c (gimplify_call_expr): Preserve the function
9842         type the frontend used for the call.
9843         (gimplify_modify_expr): Likewise.
9844         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9845         function type.
9846         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9847         function type.
9848         * tree-ssa.c (useless_type_conversion_p): Function pointer
9849         conversions are useless.
9850
9851 2011-04-12  Martin Jambor  <mjambor@suse.cz>
9852
9853         * cgraph.h (cgraph_node): Remove function declaration.
9854         (cgraph_create_node): Declare.
9855         (cgraph_get_create_node): Likewise.
9856         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9857         Updated all callers.
9858         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9859         the decl does not already exist.  Call cgraph_get_create_node instead
9860         of cgraph_node.
9861         (cgraph_get_create_node): New function.
9862         (cgraph_same_body_alias): Update comment.
9863         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9864         assert it does not return NULL.
9865         (cgraph_update_edges_for_call_stmt): Likewise.
9866         (cgraph_clone_edge): Likewise.
9867         (cgraph_create_virtual_clone): Likewise.
9868         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9869         instead of cgraph_node.
9870         (cgraph_add_new_function): Call cgraph_create_node or
9871         cgraph_get_create_node instead of cgraph_node.
9872         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9873         instead of cgraph_node.
9874         (record_eh_tables): Likewise.
9875         (mark_address): Likewise.
9876         (mark_load): Likewise.
9877         (build_cgraph_edges): Call cgraph_get_create_node instead
9878         of cgraph_node.
9879         (rebuild_cgraph_edges): Likewise.
9880         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9881         instead of cgraph_node.
9882         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9883         cgraph_node.
9884         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9885         cgraph_create_node instead of cgraph_node.
9886         * c-decl.c (finish_function): Call cgraph_get_create_node instead
9887         of cgraph_node.
9888         * lto-cgraph.c (input_node): Likewise.
9889         * lto-streamer-in.c (input_function): Likewise.
9890         * varasm.c (mark_decl_referenced): Likewise.
9891         (assemble_alias): Likewise.
9892
9893 2011-04-12  Martin Jambor  <mjambor@suse.cz>
9894
9895         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9896         instead of cgraph_node and assert it does not return NULL.
9897         * lto-streamer-in.c (lto_read_body): Likewise.
9898         * omp-low.c (new_omp_context): Likewise.
9899         (create_task_copyfn): Likewise.
9900         * tree-emutls.c (lower_emutls_function_body): Likewise.
9901         * matrix-reorg.c (transform_allocation_sites): Likewise.
9902
9903 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9904
9905         PR c/48552
9906         * c-typeck.c (build_asm_expr): Error out on attempts to use
9907         void type outputs or inputs for constraints that allow reg or
9908         don't allow memory.
9909
9910 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
9911             Richard Earnshaw  <rearnsha@arm.com>
9912
9913         PR target/48250
9914         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9915         to use sign-magnitude offsets. Reject unsupported unaligned
9916         cases. Add detailed description in comments.
9917         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9918         condition from TARGET_32BIT to TARGET_ARM.
9919
9920 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
9921
9922         * tree.h (struct typed_tree): New.
9923         (struct tree_common): Include it instead of tree_base.
9924         (TREE_TYPE): Update for new location of type field.
9925         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9926         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9927         (union tree_node): Add typed field.
9928         * treestruct.def (TS_TYPED): New.
9929         * lto-streamer.c (check_handled_ts_structures): Handle it.
9930         * tree.c (MARK_TS_TYPED): New macro.
9931         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9932
9933 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
9934
9935         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9936         (force_nonfallthru): Do not alter the loop nest if no basic block
9937         was created.
9938
9939 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
9940
9941         * config/i386/sse.md (VI): New mode iterator.
9942         (SSEMODEI): Remove.
9943         (AVX256MODEI): Ditto.
9944         (AVXMODEF4P): Ditto.
9945         (avxvecpsmode): Ditto.
9946         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
9947         (sse2_andnot<mode>3): New expander.
9948         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9949         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
9950         (<any_logic:code><mode>3): Use VI mode iterator.
9951         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9952         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
9953         (*andnottf3): Handle AVX three-operand constraints.
9954         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9955
9956 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9957             Robert Millan  <rmh@gnu.org>
9958
9959         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9960         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9961         GNU_USER_DYNAMIC_LINKER64): Define.
9962         (REG_NAME): Don't undefine.
9963         (MD_UNWIND_SUPPORT): Undefine.
9964         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9965         (REG_NAME): Don't undefine.
9966         (MD_UNWIND_SUPPORT): Undefine.
9967         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9968
9969 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9970
9971         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9972         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9973
9974 2011-04-11  Xinliang David Li  <davidxl@google.com>
9975
9976         * value-profile.c (check_ic_target): New function.
9977         (gimple_ic_transform): Sanity check indirect call target.
9978         * gimple-low.c (gimple_check_call_args): Interface change.
9979         (gimple_check_call_matching_types): New function.
9980         * tree-inline.c (tree_can_inline_p): Call new function.
9981
9982 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
9983
9984         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9985         tree-pretty-print.h & realmpfr.h.
9986
9987 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
9988
9989         PR middle-end/48464
9990         * ira.c (setup_pressure_classes): Fix typo in loop condition.
9991         (setup_allocno_and_important_classes): Ditto.
9992
9993 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
9994
9995         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9996         GNU_USER_DYNAMIC_LINKER.
9997         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9998         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9999         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10000         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10001         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10002         GNU_USER_TARGET_OS_CPP_BUILTINS.
10003         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10004         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10005         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10006         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10007         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10008         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10009         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10010         GNU_USER_TARGET_OS_CPP_BUILTINS.
10011         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10012         GNU_USER_DYNAMIC_LINKER.
10013         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10014         GNU_USER_TARGET_OS_CPP_BUILTINS.
10015         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10016         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10017         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10018         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10019         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10020         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10021         GNU_USER_DYNAMIC_LINKER64): Remove.
10022         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10023         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10024         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10025         GNU_USER_DYNAMIC_LINKER.
10026         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10027         GNU_USER_TARGET_OS_CPP_BUILTINS.
10028         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10029         GNU_USER_TARGET_OS_CPP_BUILTINS.
10030         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10031         to GNU_USER_TARGET_OS_CPP_BUILTINS.
10032         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10033         GNU_USER_TARGET_OS_CPP_BUILTINS.
10034         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10035         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10036         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10037         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10038         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10039         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10040         GNU_USER_DYNAMIC_LINKER.
10041         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10042         GNU_USER_TARGET_OS_CPP_BUILTINS.
10043         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10044         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10045         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10046         GNU_USER_DYNAMIC_LINKER.
10047         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10048         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10049         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10050         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10051         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10052         GNU_USER_DYNAMIC_LINKER.
10053         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10054         GNU_USER_DYNAMIC_LINKERN32.
10055         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10056         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
10057         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
10058         GNU_USER_DYNAMIC_LINKER32.
10059         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10060         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10061         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10062         GNU_USER_DYNAMIC_LINKER.
10063         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10064         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10065         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10066         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10067         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10068         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10069         GNU_USER_DYNAMIC_LINKER32.
10070         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10071         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10072         GNU_USER_DYNAMIC_LINKER.
10073         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10074         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10075         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10076         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
10077         GNU_USER_DYNAMIC_LINKER64.
10078         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10079         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10080         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10081         GNU_USER_DYNAMIC_LINKER.
10082         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10083         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10084         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10085         GNU_USER_DYNAMIC_LINKER.
10086         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10087         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10088         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10089         GNU_USER_DYNAMIC_LINKER32.
10090         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10091         GNU_USER_DYNAMIC_LINKER64.
10092         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10093         GNU_USER_DYNAMIC_LINKER64.
10094         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10095         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10096         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10097         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10098         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10099
10100 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10101
10102         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
10103         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10104         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10105         GNU_USER_DYNAMIC_LINKER.
10106         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10107         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
10108         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10109         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10110         GNU_USER_DYNAMIC_LINKER64.
10111         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10112         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10113         GNU_USER_LINK_EMULATION.
10114         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10115         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10116         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10117         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10118         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10119         CPP_SPEC, CC1_SPEC): Remove.
10120         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10121         (GNU_USER_DYNAMIC_LINKER): Define.
10122         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10123         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10124         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10125         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10126         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10127         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10128         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10129         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10130         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10131         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10132         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10133         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10134         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10135         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10136         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10137         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10138         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10139         GNU_USER_DYNAMIC_LINKER.
10140         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10141         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10142         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10143         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10144         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10145         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10146         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10147         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10148         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10149         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10150
10151 2011-04-11  Kai Tietz  <ktietz@redhat.com>
10152
10153         PR target/9601
10154         PR target/11772
10155         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10156         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10157         comment.
10158         (ix86_is_msabi_thiscall): Removed.
10159         (ix86_is_type_thiscall): Likewise.
10160         (ix86_get_callcvt): New function.
10161         (ix86_comp_type_attributes): Simplify check.
10162         (ix86_function_regparm): Use ix86_get_callcvt for calling
10163         convention attribute checks.
10164         (ix86_return_pops_args): Likewise.
10165         (ix86_static_chain): Likewise.
10166         (x86_this_parameter): Likewise.
10167         (x86_output_mi_thunk): Likewise.
10168         (ix86_function_type_abi): Optimize check for types without attributes.
10169         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10170         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10171         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10172         by flag-values.
10173         (IX86_BASE_CALLCVT): Helper macro.
10174         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10175         Use ix86_get_callcvt for calling convention attribute checks and avoid
10176         symbol-decoration for stdcall in TARGET_RTD case.
10177         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10178         Likewise.
10179         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10180         for declaration.
10181
10182 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10183
10184         * config/i386/sse.md (VI_128): New mode iterator.
10185         (VI12_128): Rename from SSEMODE12.
10186         (VI14_128): Rename from SSEMODE14.
10187         (VI124_128): New mode iterator.
10188         (VI24_128): Rename from SSEMODE248.
10189         (VI248_128): Rename from SSEMODE248.
10190         (SSEMODE124C8): Remove.
10191         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10192         (*sse2_<plusminus_insn><mode>3): Merge with
10193         *avx_<plusminus_insn><mode>3.
10194         (*mulv8hi3): Merge with *avx_mulv8hi3.
10195         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10196         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10197         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10198         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10199         (ashr<mode>3): Merge with *avx_ashr<mode>3.
10200         (lshr<mode>3): Merge with *avx_lshr<mode>3.
10201         (ashl<mode>3): Merge with *avx_ashl<mode>3.
10202         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10203         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10204         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10205         (*<smaxmin:code>v8hi3): Ditto.
10206         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10207         (*<smaxmin:code>v16qi3): Ditto.
10208         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10209         (*sse2_eq<mode>3): Ditto.
10210         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10211         (*sse2_gt<mode>3): Ditto.
10212         (vcondv2di): Split out of vcond<mode>.
10213         (vconduv2di): Split out of vcondu<mode>.
10214
10215 2011-04-11  Richard Guenther  <rguenther@suse.de>
10216
10217         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10218         before calling tree_low_cst.
10219
10220 2011-04-11  Richard Guenther  <rguenther@suse.de>
10221
10222         * stor-layout.c (layout_type): Compute all array index size operations
10223         in the original type.
10224         (initialize_sizetypes): Add comment.
10225         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10226
10227 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10228
10229         * common.opt (Tbss=, Tdata=, Ttext=): New options.
10230
10231 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10232
10233         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10234         of cgraph_node, handle NULL return value.
10235         (cgraph_global_info): Likewise.
10236         (cgraph_rtl_info): Likewise.
10237         * tree-inline.c (estimate_num_insns): Likewise.
10238         * gimplify.c (unshare_body): Likewise.
10239         (unvisit_body): Likewise.
10240         (gimplify_body): Likewise.
10241         * predict.c (optimize_function_for_size_p): Likewise.
10242         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10243         (call_may_clobber_ref_p_1): Likewise.
10244         * varasm.c (function_section_1): Likewise.
10245         (assemble_start_function): Likewise.
10246
10247 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10248
10249         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10250         of cgraph_node.
10251         * final.c (rest_of_clean_state): Likewise.
10252         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10253         * passes.c (pass_init_dump_file): Likewise.
10254         (execute_all_ipa_transforms): Likewise.
10255         (function_called_by_processed_nodes_p): Likewise.
10256         * predict.c (maybe_hot_frequency_p): Likewise.
10257         (probably_never_executed_bb_p): Likewise.
10258         (compute_function_frequency): Likewise.
10259         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10260         (unnest_nesting_tree_1): Likewise.
10261         (lower_nested_functions): Likewise.
10262         * tree-optimize.c (execute_fixup_cfg): Likewise.
10263         (tree_rest_of_compilation): Likewise.
10264         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10265         * tree-sra.c (ipa_early_sra): Likewise.
10266         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10267         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10268         * ipa.c (record_cdtor_fn): Likewise.
10269         * ipa-inline.c (cgraph_early_inlining): Likewise.
10270         (compute_inline_parameters_for_current): Likewise.
10271         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10272         * ipa-pure-const.c (local_pure_const): Likewise.
10273         * ipa-split.c (split_function): Likewise.
10274         (execute_split_functions): Likewise.
10275         * cgraphbuild.c (build_cgraph_edges): Likewise.
10276         (rebuild_cgraph_edges): Likewise.
10277         (cgraph_rebuild_references): Likewise.
10278         (remove_cgraph_callee_edges): Likewise.
10279         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10280         (verify_cgraph_node): Likewise.
10281         (cgraph_analyze_functions): Likewise.
10282         (cgraph_preserve_function_body_p): Likewise.
10283         (save_inline_function_body): Likewise.
10284         (save_inline_function_body): Likewise.
10285         * tree-inline.c (copy_bb): Likewise.
10286         (optimize_inline_calls): Likewise.
10287
10288 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10289
10290         PR tree-optimization/48195
10291         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10292         ipa_check_create_edge_args.
10293         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10294         ipa_check_create_edge_args.
10295         * ipa-inline.c (inline_generate_summary): Do not call
10296         ipa_check_create_node_params and ipa_check_create_edge_args.
10297         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10298         ipa_check_create_edge_args.
10299
10300 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
10301
10302         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10303         instead of loop.
10304         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10305         * function.c (record_hard_reg_sets): Likewise.
10306         * ira.c (compute_regs_asm_clobbered): Likewise.
10307         * sched-deps.c (sched_analyze_1): Likewise.
10308         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10309
10310 2011-04-09  Xinliang David Li  <davidxl@google.com>
10311
10312         PR tree-optimization/PR48484
10313         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10314         has_valid_pred lazily
10315
10316 2011-04-09  Duncan Sands  <baldrick@free.fr>
10317
10318         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10319
10320 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
10321
10322         * combine.c (combine_validate_cost): Adjust comments.  Set registered
10323         cost of I0 to zero at the end, if any.
10324
10325 2011-04-08  Xinliang David Li  <davidxl@google.com>
10326
10327         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10328         to insane profile data.
10329
10330 2011-04-08  Xinliang David Li  <davidxl@google.com>
10331
10332         * ipa-cp.c (ipcp_update_profiling): Correct
10333          negative scale factor due to insane profile data.
10334
10335 2011-04-08  Xinliang David Li  <davidxl@google.com>
10336
10337         * final.c (dump_basic_block_info): New function.
10338         (final): Dump basic block.
10339         (final_scan_insn): Remove old dump.
10340
10341 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
10342
10343         PR target/47829
10344         * config.gcc (i386-*-freebsd): Disable unwind table generation for
10345         crtbegin/crtend.
10346
10347 2011-04-08  Michael Matz  <matz@suse.de>
10348
10349         PR middle-end/48389
10350         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10351         functions.
10352         (rebuild_jump_labels): Call rebuild_jump_labels_1.
10353         * rtl.h (rebuild_jump_labels_chain): Declare.
10354         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10355         insns inserted on edges.
10356
10357 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
10358
10359         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10360         * config/arm/arm-arches.def: New.
10361         * config/arm/arm-opts.h: New.
10362         * config/arm/genopt.sh: New.
10363         * config/arm/arm-tables.opt: New (generated).
10364         * config/arm/arm.c (arm_handle_option, arm_target_help,
10365         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10366         (all_architectures): Get most table contents from arm-arches.def.
10367         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10368         arm_selected_tune here.
10369         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10370         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10371         (march=, mcpu=, mtune=): Use Enum and Var.
10372         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10373         (arm.o): Update dependencies.
10374
10375 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
10376
10377         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10378         of header_file.
10379         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10380         (write_typed_alloc_defns): Likewise.
10381         (main): Calls write_typed_alloc_defns with output_header.
10382
10383 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
10384
10385         PR inline-asm/48435
10386         * ira-color.c (setup_profitable_hard_regs): Add comments.
10387         Don't take prohibited hard regs into account.
10388         (setup_conflict_profitable_regs): Rename to
10389         get_conflict_profitable_regs.
10390         (check_hard_reg_p): Check prohibited hard regs.
10391
10392 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
10393
10394         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10395         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10396         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10397
10398 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10399
10400         PR target/48366
10401         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10402         move from floating point to shift amount register.
10403         (emit_move_sequence): Remove secondary reload support for floating
10404         point to shift amount amount register copies.
10405         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10406         amount register copies.
10407         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10408         register, return false if mode isn't a scalar integer mode.
10409         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10410
10411 2011-04-08  Richard Guenther  <rguenther@suse.de>
10412
10413         * gimple.c (gimple_call_flags): Remove kludge.
10414
10415 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10416
10417         * sel-sched.c (sel_region_init): Move call to
10418         sel_setup_region_sched_flags after setup_current_loop_nest.
10419
10420 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
10421
10422         PR rtl-optimization/48272
10423         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10424         init_insn_reg_pressure_info.  Adjust a caller.
10425         * sched-int.h (init_insn_reg_pressure_info): Declare.
10426         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10427         when sched-pressure is enabled.
10428
10429 2011-04-08  Richard Guenther  <rguenther@suse.de>
10430
10431         * gimple.c (gimple_set_modified): Do not queue calls to
10432         MODIFIED_NORETURN_CALLS here ...
10433         * tree-ssa-operands.c (update_stmt_operands): ... but here.
10434
10435 2011-04-08  Richard Guenther  <rguenther@suse.de>
10436
10437         PR lto/48467
10438         * toplev.c (lang_dependent_init): Do not open asm_out_file
10439         in WPA mode, nor perform debug machinery initialization.
10440         (finalize): Do not unlink asm_out_file in WPA mode.
10441
10442 2011-04-08  Richard Guenther  <rguenther@suse.de>
10443
10444         * gimple.h (gimple_call_fntype): New function.
10445         (gimple_call_return_type): Use it.
10446         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10447         * gimple-low.c (gimple_check_call_args): Likewise.
10448         * gimple.c (gimple_call_flags): Likewise.
10449         (gimple_call_arg_flags): Likewise.
10450         (gimple_call_return_flags): Likewise.
10451         * tree-cfg.c (verify_gimple_call): Likewise.
10452         (do_warn_unused_result): Likewise.
10453         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10454         * value-prof.c (gimple_ic_transform): Fix fndecl check.
10455
10456 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
10457
10458         PR rtl-optimization/48235
10459         * sel-sched.c (code_motion_process_successors): Recompute the last
10460         insn in basic block if control flow changed.
10461         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
10462         Update condition for ilist_remove.
10463
10464 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10465
10466         PR rtl-optimization/48302
10467         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10468         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
10469         it to record added preheader blocks.
10470         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
10471         on to sel_add_loop_preheaders.
10472         (sel_region_init): Move call to setup_current_loop_nest after
10473         sel_init_bbs.
10474
10475 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10476
10477         PR target/48273
10478         * cfgloop.h (loop_has_exit_edges): New helper.
10479         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10480         non-clonable.
10481         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10482         that have no exit edges.
10483
10484 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10485
10486         PR rtl-optimization/48442
10487         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
10488         all callers.  Adjust assert.
10489
10490 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
10491
10492         PR tree-optimization/48377
10493         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10494         is_packed to true even for types with smaller TYPE_ALIGN than
10495         TYPE_SIZE.
10496
10497 2011-04-08  Richard Guenther  <rguenther@suse.de>
10498
10499         PR bootstrap/48513
10500         * doc/tm.texi: Re-generate.
10501
10502 2011-04-08  Wei Guozhi  <carrot@google.com>
10503
10504         PR target/47855
10505         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10506         * config/arm/arm.c (arm_attr_length_push_multi): New function.
10507         * config/arm/arm.md (*push_multi): Change the length computation to
10508         call a C function.
10509
10510 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
10511
10512         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10513         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10514         * doc/tm.texi: Regenerate.
10515         * system.h (ASM_OUTPUT_BSS): Poison.
10516         * varasm.c (asm_output_bss): Remove function.
10517         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10518
10519         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10520         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10521         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10522         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10523         Likewise.
10524         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10525         Likewise.
10526         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10527         Likewise.
10528         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10529
10530 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10531
10532         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10533         EnumValue lines.
10534
10535 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10536
10537         * config/m68k/m68k.c (m68k_handle_option): Don't handle
10538         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10539         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10540         OPT_mcpu32.
10541         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10542         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10543         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10544         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10545         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10546         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10547         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10548         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10549         options.  Don't map other m68k options manually.  Don't handle
10550         old-style options as canonical.
10551         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10552         * doc/install.texi (m68k-*-*): Document binutils version requirement.
10553
10554 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10555
10556         * basic-block.h (force_nonfallthru): Move to...
10557         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10558         (force_nonfallthru): ...here.
10559         * cfghooks.c (force_nonfallthru): New function.
10560         * cfgrtl.c (force_nonfallthru): Rename into...
10561         (rtl_force_nonfallthru): ...this.
10562         (commit_one_edge_insertion): Do not set AUX field.
10563         (commit_edge_insertions): Do not discover new basic blocks.
10564         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10565         (cfg_layout_rtl_cfg_hooks): Likewise.
10566         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10567         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
10568         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10569
10570 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
10571
10572         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10573         Remove macros.
10574
10575 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
10576
10577         * config/i386/sse.md: Update copyright year.
10578         (avxcvtvecmode): Remove.
10579         (sse_movhlps): Merge with *avx_movhlps.
10580         (sse_movlhps): Merge with *avx_movlhps.
10581         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10582         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10583         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10584         (sse_loadhps): Merge with *avx_loadhps.
10585         (sse_storelps): Merge with *avx_storelps.
10586         (sse_loadlps): Merge with *avx_loadlps.
10587         (sse_movss): Merge with *avx_movss.
10588         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10589         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10590         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10591         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10592         (vec_set<mode>_0): Ditto.
10593         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10594         (sse4_1_insertps): Merge with *avx_insertps.
10595         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10596         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10597         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10598         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10599         (sse2_storehpd): Merge with *avx_storehpd.
10600         (sse2_loadhpd): Merge with *avx_loadhpd.
10601         (sse2_loadlpd): Merge with *avx_loadlpd.
10602         (sse2_movsd): Merge with *avx_movsd.
10603         (*vec_concatv2df): Merge with *vec_concatv2df.
10604
10605 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
10606
10607         PR debug/48343
10608         * combine.c (combine_instructions): Add last_combined_insn,
10609         update it if insn is after it, pass it to all try_combine calls.
10610         (try_combine): Add last_combined_insn parameter, pass it instead of
10611         i3 to propagate_for_debug.
10612
10613 2011-04-07  Nick Clifton  <nickc@redhat.com>
10614
10615         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10616         to handle MDR <-> data register transfers.
10617         (movhi_internal): Likewise.
10618
10619 2011-04-07  Alan Modra  <amodra@gmail.com>
10620
10621         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10622         previous stack info.
10623
10624 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10625
10626         PR target/43920
10627         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
10628         flow_find_cross_jump.  Swap variables to implement backward replacement.
10629         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10630
10631 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10632
10633         PR target/43920
10634         * cfgcleanup.c (walk_to_nondebug_insn): New function.
10635         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
10636         and bb2.
10637         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10638         src1 or src2.  Redirect edges to the last basic block.  Update
10639         frequency and count on multiple basic blocks in case of fallthru.
10640
10641 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10642
10643         PR target/43920
10644         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10645         function.
10646         (old_insns_match_p): Change return type.  Replace return false/true
10647         with return dir_none/dir_both.  Use can_replace_by.
10648         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
10649         direction from dir_p.  Register replacement direction in dir, last_dir
10650         and afterlast_dir.  Handle new return type of old_insns_match_p using
10651         merge_dir.  Return replacement direction in dir_p.
10652         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10653         return type of old_insns_match_p.
10654         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10655         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10656         flow_find_cross_jump.
10657         * basic-block.h (enum replace_direction): New type.
10658         (flow_find_cross_jump): Add parameter to declaration.
10659
10660 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
10661
10662         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10663         (AVXMODEDCVTPS2DQ): Ditto.
10664         (VEC_FLOAT_MODE): Ditto.
10665         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
10666         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10667         (<any_logic:code><mode>3): Use VF mode iterator.
10668         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10669         Use VF mode iterator.
10670         (copysign<mode>3): Use VF mode iterator.
10671         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
10672         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10673         (*<any_logic:code><MODEF:mode>3): Merge with
10674         *avx_<any_logic:code><MODEF:mode>3.
10675         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10676         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10677         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10678         (avx_cvtdq2ps<avxmodesuffix>): Remove.
10679         (sse2_cvtdq2ps): Use %v modifier.
10680         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10681         (avx_cvtps2dq<avxmodesuffix>): Remove.
10682         (sse2_cvtps2dq): Use %v modifier.
10683         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10684         (avx_cvttps2dq<avxmodesuffix>): Remove.
10685         (sse2_cvttps2dq): Use %v modifier.
10686         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10687         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10688         (sse2_cvtsd2siq): Fix insn template.
10689         (sse2_cvtsd2siq_2): Ditto.
10690         (sse2_cvttsd2siq): Ditto.
10691         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10692         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10693
10694 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
10695
10696         * gcov-io.c: Use GCC Runtime Library Exception.
10697
10698 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
10699
10700         PR debug/48466
10701         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10702         as base_reg whatever register reg has been eliminated to, instead
10703         of hardcoding STACK_POINTER_REGNUM.
10704
10705 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
10706
10707         * doc/tm.texi.in: Document C target hooks as separate from general
10708         target hooks.
10709         * doc/tm.texi: Regenerate.
10710         * genhooks.c (struct hook_desc): Add docname field.
10711         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
10712         docname field.
10713         (hook_array): Include c-target.def.
10714         (emit_documentation): Use docname field in output.
10715         (emit_init_macros): Take docname argument.  Only emit definitions
10716         for hooks matching docname.
10717         (main): Expect additional arguments in all cases.  Pass argument
10718         to emit_init_macros.
10719         * target.def: Move initial macro definitions and comments to
10720         target-hooks-macros.h.
10721         (gcc_targetcm): Move to c-family/c-target.def.
10722         * target.h (targetcm): Move declaration to c-family/c-target.h.
10723         * targhooks.c (default_handle_c_option): Move to
10724         c-family/c-opts.c.
10725         * targhooks.h (default_handle_c_option): Move declaration to
10726         c-family/c-common.h.
10727         * target-hooks-macros.h: New file.
10728         * config.gcc (target_has_targetcm): Define and use to add to
10729         c_target_objs and cxx_target_objs.
10730         * config/default-c.c: New file.
10731         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10732         of target.h and target-def.h.
10733         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10734         (darwin_objc_construct_string, darwin_cfstring_ref_p,
10735         darwin_check_cfstring_format_arg): Make static.
10736         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10737         TARGET_STRING_OBJECT_REF_TYPE_P,
10738         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10739         * config/darwin-protos.h (darwin_objc_construct_string,
10740         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10741         declare.
10742         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10743         TARGET_STRING_OBJECT_REF_TYPE_P,
10744         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10745         * config/t-darwin (darwin-c.o): Update dependencies.
10746         * system.h (TARGET_HAS_TARGETCM): Poison.
10747         * Makefile.in (TARGET_H): Update.
10748         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10749         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10750         (default-c.o): New target.
10751         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
10752         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
10753         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
10754         c-target.def.
10755         (build/genhooks.o): Update dependencies.
10756
10757 2011-04-06  Richard Guenther  <rguenther@suse.de>
10758
10759         * ipa-inline.c (enum inlining_mode): Remove.
10760         (cgraph_flatten): Use some other token.
10761         (cgraph_edge_early_inlinable_p): New function, split out from ...
10762         (cgraph_perform_always_inlining): New function, split out from ...
10763         (cgraph_decide_inlining_incrementally): ... here.
10764         (cgraph_mark_inline_edge): Adjust.
10765         (cgraph_early_inlining): Re-structure.
10766         (pass_early_inline): Require SSA form.
10767
10768 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
10769             Julian Brown  <julian@codesourcery.com>
10770             Mark Shinwell  <shinwell@codesourcery.com>
10771
10772         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10773         LO_REGS only for Thumb-1.
10774         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10775         be used in short instructions when optimising for size on Thumb-2.
10776
10777 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
10778
10779         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10780         associated with user returns to be preserved.
10781
10782 2011-04-06  Tristan Gingold  <gingold@adacore.com>
10783
10784         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10785         symbol_queue_size, DBXOUT_DECR_NESTING,
10786         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10787         if XCOFF_DEBUGGING_INFO.
10788
10789 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
10790
10791         * config/i386/i386.md (attribute isa): New.
10792         (attribute enabled): New.
10793         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10794         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10795         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10796         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10797         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10798         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10799         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10800         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10801
10802         * config/i386/sse.md (VF): New mode iterator.
10803         (VF1): Ditto.
10804         (VF2): Ditto.
10805         (VF_128): Ditto.
10806         (SSEMODEF4): Remove.
10807         (attribute sse): Handle V8SF and V4DF modes.
10808         (<absneg:code><mode>2): Use VF mode iterator.
10809         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
10810         mode iterator.
10811         (<plusminus_insn><mode>3): Use VF mode iterator.
10812         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10813         Use VF mode iterator.
10814         (<sse>_vm<plusminus_insn><mode>3): Merge with
10815         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
10816         (mul<mode>3): Use VF mode iterator.
10817         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
10818         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
10819         mode iterator.
10820         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10821         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10822         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
10823         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
10824         mode iterator.
10825         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10826         Use VF1 mode iterator.
10827         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10828         (sqrt<VF2:mode>2): New expander.
10829         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10830         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10831         and sqrtv2df2.  Use VF mode iterator.
10832         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
10833         mode iterator.
10834         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10835         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10836         Use VF1 mode iterator.
10837         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10838         (<smaxmin:code><mode>3): Use VF mode iterator.
10839         (*<smaxmin:code><mode>3_finite): Merge with
10840         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
10841         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10842         (<sse>_vm<smaxmin:code><mode>2): Merge with
10843         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
10844         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
10845         mode iterator.
10846         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
10847         mode iterator.
10848         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10849         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10850         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10851         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10852         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
10853         VF mode iterator.
10854         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10855         Use VF_128 mode iterator.
10856         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
10857         mode iterator.
10858         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
10859         VF_128 mode iterator.
10860         (vcond<mode>): Use VF mode iterator.
10861         * config/i386/predicates.md (sse_comparison_operator): Merge with
10862         avx_comparison_float_operator.  Do not declare as special_predicate.
10863         * config/i386/i386.c (struct builtin_description): Update for renamed
10864         compare patterns.
10865         (ix86_expand_args_builtin): Ditto.
10866         (ix86_expand_sse_compare_mask): Ditto.
10867
10868 2011-04-06  Richard Guenther  <rguenther@suse.de>
10869
10870         * tree-inline.c (estimate_num_insns): For calls simply account
10871         for all passed arguments and a used return value.
10872
10873 2011-04-06  Richard Guenther  <rguenther@suse.de>
10874
10875         PR tree-optimization/47663
10876         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10877         call_stmt_time fields.
10878         (cgraph_edge_inlinable_p): Declare.
10879         (cgraph_edge_recursive_p): New inline function.
10880         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10881         (cgraph_clone_edge): Copy it.
10882         * ipa-inline.c (cgraph_estimate_edge_time): New function.
10883         Account for call stmt time.
10884         (cgraph_estimate_time_after_inlining): Take edge argument.
10885         (cgraph_estimate_edge_growth): Account call stmt size.
10886         (cgraph_estimate_size_after_inlining): Take edge argument.
10887         (cgraph_mark_inline_edge): Adjust.
10888         (cgraph_check_inline_limits): Likewise.
10889         (cgraph_recursive_inlining_p): Remove.
10890         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10891         (cgraph_decide_recursive_inlining): Take edge argument and
10892         adjust.
10893         (cgraph_decide_inlining_of_small_functions): Do not avoid
10894         diags for recursive inlining here.
10895         (cgraph_flatten): Adjust.
10896         (cgraph_decide_inlining_incrementally): Likewise.
10897         (estimate_function_body_sizes): Remove call cost handling.
10898         (compute_inline_parameters): Initialize caller edge call costs.
10899         (cgraph_estimate_edge_growth): New function.
10900         (cgraph_estimate_growth): Use it.
10901         (cgraph_edge_badness): Likewise.
10902         (cgraph_check_inline_limits): Take an edge argument.
10903         (cgraph_decide_inlining_of_small_functions): Adjust.
10904         (cgraph_decide_inlining): Likewise.
10905         * tree-inline.c (estimate_num_insns): Only account for call
10906         return value if it is used.
10907         (expand_call_inline): Avoid diagnostics on recursive inline
10908         functions here.
10909         * lto-cgraph.c (lto_output_edge): Output edge call costs.
10910         (input_edge): Input edge call costs.
10911
10912 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10913
10914         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10915
10916 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
10917
10918         * doc/invoke.texi (Spec Files): Fix typo.
10919
10920 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
10921
10922         * profile.c (branch_prob): Move declaration of local variable.  Remove
10923         obsolete ??? comment.  Expand the location explicitly instead of using
10924         the LOCATION_FILE and LOCATION_LINE macros.
10925
10926 2011-04-06  Wei Guozhi  <carrot@google.com>
10927
10928         PR target/47855
10929         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10930         (arm_cond_branch): Likewise.
10931         (arm_cond_branch_reversed): Likewise.
10932         (arm_jump): Likewise.
10933         (push_multi): Likewise.
10934         * config/arm/constraints.md (Py): New constraint.
10935
10936 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10937
10938         PR bootstrap/48471
10939         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10940         Move these...
10941         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10942         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10943         #ifdef DBX_DEBUGGING_INFO.
10944
10945 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
10946
10947         PR bootstrap/48403
10948         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10949         if old and new states differ.
10950
10951 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
10952
10953         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10954         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10955         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10956         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10957         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10958         mcfv4e): Use Alias.
10959         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10960         ColdFire options to -mcpu= options.
10961
10962 2011-04-05  Jeff Law  <law@redhat.com>
10963
10964         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10965         check if BB is a successor of LOOP->header and return
10966         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10967
10968 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
10969
10970         * cprop.c (struct reg_use): Remove.
10971         (reg_use_table): Make an array of RTX.
10972         (find_used_regs, constprop_register, local_cprop_pass,
10973         bypass_block): Simplify users of reg_use_table.
10974         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
10975         on one of the uses found by find_used_regs.
10976
10977 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10978
10979         PR bootstrap/48469
10980         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10981         declaration.
10982
10983 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10984
10985         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10986         as an rtx.
10987         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10988
10989 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
10990
10991         PR middle-end/48441
10992         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10993
10994 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
10995
10996         * combine.c: Include obstack.h.
10997         (struct insn_link): Define.
10998         (uid_log_links): Adjust type.
10999         (FOR_EACH_LOG_LINK): New macro.
11000         (insn_link_obstack): Declare.
11001         (alloc_insn_link): Define.
11002         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
11003         type of link variables.
11004         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11005         (try_combine, record_promoted_values, distribute_notes): Likewise.
11006         (distribute_links): Likewise.  Tweak prototype.
11007         (clear_log_links): Delete.
11008         (adjust_for_new_dest): Call alloc_insn_link.
11009         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11010
11011 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11012
11013         * gcse.c (modify_mem_list): Convert to an array of VECs.
11014         (canon_modify_mem_list, compute_transp): Tweak formatting.
11015         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
11016         (load_killed_in_block_p): Likewise.
11017         (record_last_mem_set_info): Likewise.
11018         (clear_modify_mem_tables): Likewise.
11019
11020 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11021
11022         PR middle-end/48461
11023         * function.c (emit_use_return_register_into_block): Only define if
11024         HAVE_return.
11025
11026 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
11027
11028         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11029
11030 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
11031
11032         * config/rx/rx-opts.h: New.
11033         * config/rx/rx.c (rx_cpu_type): Remove.
11034         (rx_handle_option): Don't assert that global structures are in
11035         use.  Access variables via opts pointer.  Defer most handling of
11036         OPT_mint_register_.  Use error_at.
11037         (rx_option_override): Handle deferred OPT_mint_register_ here.
11038         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11039         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11040         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11041         (rx_cpu_types): New Enum and EnumValue entries.
11042         (mint-register=): Use Defer and use Var accordingly.
11043
11044 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11045
11046         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11047         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11048         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11049         Move these...
11050         (debug_free_queue, debug_nesting, symbol_queue_index):
11051         ...and these...
11052         * dbxout.c: ...to here.  Make static.
11053
11054 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11055
11056         * gcse.c (modify_pair): Define.  Define a VEC of it.
11057         (canon_modify_mem_list): Convert to an array of VECs.
11058         (free_insn_expr_list_list): Delete.
11059         (clear_modify_mem_tables): Call VEC_free instead.
11060         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11061         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11062         (canon_list_insert, compute_transp): Likewise.
11063
11064 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11065
11066         PR target/43920
11067         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11068         for size.
11069
11070 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11071
11072         PR target/43920
11073         * function.c (emit_use_return_register_into_block): New function.
11074         (thread_prologue_and_epilogue_insns): Use
11075         emit_use_return_register_into_block.
11076
11077 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11078
11079         PR target/43920
11080         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11081         insn.
11082
11083 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11084
11085         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11086
11087 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
11088
11089         * config/arm/arm.md (define_constants for unspec): Replace with
11090         define_c_enum.
11091         (define_constants for unspecv): Replace with define_c_enum.
11092         * config/arm/neon.md (define_constants for unspec): Replace with
11093         define_c_enum.
11094
11095 2011-04-04  Richard Henderson  <rth@redhat.com>
11096
11097         PR bootstrap/48400
11098         * dwarf2out.c (output_line_info): Always emit line info from
11099         at least one section.
11100         (dwarf2out_init): Create text_section_line_info here ...
11101         (set_cur_line_info_table): ... not here.
11102
11103 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
11104
11105         PR target/48380
11106         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11107         not called.
11108
11109         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11110
11111 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
11112
11113         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11114         (expr_equiv_p): Remove.
11115         (insert_set_in_table): Look at <dest, src> pair instead of expr.
11116         (hash_scan_set): Update call to insert_set_in_table.
11117         (dump_hash_table): Dump <dest, src> pair.
11118         (lookup_set): Simplify.  Lookup <dest, src> pair.
11119         (compute_transp): Remove, fold heavily simplified code into...
11120         (compute_local_properties): ...here.  Expect COMP and TRANSP
11121         unconditionally.
11122         (find_avail_set): Take set directly from struct expr.
11123         (find_bypass-set): Likewise.
11124         (bypass_block): Likewise.
11125         (cprop_insn): Likewise.  Remove redundant INSN_P test.
11126
11127         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11128         checks on form of COND from find_implicit_sets to here.
11129         (find_implicit_sets): Cleanup control flow. Split critical edges
11130         if it exposes implicit sets.  Allocate/resize implicit_sets as
11131         necessary.
11132         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11133         changed something.  Run df_analyze after find_implicit_sets if any
11134         edges were split.  Do not allocate implicit_sets here.
11135
11136         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11137         (gcse_obstack): Renamed to cprop_obstack.
11138         (GNEW, GNEWVEC, GNEWVAR): Remove.
11139         (gmalloc): Remove.
11140         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11141         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11142         (gcse_alloc): Likewise, and rename to cprop_alloc.
11143         (alloc_gcse_men, free_gcse_mem): Remove.
11144         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11145         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11146         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11147
11148         * cprop.c (oprs_not_set_p): Remove.
11149         (mark_set, mark_clobber): Remove.
11150         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11151         (reg_not_set_p): New function.
11152         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11153         (cprop_insn): Likewise.
11154         (cprop_jump): Use FOR_EACH_EDGE.
11155
11156 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
11157
11158         PR bootstrap/48403
11159         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11160         (rank_for_schedule): Use scheduled_insns vector instead of
11161         last_scheduled_insn.
11162         (ok_for_early_queue_removal): Likewise.
11163         (queue_to_ready): Search forward in nonscheduled_insns_begin if
11164         we have a dbg_cnt.
11165         (choose_ready): Likewise.
11166         (commit_schedule): Use VEC_iterate.
11167         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
11168         a dbg_cnt, use it and ensure the first insn is in the ready list.
11169         (haifa_sched_init): Allocate scheduled_insns.
11170         (sched_extend_ready_list): Don't allocate it; reserve space.
11171         (haifa_sched_finish): Free it.
11172
11173 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11174
11175         * optc-gen.awk: Always remove type from Variable entry before
11176         recording in var_seen.
11177
11178 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
11179
11180         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11181         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11182         call to tidy_fallthru_edges.
11183
11184 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11185
11186         * doc/options.texi (ToLower): Document.
11187         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11188         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11189         * opts.h (cl_option): Add cl_tolower field.
11190         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11191         arguments with lowercase strings.
11192         * config/rx/rx.opt (mcpu=): Add ToLower.
11193         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11194         argument.
11195
11196 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11197
11198         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11199
11200 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11201
11202         * config/vax/vax.c: Include reload.h.
11203
11204 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
11205
11206         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11207         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11208         (sparc_preferred_reload_class): New function.
11209
11210 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
11211
11212         PR debug/48401
11213         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11214         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11215
11216 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
11217
11218         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11219         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11220
11221 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
11222
11223         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11224         (ASM_OUTPUT_ALIGNED_BSS): Define.
11225
11226 2011-04-03  Michael Matz  <matz@suse.de>
11227
11228         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11229         and next_slot members.
11230         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11231         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11232         (lto_streamer_cache_append): Declare.
11233         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11234         unsigned index, remove offset parameter, ensure that we append
11235         or update existing entries.
11236         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11237         parameter, update next_slot for append.
11238         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11239         parameter.
11240         (lto_streamer_cache_insert_at): Likewise.
11241         (lto_streamer_cache_append): New function.
11242         (lto_streamer_cache_lookup): Use unsigned index.
11243         (lto_streamer_cache_get): Likewise.
11244         (lto_record_common_node): Don't test tree_node_can_be_shared.
11245         (preload_common_node): Adjust call to lto_streamer_cache_insert.
11246         (lto_streamer_cache_delete): Don't free offsets member.
11247         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11248         (lto_output_string_with_length): Use lto_output_data_stream.
11249         (lto_output_tree_header): Remove ix parameter, don't write it.
11250         (lto_output_builtin_tree): Likewise.
11251         (lto_write_tree): Adjust callers to above, don't track and write
11252         offset, write unsigned index.
11253         (output_unreferenced_globals): Don't emit all global vars.
11254         (write_global_references): Use unsigned indices.
11255         (lto_output_decl_state_refs): Likewise.
11256         (write_symbol): Likewise.
11257         * lto-streamer-in.c (lto_input_chain): Move earlier.
11258         (input_function): Use unsigned index.
11259         (input_alias_pairs): Don't read and then ignore all global vars.
11260         (lto_materialize_tree): Remove ix_p parameter, don't read index,
11261         don't pass it back, use lto_streamer_cache_append.
11262         (lto_register_var_decl_in_symtab): Use unsigned index.
11263         (lto_register_function_decl_in_symtab): Likewise.
11264         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11265         index.
11266         (lto_get_builtin_tree): Don't read index, use
11267         lto_streamer_cache_append.
11268         (lto_read_tree): Adjust call to lto_materialize_tree.
11269
11270         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11271         don't use function calls in arguments to MIN.
11272
11273         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11274         twice.
11275
11276         * gimple.c (gimple_type_leader_entry): Mark deletable.
11277
11278 2011-04-03  Alan Modra  <amodra@gmail.com>
11279
11280         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11281
11282 2011-04-03  Michael Matz  <matz@suse.de>
11283
11284         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11285         an integer.
11286         * tree.h (tree_decl_non_common.vindex): Adjust comment.
11287
11288 2011-04-03  Michael Matz  <matz@suse.de>
11289
11290         * cgraphbuild.c (record_reference): Canonicalize constructor values.
11291         * gimple-fold.c (canonicalize_constructor_val): Accept being called
11292         without function context.
11293         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11294         current_function_decl and cfun.
11295
11296 2011-04-03  Michael Matz  <matz@suse.de>
11297
11298         * tree.c (decl_init_priority_insert): Don't create entry for
11299         default priority.
11300         (decl_fini_priority_insert): Ditto.
11301         (fields_compatible_p, find_compatible_field): Remove.
11302         * tree.h (fields_compatible_p, find_compatible_field): Remove.
11303         * gimple.c (gimple_compare_field_offset): Adjust block comment.
11304
11305 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
11306
11307         * combine.c (try_combine): Remove useless local variable.
11308
11309 2011-04-03  Richard Guenther  <rguenther@suse.de>
11310             Ira Rosen  <ira.rosen@linaro.org>
11311
11312         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11313         non-variable offsets and compare the remaining bases of the two
11314         accesses instead of looking for exact same data-ref.
11315
11316 2011-04-02  Kai Tietz  <ktietz@redhat.com>
11317
11318         PR target/48416
11319         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11320
11321         * i386.c (ix86_is_msabi_thiscall): New helper function.
11322         (ix86_is_type_thiscall): New helper function.
11323         (ix86_comp_type_attributes): Handle thiscall for method-functions
11324         special.
11325         (init_cumulative_args): Likewise.
11326         (find_drap_reg): Likewise.
11327         (ix86_static_chain): Likewise.
11328         (x86_this_parameter): Likewise.
11329         (x86_output_mi_thunk): Likewise.
11330
11331 2011-04-01  Olivier Hainque  <hainque@adacore.com>
11332             Nicolas Setton  <setton@adacore.com>
11333             Eric Botcazou  <ebotcazou@adacore.com>
11334
11335         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11336         (add_gnat_descriptive_type_attribute): New function.
11337         (gen_array_type_die): Call it.
11338         (gen_enumeration_type_die): Likewise.
11339         (gen_struct_or_union_type_die): Likewise.
11340         (modified_type_die): Likewise.
11341         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11342         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11343         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11344
11345 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11346
11347         PR bootstrap/48148
11348         * dwarf2out.c (resolve_addr): Don't call force_decl_die
11349         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11350
11351         Revert:
11352         2011-03-17  Richard Guenther  <rguenther@suse.de>
11353
11354         PR bootstrap/48148
11355         * lto-cgraph.c (input_overwrite_node): Clear the abstract
11356         origin for decls in other ltrans units.
11357         (input_varpool_node): Likewise.
11358
11359 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11360
11361         PR middle-end/48335
11362         * expr.c (expand_assignment): Handle all possibilities
11363         if TO_RTX is CONCAT.
11364         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11365         (store_split_bit_field): If SUBREG_REG (op0) or
11366         op0 itself has smaller mode than word, return it
11367         for offset 0 and const0_rtx for out-of-bounds stores.
11368         If word is const0_rtx, skip it.
11369
11370 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
11371
11372         * config/h8300/h8300.c (print_operand_address): Rename to...
11373         (h8300_print_operand_address): ...this. Make static. Adjust comments.
11374         Call h8300_print_operand and h8300_print_operand_address instead of
11375         print_operand and print_operand_address. Declare.
11376         (print_operand): Renake to...
11377         (h8300_print_operand): ...this. Make static. Adjust comments.
11378         Call h8300_print_operand instead of print_operand. Declare.
11379         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11380         (h8300_register_move_cost): Likewise.
11381         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11382         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11383         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11384         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11385         * config/h8300/h8300-protos.h (print_operand): Delete.
11386         (print_operand_address): Delete.
11387
11388 2011-04-01  Richard Henderson  <rth@redhat.com>
11389
11390         PR 48400
11391         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11392         in strict mode before dwarf4.  Re-order tests to early out
11393         before switching sections.
11394
11395 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
11396
11397         * config/h8300/constraints.md: New file.
11398         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
11399         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11400         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11401         * config/h8300/predicates.md (bit_operand): Likewise.
11402         (incdec_operand): Use satisfies_constraint_M and
11403         satisfies_constraint_O.  Don't use C code block.
11404         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11405         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11406         (compute_mov_length): Use satisfies_constraint_G.
11407         (fix_bit_operand): Use satisfies_constraint_U.
11408         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11409         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11410         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11411         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11412         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11413         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11414         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11415         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11416         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11417         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11418         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11419         (EXTRA_MEMORY_CONSTRAINT): Delete.
11420
11421 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
11422             Michael Meissner  <meissner@linux.vnet.ibm.com>
11423
11424         PR target/48262
11425         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11426         operands, as per the specifications.
11427
11428         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11429         (vec_extract_evenv4sf): Ditto.
11430         (vec_extract_evenv8hi): Ditto.
11431         (vec_extract_evenv16qi): Ditto.
11432         (vec_extract_oddv4si): Ditto.
11433
11434 2011-03-31  Mark Wielaard  <mjw@redhat.com>
11435
11436         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11437         high_pc attribute if the CU has no associated code. Only output
11438         DW_AT_entry_pc for CU if not generating strict dwarf and
11439         dwarf_version < 4.
11440
11441 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
11442
11443         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11444         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11445         out of ...
11446         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11447         * final.c (final_start_function): Call the new function rather
11448         than using a NULL argument for dwarf2out_frame_debug.
11449
11450         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11451         that contains the prologue.
11452
11453         * haifa-sched.c (queue_insn): New arg REASON.  All callers
11454         changed.  Print it in debugging output.
11455
11456         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11457
11458         * sched-ebb.c (begin_schedule_ready): Remove second argument.
11459         Split most of the code into...
11460         (begin_move_insn): ... here.  New function.
11461         (ebb_sched_info): Add a pointer to it.
11462         * haifa-sched.c (scheduled_insns): New static variable.
11463         (sched_extend_ready_list): Allocate it.
11464         (schedule_block): Use it to record the order of scheduled insns.
11465         Perform RTL changes to move insns only after all scheduling
11466         decisions have been made.
11467         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11468         begin_move_insn field.
11469         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11470         * sched-int.h (struct haifa_sched_info): Remove second argument
11471         from begin_schedule_ready hook.  Add new member begin_move_insn.
11472         * sched-rgn.c (begin_schedule_ready): Remove second argument.
11473         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11474
11475         * haifa-sched.c (prune_ready_list): New function, broken out of
11476         schedule_block.
11477         (schedule_block): Use it.
11478
11479 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11480
11481         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11482
11483 2011-04-01  Kai Tietz  <ktietz@redhat.com>
11484
11485         * config.gcc (*-*-mingw*): Allow as option the
11486         posix threading model.
11487         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
11488         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11489         definition.
11490         (CPP_SPEC): Add pthread/no-pthread handling.
11491         (LIB_SPEC): Likewise.
11492         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11493         (LIB_SPEC): Likewise.
11494         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11495         flag to pass -pthread option for shared libgcc build.
11496         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11497         for shared libgcc build.
11498         * config/i386/t-mingw-pthread: New file.
11499         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11500         New define to enable use of library pthread by default.
11501         * config/i386/mingw.opt (pthread): New driver option.
11502         (no-pthread): New driver option.
11503         * config/i386/cygming.opt: Make sure trailing empty line is retained.
11504         * config/i386/mingw-w64.opt: Likewise.
11505
11506 2011-04-01  Gary Funck  <gary@intrepid.com>
11507
11508         * c-decl.c (grokdeclarator): Fix formatting.
11509
11510 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11511
11512         * expr.c (emit_block_move_via_movmem): Use n_generator_args
11513         instead of n_operands.
11514         (set_storage_via_setmem): Likewise.
11515         * optabs.c (maybe_gen_insn): Likewise.
11516         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11517         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11518         (mips_expand_builtin_direct): Likewise.
11519         * config/spu/spu.c (expand_builtin_args): Likewise.
11520
11521 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11522
11523         * recog.h (insn_data_d): Add n_generator_args.
11524         * genoutput.c (data): Likewise.
11525         (output_insn_data): Print it.
11526         (max_opno, num_dups): Delete.
11527         (scan_operands): Just fill in "d->operand[...]".
11528         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11529
11530 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11531
11532         * gensupport.h (pattern_stats): New structure.
11533         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11534         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11535         (max_operand_1, max_operand_vec): Delete.
11536         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11537
11538 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
11539
11540         * emit-rtl.c (emit_pattern_after_setloc): New function.
11541         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11542         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11543         (emit_pattern_after): New function.
11544         (emit_insn_after, emit_jump_insn_after): Call it.
11545         (emit_call_insn_after, emit_debug_insn_after): Likewise.
11546         (emit_pattern_before_setloc): New function.
11547         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11548         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11549         Likewise.
11550         (emit_pattern_before): New function.
11551         (emit_insn_before, emit_jump_insn_before): Call it.
11552         (emit_call_insn_before, emit_debug_insn_before): Likewise.
11553
11554 2011-03-31  Richard Henderson  <rth@redhat.com>
11555
11556         * dwarf2out.c (dw_separate_line_info_ref): Remove.
11557         (dw_separate_line_info_entry): Remove.
11558         (enum dw_line_info_opcode): New.
11559         (dw_line_info_entry): Use it.
11560         (dw_line_info_table, dw_line_info_table_p): New.
11561         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11562         (line_info_table, line_info_label_num): Remove.
11563         (line_info_table_in_use): Remove.
11564         (separate_line_info_table): Remove.
11565         (separate_line_info_table_allocated): Remove.
11566         (separate_line_info_table_in_use): Remove.
11567         (LINE_INFO_TABLE_INCREMENT): Remove.
11568         (line_info_label_num): New.
11569         (cur_line_info_table): New.
11570         (text_section_line_info, cold_text_section_line_info): New.
11571         (separate_line_info): New.
11572         (SEPARATE_LINE_CODE_LABEL): Remove.
11573         (print_dwarf_line_table): Remove.
11574         (debug_dwarf): Don't dump it.
11575         (output_one_line_info_table): New.
11576         (output_line_info): Use it.
11577         (new_line_info_table): New.
11578         (set_cur_line_info_table): New.
11579         (dwarf2out_switch_text_section): Use it.
11580         (dwarf2out_begin_function): Likewise.
11581         (push_dw_line_info_entry): New.
11582         (dwarf2out_source_line): Rewrite for new line info tables.
11583         (dwarf2out_init): Remove dead initailizations.
11584
11585 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11586
11587         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
11588         various flags.
11589         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11590         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11591         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11592         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11593         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11594         * opt-functions.awk (flag_init, switch_bit_fields): New.
11595         (switch_flags): Don't handle flags moved to bit-fields.  Don't
11596         generate CL_MISSING_OK or CL_SAVE.
11597         * optc-gen.awk: Update to generate bit-field output as well as
11598         flags field.
11599         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11600         bit-field instead of CL_REJECT_DRIVER flag.
11601         * opts-common.c (generate_canonical_option,
11602         decode_cmdline_option): Use bit-fields instead of CL_* flags.
11603         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11604         instead of CL_REJECT_NEGATIVE flag.
11605         * toplev.c (print_switch_values): Use cl_report bit-field instead
11606         of CL_REPORT flag.
11607
11608 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11609
11610         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11611         a zero minimum index only if it is redundant.
11612
11613 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
11614
11615         PR rtl-optimization/48381
11616         * ira-color.c (assign_hard_reg): Use hard reg set intersection
11617         instead of ira_class_hard_reg_index for calculating conflicting
11618         hard registers.
11619
11620 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
11621
11622         * cprop.c: Clean up hash table building.
11623         (reg_avail_info): Remove.
11624         (oprs_available_p): Remove.
11625         (record_last_reg_set_info): Remove.
11626         (record_last_set_info): Remove.
11627         (reg_available_p): New function.
11628         (gcse_constant_p): Do not treat unfolded conditions as constants.
11629         (make_set_regs_unavailable): New function.
11630         (hash_scan_set): Simplify with new reg_available_p.
11631         (compute_hash_table_work): Traverse insns stream only once.
11632         Do not compute reg_avail_info. Traverse insns in reverse order.
11633         Record implicit sets after recording explicit sets from the block.
11634
11635 2011-03-31  Michael Matz  <matz@suse.de>
11636
11637         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11638
11639 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
11640
11641         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11642         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11643         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11644         (h8300_mode_dependent_address_p): New function.
11645         (h8300_get_index): Make static.
11646
11647 2011-03-31  Jeff Law  <law@redhat.com>
11648
11649         * reload1.c (elimination_effects): Fix typo in recent change.
11650
11651         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11652         typo potentially leading to null pointer dereference.
11653
11654         * caller-save.c (new_saved_hard_reg): Eliminate return value.
11655         (setup_save_areas): Corresponding changes to avoid useless
11656         assignments.
11657
11658         * jump.c (reversed_comparison_code_parts): Avoid successive return
11659         statements when REVERSE_CONDITION is defined.
11660
11661         * expr.c (expand_assignment): Avoid useless assignments.
11662         (expand_expr_real_1): Likewise.
11663         (expand_expr_real_2): Avoid useless statements.
11664
11665         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11666
11667         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11668
11669         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11670         statements.
11671
11672         * stmt.c (expand_expr_stmt): Avoid useless assignment.
11673
11674 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11675
11676         PR target/47109
11677         * doc/tm.texi.in (TARGET_VERSION): Remove.
11678         * doc/tm.texi: Regenerate.
11679         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11680         * collect2.c (main): Don't use TARGET_VERSION.
11681         * mips-tdump.c (main): Don't use TARGET_VERSION.
11682         * mips-tfile.c (main): Don't use TARGET_VERSION.
11683         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11684         * config/rs6000/vxworksae.h: Remove.
11685         * config/alpha/alpha.h (TARGET_VERSION): Remove.
11686         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11687         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11688         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11689         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11690         * config/arm/arm.h (TARGET_VERSION): Remove.
11691         * config/arm/coff.h (TARGET_VERSION): Remove.
11692         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11693         * config/arm/elf.h (TARGET_VERSION): Remove.
11694         * config/arm/freebsd.h (TARGET_VERSION): Remove.
11695         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11696         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11697         * config/arm/pe.h (TARGET_VERSION): Remove.
11698         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11699         * config/arm/semi.h (TARGET_VERSION): Remove.
11700         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11701         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11702         * config/arm/vxworks.h (TARGET_VERSION): Remove.
11703         * config/avr/avr.h (TARGET_VERSION): Remove.
11704         * config/bfin/bfin.h (TARGET_VERSION): Remove.
11705         * config/fr30/fr30.h (TARGET_VERSION): Remove.
11706         * config/frv/frv.h (TARGET_VERSION): Remove.
11707         * config/h8300/h8300.h (TARGET_VERSION): Remove.
11708         * config/i386/cygwin.h (TARGET_VERSION): Remove.
11709         * config/i386/darwin.h (TARGET_VERSION): Remove.
11710         * config/i386/darwin64.h (TARGET_VERSION): Remove.
11711         * config/i386/djgpp.h (TARGET_VERSION): Remove.
11712         * config/i386/freebsd.h (TARGET_VERSION): Remove.
11713         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11714         * config/i386/gnu.h (TARGET_VERSION): Remove.
11715         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11716         * config/i386/i386elf.h (TARGET_VERSION): Remove.
11717         * config/i386/linux.h (TARGET_VERSION): Remove.
11718         * config/i386/linux64.h (TARGET_VERSION): Remove.
11719         * config/i386/lynx.h (TARGET_VERSION): Remove.
11720         * config/i386/mingw32.h (TARGET_VERSION): Remove.
11721         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11722         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11723         * config/i386/netware.h (TARGET_VERSION): Remove.
11724         * config/i386/nto.h (TARGET_VERSION): Remove.
11725         * config/i386/openbsd.h (TARGET_VERSION): Remove.
11726         * config/i386/vxworks.h (TARGET_VERSION): Remove.
11727         * config/ia64/elf.h (TARGET_VERSION): Remove.
11728         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11729         * config/ia64/hpux.h (TARGET_VERSION): Remove.
11730         * config/ia64/linux.h (TARGET_VERSION): Remove.
11731         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11732         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11733         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11734         * config/lm32/lm32.h (TARGET_VERSION): Remove.
11735         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11736         * config/m32c/m32c.h (TARGET_VERSION): Remove.
11737         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11738         * config/m32r/m32r.h (TARGET_VERSION): Remove.
11739         * config/m68k/linux.h (TARGET_VERSION): Remove.
11740         * config/m68k/m68k.h (TARGET_VERSION): Remove.
11741         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11742         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11743         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11744         * config/mep/mep.h (TARGET_VERSION): Remove.
11745         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11746         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11747         * config/mips/iris6.h (MACHINE_TYPE): Remove.
11748         * config/mips/linux.h (TARGET_VERSION): Remove.
11749         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11750         * config/mips/vxworks.h (TARGET_VERSION): Remove.
11751         * config/mmix/mmix.h (TARGET_VERSION): Remove.
11752         * config/mn10300/linux.h (TARGET_VERSION): Remove.
11753         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11754         * config/pa/pa.h (TARGET_VERSION): Remove.
11755         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11756         * config/picochip/picochip.h (TARGET_VERSION): Remove.
11757         * config/rs6000/aix.h (TARGET_VERSION): Remove.
11758         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11759         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11760         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11761         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11762         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11763         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11764         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11765         * config/rs6000/linux.h (TARGET_VERSION): Remove.
11766         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11767         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11768         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11769         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11770         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11771         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11772         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11773         * config/s390/linux.h (TARGET_VERSION): Remove.
11774         * config/s390/s390.h (TARGET_VERSION): Remove.
11775         * config/s390/tpf.h (TARGET_VERSION): Remove.
11776         * config/score/score.h (TARGET_VERSION): Remove.
11777         * config/sh/linux.h (TARGET_VERSION): Remove.
11778         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11779         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11780         * config/sh/sh.h (TARGET_VERSION): Remove.
11781         * config/sh/sh64.h (TARGET_VERSION): Remove.
11782         * config/sh/superh.h (TARGET_VERSION): Remove.
11783         * config/sh/vxworks.h (TARGET_VERSION): Remove.
11784         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11785         * config/sparc/linux.h (TARGET_VERSION): Remove.
11786         * config/sparc/linux64.h (TARGET_VERSION): Remove.
11787         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11788         TARGET_NAME32, TARGET_NAME): Remove.
11789         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11790         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11791         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11792         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11793         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11794         * config/spu/spu.h (TARGET_VERSION): Remove.
11795         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11796         * config/v850/v850.h (TARGET_VERSION): Remove.
11797         * config/vax/linux.h (TARGET_VERSION): Remove.
11798         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11799         * config/xtensa/elf.h (TARGET_VERSION): Remove.
11800         * config/xtensa/linux.h (TARGET_VERSION): Remove.
11801
11802 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11803
11804         PR target/48142
11805         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11806         frame-related from frame-unrelated adjustments to the stack pointer.
11807
11808 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
11809
11810         * common.opt (fdebug-types-section): Move earlier.
11811         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11812
11813 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
11814
11815         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11816         var.
11817
11818 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
11819
11820         * tree.h (CASE_CHAIN): Define.
11821         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11822         (gimple_redirect_edge_and_branch): Likewise.
11823
11824 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11825
11826         PR middle-end/48367
11827         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11828         calculation.
11829
11830 2011-03-30  Jeff Law  <law@redhat.com>
11831
11832         * PR bootstrap/48371
11833         * reload1.c (reload): Fix botch in last change.
11834
11835         * reload.h (struct reload): Fix typo introduced in last change.
11836
11837 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11838
11839         * config/arm/arm.opt (mhard-float, msoft-float): Mark
11840         Undocumented.  Remove help text.
11841         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11842         -mhard-float.
11843
11844 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11845
11846         * doc/options.texi (NegativeAlias): Document.
11847         (Alias): Mention NegativeAlias.
11848         * opt-functions.awk: Handle NegativeAlias.
11849         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11850         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11851         * opts.h (CL_NEGATIVE_ALIAS): Define.
11852         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11853         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11854         OPT_mspe_.
11855         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11856         Alias entries.
11857         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11858         mno-spe and mno-isel instead of mspe=no and -misel=no.
11859
11860 2011-03-29  Mark Wielaard  <mjw@redhat.com>
11861
11862         * common.opt (fdebug-types-section): New flag.
11863         * doc/invoke.texi: Document new -fno-debug-types-section flag.
11864         * dwarf2out.c (use_debug_types): New define.
11865         (struct die_struct): Mark die_id with GTY desc use_debug_types.
11866         (print_die): Guard output of type unit signatures using
11867         use_debug_types.
11868         (build_abbrev_table): Replace assert of dwarf_version >= 4
11869         with assert on use_debug_types.
11870         (size_of_die): Likewise.
11871         (unmark_dies): Likewise.
11872         (value_format): Decide AT_ref_external form on use_debug_types.
11873         (output_die): Replace dwarf_version version check guard with
11874         use_debug_types where appropriate.
11875         (modified_type_die): Likewise.
11876         (gen_reference_type_die): Likewise.
11877         (dwarf2out_start_source_file): Likewise.
11878         (dwarf2out_end_source_file): Likewise.
11879         (prune_unused_types_walk_attribs): Likewise.
11880         (dwarf2out_finish): Likewise.
11881
11882 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11883
11884         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11885
11886 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
11887
11888         PR rtl-optimization/48332
11889         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11890         mode of input operand N and modeN to its actual mode.
11891
11892 2011-03-30  Jeff Law  <law@redhat.com>
11893
11894         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11895         define accessor macro.
11896         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11897         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11898         (reg_equiv_init): Likewise.
11899         (reg_equivs_size): New variable.
11900         (reg_equiv_init_size): Remove.
11901         (allocate_initial_values): Move prototype to here from....
11902         * integrate.h (allocate_initial_values): Remove prototype.
11903         * integrate.c: Include reload.h.
11904         (allocate_initial_values): Corresponding changes.
11905         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11906         (fix_reg_equiv_init, no_equiv): Corresponding changes.
11907         (update_equiv_regs): Corresponding changes.
11908         (ira): Corresponding changes.
11909         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11910         (push_secondary_reload): Corresponding changes.
11911         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11912         (make_memloc, find_reloads_address): Corresponding changes.
11913         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11914         (find_reloads_address_1): Corresponding changes.
11915         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11916         (refers_to_regno_for_reload_p): Corresponding changes.
11917         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11918         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11919         * reload1.c: Include ggc.h.
11920         (grow_reg_equivs): New function.
11921         (replace_pseudos_in, reload): Corresponding changes.
11922         (calculate_needs_all_insns, alter_regs): Corresponding changes.
11923         (eliminate_regs_1, elimination_effects): Corresponding changes.
11924         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11925         (delete_output_reload): Likewise.
11926         * caller-save.c (mark_referenced_regs): Corresponding changes.
11927         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11928         * frv/predicates.md (frv_load_operand): Corresponding changes.
11929         * microblaze/microblaze.c (double_memory_operand): Corresponding
11930         changes.
11931         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11932         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11933         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11934         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11935         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11936         changes.
11937         * pa/pa.c (emit_move_sequence): Corresponding changes.
11938         * vax/vax.c (nonindexed_address_p): Corresponding changes.
11939
11940 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
11941
11942         PR target/47551
11943         * config/arm/arm.c (coproc_secondary_reload_class): Handle
11944         structure modes.  Don't check neon_vector_mem_operand for
11945         vector or structure modes.
11946
11947 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
11948             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11949
11950         PR target/43590
11951         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11952         operand 1 and reshuffle the operands to match.
11953         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11954
11955 2011-03-30  Christian Schüler  <cschueler@gmx.de>
11956
11957         PR driver/48208
11958         * config/c.opt (F): Added 'Driver' to -F option.
11959
11960         PR driver/48260
11961         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11962           handler function.
11963         * config/darwin.opt: Added '-arch' option.
11964
11965 2011-03-30  Nick Clifton  <nickc@redhat.com>
11966
11967         * config/rx/rx.md: Add peepholes and patterns to combine
11968         extending loads and simple arithmetic instructions.
11969         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11970         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11971         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11972         modes to use pre-decrement and post-increment addressing.
11973         (rx_is_restricted_memory_address): Add range checking of REG+INT
11974         addresses.
11975         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
11976         (rx_memory_move_cost): Adjust cost of stores.
11977         (rx_adjust_insn_length): New function.
11978
11979 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
11980
11981         PR c/48305
11982         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11983         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11984         matching arg00/arg01 types.
11985
11986 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
11987
11988         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11989         last_location to UNKNOWN_LOCATION.
11990
11991 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11992
11993         PR target/48349
11994         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11995         FLOAT_SSE_REGS.
11996
11997 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11998             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11999
12000         PR bootstrap/48337
12001         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12002         Init(PROCESSOR_V7).
12003         (sparc_cpu): Likewise.
12004         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12005         PROCESSOR_V7.
12006
12007 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12008
12009         PR target/48336
12010         PR middle-end/48342
12011         PR rtl-optimization/48345
12012         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12013         hard regs for given mode from profitable regs when doing secondary
12014         allocation.
12015
12016 2011-03-29  Jeff Law  <law@redhat.com>
12017
12018         PR bootstrap/48327
12019         * tree-ssa-threadupdate.c (struct redirection_data): Remove
12020         do_not_duplicate field.
12021         (lookup_redirection_data): Corresponding changes.
12022         (create_duplicates): Always create a template block.
12023         (redirect_edges): Remove code which reused the original block
12024         when it was going to become unreachable code.
12025         (thread_block): Don't set do_not_duplicate field.
12026
12027 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
12028
12029         * lto-opts.c (register_user_option_p, lto_register_user_option):
12030         Make type argument unsigned.
12031         * lto-streamer.h (lto_register_user_option): Make type argument
12032         unsigned.
12033         * opth-gen.awk: Make CL_* macros unsigned.
12034         * opts-common.c (find_opt): Make lang_mask argument unsigned.
12035         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12036         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12037         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12038         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12039         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12040         (find_opt): Make lang_mask argument unsigned.
12041
12042 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12043
12044         PR rtl-optimization/48331
12045         PR rtl-optimization/48334
12046         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12047         for any used algorithm.
12048
12049 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12050
12051         * ira-conflicts.c (build_object_conflicts): Add unused attribute
12052         to parent_max.
12053
12054 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
12055
12056         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12057         (alpha_option_override): Don't set alpha_sr_alias_set.
12058         (emit_frame_store_1): Use gen_frame_mem rather than calling
12059         set_mem_alias_set.
12060         (alpha_expand_epilogue): Ditto.
12061
12062 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
12063
12064         PR tree-optimization/48290
12065         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12066         vectorization, check that relevant phis in the basic block after
12067         the inner loop are really inner loop's exit phis.
12068
12069 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
12070
12071         PR debug/48190
12072         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12073         (cached_dw_loc_list_def): New structure.
12074         (cached_dw_loc_list): New typedef.
12075         (cached_dw_loc_list_table): New variable.
12076         (cached_dw_loc_list_table_hash): New function.
12077         (cached_dw_loc_list_table_eq): Likewise.
12078         (add_location_or_const_value_attribute): Take a bool cache_p.
12079         Cache the list when the parameter is true.
12080         (gen_formal_parameter_die): Update caller.
12081         (gen_variable_die): Likewise.
12082         (dwarf2out_finish): Likewise.
12083         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12084         while generating debug info for the decl.
12085         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12086         (dwarf2out_init): Initialize cached_dw_loc_list_table.
12087         (resolve_addr): Cache the result of resolving a chain of
12088         location lists.
12089
12090 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
12091
12092         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12093         conflict object hard regset nodes have intersecting hard reg sets.
12094
12095         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12096         after regstat_init_n_sets_and_refs.
12097
12098         * ira.c: Add more comments at the top.
12099         (setup_stack_reg_pressure_class, setup_pressure_classes):
12100         Add comments how we compute the register pressure classes.
12101         (setup_allocno_and_important_classes): Add more comments.
12102         (setup_class_translate_array, reorder_important_classes)
12103         (setup_reg_class_relations): Add comments.
12104
12105         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
12106         start of the file.
12107
12108         * ira-color.c: Add 2011 to the Copyright line.
12109         (assign_hard_reg):  Add more comments.
12110         (improve_allocation): Ditto.
12111
12112         * ira-costs.c: Add 2011 to the Copyright line.
12113         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12114         comments.
12115         (setup_regno_cost_classes_by_mode): Ditto.
12116
12117         Initial patches from ira-improv branch:
12118
12119         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12120
12121         * ira-build.c (ira_create_object): Remove initialization of
12122         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
12123         (ira_create_allocno): Remove initialization of
12124         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12125         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12126         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12127         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12128         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12129         Initialize ALLOCNO_ADD_DATA.
12130         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12131         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12132         ALLOCNO_REG.
12133         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
12134         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12135
12136         * ira.c (ira_reallocate): Remove.
12137         (setup_pressure_classes): Call
12138         ira_init_register_move_cost_if_necessary.  Use
12139         ira_register_move_cost instead of ira_get_register_move_cost.
12140         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12141         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12142
12143         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12144         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12145         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12146         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12147         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12148         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12149         Fix formatting.
12150         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12151         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12152         (struct allocno_color_data): New.
12153         (allocno_color_data_t): New typedef.
12154         (allocno_color_data): New definition.
12155         (ALLOCNO_COLOR_DATA): New macro.
12156         (struct object_color_data): New.
12157         (object_color_data_t): New typedef.
12158         (object_color_data): New definition.
12159         (OBJECT_COLOR_DATA): New macro.
12160         (update_copy_costs, calculate_allocno_spill_cost): Call
12161         ira_init_register_move_cost_if_necessary.  Use
12162         ira_register_move_cost instead of ira_get_register_move_cost.
12163         (move_spill_restore, update_curr_costs): Ditto.
12164         (allocno_spill_priority): Make it inline.
12165         (color_pass): Allocate and free allocno_color_dat and object_color_data.
12166         (struct coalesce_data, coalesce_data_t): New.
12167         (allocno_coalesce_data): New definition.
12168         (ALLOCNO_COALESCE_DATA): New macro.
12169         (merge_allocnos, coalesced_allocno_conflict_p): Use
12170         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12171         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12172         (coalesce_allocnos): Ditto.
12173         (setup_coalesced_allocno_costs_and_nums): Ditto.
12174         (collect_spilled_coalesced_allocnos): Ditto.
12175         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12176         (setup_slot_coalesced_allocno_live_ranges): Ditto.
12177         (coalesce_spill_slots): Ditto.
12178         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
12179         free allocno_coalesce_data.
12180
12181         * ira-conflicts.c: Fix formatting.
12182         (process_regs_for_copy): Call
12183         ira_init_register_move_cost_if_necessary.  Use
12184         ira_register_move_cost instead of ira_get_register_move_cost.
12185         (build_object_conflicts): Optimize.
12186
12187         * ira-costs.c (record_reg_classes): Optimize.  Call
12188         ira_init_register_move_cost_if_necessary.  Use
12189         ira_register_move_cost, ira_may_move_in_cost, and
12190         ira_may_move_out_cost instead of ira_get_register_move_cost and
12191         ira_get_may_move_cost.
12192         (record_address_regs): Ditto.
12193         (scan_one_insn): Optimize.
12194         (find_costs_and_classes): Optimize.
12195         (process_bb_node_for_hard_reg_moves): Call
12196         ira_init_register_move_cost_if_necessary.  Use
12197         ira_register_move_cost instead of ira_get_register_move_cost.
12198
12199         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12200         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12201         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12202         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12203         definitions.
12204         (ira_initiate_emit_data, ira_finish_emit_data)
12205         (create_new_allocno): New functions.
12206         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12207         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12208         Use ira_register_move_cost instead of ira_get_register_move_cost.
12209
12210         * ira-int.h: Fix some comments.
12211         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12212         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12213         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12214         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
12215         add_data.
12216         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
12217         bitfield after mode.  Make hard_regno a short int.  Make
12218         hard_regno short.  Remove first_coalesced_allocno and
12219         next_coalesced_allocno.  Move mem_optimized_dest_p,
12220         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12221         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
12222         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12223         temp, colorable_p.  Add new member add_data.
12224         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12225         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12226         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12227         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12228         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12229         (ALLOCNO_ADD_DATA): New macro.
12230         (ira_emit_data_t): New typedef.
12231         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
12232         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12233         from struct ira_allocno.
12234         (ALLOCNO_EMIT_DATA): New macro.
12235         (ira_allocno_emit_data, allocno_emit_reg): New.
12236         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12237         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12238         (OBJECT_ADD_DATA): New macro.
12239         (ira_reallocate): Remove.
12240         (ira_initiate_emit_data, ira_finish_emit_data): New.
12241         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12242         (ira_init_register_move_cost_if_necessary): New.
12243         (ira_object_conflict_iter_next): Merge into
12244         ira_object_conflict_iter_cond.
12245         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12246
12247         * ira-live.c (process_single_reg_class_operands): Call
12248         ira_init_register_move_cost_if_necessary.  Use
12249         ira_register_move_cost instead of ira_get_register_move_cost.
12250
12251         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12252
12253         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12254
12255         * ira-costs.c: Fix formatting.
12256         (cost_classes, cost_classes_num): Remove.
12257         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12258         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12259         (cost_classes_del, cost_classes_htab): New.
12260         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12261         (initiate_regno_cost_classes, setup_cost_classes): New.
12262         (setup_regno_cost_classes_by_aclass): New.
12263         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12264         (record_reg_classes): Use regno_cost_classes instead of
12265         cost_classes.  Move checking opposite operand up.
12266         (record_address_regs): Use regno_cost_classes
12267         instead of cost_classes.
12268         (scan_one_insn): Ditto.  Use always general register.
12269         (print_allocno_costs): Use regno_cost_classes instead of
12270         cost_classes.
12271         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
12272         (find_costs_and_classes): Set up cost classes for each registers.
12273         Use also their mode for this.  Use regno_cost_classes instead of
12274         cost_classes.
12275         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12276         cost_classes.
12277         (free_ira_costs, ira_init_costs): Don't use cost_classes.
12278         (ira_costs, ira_set_pseudo_classes): Call
12279         initiate_regno_cost_classes and finish_regno_cost_classes.
12280
12281         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
12282
12283         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12284
12285         * target.def (ira_cover_classes): Remove.
12286
12287         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12288
12289         * doc/tm.texi.in: Ditto.
12290
12291         * ira-conflicts.c: Remove mentioning cover classes from the file.
12292         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
12293         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
12294
12295         * targhooks.c (default_ira_cover_classes): Remove.
12296
12297         * targhooks.h (default_ira_cover_classes): Ditto.
12298
12299         * haifa-sched.c: Remove mentioning cover classes from the file.
12300         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12301         ira_pressure_classes and ira_pressure_classes_num instead of
12302         ira_reg_class_cover_size and ira_reg_class_cover.  Use
12303         sched_regno_pressure_class instead of sched_regno_cover_class.
12304         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12305         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12306
12307         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
12308         classes from the file.
12309         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12310         (struct object_hard_regs, struct object_hard_regs_node): New.
12311         (struct ira_object): New members profitable_hard_regs,
12312         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12313         (struct ira_allocno): Rename cover_class to aclass.  Rename
12314         cover_class_cost and updated_cover_class_cost to class_cost and
12315         updated_class_cost.  Remove splay_removed_p and
12316         left_conflict_size.  Add new members colorable_p.
12317         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12318         (ALLOCNO_COLORABLE_P): New macro.
12319         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12320         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12321         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12322         (OBJECT_...): Rename parameter C to O.
12323         (OBJECT_PROFITABLE_HARD_REGS): New macro.
12324         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12325         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12326         (struct target_ira_int): New members x_ira_max_memory_move_cost,
12327         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12328         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12329         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12330         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
12331         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
12332         x_ira_reg_class_subunion.
12333         (ira_max_memory_move_cost, ira_max_register_move_cost)
12334         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12335         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12336         (ira_important_class_nums, ira_reg_class_superunion): New macros.
12337         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12338         (ira_reg_class_union): Rename to ira_reg_class_subunion.
12339         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12340         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12341         (ira_tune_allocno_costs_and_cover_classes): Rename to
12342         ira_tune_allocno_costs.
12343         (ira_debug_hard_regs_forest): New.
12344         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12345         (ira_object_conflict_iter_next): Fix comments.
12346         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12347         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12348         cover_class to aclass.
12349         (ira_allocate_and_accumulate_costs): Ditto.
12350         (ira_allocate_and_set_or_copy_costs): Ditto.
12351
12352         * opts.c (decode_options): Remove ira_cover_class check.
12353
12354         * ira-color.c: Remove mentioning cover classes from the file.  Use
12355         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12356         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12357         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12358         (splay-tree.h): Remove include.
12359         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12360         before copy_freq_compare_func.
12361         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12362         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12363         New definitions.
12364         (hard_regs_roots, hard_regs_node_vec): Ditto.
12365         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12366         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12367         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12368         (create_new_object_hard_regs_node): Ditto.
12369         (add_new_object_hard_regs_node_to_forest): Ditto.
12370         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12371         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12372         Ditto.
12373         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12374         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12375         (remove_unused_object_hard_regs_nodes): Ditto.
12376         (enumerate_object_hard_regs_nodes): Ditto.
12377         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12378         (object_hard_regs_subnode_t): Ditto.
12379         (struct object_hard_regs_subnode): Ditto.
12380         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12381         (setup_object_hard_regs_subnode_index): Ditto.
12382         (get_object_hard_regs_subnodes_num): Ditto.
12383         (form_object_hard_regs_nodes_forest): Ditto.
12384         (finish_object_hard_regs_nodes_tree): Ditto.
12385         (finish_object_hard_regs_nodes_forest): Ditto.
12386         (allocnos_have_intersected_live_ranges_p): Rename to
12387         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12388         (pseudos_have_intersected_live_ranges_p): Rename to
12389         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12390         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12391         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12392         (update_copy_costs): Remove assert.  Skip cost update if the hard
12393         reg does not belong the class.
12394         (assign_hard_reg): Process only profitable hard regs.
12395         (uncolorable_allocnos_num): Make it scalar.
12396         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12397         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12398         and ira_reg_class_max_nregs.
12399         (bucket_allocno_compare_func): Check frequency first.
12400         (sort_bucket): Add compare function as a parameter.
12401         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12402         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12403         (push_allocno_to_stack): Rewrite for checking new allocno
12404         colorability.
12405         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
12406         (push_only_colorable): Pass new parameter to sort_bucket.
12407         (push_allocno_to_spill): Remove.
12408         (allocno_spill_priority_compare): Make it inline and rewrite.
12409         (splay_tree_allocate, splay_tree_free): Remove.
12410         (allocno_spill_sort_compare): New function.
12411         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
12412         build and use splay tree.  Choose first allocno in uncolorable
12413         allocno bucket to spill.  Remove setting spill cost.
12414         (all_conflicting_hard_regs): Remove.
12415         (setup_allocno_available_regs_num): Check only profitable hard
12416         regs.  Print info about hard regs nodes.
12417         (setup_allocno_left_conflicts_size): Remove.
12418         (put_allocno_into_bucket): Don't call
12419         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
12420         (improve_allocation): New.
12421         (color_allocnos): Call setup_profitable_hard_regs,
12422         form_object_hard_regs_nodes_forest, improve_allocation,
12423         finish_object_hard_regs_nodes_forest.  Setup spill cost.
12424         (print_loop_title): Use pressure classes.
12425         (color_allocnso): Ditto.
12426         (do_coloring): Remove allocation and freeing splay_tree_node_pool
12427         and allocnos_for_spilling.
12428         (ira_sort_regnos_for_alter_reg): Don't setup members
12429         {first,next}_coalesced_allocno.
12430         (color): Remove allocating and freeing removed_splay_allocno_vec.
12431         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12432         prohibited_class_mode_regs.
12433
12434         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
12435         formatting.
12436         (update_allocno_pressure_excess_length): Use pressure classes.
12437         (inc_register_pressure, dec_register_pressure): Check for pressure
12438         class.
12439         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12440         pressure class.  Use ira_reg_class_nregs instead of
12441         ira_reg_class_max_nregs.
12442         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12443         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12444         (single_reg_class): Use ira_reg_class_nregs instead of
12445         ira_reg_class_max_nregs.
12446         (process_bb_node_lives): Use pressure classes.
12447
12448         * ira-emit.c: Remove mentioning cover classes from the file.  Use
12449         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12450         (change_loop): Use pressure classes.
12451         (modify_move_list): Call ira_set_allocno_class instead of
12452         ira_set_allocno_cover_class.
12453
12454         * ira-build.c: Remove mentioning cover classes from the file.  Use
12455         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12456         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
12457         ALLOCNO_UPDATED_CLASS_COST instead of
12458         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12459         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12460         (ira_create_allocno): Remove initialization of
12461         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
12462         ALLOCNO_COLORABLE_P.
12463         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12464         Update conflict regs for the objects.
12465         (create_cap_allocno): Remove assert.  Don't propagate
12466         ALLOCNO_AVAILABLE_REGS_NUM.
12467         (ira_free_allocno_costs): New function.
12468         (finish_allocno): Change a part of code into call of
12469         ira_free_allocno_costs.
12470         (low_pressure_loop_node_p): Use pressure classes.
12471         (object_range_compare_func): Don't compare classes.
12472         (setup_min_max_conflict_allocno_ids): Ditto.
12473
12474         * loop-invariant.c: Remove mentioning cover classes from the file.
12475         Use ira_pressure_classes and ira_pressure_classes_num instead of
12476         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
12477         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12478         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12479         Use reg_allocno_class instead of reg_cover_class.
12480         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12481         STACK_REG_COVER_CLASS.
12482         (get_regno_cover_class): Rename to get_regno_pressure_class.
12483         (move_loop_invariants): Initialize and finalize regstat.
12484
12485         * ira.c: Remove mentioning cover classes from the file.  Add
12486         comments about coloring without cover classes.  Use ALLOCNO_CLASS
12487         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12488         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12489         setup_class_subset_and_memory_move_costs.
12490         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12491         (setup_cover_and_important_classes): Rename to
12492         setup_allocno_and_important_classes.
12493         (setup_class_translate_array): New.
12494         (setup_class_translate): Call it for allocno and pressure classes.
12495         (cover_class_order): Rename to allocno_class_order.
12496         (comp_reg_classes_func): Use ira_allocno_class_translate instead
12497         of ira_class_translate.
12498         (reorder_important_classes): Set up ira_important_class_nums.
12499         (setup_reg_class_relations): Set up ira_reg_class_superunion.
12500         (print_class_cover): Rename to print_classes.  Add parameter.
12501         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12502         Print pressure classes too.
12503         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
12504         setup_reg_subclasses.
12505         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12506         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12507         (setup_prohibited_class_mode_regs): Use
12508         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12509         (clarify_prohibited_class_mode_regs): New function.
12510         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12511         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12512         (ira_init_once): Initialize them.
12513         (free_register_move_costs): Process them.
12514         (ira_init): Move calls of find_reg_classes and
12515         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12516         Call clarify_prohibited_class_mode_regs.
12517         (ira_no_alloc_reg): Remove.
12518         (too_high_register_pressure_p): Use pressure classes.
12519
12520         * sched-deps.c: Remove mentioning cover classes from the file.
12521         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12522         ira_pressure_classes and ira_pressure_classes_num instead of
12523         ira_reg_class_cover_size and ira_reg_class_cover.
12524         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12525         sched_regno_pressure_class instead of sched_regno_cover_class.
12526         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
12527         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12528
12529         * ira.h: Add 2010 to Copyright.
12530         (ira_no_alloc_reg): Remove external.
12531         (struct target_ira): Rename x_ira_hard_regno_cover_class,
12532         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12533         x_ira_class_translate to x_ira_hard_regno_allocno_class,
12534         x_ira_allocno_classes_num, x_ira_allocno_classes, and
12535         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
12536         x_ira_pressure_classes, x_ira_pressure_class_translate, and
12537         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
12538         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
12539         x_ira_no_alloc_regs.
12540         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12541         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12542         ira_allocno_classes_num and ira_allocno_classes.
12543         (ira_class_translate): Rename to ira_allocno_class_translate.
12544         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12545         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12546         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12547         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12548         (ira_no_alloc_regs): New.
12549
12550         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
12551         classes from the file.  Use ALLOCNO_CLASS instead of
12552         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
12553         ALLOCNO_COVER_CLASS_COST.
12554         (regno_cover_class): Rename to regno_aclass.
12555         (record_reg_classes): Use ira_reg_class_subunion instead of
12556         ira_reg_class_union.
12557         (record_address_regs): Check overflow.
12558         (scan_one_insn): Ditto.
12559         (print_allocno_costs): Print total mem cost fore regional allocation.
12560         (print_pseudo_costs): Use REG_N_REFS.
12561         (find_costs_and_classes): Use classes intersected with them on the
12562         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
12563         ira_reg_class_union.  Use ira_allocno_class_translate and
12564         regno_aclass instead of ira_class_translate and regno_cover_class.
12565         Modify code for finding regno_aclass.  Setup preferred classes for
12566         the next pass.
12567         (setup_allocno_cover_class_and_costs): Rename to
12568         setup_allocno_class_and_costs.  Use regno_aclass instead of
12569         regno_cover_class.  Use ira_set_allocno_class instead of
12570         ira_set_allocno_cover_class.
12571         (init_costs, finish_costs): Use regno_aclass instead of
12572         regno_cover_class.
12573         (ira_costs): Use setup_allocno_class_and_costs instead of
12574         setup_allocno_cover_class_and_costs.
12575         (ira_tune_allocno_costs_and_cover_classes): Rename to
12576         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
12577         by processing objects.  Use ira_reg_class_max_nregs instead of
12578         ira_reg_class_nregs.
12579
12580         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12581
12582         * sched-int.h: Remove mentioning cover classes from the file.
12583         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12584
12585         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
12586         classes from the file.
12587         (struct reg_pref): Rename coverclass into allocnoclass.
12588         (reg_cover_class): Rename to reg_allocno_class.
12589
12590         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12591
12592         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12593
12594         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12595
12596         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12597
12598         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12599
12600         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12601
12602         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12603
12604         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12605
12606         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12607
12608         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12609
12610         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12611         (i386_ira_cover_classes): Ditto.
12612
12613         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12614
12615         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12616
12617         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12618
12619         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12620
12621         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12622
12623         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12624
12625         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12626         (mips_ira_cover_classes): Ditto.
12627
12628         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12629
12630         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12631
12632         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12633
12634         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12635
12636         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12637
12638         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12639         (IRA_COVER_CLASSES_VSX): Ditto.
12640
12641         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12642         (rs6000_ira_cover_classes): Ditto.
12643
12644         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12645
12646         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12647
12648         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12649
12650         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12651
12652         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12653
12654         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12655
12656         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12657
12658         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12659
12660         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12661
12662         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12663
12664 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
12665
12666         PR debug/48253
12667         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12668         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12669         dw_fde_unlikely_section_end_label, cold_in_std_section,
12670         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12671         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12672         fields.
12673         (output_fde): Use dw_fde_second_{begin,end} if second is
12674         true, otherwise dw_fde_{begin,end}.
12675         (output_call_frame_info): Test dw_fde_second_begin != NULL
12676         instead of dw_fde_switched_sections.
12677         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12678         fields, initialize new fields.  Initialize in_std_section
12679         unconditionally from the first partition.
12680         (dwarf2out_end_epilogue): Don't override dw_fde_end when
12681         dw_fde_second_begin is non-NULL.
12682         (dwarf2out_switch_text_section): Stop initializing removed
12683         dw_fde_struct fields, initialize new fields, initialize
12684         also dw_fde_end here.  Set dw_fde_switch_cfi even when
12685         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
12686         (struct var_loc_list_def): Add last_before_switch field.
12687         (arange_table, arange_table_allocated, arange_table_in_use,
12688         ARANGE_TABLE_INCREMENT, add_arange): Removed.
12689         (size_of_aranges): Count !in_std_section and !second_in_std_section
12690         hunks in fdes, instead of looking at arange_table_in_use.
12691         (output_aranges): Add aranges_length argument, don't call
12692         size_of_aranges here.  Instead of using aranges_table*
12693         emit ranges for fdes when !in_std_section resp.
12694         !second_in_std_section.
12695         (dw_loc_list): Break ranges crossing section switch.
12696         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
12697         use dw_fde_second_end instead of dw_fde_end as end of last range.
12698         (gen_subprogram_die): Don't call add_arange.  Use
12699         dw_fde_{begin,end} for first partition and if switched
12700         section dw_fde_second_{begin,end} for the second.
12701         (var_location_switch_text_section_1,
12702         var_location_switch_text_section): New functions.
12703         (dwarf2out_begin_function): Initialize cold_text_section even
12704         when function_section () isn't text_section.
12705         (prune_unused_types): Don't walk arange_table.
12706         (dwarf2out_finish): Don't needlessly test
12707         flag_reorder_blocks_and_partition when testing cold_text_section_used.
12708         If info_section_emitted, call size_of_aranges and if it indicates
12709         non-empty .debug_aranges, call output_aranges with the computed
12710         size.  Stop using removed dw_fde_struct fields, use
12711         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12712         for second.
12713
12714         PR debug/48203
12715         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12716         create ENTRY_VALUE if incoming or address of incoming's MEM
12717         is a hard REG.
12718         * dwarf2out.c (mem_loc_descriptor): Don't emit
12719         DW_OP_GNU_entry_value of DW_OP_fbreg.
12720         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12721         on ENTRY_VALUE is able to find the canonical parameter VALUE.
12722         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12723         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12724         ENTRY_VALUE_EXPs.
12725         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12726         is a REG_P or MEM_P with REG_P address, compute hash directly
12727         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12728         (preserve_only_constants): Don't clear VALUES forwaring
12729         ENTRY_VALUE to some other VALUE.
12730
12731 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
12732
12733         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12734         instead of GEN_INT.
12735
12736 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
12737
12738         * cfgexpand.c (expand_gimple_cond): Always set the source location and
12739         block before expanding the statement.
12740         (expand_gimple_stmt_1): Likewise.  Set them here...
12741         (expand_gimple_stmt): ...and not here.  Tidy.
12742         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12743         unknown.
12744
12745 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
12746
12747         * Makefile.in: New rule for cprop.o.
12748         * gcse.c: Move constant/copy propagation to cprop.c.
12749         (compute_local_properties): Only handle expression tables.
12750         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12751         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12752         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12753         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
12754         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
12755         compute_cprop_data, find_used_regs, try_replace_reg,
12756         find_avail_set, cprop_jump, constprop_register, cprop_insn,
12757         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12758         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12759         find_bypass_set, reg_killed_on_edge, bypass_block,
12760         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12761         execute_rtl_cprop, pass_rtl_cprop): Move to...
12762         * cprop.c: ...here.  New file, constant/copy propagation for RTL
12763         moved from gcse.c to here with minor cleanups in duplicated code.
12764
12765 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
12766
12767         * config/i386/i386.c (flag_opts): Fix a typo in
12768         -mavx256-split-unaligned-store.
12769
12770 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
12771
12772         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12773         LIBCALL_VALUE): Remove macros.
12774         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12775         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12776         (h8300_function_value, h8300_libcall_value,
12777         h8300_function_value_regno_p): New functions.
12778
12779 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
12780
12781         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12782
12783 2011-03-28  Jeff Law  <law@redhat.com>
12784
12785         * tree-ssa-threadupdate.c (redirect_edges): Call
12786         create_edge_and_update_destination_phis as needed.
12787         (create_edge_and_update_destination_phis): Accept new BB argument.
12788         All callers updated.
12789         (thread_block): Do not update the profile when threading around
12790         intermediate blocks.
12791         (thread_single_edge): Likewise.
12792         (determine_bb_domination_status): If BB is not a successor of the
12793         loop header, return NONDOMINATING.
12794         (register_jump_thread): Note when we register a jump thread around
12795         an intermediate block.
12796         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12797         (thread_across_edge): Use it.
12798
12799 2011-03-28  Tristan Gingold  <gingold@adacore.com>
12800
12801         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12802         when for_return is 2.
12803
12804 2011-03-28  Jeff Law  <law@redhat.com>
12805
12806         * var-tracking.c (canonicalize_values_mark): Delete unused
12807         lhs assignment.
12808         (canonicalize_values_star, set_variable_part): Likewise.
12809         (clobber_variable_part, delete_variable_part): Likewise.
12810
12811 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
12812
12813         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12814
12815 2011-03-28  Martin Jambor  <mjambor@suse.cz>
12816
12817         * tree-inline.c (expand_call_inline): Do not check that destination
12818         node is analyzed.
12819         (optimize_inline_calls): Assert that destination node is analyzed.
12820         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12821         not call tree_lowering_passes.
12822         * cgraph.h (cgraph_analyze_function): Declare.
12823         * cgraphunit.c (cgraph_analyze_function): Make public.
12824
12825 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
12826
12827         * config/sparc/sparc-opts.h: New.
12828         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12829         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12830         (sparc_option_override): Store processor_type enumeration rather
12831         than string in cpu_default.  Remove name and enumeration from
12832         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
12833         without using sparc_select.  Use target_flags_explicit instead of
12834         fpu_option_set.
12835         * config/sparc/sparc.h (enum processor_type): Move to
12836         sparc-opts.h.
12837         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12838         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12839         HeaderInclude entry.
12840         (mcpu=, mtune=): Use Var and Enum.
12841         (sparc_processor_type): New Enum and EnumValue entries.
12842
12843 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12844             Iain Sandoe  <iains@gcc.gnu.org>
12845
12846         PR target/48245
12847         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12848
12849 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
12850
12851         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12852         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12853         Insert new statements at it in lieu of STMT.
12854         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12855         * tree-vect-stmts.c (vectorizable_store): Likewise.
12856         (vectorizable_load): Likewise.
12857
12858 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
12859
12860         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12861         (divtf3): Ditto.
12862         (multf3): Ditto.
12863         (subtf3): Ditto.
12864
12865 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12866
12867         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12868         unaligned 256bit load/store.
12869         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12870         (*avx_movdqu<avxmodesuffix>): Likewise.
12871
12872 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12873
12874         PR target/48288
12875         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12876         * config/pa/pa.md (iordi3): Use new predicate in expander.
12877         (iorsi3): Likewise.
12878
12879 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
12880
12881         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12882         FUNCTION_VALUE_REGNO_P): Remove macros.
12883         * config/mips/mips-protos.h (mips_function_value): Remove.
12884         * config/mips/mips.c (mips_function_value): Rename to...
12885         (mips_function_value_1): ... this. Make static.  Handle receiving
12886         the function type in 'fn_decl_or_type' argument.
12887         (mips_function_value, mips_libcall_value,
12888         mips_function_value_regno_p): New function.
12889         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12890         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12891
12892 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12893
12894         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12895         and -mavx256-split-unaligned-store.
12896         (ix86_option_override_internal): Split 32-byte AVX unaligned
12897         load/store by default.
12898         (ix86_avx256_split_vector_move_misalign): New.
12899         (ix86_expand_vector_move_misalign): Use it.
12900
12901         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12902         -mavx256-split-unaligned-store.
12903
12904         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12905         256bit load/store.  Generate unaligned store on misaligned memory
12906         operand.
12907         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12908         256bit load/store.
12909         (*avx_movdqu<avxmodesuffix>): Likewise.
12910
12911         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12912         -mavx256-split-unaligned-store.
12913
12914 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
12915
12916         PR target/38598
12917         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12918         Update commentary.
12919
12920 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
12921
12922         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12923         opno arguments with an expand_operand.  Use create_input_operand.
12924         (mips_prepare_builtin_target): Delete.
12925         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12926         functions.
12927         (mips_expand_builtin_direct): Use create_output_operand and
12928         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
12929         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
12930         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12931
12932 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
12933
12934         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12935         function.
12936         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12937
12938 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
12939
12940         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12941         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
12942         basic blocks and call commit_edge_insertions directly.
12943         (fixup_abnormal_edges): Move from here to...
12944         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
12945         on the edges and return whether some have actually been inserted.
12946         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12947         compensation code.
12948
12949 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
12950
12951         PR rtl-optimization/48144
12952         * sel-sched-ir.c (merge_history_vect): Factor out from ...
12953         (merge_expr_data): ... here.
12954         (av_set_intersect): Rename to av_set_code_motion_filter.
12955         Update all callers.  Call merge_history_vect when an expression
12956         is found in both sets.
12957         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12958
12959 2011-03-26  Alan Modra  <amodra@gmail.com>
12960
12961         * config/rs6000/predicates.md (word_offset_memref_op): Handle
12962         cmodel medium addresses.
12963         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12964         64-bit gpr loads and stores.
12965         (rs6000_secondary_reload_ppc64): New function.
12966         * config/rs6000/rs6000-protos.h: Declare it.
12967         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12968
12969 2011-03-26  Alan Modra  <amodra@gmail.com>
12970
12971         PR target/47487
12972         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12973         GNU Go in traceback table.
12974
12975 2011-03-25  Richard Henderson  <rth@redhat.com>
12976
12977         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12978         if there are exactly 6 operands.
12979         (set_storage_via_setmem): Similarly.
12980
12981 2011-03-25  Kai Tietz  <ktietz@redhat.com>
12982
12983         * collect2.c (write_c_file_stat): Handle backslash
12984         as right-hand directory separator.
12985         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12986         checking just for slash.
12987         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12988         instead of checking for trailing slash.
12989         * gcc.c (record_temp_file): Use filename_cmp instead
12990         of strcmp.
12991         (do_spec_1): Likewise.
12992         (replace_outfile_spec_function): Likewise.
12993         (is_directory): Use filename_ncmp instead of strncmp.
12994         (print_multilib_info): Likewise.
12995         * gcov.c (find_source): Use filename_cmp instead
12996         instead of strcmp.
12997         (make_gcov_file_name): Fix order of slash/backslash
12998         checks.
12999         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13000         (add_standard_paths): Likewise.
13001         * mips-tfile.c (saber_stop): Handle backslash.
13002         * prefix.c (update_path): Use filename_ncmp instead of
13003         strncmp.
13004         * profile.c (output_location): Use filename_cmp instead
13005         of strcmp.
13006         * read-md.c (handle_toplevel_file): Handle backslash.
13007         * tlink.c (frob_extension):  Likewise.
13008         * tree-cfg.c (same_line_p): Use filename_cmp instead of
13009         strcmp.
13010         * tree-dump.c (dequeue_and_dump): Handle backslash.
13011         * tree.c (get_file_function_name): Likewise.
13012         * gengtype.c (read_input_list): Likewise.
13013         (get_file_realbasename): Likewise.
13014         (get_output_file_with_visibility): Use filename_cmp
13015         instead of strcmp.
13016
13017 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
13018
13019         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13020         case to VFPv1.
13021
13022 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13023
13024         * fold-const.c (expr_location_or): New function.
13025         (fold_truth_not_expr): Call it.
13026
13027 2011-03-25  Jeff Law  <law@redhat.com>
13028
13029         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13030         va_end.
13031         * c-family/c-common.c (def_fn_type): Likewise.
13032         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13033         * emit-rtl.c (gen_rtvec): Likewise.
13034         * lto/lto-lang.c (def_fn_type): Likewise.
13035
13036 2011-03-25  Richard Guenther  <rguenther@suse.de>
13037
13038         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13039         also generate copies.
13040         (fini_copy_prop): Handle constant values properly.
13041
13042 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
13043
13044         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13045         mode size instead of bitsize with DWARF2_ADDR_SIZE.
13046         (hash_loc_operands, compare_loc_operands): Handle
13047         DW_OP_GNU_entry_value.
13048
13049 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13050
13051         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13052         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13053         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13054         comment and use macro TARGET_64BIT_MS_ABI instead.
13055         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13056         and change default behavior for 32-bit MS_ABI.
13057         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13058         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13059         32-bit, too.
13060         (ix86_cfun_abi): Likewise.
13061         (ix86_maybe_switch_abi): Adjust comment.
13062         (init_cumulative_args): Check for bit-ness in MS_ABI case.
13063         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13064         instead of checking for SYSV_ABI.
13065         (ix86_nsaved_sseregs): Likewise.
13066         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13067         to 16 bytes.
13068         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13069         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13070         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13071         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13072         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13073
13074 2011-03-25  Richard Guenther  <rguenther@suse.de>
13075
13076         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13077         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13078         (verify_gimple): Remove.
13079         * tree-cfg.c (verify_gimple_call): Merge verification
13080         from verify_stmts.
13081         (verify_gimple_phi): Merge verification from verify_stmts.
13082         (verify_gimple_label): New function.
13083         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13084         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13085         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13086         (verify_stmts): Rename to verify_gimple_in_cfg.
13087         (verify_gimple_in_cfg): New function.
13088         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13089         * tree-ssa.c (verify_ssa): Likewise.
13090         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13091
13092 2011-03-25  Richard Guenther  <rguenther@suse.de>
13093
13094         * passes.c (init_optimization_passes): Add FRE pass after
13095         early SRA.
13096
13097 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
13098             Andrew Stubbs  <ams@codesourcery.com>
13099
13100         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13101         for Cortex-A8.
13102         (arm_movdi_vfp_cortexa8): New pattern.
13103         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13104         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13105         instructions when tuning for Cortex-A8.  Set attribute "arch".
13106         * config/arm/arm.md: Move include arm-tune.md up a bit.
13107         (define_attr "arch"): Add "onlya8" and "nota8" values.
13108         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13109
13110 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13111
13112         PR bootstrap/48282
13113         Revert:
13114         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13115
13116         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13117         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13118         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13119         * passes.c (init_optimization_passes): Move
13120         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13121
13122 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13123
13124         * c-typeck.c (comptypes_internal): Replace target
13125         hook call of comp_type_attributes by version in tree.c file.
13126         * gimple.c (gimple_types_compatible_p_1): Likewise.
13127         * tree-ssa.c (useless_type_conversion_p): Likewise.
13128         * tree.c (build_type_attribute_qual_variant): Likewise.
13129         (attribute_value_equal): New static helper function.
13130         (comp_type_attributes): New function.
13131         (merge_attributes): Use attribute_value_equal for comparison.
13132         (attribute_list_contained): Likewise.
13133         * tree.h (comp_type_attributes): New prototype.
13134
13135 2011-03-25  Richard Guenther  <rguenther@suse.de>
13136
13137         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13138         of complex types at -O0.
13139         (verify_gimple_assign_binary): Likewise.
13140         (verify_gimple_assign_ternary): Likewise.
13141
13142 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13143
13144         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13145         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13146
13147 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13148
13149         PR debug/48041
13150         * dwarf2out.c (output_abbrev_section): Only write table when
13151         abbrev_die_table_in_use > 1.
13152
13153 2011-02-24  Richard Henderson  <rth@redhat.com>
13154
13155         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13156         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13157         (alpha_expand_unaligned_load_words): Use extql.
13158         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13159         (emit_insxl): Handle all modes for consistency.
13160
13161 2011-02-24  Richard Henderson  <rth@redhat.com>
13162
13163         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13164         (alpha_expand_unaligned_load): Likewise.
13165         (alpha_expand_unaligned_store): Likewise.
13166         (alpha_expand_unaligned_load_words): Likewise.
13167         (alpha_expand_unaligned_store_words): Likewise.
13168         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13169         (alpha_split_lock_test_and_set_12): Likewise.
13170         (print_operand, alpha_fold_builtin_extxx): Likewise.
13171         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13172         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13173         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13174         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13175         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13176         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13177         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13178         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13179         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13180         (extwl, extll, extql): Similarly.
13181         (inswh, inslh, insqh): Similarly.
13182         (mskbl, mskwl, mskll, mskql): Similarly.
13183         (mskwh, msklh, mskqh): Similarly.
13184
13185 2011-02-24  Richard Henderson  <rth@redhat.com>
13186
13187         * config/alpha/alpha.md (attribute isa): Add er, ner.
13188         (attribute enabled): Handle them.
13189         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13190
13191 2011-02-24  Richard Henderson  <rth@redhat.com>
13192
13193         * config/alpha/alpha.md (attribute isa): Add vms.
13194         (attribute enabled): Handle it.
13195         (*movsf): Merge *movsf_{nofix,fix,nofp}.
13196         (*movdf): Merge *movdf_{nofix,fix,nofp}.
13197         (*movtf): Rename from *movtf_internal for consistency.
13198         (*movsi): Merge with *movsi_nt_vms.
13199         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13200         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13201         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13202         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13203
13204 2011-02-24  Richard Henderson  <rth@redhat.com>
13205
13206         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13207         (extendqisi2, extendhisi2): Likewise.
13208         (extendqidi2): Simplify BWX/non-BWX expansions.
13209         (extendhidi2): Similarly.
13210
13211 2011-02-24  Richard Henderson  <rth@redhat.com>
13212
13213         * config/alpha/alpha.md (attribute isa): New.
13214         (attribute enabled): New.
13215         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13216         (zero_extendqisi2, zero_extendqidi2): Similarly.
13217         (zero_extendhisi2, zero_extendhidi2): Similarly.
13218         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13219
13220 2011-02-24  Richard Henderson  <rth@redhat.com>
13221
13222         * config/alpha/predicates.md (input_operand): Revert last change;
13223         update comment to mention 32-bit VMS rather than Windows.
13224
13225 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13226
13227         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13228         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13229         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13230         * passes.c (init_optimization_passes): Move
13231         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13232
13233 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13234
13235         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13236
13237 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13238
13239         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13240         correctly.
13241
13242 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
13243
13244         PR debug/48204
13245         * simplify-rtx.c (simplify_const_unary_operation): Call
13246         real_convert when changing mode class with FLOAT_EXTEND.
13247
13248 2011-03-24  Nick Clifton  <nickc@redhat.com>
13249
13250         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13251         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13252         * config/rx/rx.c (rx_option_override): Set align_jumps,
13253         align_loops and align_labels if not set by the user.
13254         (rx_align_for_label): New function.
13255         (rx_max_skip_for_label): New function.
13256         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13257         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13258         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13259         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13260         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13261
13262 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13263
13264         PR rtl-optimization/48263
13265         * optabs.c (expand_binop_directly): Reinstate convert_modes code
13266         and original commutative_p handling.  Use maybe_gen_insn.
13267
13268 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13269
13270         * reload.c (find_reloads_subreg_address): Add address_reloaded
13271         parameter and return true there if the full address has been
13272         reloaded.
13273         (find_reloads_toplev): Pass address_reloaded flag.
13274         (find_reloads_address_1): Don't use address_reloaded parameter.
13275
13276 2011-03-24  Jeff Law  <law@redhat.com>
13277
13278         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13279         unused variable "ann".
13280         (remove_unused_locals): Likewise.
13281
13282         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13283         statement.
13284
13285         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13286         after it is freed.
13287
13288 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13289
13290         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13291         for invalid symbolic addresses.
13292         (s390_secondary_reload): Don't use s390_check_symref_alignment for
13293         larl operands.
13294
13295 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13296
13297         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13298         the argument in calls to fold_truth_not_expr.
13299
13300 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13301
13302         * tree.c (record_node_allocation_statistics): New function.
13303         (make_node_stat, copy_node_stat, build_string): Call it.
13304         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13305         (build1_stat, build_omp_clause): Likewise.
13306
13307 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13308
13309         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13310         last commit.
13311
13312 2011-03-24  Richard Guenther  <rguenther@suse.de>
13313
13314         PR tree-optimization/48271
13315         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13316         blocks that still exist.
13317
13318 2011-03-24  Richard Guenther  <rguenther@suse.de>
13319
13320         PR tree-optimization/48270
13321         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13322         not free datarefs before ddrs.
13323
13324 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13325
13326         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13327         from the address built for a reference with variable offset.
13328
13329 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13330
13331         PR target/48237
13332         * config/i386/i386.md (*movdf_internal_rex64): Do not split
13333         alternatives that can be handled with movq or movabsq insn.
13334         (*movdf_internal): Disable for !TARGET_64BIT.
13335         (*movdf_internal_nointeger): Ditto.
13336         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13337
13338 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13339
13340         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13341         (FUNCTION_ARG_ADVANCE): Likewise.
13342         * tm.texi.in: Change references to them to hook references.
13343         * tm.texi: Regenerate.
13344         * targhooks.c (default_function_arg): Eliminate check for target macro.
13345         (default_function_incoming_arg): Likewise.
13346         (default_function_arg_advance): Likewise.
13347         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13348         (function_arg_advance): Likewise.
13349         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13350
13351 2011-03-24  Richard Guenther  <rguenther@suse.de>
13352
13353         PR middle-end/48269
13354         * tree-object-size.c (addr_object_size): Do not double-account
13355         for MEM_REF offsets.
13356
13357 2011-03-24  Diego Novillo  <dnovillo@google.com>
13358
13359         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13360         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13361         (lto_input_data_block): Move from lto-opts.c.  Make extern.
13362         Update all users.
13363         (lto_input_string): Rename from input_string.  Make extern.
13364         Update all users.
13365         * lto-streamer-out.c (lto_output_string_with_length): Rename from
13366         output_string_with_length.
13367         Output 0 to indicate a non-NULL string.  Update all callers to
13368         not emit 0.
13369         (lto_output_string): Rename from output_string.  Make extern.
13370         Update all users.
13371         (lto_output_decl_state_streams): Make extern.
13372         (lto_output_decl_state_refs): Make extern.
13373         * lto-streamer.h (lto_input_string): Declare.
13374         (lto_input_data_block): Declare.
13375         (lto_output_string): Declare.
13376         (lto_output_string_with_length): Declare.
13377         (lto_output_decl_state_streams): Declare.
13378         (lto_output_decl_state_refs): Declare.
13379
13380 2011-03-24  Richard Guenther  <rguenther@suse.de>
13381
13382         PR tree-optimization/46562
13383         * tree.c (build_invariant_address): New function.
13384         * tree.h (build_invariant_address): Declare.
13385         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13386         a renamed function moved ...
13387         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13388         Take valueization callback parameter.
13389         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13390         * gimple-fold.h: New file.
13391         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13392         (ccp_fold, fold_const_aggregate_ref,
13393         fold_ctor_reference, fold_nonarray_ctor_reference,
13394         fold_array_ctor_reference, fold_string_cst_ctor_reference,
13395         get_base_constructor): Move ...
13396         * gimple-fold.c: ... here.
13397         (gimple_fold_stmt_to_constant_1): New function
13398         split out from ccp_fold.  Take a valueization callback parameter.
13399         Valueize all operands.
13400         (gimple_fold_stmt_to_constant): New wrapper function.
13401         (fold_const_aggregate_ref_1): New function split out from
13402         fold_const_aggregate_ref.  Take a valueization callback parameter.
13403         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13404         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13405         invariant POINTER_PLUS_EXPRs to invariant form.
13406         (vn_valueize): New function.
13407         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13408         * tree-vrp.c (vrp_valueize): New function.
13409         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13410         to fold statements to constants.
13411         * tree-ssa-pre.c (eliminate): Properly guard propagation of
13412         function declarations.
13413         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13414         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13415
13416 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13417
13418         * config/h8300/predicates.md (jump_address_operand): Fix register
13419         mode check.
13420
13421 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
13422
13423         * doc/invoke.texi (max-stores-to-sink): Document.
13424         * params.h (MAX_STORES_TO_SINK): Define.
13425         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13426         if either vectorization or if-conversion is disabled.
13427         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13428         tree-vect-data-refs.c vect_equal_offsets.
13429         (dr_equal_offsets_p): New function.
13430         (find_data_references_in_bb): Remove static.
13431         * tree-data-ref.h (find_data_references_in_bb): Declare.
13432         (dr_equal_offsets_p): Likewise.
13433         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13434         (vect_drs_dependent_in_basic_block): Update calls to
13435         vect_equal_offsets.
13436         (vect_check_interleaving): Likewise.
13437         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13438         (cond_if_else_store_replacement): Rename to...
13439         (cond_if_else_store_replacement_1): ... this.  Change arguments and
13440         documentation.
13441         (cond_if_else_store_replacement): New function.
13442         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13443         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13444
13445 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
13446
13447         PR target/46934
13448         * config/arm/arm.md (casesi): Use the gen_int_mode() function
13449         to subtract lower bound instead of GEN_INT().
13450
13451 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
13452
13453         PR other/48179
13454         PR other/48221
13455         PR other/48234
13456         * doc/extend.texi (Alignment): Move section to match order in TOC.
13457         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13458         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13459
13460 2011-03-23  Jeff Law  <law@redhat.com>
13461
13462         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13463         before removing the edge.
13464
13465         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13466         it may have been freed by redirect_branch_edge or
13467         redirect_edge_succ_nodup.
13468
13469 2011-03-23  Richard Guenther  <rguenther@suse.de>
13470
13471         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13472         (check_va_list_escapes): Likewise.
13473         (check_all_va_list_escapes): Likewise.
13474
13475 2011-03-23  Richard Guenther  <rguenther@suse.de>
13476
13477         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13478         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13479         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13480         (alias.o): Likewise.
13481         (ipa-type-escape.o): Remove.
13482         (ipa-struct-reorg.o): Likewise.
13483         (GTFILES): Remove ipa-struct-reorg.c.
13484         * alias.c: Do not include ipa-type-escape.h.
13485         * tree-ssa-alias.c: Likewise.
13486         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13487         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13488         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13489         and ipa-type-escape passes.
13490         * tree-pass.h (pass_ipa_type_escape): Remove.
13491         (pass_ipa_struct_reorg): Likewise.
13492         * ipa-struct-reorg.h: Remove.
13493         * ipa-struct-reorg.c: Likewise.
13494         * ipa-type-escape.h: Likewise.
13495         * ipa-type-escape.c: Likewise.
13496         * doc/invoke.texi (-fipa-struct-reorg): Remove.
13497         (--param struct-reorg-cold-struct-ratio): Likewise.
13498         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13499         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13500         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13501
13502 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13503
13504         * config/s390/2084.md: Enable all insn reservations also for z9_ec
13505         cpu attribute value.
13506         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13507         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13508         * config/s390/s390.c (processor_flags_table): New constant array.
13509         (s390_handle_arch_option): Remove.
13510         (s390_handle_option): Remove s390_handle_arch_option invocations
13511         and OPT_mwarn_framesize_ handling.
13512         (s390_option_override): Remove s390_handle_arch_option invocation.
13513         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13514         warnings.
13515         * config/s390/s390.md (cpu attribute): Add z9_ec value.
13516         * config/s390/s390.opt (s390_tune, s390_arch)
13517         (march=): Replace s390_arch_option enum and values with
13518         processor_type.  Set variable name to s390_arch.  Set
13519         initialization value.
13520         (mtune=): Replace s390_arch_option with processor_type.  Set
13521         variable name to s390_tune.  Set initialization value.
13522
13523 2011-03-23  Julian Brown  <julian@codesourcery.com>
13524
13525         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13526         accesses which are not naturally aligned.
13527
13528 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13529
13530         PR target/47553
13531         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13532
13533 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13534
13535         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13536         parameter from "int" to "enum insn_code".
13537         (expand_operand_type): New enum.
13538         (expand_operand): New structure.
13539         (create_expand_operand): New function.
13540         (create_fixed_operand, create_output_operand): Likewise
13541         (create_input_operand, create_convert_operand_to): Likewise.
13542         (create_convert_operand_from, create_address_operand): Likewise.
13543         (create_integer_operand): Likewise.
13544         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13545         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13546         (expand_insn, expand_jump_insn): Likewise.
13547         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13548         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13549         (expand_movstr, expand_builtin___clear_cache): Likewise.
13550         (expand_builtin_lock_release): Likewise.
13551         * explow.c (allocate_dynamic_stack_space): Likewise.
13552         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
13553         and use the default handling in that case.
13554         * expmed.c (check_predicate_volatile_ok): Delete.
13555         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13556         (emit_cstore): Likewise.
13557         * expr.c (emit_block_move_via_movmem): Likewise.
13558         (set_storage_via_setmem, expand_assignment): Likewise.
13559         (emit_storent_insn, try_casesi): Likewise.
13560         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
13561         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13562         (expand_vec_shift_expr, expand_binop_directly): Likewise.
13563         (expand_twoval_unop, expand_twoval_binop): Likewise.
13564         (expand_unop_direct, emit_indirect_jump): Likewise.
13565         (emit_conditional_move, vector_compare_rtx): Likewise.
13566         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13567         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13568         (expand_sync_lock_test_and_set): Likewise.
13569         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
13570         (emit_unop_insn): Likewise.
13571         (expand_copysign_absneg): Change icode to an insn_code.
13572         (create_convert_operand_from_type): New function.
13573         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13574         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13575         (expand_insn, expand_jump_insn): Likewise.
13576         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13577         than const_int_operand for operand 2.
13578
13579 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13580
13581         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13582         if possible.
13583
13584 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13585
13586         * emit-rtl.c (emit_pattern_before_noloc): New function.
13587         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13588         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13589         (emit_pattern_after_noloc): New function.
13590         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13591         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13592
13593 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13594
13595         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13596         (__ffsDI2): Likewise.
13597
13598 2011-03-22  Richard Henderson  <rth@redhat.com>
13599
13600         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13601         of !TARGET_ABI_OPEN_VMS.
13602         (alpha_trampoline_init, alpha_start_function): Likewise.
13603         (alpha_expand_epilogue, alpha_file_start): Likewise.
13604         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13605         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13606         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13607         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13608         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13609
13610 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13611
13612         * config/s390/s390-opts.h: New.
13613         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13614         s390_arch_flags, s390_warn_framesize, s390_stack_size,
13615         s390_stack_guard): Remove.
13616         (s390_handle_arch_option): Return void.  Take enum
13617         s390_arch_option value instead of string and searching array.
13618         (s390_handle_option): Don't assert that global structures are in
13619         use.  Access variables via opts pointer.  Use error_at.  Don't use
13620         sscanf for -mstack-guard= or -mstack-size=.  Update call to
13621         s390_handle_arch_option.
13622         (s390_option_override): Update call to s390_handle_arch_option.
13623         (s390_emit_prologue): Use %d format for s390_stack_size in
13624         diagnostic.  Use %wd for HOST_WIDE_INT.
13625         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13626         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13627         * config/s390/s390.opt (config/s390/s390-opts.h): New
13628         HeaderInclude entry.
13629         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13630         s390_arch_flags, s390_warn_framesize): New Variable entries.
13631         (s390_arch_option): New Enum and EnumValue entries.
13632         (march=): Use Enum instead of Var.
13633         (mstack-guard=, mstack-size=): Use UInteger and Var.
13634         (mtune=): Use Enum.
13635
13636 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13637
13638         * config/score/score.c (score_handle_option): Don't assert that
13639         global structures are in use.  Access target_flags via opts
13640         pointer.  Use value of -march= option to determine target_flags
13641         settings.
13642         * config/score/score.opt (march=): Use Enum.
13643         (score_arch): New Enum and EnumValue entries.
13644
13645 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13646
13647         * config/mep/mep.c (option_mtiny_specified): Remove.
13648         (mep_option_override): Move register handling for -mivc2 from
13649         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
13650         instead of option_mtiny_specified.
13651         (mep_handle_option): Access target_flags via opts pointer.  Don't
13652         assert that global structures are in use.  Defer part of -mivc2
13653         handling and move it to mep_option_override.
13654         * config/mep/mep.opt (IVC2): New Mask entry.
13655         (mivc2): Use Var and Defer instead of Mask.
13656
13657 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13658
13659         * config/v850/v850-opts.h: New.
13660         * config/v850/v850.c (small_memory): Replace with
13661         small_memory_physical_max array.  Make that array static const.
13662         (v850_handle_memory_option): Take integer value of argument.  Take
13663         gcc_options pointer, option text and location.  Return void.
13664         Update for changes to small memory structures.
13665         (v850_handle_option): Access target_flags via opts pointer.  Don't
13666         assert that global structures are in use.  Update calls to
13667         v850_handle_memory_option.
13668         (v850_encode_data_area): Update references to small memory settings.
13669         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13670         (enum small_memory_type): Move to v850-opts.h.
13671         * config/v850/v850.opt (config/v850/v850-opts.h): New
13672         HeaderInclude entry.
13673         (small_memory_max): New Variable entry.
13674         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
13675         (mtda, mzda): Likewise.
13676
13677 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13678
13679         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13680         pointer.  Don't assert that global structures are in use.
13681
13682 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13683
13684         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13685         via opts pointer.  Don't assert that global structures are in use.
13686
13687 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13688
13689         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13690         (munix=93): Use Var.
13691         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13692         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13693         * config/pa/pa-opts.h: New.
13694         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13695         (pa_handle_option): Don't assert that global structures are in
13696         use.  Access target_flags via opts pointer.  Don't handle
13697         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13698         OPT_munix_98 here.
13699         (pa_option_override): Handle deferred OPT_mfixed_range_.
13700
13701 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13702
13703         * config/mn10300/mn10300-opts.h: New.
13704         * config/mn10300/mn10300.c (mn10300_processor,
13705         mn10300_tune_string): Remove.
13706         (mn10300_handle_option): Don't assert that global structures are
13707         in use.  Access mn10300_processor via opts pointer.  Don't handle
13708         OPT_mtune_ here.
13709         * config/mn10300/mn10300.h (enum processor_type): Move to
13710         mn10300-opts.h.
13711         (mn10300_processor): Remove.
13712         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13713         HeaderInclude entry.
13714         (mn10300_processor): New Variable entry.
13715         (mtune=): Use Var.
13716
13717 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13718
13719         * config/microblaze/microblaze.c: Don't include opts.h.
13720         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13721         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13722         (mno-clearbss): Use Var and Warn.
13723
13724 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13725
13726         * config/m32r/m32r-opts.h: New.
13727         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13728         (m32r_handle_option): Don't assert that global structures are in
13729         use.  Access target_flags and m32r_cache_flush_func via opts
13730         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
13731         OPT_mno_flush_trap here.
13732         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13733         include of m32r-opts.h.
13734         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13735         HeaderInclude entry.
13736         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13737         (mmodel=): Use Enum and Var.
13738         (m32r_model): New Enum and EnumValue entries.
13739         (mno-flush-trap): Use Var.
13740         (msdata=): Use Enum and Var.
13741         (m32r_sdata): New Enum and EnumValue entries.
13742
13743 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13744
13745         * config/m32c/m32c.c: Don't include opts.h.
13746         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13747         m32c_handle_option): Remove.
13748         (m32c_option_override): Check global_options_set.x_target_memregs
13749         instead of target_memregs_set.
13750         * config/m32c/m32c.h (target_memregs): Remove.
13751         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13752         variable.
13753
13754 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13755
13756         * config/iq2000/iq2000-opts.h: New.
13757         * config/iq2000/iq2000.c: Don't include opts.h.
13758         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
13759         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
13760         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13761         HeaderInclude entry.
13762         (iq2000_tune): New Variable entry.
13763         (march=): Add comment.  Use Enum.
13764         (iq2000_arch): New Enum and EnumValue entries.
13765         (mcpu=): Use Enum and Var.
13766         (iq2000_tune): New Enum and EnumValue entries.
13767
13768 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13769
13770         * config/ia64/ia64-opts.h: New.
13771         * config/ia64/ia64.c (ia64_tune): Remove.
13772         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13773         here.  Use error_at.
13774         (ia64_option_override): Handle deferred OPT_mfixed_range_.
13775         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13776         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13777         HeaderInclude entry.
13778         (ia64_tune): New Variable entry.
13779         (mfixed-range=): Use Defer and Var.
13780         (mtune=): Use Enum and Var.
13781         (ia64_tune): New Enum and EnumValue entries.
13782
13783 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13784
13785         * config/frv/frv-opts.h: New.
13786         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13787         frv-opts.h.
13788         (frv_cpu_type): Remove.
13789         * config/frv/frv.c: Don't include opts.h.
13790         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13791         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13792         (frv_cpu_type): New Variable entry.
13793         (frv_cpu): New Enum and EnumValue entries.
13794
13795 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13796
13797         * config/cris/cris.c (cris_handle_option): Access target_flags via
13798         opts pointer.  Don't assert that global structures are in use.
13799         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13800         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13801
13802 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13803
13804         * config/bfin/bfin-opts.h: New.
13805         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13806         bfin_si_revision, bfin_workarounds): Remove.
13807         (bfin_cpus): Make static const.
13808         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13809         not bfin_lib_id_given.
13810         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
13811         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13812         pointer. Use error_at.  Don't assert that global structures are in use.
13813         * config/bfin/bfin.h: Include bfin-opts.h.
13814         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13815         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13816         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13817         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13818         entries.
13819
13820 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13821
13822         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13823         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13824         or -msoft-float here.
13825         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13826         -msoft-float and -mhard-float.
13827         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13828         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13829         msoft-float.
13830         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13831         -msoft-float.
13832         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13833         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13834         not mhard-float.
13835         (LIBGCC_SPEC): Don't handle -msoft-float.
13836         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13837         -mhard-float.
13838         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13839         msoft-float.
13840         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13841         -mfloat-abi=*, not -msoft-float and -mhard-float.
13842         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13843         -msoft-float.
13844         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13845         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13846         mhard-float and msoft-float.
13847         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13848         mfloat-abi=soft in comments, not mhard-float and msoft-float.
13849         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13850         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13851         mhard-float.
13852         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13853         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13854         msoft-float.
13855         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13856         not mhard-float.
13857         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13858         not msoft-float.
13859
13860 2011-03-22  Richard Henderson  <rth@redhat.com>
13861
13862         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13863         TARGET_ABI_WINDOWS_NT.
13864         (alpha_output_function_end_prologue): Likewise.
13865         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13866         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13867         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13868         (trap, *movsi_nt_vms): Likewise.
13869         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13870         (*tablejump_osf_nt_internal): Remove.
13871         * config/alpha/predicates.md (input_operand): Only test Pmode.
13872
13873 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13874
13875         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13876         via opts pointer.  Use error_at.  Don't assert that global
13877         structures are in use.
13878
13879 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13880
13881         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13882         (ix86_handle_option): Access ix86_isa_flags and
13883         ix86_isa_flags_explicit via opts pointer.  Don't assert that
13884         global structures are in use.
13885         (ix86_function_specific_save, ix86_function_specific_restore):
13886         Update ix86_isa_flags_explicit field name.
13887         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13888         (ix86_isa_flags_explicit): Rename TargetSave entry to
13889         x_ix86_isa_flags_explicit.
13890
13891 2011-03-22  Richard Henderson  <rth@redhat.com>
13892
13893         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13894         (alpha_option_override, direct_return): Likewise.
13895         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13896         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13897         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13898         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13899         (alpha_expand_epilogue, alpha_end_function): Likewise.
13900         (alpha_init_libfuncs): Likewise.
13901         (struct machine_function): Remove unicosmk members.
13902         (print_operand) ['t']: Remove.
13903         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13904         unicosmk_output_module_name, unicosmk_output_common,
13905         current_section_align, unicosmk_output_text_section_asm_op,
13906         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13907         unicosmk_section_type_flags, unicosmk_unique_section,
13908         unicosmk_asm_named_section, unicosmk_insert_attributes,
13909         unicosmk_output_align, unicosmk_defer_case_vector,
13910         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13911         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13912         unicosmk_output_ssib, unicosmk_add_call_info_word,
13913         unicosmk_extern_head, unicosmk_output_default_externs,
13914         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13915         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13916         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13917         * config/alpha/alpha-protos.h: Update.
13918         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13919         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13920         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13921         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13922         (*mulsi_se, mulvsi3): Likewise.
13923         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13924         (*divmodsi_internal, call, call_value, realign): Likewise.
13925         (moddi3, umoddi3): Likewise; remove duplicate expander.
13926         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13927         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13928         (*movdi_nofix): Remove r/U alternative.
13929         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13930         * config/alpha/constraints.md ("U"): Remove.
13931         * config/alpha/predicates.md (call_operand"): Don't test
13932         TARGET_ABI_UNICOSMK.
13933
13934 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13935
13936         * target.def (handle_option): Take gcc_options and
13937         cl_decoded_option pointers and location_t.
13938         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13939         * doc/tm.texi: Regenerate.
13940         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13941         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13942         * lto-opts.c (lto_reissue_options): Generate option structure for
13943         targetm.handle_option call.
13944         * opts.c (target_handle_option): Update call to
13945         targetm.handle_option.  Remove assertions about values now passed
13946         down to hook.
13947         * targhooks.c (default_target_handle_option): New.
13948         * targhooks.h (default_target_handle_option): Declare.
13949         * config/alpha/alpha.c: Include opts.h.
13950         (alpha_handle_option): Update to new hook interface.
13951         * config/arm/arm.c: Include opts.h.
13952         (arm_handle_option): Update to new hook interface.
13953         * config/arm/t-arm (arm.o): Update dependencies.
13954         * config/bfin/bfin.c: Include opts.h.
13955         (bfin_handle_option): Update to new hook interface.
13956         * config/cris/cris.c: Include opts.h.
13957         (cris_handle_option): Update to new hook interface.
13958         * config/frv/frv.c: Include opts.h.
13959         (frv_handle_option): Update to new hook interface.
13960         * config/i386/i386.c: Include opts.h.
13961         (ix86_handle_option): Update to new hook interface.
13962         (ix86_valid_target_attribute_inner_p): Generate option structure
13963         for call to ix86_handle_option.
13964         * config/i386/t-i386 (i386.o): Update dependencies.
13965         * config/ia64/ia64.c: Include opts.h.
13966         (ia64_handle_option): Update to new hook interface.
13967         * config/ia64/t-ia64 (ia64.o): Update dependencies.
13968         * config/iq2000/iq2000.c: Include opts.h.
13969         (iq2000_handle_option): Update to new hook interface.
13970         * config/m32c/m32c.c: Include opts.h.
13971         (m32c_handle_option): Update to new hook interface.
13972         * config/m32r/m32r.c: Include opts.h.
13973         (m32r_handle_option): Update to new hook interface.
13974         * config/m68k/m68k.c: Include opts.h.
13975         (m68k_handle_option): Update to new hook interface.
13976         * config/mep/mep.c: Include opts.h.
13977         (mep_handle_option): Update to new hook interface.
13978         * config/microblaze/microblaze.c: Include opts.h.
13979         (microblaze_handle_option): Update to new hook interface.
13980         * config/mips/mips.c: Include opts.h.
13981         (mips_handle_option): Update to new hook interface.
13982         * config/mn10300/mn10300.c: Include opts.h.
13983         (mn10300_handle_option): Update to new hook interface.
13984         * config/pa/pa.c: Include opts.h.
13985         (pa_handle_option): Update to new hook interface.
13986         * config/pdp11/pdp11.c: Include opts.h.
13987         (pdp11_handle_option): Update to new hook interface.
13988         * config/rs6000/rs6000.c: Include opts.h.
13989         (rs6000_handle_option): Update to new hook interface.
13990         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13991         * config/rx/rx.c: Include opts.h.
13992         (rx_handle_option): Update to new hook interface.
13993         * config/s390/s390.c: Include opts.h.
13994         (s390_handle_option): Update to new hook interface.
13995         * config/score/score.c: Include opts.h.
13996         (score_handle_option): Update to new hook interface.
13997         * config/sh/sh.c: Include opts.h.
13998         (sh_handle_option): Update to new hook interface.
13999         * config/sparc/sparc.c: Include opts.h.
14000         (sparc_handle_option): Update to new hook interface.
14001         * config/v850/v850.c: Include opts.h.
14002         (v850_handle_option): Update to new hook interface.
14003
14004 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14005
14006         * gcc.c (driver_unknown_option_callback): Only permit and save
14007         unknown -Wno- options.
14008         (driver_wrong_lang_callback): Save options directly instead of via
14009         driver_unknown_option_callback.
14010
14011 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14012
14013         * combine.c (simplify_set): Try harder to find the best CC mode when
14014         simplifying a nested COMPARE on the RHS.
14015
14016 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14017
14018         * config/alpha/gnu.h: Remove.
14019         * config/arc: Remove directory.
14020         * config/arm/netbsd.h: Remove.
14021         * config/arm/t-pe: Remove.
14022         * config/crx: Remove directory.
14023         * config/i386/netbsd.h: Remove.
14024         * config/m68hc11: Remove directory.
14025         * config/m68k/uclinux-oldabi.h: Remove.
14026         * config/mcore/mcore-pe.h: Remove.
14027         * config/mcore/t-mcore-pe: Remove.
14028         * config/netbsd-aout.h: Remove.
14029         * config/rs6000/gnu.h: Remove.
14030         * config/sh/sh-symbian.h: Remove.
14031         * config/sh/symbian-base.c: Remove.
14032         * config/sh/symbian-c.c: Remove.
14033         * config/sh/symbian-cxx.c: Remove.
14034         * config/sh/symbian-post.h: Remove.
14035         * config/sh/symbian-pre.h: Remove.
14036         * config/sh/t-symbian: Remove.
14037         * config/svr3.h: Remove.
14038         * config/vax/netbsd.h: Remove.
14039         * config.build: Don't handle i[34567]86-*-pe.
14040         * config.gcc: Remove handling of deprecations for most deprecated
14041         targets.
14042         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14043         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14044         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14045         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14046         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14047         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14048         Remove cases.
14049         * config.host: Don't handle i[34567]86-*-pe.
14050         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14051         (ASM_SPEC32): Don't handle -mcall-gnu.
14052         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14053         -mcall-gnu.
14054         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14055         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14056         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14057         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14058         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14059         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14060         conditional on SYMBIAN.
14061         * configure.ac: Don't handle powerpc*-*-gnu*.
14062         * configure: Regenerate.
14063         * doc/extend.texi (interrupt attribute): Don't mention CRX.
14064         * doc/install-old.texi (m6811, m6812): Don't mention.
14065         * doc/install.texi (arc-*-elf*): Don't document multilib option.
14066         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14067         (m68k-uclinuxoldabi): Don't mention.
14068         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14069         Remove.
14070         (-mcall-gnu): Remove.
14071         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14072         families): Remove constraint documentation.
14073
14074 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
14075
14076         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14077         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14078         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14079
14080 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14081
14082         PR target/48226
14083         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14084         vector when peeking at the next token for vector, don't expand the
14085         keywords.
14086
14087 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
14088
14089         * config/avr/avr-protos.h (expand_epilogue): Change prototype
14090         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14091         * config/avr/avr.c (init_cumulative_args)
14092         (avr_function_arg_advance): Use it.
14093         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14094         sibcall epilogues.
14095         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14096         (avr_function_ok_for_sibcall): ...this new function.
14097         (avr_lookup_function_attribute1): New static Function.
14098         (avr_naked_function_p, interrupt_function_p)
14099         (signal_function_p, avr_OS_task_function_p)
14100         (avr_OS_main_function_p): Use it.
14101         * config/avr/avr.md ("sibcall", "sibcall_value")
14102         ("sibcall_epilogue"): New expander.
14103         ("*call_insn", "*call_value_insn"): New insn.
14104         ("call_insn", "call_value_insn"): Remove
14105         ("call", "call_value", "epilogue"): Change expander to handle
14106         sibling calls.
14107
14108 2011-03-21  Nick Clifton  <nickc@redhat.com>
14109
14110         * doc/invoke.texi (Overall Options): Move closing brace to end of
14111         options list.
14112         (Optimization Options): Add missing @gol.
14113         (Directory Options): Likewise.
14114         (i386 and x86-64 Options): Likewise.
14115         (RS6000 and PowerPC Options): Likewise.
14116         (i386 and x86-64 Windows Options): Likewise.
14117         (V850 Options): Add text missing from descriptions.
14118
14119 2011-03-22  Richard Henderson  <rth@redhat.com>
14120
14121         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14122         (avr_incoming_return_addr_rtx): New.
14123         (emit_push_byte): New.
14124         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
14125         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
14126         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
14127         (emit_pop_byte): New.
14128         (expand_epilogue): Use it.  Pop frame pointer by bytes.
14129         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14130         (INCOMING_RETURN_ADDR_RTX): New.
14131         (INCOMING_FRAME_SP_OFFSET): New.
14132         (ARG_POINTER_CFA_OFFSET): New.
14133         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14134         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14135         (pophi): Remove.
14136
14137         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14138
14139 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14140
14141         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14142         (FUNCTION_ARG_ADVANCE): Likewise.
14143         * tm.texi.in: Change references to them to hook references.
14144         * tm.texi: Regenerate.
14145         * targhooks.c (default_function_arg): Eliminate check for target
14146         macro.
14147         (default_function_incoming_arg): Likewise.
14148         (default_function_arg_advance): Likewise.
14149         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14150         (function_arg_advance): Likewise.
14151         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14152
14153 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14154
14155         * tree.c (build_call_1): New function.
14156         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14157
14158 2011-03-22  Richard Guenther  <rguenther@suse.de>
14159
14160         PR tree-optimization/48228
14161         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14162         for single-arg PHIs.
14163
14164 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
14165
14166         PR rtl-optimization/48143
14167         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14168         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14169         sse2_cvtps2pd): Likewise.
14170
14171 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14172
14173         * recog.c (canonicalize_change_group): Use validate_unshare_change.
14174
14175 2011-03-22  Richard Guenther  <rguenther@suse.de>
14176
14177         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14178         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14179         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14180         and REALIGN_LOAD_EXPR.
14181         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14182         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14183         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14184         DOT_PROD_EXPR case ...
14185         (expand_expr_real_2): ... here.
14186         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14187         and REALIGN_LOAD_EXPR.
14188         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14189         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14190         (vect_create_epilog_for_reduction): Likewise.
14191         (vectorizable_reduction): Likewise.
14192         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14193         * tree-vect-stmts.c (vectorizable_load): Likewise.
14194
14195 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14196
14197         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14198
14199 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14200
14201         * config/s390/s390.c (s390_delegitimize_address): Fix offset
14202         handling for PLTOFF/GOTOFF.
14203
14204 2011-03-22  Nick Clifton  <nickc@redhat.com>
14205
14206         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14207         trailing backslash from the end of the macro definition.
14208
14209 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14210
14211         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14212         and PLT unspecs.
14213
14214 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
14215
14216         * expr.h (prepare_operand): Move to...
14217         * optabs.h (prepare_operand): ...here and change the insn code
14218         parameter from "int" to "enum insn_code".
14219         (insn_operand_matches): Declare.
14220         * expr.c (init_expr_target): Use insn_operand_matches.
14221         (compress_float_constant): Likewise.
14222         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14223         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14224         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14225         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14226         Likewise.
14227         (gen_cond_trap): Likewise.
14228         (prepare_operand): Likewise.  Change icode to an insn_code.
14229         (insn_operand_matches): New function.
14230         * reload.c (find_reloads_address_1): Use insn_operand_matches.
14231         * reload1.c (gen_reload): Likewise.
14232         * targhooks.c (default_secondary_reload): Likewise.
14233
14234 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14235
14236         * config/alpha/alpha.md (unspec): New define_c_enum.
14237         (unspecv): Ditto.
14238
14239 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14240
14241         PR debug/48214
14242         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14243         between a call and its CALL_ARG_LOCATION note.
14244
14245 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
14246
14247         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14248
14249 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14250
14251         PR c/42544
14252         PR c/48197
14253         * c-common.c (shorten_compare): If primopN is first sign-extended
14254         to opN and then zero-extended to result type, set primopN to opN.
14255
14256 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
14257
14258         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14259         for barrier handlers.
14260
14261 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14262
14263         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14264         UNSPEC constants to be in the unspec enumeration, and redefine
14265         all UNSPECV constants to be in the unspecv enumeration, so that
14266         dumps print which unspec/unspec_volatile this is.
14267         * config/rs6000/vector.md (UNSPEC_*): Ditto.
14268         * config/rs6000/paired.md (UNSPEC_*): Ditto.
14269         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14270         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14271         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14272
14273         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14274         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14275         UNSPECV_LWSYNC, since these are used as unspec_volatile.
14276         * config/rs6000/sync.md (isync, lwsync): Ditto.
14277
14278 2011-03-21  Richard Guenther  <rguenther@suse.de>
14279
14280         * params.def (lto-min-partition): Fix typo.
14281
14282 2011-03-21  Richard Guenther  <rguenther@suse.de>
14283
14284         PR c/47939
14285         * c-decl.c (grokdeclarator): Drop to the main variant only
14286         for array types.  Drop flag_gen_aux_info check.
14287
14288 2011-03-21  Richard Guenther  <rguenther@suse.de>
14289
14290         PR translation/47911
14291         * params.def (lto-partitions): Fix typo.
14292         (lto-min-partition): Fix wording.
14293
14294 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
14295
14296         * config/rs6000/t-freebsd: Remove duplication from file.
14297
14298 2011-03-21  Richard Guenther  <rguenther@suse.de>
14299
14300         PR middle-end/47661
14301         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14302
14303 2011-03-21  Richard Guenther  <rguenther@suse.de>
14304
14305         PR lto/48210
14306         * params.def (lto-partitions): Require at least 1 partition.
14307
14308 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14309
14310         * gthr-solaris.h: Remove.
14311         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14312         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14313         (LIB_SPEC): Likewise.
14314         * config/sol2.opt (threads): Remove.
14315         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14316         (sparc*-*-solaris2*): Likewise.
14317         * configure.ac (enable_threads): Enable solaris support.
14318         * configure: Regenerate.
14319         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14320         * doc/install.texi (Configuration, --enable-threads=lib): Remove
14321         solaris.
14322
14323 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14324
14325         * config.gcc: Obsolete *-*-solaris2.8*.
14326         * doc/install.texi (Specific, *-*-solaris2*): Document it.
14327
14328 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14329
14330         PR bootstrap/48135
14331         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14332         reference.  Solaris 8 perl works.
14333
14334 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14335
14336         PR bootstrap/48135
14337         * doc/install.texi (Prerequisites): Move jar etc. up.
14338         Explain support library version requirements.
14339
14340 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14341
14342         PR bootstrap/48135
14343         * doc/install.texi (Prerequisites): Move Perl to build
14344         requirements.  Always necessary on Solaris 2 with Sun ld.
14345
14346 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14347
14348         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14349         binutils 2.21.
14350         (Specific, i?86-*-solaris2.[89]): Likewise.
14351         (Specific, i?86-*-solaris2.10): Likewise.
14352         (Specific, mips-sgi-irix6): Likewise.
14353         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14354         Update for binutils 2.21.
14355
14356 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14357
14358         * configure.ac (gcc_cv_lto_plugin): Fix typo.
14359         Allow -fuse-linker-plugin for non-default plugin linker.
14360         * configure: Regenerate.
14361
14362 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14363
14364         PR bootstrap/48167
14365         * gengtype.c (files_rules): Added rule for cp/parser.h.
14366
14367 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14368
14369         PR target/48213
14370         * config/s390/s390.c (s390_delegitimize_address): Don't call
14371         lowpart_subreg if orig_x has BLKmode.
14372
14373 2011-03-21  Kai Tietz  <ktietz@redhat.com>
14374
14375         PR target/12171
14376         * doc/plugins.texi: Adjust documentation for plugin register_callback.
14377         * tree.h (attribute_spec): Add new member affects_type_identity.
14378         * attribs.c (empty_attribute_table): Adjust attribute_spec
14379         initializers.
14380         * config/alpha/alpha.c: Likewise.
14381         * config/arc/arc.c: Likewise.
14382         * config/arm/arm.c: Likewise.
14383         * config/avr/avr.c: Likewise.
14384         * config/bfin/bfin.c: Likewise.
14385         * config/crx/crx.c: Likewise.
14386         * config/darwin.h: Likewise.
14387         * config/h8300/h8300.c: Likewise.
14388         * config/i386/cygming.h: Likewise.
14389         * config/i386/i386.c: Likewise.
14390         * config/ia64/ia64.c: Likewise.
14391         * config/m32c/m32c.c: Likewise.
14392         * config/m32r/m32r.c: Likewise.
14393         * config/m68hc11/m68hc11.c: Likewise.
14394         * config/m68k/m68k.c: Likewise.
14395         * config/mcore/mcore.c: Likewise.
14396         * config/mep/mep.c: Likewise.
14397         * config/microblaze/microblaze.c: Likewise.
14398         * config/mips/mips.c: Likewise.
14399         * config/rs6000/rs6000.c: Likewise.
14400         * config/rx/rx.c: Likewise.
14401         * config/sh/sh.c: Likewise.
14402         * config/sol2.h: Likewise.
14403         * config/sparc/sparc.c: Likewise.
14404         * config/spu/spu.c: Likewise.
14405         * config/stormy16/stormy16.c: Likewise.
14406         * config/v850/v850.c: Likewise.
14407
14408 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
14409
14410         * simplify-rtx.c (simplify_binary_operation_1): Handle
14411         (xor (and A B) C) case when B and C are both constants.
14412
14413 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
14414
14415         * tree-dfa.c (add_referenced_var): Fix typo in comment.
14416
14417 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14418
14419         PR bootstrap/48168
14420         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14421
14422 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
14423
14424         PR rtl-optimization/48156
14425         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14426         assume df and df_lr are not NULL.
14427
14428 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14429
14430         PR debug/48023
14431         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14432         between a call and its CALL_ARG_LOCATION note.
14433
14434 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
14435
14436         PR debug/48178
14437         * config/sh/sh.c (find_barrier): Don't emit a constant pool
14438         between a call and its corresponding CALL_ARG_LOCATION note.
14439
14440 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
14441
14442         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14443         instead of loop. Use HARD_REGISTER_NUM_P predicate.
14444         * haifa-sched.c (setup_ref_regs): Ditto.
14445         * caller-save.c (add_used_regs_1): Ditto.
14446         * dse.c (look_for_hardregs): Ditto.
14447         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14448         * sched-rgn.c (check_live_1): Ditto.
14449
14450 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14451
14452         * c-decl.c (diagnose_mismatched_decls): Give an error for
14453         redefining a typedef with variably modified type.
14454
14455 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14456
14457         * c-decl.c (grokfield): Don't allow typedefs for structures or
14458         unions with no tag by default.
14459         * doc/extend.texi (Unnamed Fields): Update.
14460
14461 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
14462
14463         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14464         Rewrite using indirect functions.
14465         (lwp_slwpcb): Ditto.
14466         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14467         (avx_vinsertf128<mode>): Ditto.
14468
14469 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14470
14471         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14472         unspecs.
14473
14474 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14475
14476         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14477         splitting between a call and its corresponding CALL_ARG_LOCATION note.
14478
14479 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14480
14481         PR rtl-optimization/48170
14482         * gcse.c (hoist_code): Remove bogus asserts.
14483
14484 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
14485
14486         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14487         computation for prologue/epilogue.
14488
14489 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14490
14491         * Makefile.in (check-consistency): Remove.
14492
14493 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
14494
14495         PR debug/48176
14496         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14497         arange_table_in_use is 0, but either text_section_used or
14498         cold_text_section_used is true.  Don't call it if
14499         !info_section_emitted.
14500
14501 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
14502
14503         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14504         FUNCTION_VALUE_REGNO_P): Remove.
14505         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14506         Remove.
14507         * config/avr/avr.c (avr_ret_register): Make static inline.
14508         (avr_function_value_regno_p): New function.
14509         (avr_libcall_value): Make static. Add 'func' argument.
14510         (avr_function_value): Make static. Rename 'func' argument to
14511         'fn_decl_or_type', forward it to avr_libcall_value. Call
14512         avr_ret_register function instead of RET_REGISTER macro.
14513         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14514
14515 2011-03-18  Jason Merrill  <jason@redhat.com>
14516
14517         PR c++/23372
14518         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14519
14520 2011-03-18  Richard Guenther  <rguenther@suse.de>
14521
14522         * doc/install.texi (--enable-gold): Remove.
14523         (--with-plugin-ld): Document.
14524         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14525
14526 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
14527
14528         PR middle-end/47790
14529         * expr.c (optimize_bitfield_assignment_op): Revamp to work
14530         again after expansion changes.
14531
14532 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
14533
14534         * combine.c (try_combine): Do simplification only call of
14535         subst() on i2 even when i1 is present. Update comments.
14536
14537 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
14538
14539         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14540         and UNSPEC_PCREL_SYMOFF.
14541
14542 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14543
14544         * config/s390/s390.md: Use define_c_enum for the unspec constant
14545         definitions.
14546
14547 2011-03-18  Richard Henderson  <rth@redhat.com>
14548             Jakub Jelinek  <jakub@redhat.com>
14549
14550         PR bootstrap/48161
14551         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14552         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14553
14554 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14555
14556         PR middle-end/47725
14557         * combine.c (cant_combine_insn_p): Don't check zero/sign
14558         extended hard registers.
14559
14560 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14561
14562         PR middle-end/47725
14563         * combine.c (cant_combine_insn_p): Check zero/sign extended
14564         hard registers.
14565
14566 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
14567
14568         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14569         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14570         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14571         Change return type to bool.
14572         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14573
14574 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14575
14576         PR debug/48163
14577         * var-tracking.c (prepare_call_arguments): If CALL target
14578         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14579         pc instead of looking it up using cselib_lookup and use
14580         Pmode for it if x has VOIDmode.
14581         * dwarf2out.c (gen_subprogram_die): If also both first and
14582         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14583
14584         PR debug/48163
14585         * function.c (assign_parms): For data.passed_pointer parms
14586         use MEM of data.entry_parm instead of data.entry_parm itself
14587         as DECL_INCOMING_RTL.
14588         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14589         also when passed and declared mode is the same, DECL_RTL
14590         is a MEM with pseudo as address and DECL_INCOMING_RTL is
14591         a MEM too.
14592
14593 2011-03-16  Jeff Law  <law@redhat.com>
14594
14595         PR rtl-optimization/37273
14596         * ira-costs.c (scan_one_insn): Detect constants living in memory and
14597         handle them like argument loads from stack slots.  Do not double
14598         count memory for memory constants and argument loads from stack slots.
14599
14600 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14601
14602         PR debug/48160
14603         * var-tracking.c (prepare_call_arguments): Check SUBREG.
14604
14605 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14606
14607         PR target/48171
14608         * config/i386/i386.opt: Add Save to -mavx and -mfma.
14609
14610 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14611
14612         PR bootstrap/48153
14613         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14614         if dwarf_strict.
14615         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14616         Clear call_arg_locations and call_arg_loc_last always.
14617
14618         PR middle-end/48152
14619         * var-tracking.c (prepare_call_arguments): If argument needs to be
14620         passed by reference, adjust argtype and mode.
14621
14622 2011-03-17  Richard Guenther  <rguenther@suse.de>
14623
14624         PR middle-end/48134
14625         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14626         a value make sure to fold the statement.
14627
14628 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
14629
14630         PR target/43872
14631         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14632         return condition with !cfun->calls_alloca.
14633
14634 2011-03-17  Richard Guenther  <rguenther@suse.de>
14635
14636         PR bootstrap/48148
14637         * lto-cgraph.c (input_overwrite_node): Clear the abstract
14638         origin for decls in other ltrans units.
14639         (input_varpool_node): Likewise.
14640
14641 2011-03-17  Richard Guenther  <rguenther@suse.de>
14642
14643         PR middle-end/48165
14644         * tree-object-size.c (compute_object_offset): Properly return
14645         the offset operand of MEM_REFs as sizetype.
14646
14647 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14648
14649         PR rtl-optimization/48141
14650         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14651         * dse.c: Include params.h.
14652         (active_local_stores_len): New variable.
14653         (add_wild_read, dse_step1): Clear it when setting active_local_stores
14654         to NULL.
14655         (record_store, check_mem_read_rtx): Decrease it when removing
14656         from the chain.
14657         (scan_insn): Likewise.  Increase it when adding to chain, if it
14658         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14659         set active_local_stores to NULL before the addition.
14660         * Makefile.in (dse.o): Depend on $(PARAMS_H).
14661
14662         PR rtl-optimization/48141
14663         * dse.c (record_store): If no positions are needed in an insn
14664         that cannot be deleted, at least unchain it from active_local_stores.
14665
14666 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
14667
14668         PR debug/47510
14669         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14670         (lookup_type_die_strip_naming_typedef): ... here.
14671         (get_context_die): Use it.
14672         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14673         the anonymous struct named by the naming typedef.
14674
14675 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
14676
14677         PR target/48154
14678         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14679         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14680
14681 2011-03-16  Jeff Law  <law@redhat.com>
14682
14683         * tree-vrp.c (identify_jump_threads): Slightly simplify type
14684         check for operands of conditional.  Allow type to be a pointer.
14685
14686 2011-03-16  Richard Guenther  <rguenther@suse.de>
14687
14688         PR tree-optimization/48149
14689         * fold-const.c (fold_binary_loc): Fold
14690         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14691
14692 2011-03-16  Richard Guenther  <rguenther@suse.de>
14693
14694         PR tree-optimization/26134
14695         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14696         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14697         (non_rewritable_mem_ref_base): Handle complex type component
14698         accesses, constrain offsets for vector and complex extracts
14699         more properly.
14700
14701 2011-03-16  Richard Guenther  <rguenther@suse.de>
14702
14703         PR tree-optimization/48146
14704         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14705         operands avoiding the need for renaming.
14706
14707 2011-03-16  Richard Guenther  <rguenther@suse.de>
14708
14709         * gimple-fold.c (maybe_fold_reference): Open-code relevant
14710         constant folding.  Move MEM_REF canonicalization first.
14711         Rely on fold_const_aggregate_ref for initializer folding.
14712         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14713
14714 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
14715
14716         PR middle-end/48136
14717         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14718         arg0/arg1 or their arguments are always fold converted to matching
14719         types.
14720
14721         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14722         to nargs.
14723
14724 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14725
14726         PR lto/46944
14727         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14728         Handle in-tree gold.
14729         (ld_vers): Extract binutils version for gold.
14730         (gcc_cv_ld_hidden): Handle gold here.
14731         (gcc_cv_lto_plugin): Determine level of linker plugin support.
14732         * configure: Regenerate.
14733         * config.in: Regenerate.
14734         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14735         -fuse-linker-plugin otherwise.
14736         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
14737         (LINK_COMMAND_SPEC): Use it.
14738         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14739
14740 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
14741
14742         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14743         * calls.c: Remove debug.h include.
14744         (emit_call_1): Don't call virtual_call_token debug hook.
14745         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14746         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14747         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14748         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14749         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14750         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14751         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14752         dwarf2out_virtual_call): Remove.
14753         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14754         copy_call_info and virtual_call hooks.
14755         (dwarf2out_init): Don't initialize vcall_insn_table,
14756         debug_dcall_section and debug_vcall_section.
14757         (prune_unused_types): Don't mark nodes from dcall_table.
14758         (dwarf2out_finish): Don't output dcall or vcall tables.
14759         * final.c (final_scan_insn): Don't call direct_call or
14760         virtual_call debug hooks.
14761         * debug.h (struct gcc_debug_hooks): Remove direct_call,
14762         virtual_call_token, copy_call_info and virtual_call hooks.
14763         (debug_nothing_uid): Remove prototype.
14764         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14765         copy_call_info and virtual_call hooks.
14766         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14767         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14768         * debug.c (do_nothing_debug_hooks): Likewise.
14769         (debug_nothing_uid): Remove.
14770         * doc/invoke.texi (-fenable-icf-debug): Remove.
14771         * common.opt (-fenable-icf-debug): Likewise.
14772
14773         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14774         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14775         call's MEM.  Handle functions returning aggregate through a hidden
14776         first pointer.  For virtual calls add clobbered pc to call arguments
14777         chain.
14778         * dwarf2out.c (gen_subprogram_die): Emit
14779         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14780         can't be emitted.
14781
14782         PR debug/45882
14783         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14784         * rtl.h (ENTRY_VALUE_EXP): Define.
14785         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14786         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14787         * print-rtl.c (print_rtx): Likewise.
14788         * gengtype.c (adjust_field_rtx_def): Likewise.
14789         * var-tracking.c (vt_add_function_parameter): Adjust
14790         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14791         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14792         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14793         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14794         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14795
14796         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14797         Call var_location debug hook even on CALL_INSNs.
14798         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14799         * rtl.def (ENTRY_VALUE): New.
14800         * dwarf2out.c: Include cfglayout.h.
14801         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14802         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14803         (struct call_arg_loc_node): New type.
14804         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14805         tail_call_site_count): New variables.
14806         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14807         DW_TAG_GNU_call_site_parameter.
14808         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14809         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14810         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14811         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14812         and DW_AT_GNU_all_source_call_sites.
14813         (mem_loc_descriptor): Handle ENTRY_VALUE.
14814         (add_src_coords_attributes): Don't add enything if
14815         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14816         (dwarf2out_abstract_function): Save and clear call_arg_location,
14817         call_site_count and tail_call_site_count around dwarf2out_decl call.
14818         (gen_call_site_die): New function.
14819         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14820         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14821         (dwarf2out_function_decl): Clear call_arg_locations,
14822         call_arg_loc_last, set call_site_count and tail_call_site_count
14823         to -1 and free block_map.
14824         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14825         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
14826         followed by any real instructions.
14827         (dwarf2out_begin_function): Set call_site_count and
14828         tail_call_site_count to 0.
14829         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14830         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14831         attempt to force a DIE for it and worst case remove the attribute.
14832         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14833         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14834         the decl itself.
14835         * var-tracking.c: Include tm_p.h.
14836         (vt_stack_adjustments): For calls call note_register_arguments.
14837         (argument_reg_set): New variable.
14838         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14839         ensure the VALUE is resolved.
14840         (call_arguments): New variable.
14841         (prepare_call_arguments): New function.
14842         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14843         (struct expand_loc_callback_data): Add ignore_cur_loc field.
14844         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14845         always use the best expression.
14846         (vt_expand_loc): Add ignore_cur_loc argument.
14847         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14848         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14849         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14850         note for all calls.
14851         (vt_add_function_parameter): Use cselib_lookup_from_insn.
14852         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14853         argument.  Don't call cselib_preserve_only_values and
14854         cselib_reset_table.
14855         (note_register_arguments): New function.
14856         (vt_initialize): Compute argument_reg_set.  Call
14857         vt_add_function_parameters before processing basic blocks instead of
14858         afterwards.  For calls call prepare_call_arguments before calling
14859         cselib_process_insn.
14860         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14861         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14862         (var-tracking.o): Depend on $(TM_P_H).
14863         * cfglayout.h (insn_scope): New prototype.
14864         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14865         * cfglayout.c (insn_scope): No longer static.
14866         * insn-notes.def (CALL_ARG_LOCATION): New.
14867         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14868         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14869         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14870         nothing for DECL_EXTERNAL BLOCK_VARS.
14871
14872 2011-03-16  Alan Modra  <amodra@gmail.com>
14873
14874         PR target/45844
14875         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14876         create invalid offset address for vsx splat insn.
14877         * config/rs6000/predicates.md (splat_input_operand): New.
14878         * config/rs6000/vsx.md (vsx_splat_*): Use it.
14879
14880 2011-03-15  Xinliang David Li  <davidxl@google.com>
14881
14882         PR c/47837
14883         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14884         (normalize_preds): New function.
14885         (is_use_properly_guarded): Normalize def predicates.
14886
14887 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14888
14889         PR target/46788
14890         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14891         in the output template.
14892
14893 2011-03-15  Richard Guenther  <rguenther@suse.de>
14894
14895         PR middle-end/47650
14896         * tree-pretty-print.c (dump_function_declaration): Properly
14897         dump unprototyped and varargs function types.
14898
14899 2011-03-15  Richard Guenther  <rguenther@suse.de>
14900
14901         PR tree-optimization/13954
14902         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14903         and friends.
14904
14905 2011-03-15  Richard Guenther  <rguenther@suse.de>
14906
14907         PR tree-optimization/48037
14908         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14909         selects into BIT_FIELD_REFs.
14910         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14911         vector select.
14912
14913 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
14914
14915         PR tree-optimization/48129
14916         * builtins.c (fold_builtin_snprintf): Convert to type of
14917         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14918         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14919
14920 2011-03-15  Richard Guenther  <rguenther@suse.de>
14921
14922         PR tree-optimization/41490
14923         * tree-ssa-dce.c (propagate_necessity): Handle returns without
14924         value but with VUSE.
14925         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14926         return statements.
14927         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14928         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14929         * tree-tailcall.c (find_tail_calls): Ignore returns.
14930
14931 2011-03-15  Richard Guenther  <rguenther@suse.de>
14932
14933         PR middle-end/48031
14934         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14935         or variable-indexed array accesses when in gimple form.
14936
14937 2011-03-15  Richard Guenther  <rguenther@suse.de>
14938
14939         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14940
14941 2011-03-15  Alan Modra  <amodra@gmail.com>
14942
14943         PR target/48032
14944         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14945         presume symbol_refs without a symbol_ref_decl are suitably
14946         aligned, nor other trees we may see here.  Handle anchor symbols.
14947         (legitimate_constant_pool_address_p): Comment.  Add mode param.
14948         Check cmodel=medium addresses.  Adjust all calls.
14949         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14950         creating cmodel=medium optimized access to locals.
14951         * config/rs6000/constraints.md (R): Pass QImode to
14952         legitimate_constant_pool_address_p.
14953         * config/rs6000/predicates.md (input_operand): Pass mode to
14954         legitimate_constant_pool_address_p.
14955         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14956         Update prototype.
14957
14958 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14959
14960         PR target/48053
14961         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14962         64-bit constants being loaded into registers other than GPRs such
14963         as loading 0 into a VSX register.
14964
14965 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14966
14967         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14968
14969 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
14970
14971         PR middle-end/47917
14972         * builtins.c (fold_builtin_snprintf): New function.
14973         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14974         (fold_builtin_4): Likewise.
14975
14976         PR middle-end/38878
14977         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14978         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
14979         and C - X == X also strip nops from +/-/p+ operand.
14980         When optimizing -X == C, fold C to arg0's type.
14981
14982         PR debug/47946
14983         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14984         emit it as add_AT_int instead of add_AT_unsigned.
14985
14986 2011-03-14  Tom Tromey  <tromey@redhat.com>
14987
14988         * unwind-dw2.c: Include sys/sdt.h if it exists.
14989         (_Unwind_DebugHook): Use STAP_PROBE2.
14990         * config.in, configure: Rebuild.
14991         * configure.ac: Check for sys/sdt.h.
14992
14993 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
14994
14995         * config/i386/i386.md (ROUND_FLOOR): New constant.
14996         (ROUND_CEIL): Ditto.
14997         (ROUND_TRUNC): Ditto.
14998         (ROUND_MXCSR): Ditto.
14999         (ROUND_NO_EXC): Ditto.
15000         (rint<mode>2): Use new defines instead of numerical constants.
15001         (floor<mode>2): Ditto.
15002         (ceil<mode>2): Ditto.
15003         (btrunc<mode>2): Ditto.
15004         * config/i386/i386-builtin-types.def: Define ROUND function type
15005         aliases.
15006         * config/i386/i386.c (enum ix86_builtins): Add
15007         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15008         (struct builtin_description): Add
15009         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15010         (ix86_expand_sse_round): New static function.
15011         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15012         function types.
15013         (ix86_builtin_vectorized_function): Handle
15014         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15015
15016 2011-03-14  Tom Tromey  <tromey@redhat.com>
15017
15018         * c-parser.c (c_parser_asm_string_literal): Clear
15019         warn_overlength_strings.
15020
15021 2011-03-14  Tom Tromey  <tromey@redhat.com>
15022
15023         * c-parser.c (disable_extension_diagnostics): Save
15024         warn_overlength_strings.
15025         (restore_extension_diagnostics): Restore warn_overlength_strings.
15026
15027 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15028
15029         * BASE-VER: Change to 4.7.0.
15030
15031 2011-03-14  Richard Guenther  <rguenther@suse.de>
15032
15033         PR middle-end/48098
15034         * tree.c (build_vector_from_val): Adjust assert to requirements
15035         and reality.
15036
15037 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15038
15039         PR bootstrap/48102
15040         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15041
15042 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
15043
15044         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15045         terms of target_flags_explicit. Adjust copyright year.
15046
15047         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15048         * config/rs6000/t-freebsd: New file. Add override for
15049         LIB2FUNCS_EXTRA.
15050
15051 2011-03-13  Chris Demetriou  <cgd@google.com>
15052
15053         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15054         (-fno-diagnostics-show-option): this, to reflect current default.
15055         (-Werror=): Update text about -fno-diagnostics-show-option.
15056
15057 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
15058
15059         PR target/48053
15060         * config/rs6000/predicates.md (easy_vector_constant_add_self,
15061         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15062         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15063         mode is not V2DImode or V2DFmode.
15064         (vspltis_constant): Do not handle V2DImode and V2DFmode.
15065         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15066         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15067         registers to 0.
15068         (movdi_internal64): Likewise.
15069
15070 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
15071
15072         PR tree-optimization/47127
15073         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15074         parameter.
15075         (set_cloog_options): Same.
15076         (scop_to_clast): Same.
15077         (print_clast_stmt): Do not call cloog_state_malloc and
15078         cloog_state_free.
15079         (print_generated_program): Same.
15080         (gloog): Same.
15081         * graphite-clast-to-gimple.h (cloog_state): Declared.
15082         (scop_to_clast): Adjust declaration.
15083         * graphite.c (cloog_state): Defined here.
15084         (graphite_initialize): Call cloog_state_malloc.
15085         (graphite_finalize): Call cloog_state_free.
15086
15087 2011-03-11  Jason Merrill  <jason@redhat.com>
15088
15089         * attribs.c (lookup_attribute_spec): Take const_tree.
15090         * tree.h: Adjust.
15091
15092 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
15093
15094         * config/sparc/sparc.c (sparc_option_override): Use
15095         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15096
15097 2011-03-11  Richard Guenther  <rguenther@suse.de>
15098
15099         PR tree-optimization/48067
15100         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15101         multiplication result will be only used once on the target
15102         stmt.
15103
15104 2011-03-11  Richard Guenther  <rguenther@suse.de>
15105
15106         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15107
15108 2011-03-11  Richard Guenther  <rguenther@suse.de>
15109
15110         PR lto/48073
15111         * tree.c (find_decls_types_r): Do not walk types only reachable
15112         from IDENTIFIER_NODEs.
15113
15114 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15115
15116         PR middle-end/48044
15117         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15118         all vnode->force_output nodes as needed.
15119
15120 2011-03-11  Jason Merrill  <jason@redhat.com>
15121
15122         PR c++/48069
15123         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15124         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15125
15126 2011-03-11  Martin Jambor  <mjambor@suse.cz>
15127
15128         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15129         cgraph_node.
15130
15131 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15132
15133         PR tree-optimization/48063
15134         * ipa-inline.c (cgraph_decide_inlining): Don't try to
15135         inline functions called once if !tree_can_inline_p (node->callers).
15136
15137 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
15138
15139         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15140         extra_objs.
15141         * config/score/score3.c: Delete.
15142         * config/score/score3.h: Delete.
15143         * config/score/mul-div.S: Delete.
15144         * config/score/sfp-machine.h: Add new file.
15145         * config/score/constraints.md: Add new file.
15146         * config/score/t-score-softfp: Add new file.
15147         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15148         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15149         (score7_extra_constraint): Delete.
15150         (score7_option_override): Remove unused code.
15151         * config/score/score.c: Remove score3 and score5 define and code.
15152         * config/score/score.h: Remove score3 and score5 define and code.
15153         * config/score/score.md: Remove score3 template and unusual insn.
15154         * config/score/score.opt: Remove score3 and score5 options.
15155
15156 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15157
15158         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15159         when _HPUX_SOURCE is defined.
15160         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15161
15162 2011-03-10  Jason Merrill  <jason@redhat.com>
15163
15164         PR c++/48029
15165         * stor-layout.c (layout_type): Don't set structural equality
15166         on arrays of incomplete type.
15167         * tree.c (type_hash_eq): Handle comparing them properly.
15168
15169 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
15170
15171         PR debug/48043
15172         * config/s390/s390.c (s390_delegitimize_address): Make sure the
15173         result mode matches original rtl mode.
15174
15175 2011-03-10  Nick Clifton  <nickc@redhat.com>
15176
15177         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15178         (andsi3, andsi3_flags): Fix timings for three operand alternative.
15179
15180 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
15181
15182         PR rtl-optimization/47866
15183         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15184         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15185         if target wasn't scalar.
15186         * function.c (assign_stack_temp_for_type): Assert that neither
15187         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15188         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15189         macro.
15190         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15191
15192 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15193
15194         * config/s390/s390-protos.h (s390_label_align): New prototype.
15195         * config/s390/s390.c (s390_label_align): New function.
15196         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15197
15198 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
15199
15200         PR target/47755
15201         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15202         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
15203         (output_vec_const_move): Ditto.
15204
15205 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
15206
15207         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15208         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15209         * config/mips/mips.c (mips_preferred_reload_class): Make static.
15210         Change 'rclass' argument and result type to reg_class_t.
15211         (TARGET_PREFERRED_RELOAD_CLASS): Define.
15212
15213 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
15214
15215         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15216         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15217         (TARGET_MEMORY_MOVE_COST): Define.
15218         (avr_register_move_cost, avr_memory_move_cost): New Functions.
15219
15220 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
15221
15222         PR debug/47881
15223         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15224         removed anything.
15225
15226         PR tree-optimization/48022
15227         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15228         for EQ/NE_EXPR.
15229
15230 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
15231
15232         PR debug/47991
15233         * var-tracking.c (find_use_val): Return NULL for
15234         cui->sets && cui->store_p BLKmode MEMs.
15235
15236 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
15237
15238         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15239         Remove.
15240         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15241         xstormy16_print_operand_address): Remove.
15242         * config/stormy16/stormy16.c (xstormy16_print_operand,
15243         xstormy16_print_operand_address): Make static.
15244         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15245
15246 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
15247
15248         PR target/47862
15249         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15250         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15251         before definition.
15252
15253 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
15254
15255         PR bootstrap/48000
15256         * cfgloopmanip.c (fix_bb_placements): Return immediately
15257         if FROM is BASE_LOOP's header.
15258
15259 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
15260
15261         * gimplify.c (gimplify_function_tree): Fix building calls
15262         to __builtin_return_address.
15263
15264 2011-03-07  Alan Modra  <amodra@gmail.com>
15265
15266         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15267         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15268         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15269         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15270         return_mode args.
15271         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15272         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15273         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15274         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15275         * config/rs6000/rs6000.c
15276         (rs6000_elf_end_indicate_exec_stack): Rename to..
15277         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
15278         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
15279         (rs6000_file_start): ..here.
15280         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15281         file scope variables.
15282         (call_ABI_of_interest): New function.
15283         (init_cumulative_args): Set above vars when function return value
15284         is a float, vector, or small struct.
15285         (rs6000_function_arg_advance_1): Likewise for function args.
15286         (rs6000_va_start): Set rs6000_passes_float if variable arg function
15287         references float args.
15288
15289 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
15290
15291         * doc/cfg.texi: Remove "See" before @ref.
15292         * doc/invoke.texi: Likewise.
15293
15294 2011-03-05  Jason Merrill  <jason@redhat.com>
15295
15296         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15297
15298 2011-03-05  Anthony Green  <green@moxielogic.com>
15299
15300         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15301
15302 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
15303
15304         PR rtl-optimization/47899
15305         * cfgloopmanip.c (fix_bb_placements): Fix first argument
15306         to flow_loop_nested_p when moving the loop upward.
15307
15308 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
15309
15310         PR target/47719
15311         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
15312
15313 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
15314
15315         PR tree-optimization/47967
15316         * ipa-cp.c (build_const_val): Return NULL instead of creating
15317         VIEW_CONVERT_EXPR for mismatching sizes.
15318         (ipcp_create_replace_map): Return NULL if build_const_val failed.
15319         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15320         give up on versioning.
15321
15322 2011-03-05  Alan Modra  <amodra@gmail.com>
15323
15324         PR target/47986
15325         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15326         full cmodel medium/large lo_sum + high addresses.
15327
15328 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15329
15330         * config/s390/s390.c (s390_decompose_address): Reject non-literal
15331         pool references in UNSPEC_LTREL_OFFSET.
15332
15333 2011-03-04  Jan Hubicka  <jh@suse.cz>
15334
15335         PR lto/47497
15336         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15337         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15338         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15339         Add node pointers.
15340         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15341         cgraph_add_thunk): Add node pointers.
15342         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15343         associated to right node.
15344         (input_node): Update use of cgraph_same_body_alias
15345         and cgraph_add_thunk.
15346
15347 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15348
15349         * config/i386/i386.opt (mprefer-avx128): New flag.
15350         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15351         modes when the flag -mprefer-avx128 is on.
15352
15353 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
15354
15355         * dwarf2out.c (compare_loc_operands): Fix address handling.
15356
15357 2011-03-04  Alan Modra  <amodra@gmail.com>
15358
15359         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15360
15361 2011-03-04  Richard Guenther  <rguenther@suse.de>
15362
15363         PR middle-end/47968
15364         * expmed.c (extract_bit_field_1): Prefer vector modes that
15365         vec_extract patterns can handle.
15366
15367 2011-03-04  Richard Guenther  <rguenther@suse.de>
15368
15369         PR middle-end/47975
15370         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15371
15372 2011-03-04  Richard Henderson  <rth@redhat.com>
15373
15374         * explow.c (emit_stack_save): Remove 'after' parameter.
15375         (emit_stack_restore): Likewise.
15376         * expr.h: Update to match.
15377         * builtins.c, calls.c, stmt.c: Likewise.
15378         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15379         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15380         * function.c (expand_function_end): Insert the emit_stack_save
15381         sequence before parm_birth_insn instead of after.
15382
15383 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
15384
15385         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15386         (ssse3_pmaddubsw128): Ditto.
15387         (ssse3_pmaddubsw): Ditto.
15388
15389 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
15390
15391         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15392
15393 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
15394
15395         PR c/47963
15396         * gimplify.c (omp_add_variable): Only call omp_notice_variable
15397         on TYPE_SIZE_UNIT if it is a DECL.
15398
15399         PR debug/47283
15400         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15401         first operand is not is_gimple_mem_ref_addr, try to fold it.
15402         If the operand still isn't is_gimple_mem_ref_addr, clear
15403         MEM_EXPR on op0.
15404
15405 2011-03-03  Richard Guenther  <rguenther@suse.de>
15406
15407         PR middle-end/47283
15408         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15409         match comment.
15410         (refs_may_alias_p_1): For release branches return true if
15411         we are confused by our input.
15412
15413 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15414
15415         * config/s390/s390.c (s390_function_value): Rename to ...
15416         (s390_function_and_libcall_value): ... this.
15417         (s390_function_value): New function.
15418         (s390_libcall_value): New function.
15419         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15420         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15421         target macro definitions.
15422         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15423
15424 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
15425
15426         * config/i386/freebsd64.h (CC1_SPEC): Define.
15427         * config/i386/linux64.h (CC1_SPEC): Define.
15428         * config/i386/x86-64.h (CC1_SPEC): Don't define.
15429
15430 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
15431
15432         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15433         Remove.
15434         * config/stormy16/stormy16.c: Include reload.h.
15435         (xstormy16_memory_move_cost): New function.
15436         (TARGET_MEMORY_MOVE_COST): Define.
15437
15438 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
15439
15440         PR rtl-optimization/47925
15441         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15442         with side effects.  Remove the more-specific check for volatile asms.
15443
15444 2011-03-02  Alan Modra  <amodra@gmail.com>
15445
15446         PR target/47935
15447         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15448         toc relative addresses for valid offsets.
15449
15450 2011-03-01  Richard Guenther  <rguenther@suse.de>
15451
15452         PR tree-optimization/47890
15453         * tree-vect-loop.c (get_initial_def_for_induction): Set
15454         related stmt properly.
15455
15456 2011-03-01  Richard Guenther  <rguenther@suse.de>
15457
15458         PR lto/47924
15459         * lto-streamer.c (lto_record_common_node): Also register
15460         the canonical type.
15461
15462 2011-03-01  Richard Guenther  <rguenther@suse.de>
15463
15464         PR lto/46911
15465         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15466         Do not stream DECL_ABSTRACT_ORIGIN.
15467         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15468         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15469         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15470         Do not stream DECL_ABSTRACT_ORIGIN.
15471         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15472         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15473
15474 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
15475
15476         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15477         FUNCTION_VALUE_REGNO_P): Remove.
15478         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15479         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15480         Add 'outgoing' argument.
15481         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15482         function.
15483         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15484         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15485
15486 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
15487
15488         PR debug/28047
15489         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15490         (lookup_filename): Likewise.
15491         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15492
15493 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
15494             Jakub Jelinek  <jakub@redhat.com>
15495
15496         PR middle-end/47893
15497         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15498         (assign_stack_local_1): Change last argument type to int.
15499         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15500         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
15501         don't record padding space into frame_space_list nor use those areas.
15502         (assign_stack_local): Adjust caller.
15503         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15504         of assign_stack_local, pass 0 as last argument.
15505         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15506         callers.
15507
15508 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
15509
15510         PR debug/47283
15511         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15512         Use target address_mode and pointer_mode hooks instead of hardcoded
15513         Pmode and ptr_mode.  Handle some simple cases of extending if
15514         POINTERS_EXTEND_UNSIGNED < 0.
15515         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15516         Call convert_debug_memory_address.
15517         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15518         convert_debug_memory_address.
15519
15520         PR middle-end/46790
15521         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15522         * configure: Regenerated.
15523         * config.in: Regenerated.
15524         * varasm.c (default_function_section): Return NULL
15525         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15526
15527 2011-02-28  Martin Jambor  <mjambor@suse.cz>
15528
15529         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15530         the description to match the printed values.
15531
15532 2011-02-28  Richard Guenther  <rguenther@suse.de>
15533
15534         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15535         of the copied scope tree.
15536
15537 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15538
15539         * doc/extend.texi (Function Attributes): Avoid deeply (and
15540         wrongly) nested tables.
15541
15542 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
15543
15544         PR middle-end/47903
15545         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15546         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15547         r isn't op0 nor op1.
15548
15549 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15550
15551         * config/avr/avr.md: Remove magic comment for emacs.
15552
15553 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15554
15555         PR target/45261
15556         * config/avr/avr.c (avr_option_override): Use error on bad options.
15557         (avr_help): New function.
15558         (TARGET_HELP): Define.
15559
15560 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
15561
15562         PR target/42240
15563         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15564         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15565
15566 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
15567
15568         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15569         (ARM Options): Ditto.
15570         (i386 and x86-64 Options): Ditto.
15571         (RX Options): Ditto.
15572         (SPARC Options): Ditto.
15573
15574 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
15575
15576         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15577         FreeBSD 6 and later.  Generally use cpu generic.
15578
15579 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
15580
15581         * doc/cpp.texi: Update copyright years.
15582
15583 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
15584
15585         PR target/46898
15586         * config/lm32/lm32.md (ashrsi3): Added needed variable.
15587
15588 2011-02-25  Jon Beniston  <jon@beniston.com>
15589
15590         PR target/46898
15591         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15592         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15593         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15594         (lm32_block_move_inline): Add type cast to remove warning.
15595         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15596         (gen_int_relational): Move declarations to start of function.
15597
15598 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
15599
15600         PR tree-optimization/45470
15601         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15602         can throw internally only.
15603         * tree-vect-stmts.c (vectorizable_call): Likewise.
15604
15605 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
15606
15607         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15608         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15609         * config/stormy16/stormy16-protos.h
15610         (xstormy16_preferred_reload_class): Remove.
15611         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15612         static. Change 'rclass' argument and return type to reg_class_t.
15613         (TARGET_PREFERRED_RELOAD_CLASS,
15614         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15615
15616 2011-02-24  Richard Guenther  <rguenther@suse.de>
15617
15618         * lto-streamer-in.c (input_bb): Do not find referenced vars
15619         in debug statements.
15620
15621 2011-02-23  Jason Merrill  <jason@redhat.com>
15622
15623         * common.opt (fabi-version): Document v5 and v6.
15624
15625 2011-02-23  Richard Guenther  <rguenther@suse.de>
15626
15627         PR tree-optimization/47849
15628         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15629
15630 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15631
15632         * opts-common.c (decode_cmdline_option): Print empty string
15633         argument as "" in decoded->orig_option_with_args_text.
15634         * gcc.c (execute): Print empty string argument as ""
15635         in the verbose output.
15636         (do_spec_1): Keep empty string argument.
15637
15638 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
15639
15640         * config.gcc: Declare score-* and crx-* obsolete.
15641
15642 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15643
15644         PR rtl-optimization/47763
15645         * web.c (web_main): Ignore naked clobber when replacing register.
15646
15647 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
15648
15649         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15650         Remove.
15651
15652 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15653
15654         PR doc/47848
15655         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15656
15657 2011-02-22  Mike Stump  <mikestump@comcast.net>
15658
15659         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15660         assembler.
15661         * configure: Regenerate.
15662
15663 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
15664
15665         PR rtl-optimization/46002
15666         * ira-color.c (update_copy_costs): Change class intersection
15667         test to reg_class_contents[] test of 'hard_regno'.
15668
15669 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
15670
15671         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15672         than Driver option.
15673         * config/hpux11.opt (mt): Likewise.
15674         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15675         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15676         * config/vax/elf.opt (mno-asm-pic): Likewise.
15677         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15678
15679 2011-02-21  Mike Stump  <mikestump@comcast.net>
15680
15681         PR target/47822
15682         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15683         tree so we can get save the type.
15684         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15685         for CFString instead of trying to use past the end of the builtins.
15686         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15687         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15688         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15689         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15690         Rename to darwin_builtin_cfstring.
15691         (darwin_init_cfstring_builtins): Return the built type.
15692
15693 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
15694
15695         PR target/47840
15696         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15697         (_mm256_insert_epi64): Use _mm_insert_epi64.
15698
15699 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
15700
15701         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15702         * config/stormy16/stormy16-protos.h
15703         (xstormy16_mode_dependent_address_p): Remove.
15704         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15705         Make static. Change return type to bool. Change argument type to
15706         const_rtx. Remove dead code.
15707         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15708
15709 2011-02-21  Richard Guenther  <rguenther@suse.de>
15710
15711         PR lto/47820
15712         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15713         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15714         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15715         TUs context.
15716         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15717         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15718
15719 2011-02-20  Richard Guenther  <rguenther@suse.de>
15720
15721         PR lto/47822
15722         * tree.c (free_lang_data_in_decl): Clean builtins from
15723         the TU decl BLOCK_VARS.
15724
15725 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
15726
15727         PR debug/47620
15728         PR debug/47630
15729         * haifa-sched.c (fix_tick_ready): Skip tick computation
15730         for debug insns.
15731
15732 2011-02-19  Richard Guenther  <rguenther@suse.de>
15733
15734         PR lto/47647
15735         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15736         Remove lazy BLOCK_VARS streaming.
15737         (lto_input_ts_block_tree_pointers): Likewise.
15738         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15739
15740 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
15741
15742         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15743
15744 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
15745
15746         * config/i386/biarch32.h, config/i386/mach.h,
15747         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15748
15749 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
15750
15751         PR target/47800
15752         * config/i386/i386.md (peephole2 for shift and plus): Use
15753         operands[1] original mode in the first insn.
15754
15755 2011-02-18  Mike Stump  <mikestump@comcast.net>
15756
15757         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
15758
15759 2011-02-18  Jan Hubicka  <jh@suse.cz>
15760
15761         PR middle-end/47788
15762         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15763         to zero when the function is not inlinable at all.
15764
15765 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15766
15767         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15768         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15769         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15770         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15771         * config/pa/t-pa64: Likewise.
15772         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15773
15774 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
15775
15776         PR driver/47787
15777         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15778
15779 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15780
15781         PR target/47792
15782         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15783
15784 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
15785
15786         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15787         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15788         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15789         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15790         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15791         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15792         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15793         m32r_load_postinc_p, m32r_store_preinc_predec_p,
15794         m32r_legitimate_address_p): New functions.
15795         * config/m32r/constraints.md (constraint "S"): Don't use
15796         STORE_PREINC_PREDEC_P.
15797         (constraint "U"): Don't use LOAD_POSTINC_P.
15798
15799 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
15800
15801         PR rtl-optimization/46178
15802         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15803         compute ira_hard_regno_cover_class[].
15804
15805 2011-02-18  Richard Guenther  <rguenther@suse.de>
15806
15807         PR lto/47798
15808         * lto-streamer.h (lto_global_var_decls): Declare.
15809         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15810         statics for global var processing.
15811
15812 2011-02-18  Richard Guenther  <rguenther@suse.de>
15813
15814         PR tree-optimization/47737
15815         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15816         edge dominance check.
15817
15818 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
15819
15820         PR debug/47780
15821         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15822         avoid invalid rtx sharing.
15823
15824 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
15825
15826         * doc/cpp.texi (Obsolete Features): Add background on the
15827         origin of assertions.
15828
15829 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
15830
15831         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15832         objc_abi == 2.
15833         * config/darwin.c (output_objc_section_asm_op): Added support for
15834         ABI v1 and v2.
15835         (is_objc_metadata): New.
15836         (darwin_objc2_section): New.
15837         (darwin_objc1_section): New.
15838         (machopic_select_section): Added support for ABI v1 and v2.
15839         (darwin_emit_objc_zeroed): New.
15840         (darwin_output_aligned_bss): Detect objc metadata and treat it
15841         appropriately.
15842         (darwin_asm_output_aligned_decl_common): Same.
15843         (darwin_asm_output_aligned_decl_local): Same.
15844         * config/darwin-sections.def: Updated for ABI v1 and v2.
15845         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15846         compiling Objective-C code for the NeXT runtime, default to using
15847         ABI version 0 for 32-bit, and version 2 for 64-bit.
15848
15849 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15850
15851         * common.opt (optimize_fast): New Variable.
15852         * opts.c (default_options_optimization): Use opts->x_optimize_fast
15853         instead of local variable ofast.
15854
15855 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
15856
15857         * doc/invoke.texi (fobjc-abi-version): Documented.
15858         (fobjc-nilcheck): Documented.
15859         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15860         version.
15861
15862 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15863
15864         PR driver/47390
15865         * common.opt (export-dynamic): New Driver option.
15866         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15867
15868 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15869
15870         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15871
15872 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
15873             Jan Hubicka  <jh@suse.cz>
15874
15875         PR debug/47106
15876         PR debug/47402
15877         * cfgexpand.c (account_used_vars_for_block): Remove.
15878         (estimated_stack_frame_size): Use referenced vars.
15879         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15880         that were referenced in the original function.  Test src_fn
15881         rather than cfun.  Drop redundant get_var_ann.
15882         (setup_one_parameter): Drop redundant get_var_ann.
15883         (declare_return_variable): Likewise.
15884         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15885         (copy_arguments_for_versioning): Drop redundant get_var_ann.
15886         * ipa-inline.c (compute_inline_parameters): Do not compute
15887         disregard_inline_limits here.
15888         (compute_inlinable_for_current, pass_inlinable): New.
15889         (pass_inline_parameters): Require PROP_referenced_vars.
15890         * cgraphunit.c (cgraph_process_new_functions): Don't run
15891         compute_inline_parameters explicitly unless function is in SSA form.
15892         (cgraph_analyze_function): Set .disregard_inline_limits.
15893         * tree-sra.c (convert_callers): Compute inliner parameters
15894         only for functions already in SSA form.
15895
15896 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15897
15898         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15899         -mlittle-endian-data.
15900
15901 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15902
15903         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15904         -mno-fpu, not -fpu and -no-fpu.
15905         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15906         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15907
15908 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
15909
15910         PR target/43653
15911         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15912         input reload with PLUS RTX.
15913
15914 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15915
15916         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15917         of InverseVar(MDMX).
15918
15919 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15920
15921         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15922         --m4-340.
15923
15924 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15925
15926         * config/mn10300/mn10300.opt (mno-crt0): New.
15927
15928 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15929
15930         * config/m68k/uclinux.opt (static-libc): New Driver option.
15931
15932 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15933
15934         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15935
15936 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15937
15938         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15939         %{muser-extend-enabled}.
15940
15941 2011-02-16  Richard Guenther  <rguenther@suse.de>
15942
15943         PR tree-optimization/47738
15944         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15945         the TODO from tree_predictive_commoning.
15946
15947 2011-02-15  Jeff Law  <law@redhat.com>
15948
15949         Revert
15950         2011-01-25  Jeff Law  <law@redhat.com>
15951
15952         PR rtl-optimization/37273
15953         * ira-costs.c (scan_one_insn): Detect constants living in memory and
15954         handle them like argument loads from stack slots.  Do not double
15955         count memory for memory constants and argument loads from stack slots.
15956
15957 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
15958
15959         PR middle-end/47725
15960         * combine.c (cant_combine_insn_p): Revert the last change.
15961
15962 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
15963
15964         PR target/47755
15965         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15966         mode for vector constants.  Remove code that checks for TImode.
15967
15968 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15969
15970         PR debug/47106
15971         PR debug/47402
15972         * cgraph.h (compute_inline_parameters): Return void.
15973         * ipa-inline.c (compute_inline_parameters): Adjust.
15974
15975 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15976
15977         PR debug/47106
15978         PR debug/47402
15979         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15980         rather than decl.
15981         * cfgexpand.c (estimated_stack_frame_size): Likewise.
15982         * ipa-inline.c (compute_inline_parameters): Adjust.
15983
15984 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
15985
15986         PR debug/47106
15987         PR debug/47402
15988         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15989         Adjust all users.  Pass FN to...
15990         * tree-flow-inline.h (first_referenced_var): ... this.  Add
15991         fn argument.
15992         * ipa-struct-reorg.c: Adjust.
15993         * tree-dfa.c: Adjust.
15994         * tree-into-ssa.c: Adjust.
15995         * tree-sra.c: Adjust.
15996         * tree-ssa-alias.c: Adjust.
15997         * tree-ssa-live.c: Adjust.
15998         * tree-ssa.c: Adjust.
15999         * tree-ssanames.c: Adjust.
16000         * tree-tailcall.c: Adjust.
16001
16002 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16003
16004         PR debug/47106
16005         PR debug/47402
16006         * tree-flow.h (referenced_var_lookup): Add fn parameter.
16007         Adjust all callers.
16008         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16009         * tree-flow-inline.h: Adjust.
16010         * gimple-pretty-print.c: Adjust.
16011         * tree-into-ssa.c: Adjust.
16012         * tree-ssa.c: Adjust.
16013         * cfgexpand.c: Adjust.
16014
16015 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16016
16017         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16018         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16019         (EXTRA_CONSTRAINT): Delete.
16020         * config/iq2000/constraints.md: New file.
16021         * config/iq2000/iq2000.md: Include it.
16022         (define_insn ""): Delete.
16023         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16024         unsupported constraint letters from patterns.
16025         (call_value, call_value_internal1): Likewise.
16026         (call_value_multiple_internal1): Likewise.
16027
16028 2011-02-15  Nick Clifton  <nickc@redhat.com>
16029
16030         * config/mn10300/mn10300.c: Include tm-constrs.h.
16031         (struct liw_data): New data structure describing an LIW candidate
16032         instruction.
16033         (extract_bundle): Use struct liw_data.  Allow small integer
16034         operands for some instructions.
16035         (check_liw_constraints): Use struct liw_data.  Remove swapped
16036         parameter.  Add comments describing the checks.  Fix bug when
16037         assigning the source of liw1 to the source of liw2.
16038         (liw_candidate): Delete.  Code moved into extract_bundle.
16039         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
16040         before swapping.
16041         * config/mn10300/predicates.md (liw_operand): New predicate.
16042         Allows registers and small integer constants.
16043         * config/mn10300/constraints.md (O): New constraint.  Accetps
16044         integers in the range -8 to +7 inclusive.
16045         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16046         for moving a small integer into a register.  Give this alternative
16047         LIW attributes.
16048         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16049         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16050         using the J,K,L and M constraints,
16051         (liw): Remove SI mode on second operands to allow for HI and QI
16052         mode values.
16053         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
16054         instruction.
16055
16056 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16057
16058         PR middle-end/47725
16059         * combine.c (cant_combine_insn_p): Check zero/sign extended
16060         hard registers.
16061
16062 2011-02-15  Richard Guenther  <rguenther@suse.de>
16063
16064         PR tree-optimization/47743
16065         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16066         for a non-type-compatible VN lookup bail out.
16067
16068 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16069
16070         * config/fr30/constraints.md: New file.
16071         * config/fr30/fr30.md: Include it.
16072         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16073         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16074         (EXTRA_CONSTRAINT): Delete.
16075
16076 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16077
16078         * config/frv/constraints.md: New file.
16079         * config/frv/predicates.md: Include it.
16080         * config/frv/frv.c (reg_class_from_letter): Delete.
16081         (frv_option_override): Don't initialize it.
16082         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16083         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16084         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16085         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16086         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16087         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16088         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16089         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16090         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16091         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16092         (REG_CLASS_FROM_CONSTRAINT): Delete.
16093
16094 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
16095
16096         PR middle-end/47581
16097         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16098         if frame size is 0 in a leaf function.
16099
16100 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16101
16102         PR pch/14940
16103         * config/alpha/host-osf.c: New file.
16104         * config/alpha/x-osf: New file.
16105         * config.host (alpha*-dec-osf*): Use it.
16106
16107 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16108
16109         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16110         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16111         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16112         (rx_mode_dependent_address_p): ...this. Make static. Change argument
16113         type to const_rtx.
16114         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16115
16116 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16117
16118         * config/stormy16/constraints.md: New file.
16119         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16120         Use satisfies_constraint_Q and satisfies_constraint_R.
16121         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16122         Delete.
16123         (xstormy16_legitiamte_address_p): Declare.
16124         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16125         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16126         (EXTRA_CONSTRAINT): Delete.
16127         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16128         Un-staticize.
16129         (xstormy16_extra_constraint_p): Delete.
16130
16131 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
16132
16133         PR tree-optimization/46494
16134         * loop-unroll.c (split_edge_and_insert): Adjust comment.
16135         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16136         (pass_rtl_loop_done): Add TODO_verify_flow.
16137         * fwprop.c (pass_rtl_fwprop): Likewise.
16138         * modulo-sched.c (pass_sms): Likewise.
16139         * tree-ssa-dom.c (pass_dominator): Likewise.
16140         * tree-ssa-loop-ch.c (pass_ch): Likewise.
16141         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16142         (pass_tree_loop_done): Likewise.
16143         * tree-ssa-pre.c (execute_pre): Likewise.
16144         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16145         * tree-ssa-sink.c (pass_sink_code): Likewise.
16146         * tree-vrp.c (pass_vrp): Likewise.
16147
16148 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16149
16150         * config/v850/constraints.md: New file.
16151         * config/v850/v850.md: Include it.
16152         * config/v850/predicates.md (reg_or_0_operand): Use
16153         satisfies_constraint_G.
16154         (special_symbolref_operand): Use satisfies_constraint_K.
16155         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16156         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16157         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16158         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16159         (EXTRA_CONSTRAINT): Delete.
16160         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16161         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16162         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16163
16164 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16165
16166         PR target/47696
16167         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16168         description.
16169
16170 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16171
16172         * config/mcore/constraints.md: New file.
16173         * config/mcore/mcore.md: Include it.
16174         * config/mcore/mcore.c (reg_class_from_letter): Delete.
16175         * config/mcore/mcore.h (reg_class_from_letter): Delete.
16176         (REG_CLASS_FROM_LETTER): Delete.
16177         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16178         insn_const_int_ok_for_constraint.
16179         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16180         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16181         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16182         (EXTRA_CONSTRAINT): Delete.
16183
16184 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16185
16186         PR ada/41929
16187         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16188         (IS_SIGHANDLER): Define.
16189         (sparc64_is_sighandler): New function, split off from
16190         sparc64_fallback_frame_state.
16191         (sparc_is_sighandler): New function, split off from
16192         sparc_fallback_frame_state.
16193         (sparc64_fallback_frame_state): Merge with ...
16194         (sparc_fallback_frame_state): ... this into ...
16195         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16196         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
16197         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
16198         stack instead of hardcoded offsets.
16199
16200 2011-02-14  Andriy Gapon  <avg@freebsd.org>
16201
16202         PR target/45808
16203         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16204
16205 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16206
16207         * configure: Regenerate.
16208
16209 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
16210
16211         PR driver/45731
16212         * gcc.c (asm_options): Correct spec matching --target-help.
16213
16214 2011-02-12  Martin Jambor  <mjambor@suse.cz>
16215
16216         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16217         to gimple call error.
16218
16219 2011-02-12  Mike Stump  <mikestump@comcast.net>
16220
16221         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16222         comments in backslash regions.
16223
16224 2011-02-12  Mike Stump  <mikestump@comcast.net>
16225             Jakub Jelinek  <jakub@redhat.com>
16226             Iain Sandoe  <iains@gcc.gnu.org>
16227
16228         PR target/47324
16229         * dwarf2out.c (output_cfa_loc): When required, apply the
16230         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16231         (output_loc_sequence): Likewise.
16232         (output_loc_operands_raw): Likewise.
16233         (output_loc_sequence_raw): Likewise.
16234         (output_cfa_loc): Likewise.
16235         (output_loc_list): Suppress register number adjustment when
16236         calling output_loc_sequence()
16237         (output_die): Likewise.
16238
16239 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
16240
16241         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16242         Remove macros.
16243         * config/xtensa/xtensa.c (xtensa_register_move_cost,
16244         xtensa_memory_move_cost): New functions.
16245         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16246
16247 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
16248
16249         PR lto/47225
16250         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16251         in the current directory.
16252         * configure: Rebuilt.
16253
16254 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16255
16256         * config/darwin.c (darwin_override_options): Add a hunk missed
16257         from the commit of r168571.  Trim comment line lengths and
16258         correct indents of the preceding block.
16259
16260 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16261
16262         * gcc.c (driver_handle_option): Concatenate the argument to -F with
16263         the switch.
16264
16265 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16266
16267         * common.opt (nostartfiles): New Driver option.
16268
16269 2011-02-11  Xinliang David Li  <davidxl@google.com>
16270
16271         PR tree-optimization/47707
16272         * tree-chrec.c (convert_affine_scev): Keep type precision.
16273
16274 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
16275
16276         PR tree-optimization/47420
16277         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16278
16279 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
16280
16281         PR rtl-optimization/47614
16282         * rtl.h (check_for_inc_dec): Declare.
16283         * dse.c (check_for_inc_dec): Externalize...
16284         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16285         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16286
16287 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16288
16289         PR driver/47678
16290         * gcc.c (main): Do not compile inputs if there were errors in
16291         option handling.
16292         * opts-common.c (read_cmdline_option): Check for wrong language
16293         after other error checks.
16294
16295 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
16296
16297         * cgraph.c: Fix comment typos.
16298         * cgraph.h: Likewise.
16299         * cgraphunit.c: Likewise.
16300         * ipa-cp.c: Likewise.
16301         * ipa-inline.c: Likewise.
16302         * ipa-prop.c: Likewise.
16303         * ipa-pure-const.c: Likewise.
16304         * ipa-ref.c: Likewise.
16305         * ipa-reference.c: Likewise.
16306
16307 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16308
16309         PR debug/47684
16310         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16311
16312 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16313
16314         PR testsuite/47400
16315         * doc/sourcebuild.texi (Require Support): Document
16316         dg-require-ascii-locale.
16317
16318 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
16319
16320         * doc/lto.texi (Write summary): Fix missing parentheses.
16321
16322 2011-02-10  DJ Delorie  <dj@redhat.com>
16323
16324         * config/m32c/m32c.c (m32c_option_override): Disable
16325         -fcombine-stack-adjustments until flag value tracking and compare
16326         optimization can be rewritten.
16327
16328 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
16329
16330         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16331         PROCESSOR_POWER7.
16332         (PROCESSOR_DEFAULT64): Likewise.
16333
16334 2011-02-10  Richard Henderson  <rth@redhat.com>
16335
16336         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16337         change from 2011-02-03.
16338         * config/rx/rx.c (flags_from_code): Likewise.
16339         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16340         is valid, n/pz otherwise.
16341         (rx_select_cc_mode): Return CCmode if Y is not zero.
16342
16343 2011-02-10  Richard Guenther  <rguenther@suse.de>
16344
16345         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16346
16347 2011-02-10  Richard Guenther  <rguenther@suse.de>
16348
16349         PR tree-optimization/47677
16350         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16351
16352 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
16353
16354         PR target/47665
16355         * combine.c (make_compound_operation): Only change shifts into
16356         multiplication for SCALAR_INT_MODE_P.
16357
16358 2011-02-10  Jie Zhang  <jie@codesourcery.com>
16359
16360         PR testsuite/47622
16361         Revert
16362         2011-02-05  Jie Zhang  <jie@codesourcery.com>
16363         PR debug/42631
16364         * web.c (entry_register): Don't clobber the number of the
16365         first uninitialized reference in used[].
16366
16367 2011-02-09  Richard Guenther  <rguenther@suse.de>
16368
16369         PR tree-optimization/47664
16370         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16371         all edges again.
16372
16373 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
16374
16375         PR target/46481
16376         PR target/47032
16377         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16378         PROCESSOR_POWER7.
16379         (PROCESSOR_DEFAULT64): Same.
16380         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16381
16382 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16383
16384         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16385
16386 2011-02-09  Martin Jambor  <mjambor@suse.cz>
16387
16388         PR middle-end/45505
16389         * tree-sra.c (struct access): New flags grp_scalar_read and
16390         grp_scalar_write.  Changed description of assignment read and write
16391         flags.
16392         (dump_access): Dump new flags, reorder all of them.
16393         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16394         to detect multiple scalar reads.
16395         (analyze_access_subtree): Use the new scalar read write flags instead
16396         of the old flags.  Adjusted comments.
16397
16398 2011-02-08  DJ Delorie  <dj@redhat.com>
16399
16400         PR target/47548
16401         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16402         patterns.
16403
16404 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16405
16406         * config/m68k/uclinux.opt: New.
16407         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16408
16409 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16410
16411         * config/cris/elf.opt (sim): New Driver option.
16412
16413 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16414
16415         * config/xtensa/elf.opt: New.
16416         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16417
16418 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16419
16420         * config/vax/elf.opt: New.
16421         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16422
16423 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16424
16425         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16426
16427 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16428
16429         * config/gnu-user.opt: New.
16430         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16431         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16432         *-*-uclinux*): Use gnu-user.opt.
16433
16434 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
16435
16436         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16437         * config/i386/gnu.h (CPP_SPEC): Likewise.
16438
16439 2011-02-08  Ian Lance Taylor  <iant@google.com>
16440
16441         * common.opt (fcx-limited-range): Add SetByCombined flag.
16442         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16443         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16444         (fassociative-math, freciprocal-math): Likewise.
16445         (funsafe-math-optimizations): Likewise.
16446         * opth-gen.awk: Handle SetByCombined.
16447         * optc-gen.awk: Likewise.
16448         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16449         (set_unsafe_math_optimizations_flags): Likewise.
16450         * doc/options.texi (Option properties): Document SetByCombined.
16451
16452 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16453
16454         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16455         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16456         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16457         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16458         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16459
16460 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
16461
16462         PR tree-optimization/46834
16463         PR tree-optimization/46994
16464         PR tree-optimization/46995
16465         * graphite-sese-to-poly.c (used_outside_reduction): New.
16466         (detect_commutative_reduction): Call used_outside_reduction.
16467         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16468         translate_scalar_reduction_to_array only when at least one
16469         loop-phi/close-phi tuple has been detected.
16470
16471 2011-02-08  Richard Guenther  <rguenther@suse.de>
16472
16473         PR middle-end/47639
16474         * tree-vect-generic.c (expand_vector_operations_1): Update
16475         stmts here ...
16476         (expand_vector_operations): ... not here.  Cleanup EH info
16477         and the CFG if required.
16478
16479 2011-02-08  Richard Guenther  <rguenther@suse.de>
16480
16481         PR tree-optimization/47641
16482         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16483         require type compatibility.
16484
16485 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16486
16487         * gimple-low.c (lower_function_body): Don't remove the location of
16488         the return statement here.
16489         (lower_gimple_return): Do it here instead but only if the return
16490         statement is actually used twice.
16491
16492 2011-02-08  Richard Guenther  <rguenther@suse.de>
16493
16494         PR tree-optimization/47632
16495         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16496         unused up_to_stmt parameter, return whether cfg-cleanup is
16497         necessary, remove EH info properly.
16498         (forward_propagate_into_gimple_cond): Adjust caller.
16499         (forward_propagate_into_cond): Likewise.
16500         (forward_propagate_comparison): Likewise.
16501         (tree_ssa_forward_propagate_single_use_vars): Make
16502         forward_propagate_comparison case similar to the two others.
16503
16504 2011-02-08  Nick Clifton  <nickc@redhat.com>
16505
16506         * config/mn10300/mn10300.opt (mliw): New command line option.
16507         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16508         (liw_bundling): New automaton.
16509         (liw): New attribute.
16510         (liw_op): New attribute.
16511         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16512         (movsi_internal): Add LIW attributes.
16513         (andsi3): Likewise.
16514         (iorsi3): Likewise.
16515         (xorsi3): Likewise.
16516         (addsi3): Separate register and immediate alternatives.
16517         Add LIW attributes.
16518         (subsi3): Likewise.
16519         (cmpsi): Likewise.
16520         (aslsi3): Likewise.
16521         (lshrsi3): Likewise.
16522         (ashrsi3): Likewise.
16523         (liw): New pattern.
16524         * config/mn10300/mn10300.c (liw_op_names): New
16525         (mn10300_print_operand): Handle 'W' operand descriptor.
16526         (extract_bundle): New function.
16527         (check_liw_constraints): New function.
16528         (liw_candidate): New function.
16529         (mn10300_bundle_liw): New function.
16530         (mn10300_reorg): New function.
16531         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16532         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16533         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16534         __LIW__ or __NO_LIW__.
16535         * doc/invoke.texi: Describe the -mliw command line option.
16536
16537 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16538
16539         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16540         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16541         pthread_mutex_unlock): Remove.
16542         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16543         * config/pa/t-pa64: Likewise.
16544         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16545         shared libc if not linking against libpthread.
16546         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16547
16548 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
16549
16550         PR target/47558
16551         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16552         on 10.6 and later to ensure that we always use the unwinder from
16553         the system.  Only add -no_compact_unwind when tarteting darwin
16554         10.6 or later.
16555
16556 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
16557
16558         PR target/46997
16559         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16560         (vec_interleave_lowv2sf): Ditto.
16561         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16562         (vec_extract_oddv2sf): Ditto.
16563
16564 2011-02-07  Mike Stump  <mikestump@comcast.net>
16565
16566         PR target/42333
16567         Add __ieee_divdc3 entry point.
16568         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16569         entry point.
16570         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16571         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16572         * config/darwin.c (darwin_rename_builtins): Add.
16573         * config/darwin-protos.h (darwin_rename_builtins): Add.
16574
16575 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
16576
16577         PR target/47636
16578         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16579         for the condition.
16580
16581 2011-02-07  Mike Stump  <mikestump@comcast.net>
16582
16583         * config/darwin.opt (mmacosx-version-min): Update default OS version.
16584
16585 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
16586
16587         PR target/47534
16588         * config/avr/libgcc.S (exit): Move .endfunc
16589
16590 2011-02-07  Richard Guenther  <rguenther@suse.de>
16591
16592         PR tree-optimization/47615
16593         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16594         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16595         (run_scc_vn): Initialize it.
16596         (visit_reference_op_load): Use it.
16597         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16598
16599 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16600
16601         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16602         DImode trapping arithmetic libfuncs.
16603
16604 2011-02-07  Richard Guenther  <rguenther@suse.de>
16605
16606         PR tree-optimization/47621
16607         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16608         two duplicates ...
16609         (execute_update_addresses_taken): ... here.  Make it more
16610         conservative in what we accept.
16611
16612 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16613
16614         * config/sparc/freebsd.h (ASM_SPEC): Define.
16615         * config/sparc/vxworks.h (ASM_SPEC): Define.
16616
16617 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16618
16619         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16620
16621 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
16622
16623         * doc/invoke.texi: Remove reference to compiler internals from
16624         user documentation.
16625
16626         * reg-notes.def: Remove REG_VALUE_PROFILE.
16627         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16628
16629 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
16630
16631         PR middle-end/47610
16632         * varasm.c (default_section_type_flags): If decl is NULL,
16633         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16634
16635 2011-02-05  Jie Zhang  <jie@codesourcery.com>
16636
16637         PR debug/42631
16638         * web.c (entry_register): Don't clobber the number of the
16639         first uninitialized reference in used[].
16640
16641 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
16642
16643         PR tree-optimization/46194
16644         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16645         (build_classic_dist_vector_1): Do not represent classic distance
16646         vectors when the access functions are variating in different loops.
16647
16648 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16649
16650         * config/mips/iris6.opt: New.
16651         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16652
16653 2011-02-04  Richard Henderson  <rth@redhat.com>
16654             Steve Ellcey  <sje@cup.hp.com>
16655
16656         PR target/46997
16657         * config/ia64/predicates.md (mux1_brcst_element): New.
16658         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16659         * config/ia64/ia64.c (ia64_unpack_assemble): New.
16660         (ia64_unpack_sign): New.
16661         (ia64_expand_unpack): Rewrite using new routines.
16662         (ia64_expand_widen_sum): Ditto.
16663         (ia64_expand_dot_prod_v8qi): Ditto.
16664         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16665         routines, add endian check.
16666         (pmpy2_even): Rename from pmpy2_r, add endian check.
16667         (pmpy2_odd): Rename from pmpy2_l, add endian check.
16668         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16669         (vec_widen_smult_hi_v4hi): Ditto.
16670         (vec_widen_umult_lo_v4hi): Ditto.
16671         (vec_widen_umult_hi_v4hi): Ditto.
16672         (mulv2si3): Change endian checks.
16673         (sdot_prodv4hi): Rewrite with new calls.
16674         (udot_prodv4hi): New.
16675         (vec_pack_ssat_v4hi): Add endian check.
16676         (vec_pack_usat_v4hi): Ditto.
16677         (vec_pack_ssat_v2si): Ditto.
16678         (max1_even): Rename from max1_r, add endian check.
16679         (max1_odd): Rename from max1_l, add endian check.
16680         (*mux1_rev): Format change.
16681         (*mux1_mix): Ditto.
16682         (*mux1_shuf): Ditto.
16683         (*mux1_alt): Ditto.
16684         (*mux1_brcst_v8qi): Use new predicate.
16685         (vec_extract_evenv8qi): Remove endian check.
16686         (vec_extract_oddv8qi): Ditto.
16687         (vec_interleave_lowv4hi): Format change.
16688         (vec_interleave_highv4hi): Ditto.
16689         (mix2_even): Rename from mix2_r, add endian check.
16690         (mix2_odd): Rename from mux2_l, add endian check.
16691         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16692         (vec_extract_evenodd_helper): Format change.
16693         (vec_extract_evenv4hi): Remove endian check.
16694         (vec_extract_oddv4hi): Remove endian check.
16695         (vec_interleave_lowv2si): Format change.
16696         (vec_interleave_highv2si): Format change.
16697         (vec_initv2si): Remove endian check.
16698         (vecinit_v2si): Add endian check.
16699         (reduc_splus_v2sf): Add endian check.
16700         (reduc_smax_v2sf): Ditto.
16701         (reduc_smin_v2sf): Ditto.
16702         (vec_initv2sf): Remove endian check.
16703         (fpack): Add endian check.
16704         (fswap): Add endian check.
16705         (vec_interleave_highv2sf): Add endian check.
16706         (vec_interleave_lowv2sf): Add endian check.
16707         (fmix_lr): Add endian check.
16708         (vec_setv2sf): Format change.
16709         (*vec_extractv2sf_0_be): Use shift to extract operand.
16710         (*vec_extractv2sf_1_be): New.
16711         (vec_pack_trunc_v4hi): Add endian check.
16712         (vec_pack_trunc_v2si): Format change.
16713
16714 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
16715
16716         PR inline-asm/23200
16717         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
16718         do bb, locus and block comparison and disallow loads if it is not set.
16719         (stmt_is_replaceable_p): New function.
16720         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16721         callers.
16722         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16723         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16724         SSA_NAME_DEF_STMT.
16725         * tree-flow.h (stmt_is_replaceable_p): New prototype.
16726
16727 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16728
16729         * config/rs6000/xilinx.opt: New.
16730         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16731
16732 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16733
16734         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16735
16736 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
16737
16738         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16739         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16740         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16741         secondary_reload_info, xtensa_secondary_reload): Remove.
16742         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16743         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16744         (xtensa_preferred_reload_class): Make static. Change return and
16745         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16746         Use CONST_DOUBLE_P predicate.
16747         (xtensa_preferred_output_reload_class): New function.
16748         (xtensa_secondary_reload): Make static.
16749
16750 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
16751
16752         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16753         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16754         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16755
16756 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
16757
16758         PR middle-end/31490
16759         * output.h (SECTION_RELRO): Define.
16760         (SECTION_MACH_DEP): Adjust.
16761         (get_variable_section): New prototype.
16762         * varpool.c (varpool_finalize_named_section_flags): New function.
16763         (varpool_assemble_pending_decls): Call it.
16764         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16765         * cgraphunit.c (cgraph_output_in_order): Call
16766         varpool_finalize_named_section_flags.
16767         * varasm.c (get_section): Allow section flags conflicts between
16768         relro and read-only sections if the section hasn't been declared yet.
16769         Set SECTION_OVERRIDE after diagnosing section type conflict.
16770         (get_variable_section): No longer static.
16771         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16772         readonly sections that need relocations.
16773         (decl_readonly_section_1): New function.
16774         (decl_readonly_section): Use it.
16775
16776         Revert:
16777         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
16778                     Steve Ellcey  <sje@cup.hp.com>
16779
16780         PR middle-end/31490
16781         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16782         if section attribute used.
16783
16784 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
16785
16786         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16787         * config/darwin.c (SECTION_NO_ANCHOR): Define.
16788         (darwin_init_sections): Remove assertion.
16789
16790 2011-02-03  Nick Clifton  <nickc@redhat.com>
16791
16792         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16793         lt and ge.
16794         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16795         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16796         instead of "n" and "pz".
16797         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16798         CC_FLAG_S.
16799
16800 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
16801
16802         PR target/47312
16803         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16804         fma, expand FMA_EXPR as fma{,f,l} call.
16805
16806         PR lto/47274
16807         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16808         copy them into a unsigned char variable and pass address of it to
16809         lto_output_data_stream.
16810
16811         PR target/47564
16812         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16813         around backend_init_target and lang_dependent_init_target calls.
16814         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16815         (verify_cgraph_node): Don't call set_cfun here.  Use
16816         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16817         Set error_found for incorrectly represented calls to thunks.
16818
16819 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
16820
16821         PR debug/43092
16822         PR rtl-optimization/43494
16823         * rtl.h (for_each_inc_dec_fn): New type.
16824         (for_each_inc_dec): Declare.
16825         * rtlanal.c (struct for_each_inc_dec_ops): New type.
16826         (for_each_inc_dec_find_inc_dec): New fn.
16827         (for_each_inc_dec_find_mem): New fn.
16828         (for_each_inc_dec): New fn.
16829         * dse.c (struct insn_size): Remove.
16830         (replace_inc_dec, replace_inc_dec_mem): Remove.
16831         (emit_inc_dec_insn_before): New fn.
16832         (check_for_inc_dec): Use it, along with for_each_inc_dec.
16833         (canon_address): Pass mem modes to cselib_lookup.
16834         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
16835         (cselib_lookup_from_insn): Likewise.
16836         (cselib_subst_to_values): Likewise.
16837         * cselib.c (find_slot_memmode): New var.
16838         (cselib_find_slot): New fn.  Use it instead of
16839         htab_find_slot_with_hash everywhere.
16840         (entry_and_rtx_equal_p): Use find_slot_memmode.
16841         (autoinc_split): New fn.
16842         (rtx_equal_for_cselib_p): Rename and implement in terms of...
16843         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
16844         Deal with autoinc.  Special-case recursion into MEMs.
16845         (cselib_hash_rtx): Likewise.
16846         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
16847         address and MEM modes.
16848         (cselib_subst_to_values): Add memmode, pass it on.
16849         Deal with autoinc.
16850         (cselib_lookup): Add memmode argument, pass it on.
16851         (cselib_lookup_from_insn): Add memmode.
16852         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16853         (struct cselib_record_autoinc_data): New.
16854         (cselib_record_autoinc_cb): New fn.
16855         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
16856         mode to cselib_lookup.  Reset autoinced REGs here instead of...
16857         (cselib_process_insn): ... here.
16858         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16859         to cselib_lookup.
16860         (add_uses): Likewise, also to cselib_subst_to_values.
16861         (add_stores): Likewise.
16862         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
16863         cselib_subst_to_values.
16864         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
16865         * gcse.c (do_local_cprop): Adjusted.
16866         * postreload.c (reload_cse_simplify_set): Adjusted.
16867         (reload_cse_simplify_operands): Adjusted.
16868         * sel-sched-dump (debug_mem_addr_value): Pass mode.
16869
16870 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
16871
16872         PR tree-optimization/45122
16873         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16874         unsafe assumptions when there's more than one loop exit.
16875
16876 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16877
16878         PR target/47272
16879         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16880         Document using vector double with the load/store builtins, and
16881         that the load/store builtins always use Altivec instructions.
16882
16883         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16884         to use altivec memory instructions, even on VSX.
16885         (vector_altivec_store_<mode>): Ditto.
16886
16887         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16888         function.
16889
16890         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16891         V2DF, V2DI support to load/store overloaded builtins.
16892
16893         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16894         altivec load/store builtins for V2DF/V2DI types.
16895
16896         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16897         set avoid indexed addresses on power6 if -maltivec.
16898         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16899         vector_altivec_load/vector_altivec_store builtins.
16900         (altivec_expand_st_builtin): Ditto.
16901         (altivec_expand_builtin): Add VSX memory builtins.
16902         (rs6000_init_builtins): Add V2DI types to internal types.
16903         (altivec_init_builtins): Add support for V2DF/V2DI altivec
16904         load/store builtins.
16905         (rs6000_address_for_altivec): Insure memory address is appropriate
16906         for Altivec.
16907
16908         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16909         vec_vsx_ld and vec_vsx_st.
16910         (vsx_store_<mode>): Ditto.
16911
16912         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16913         variables to hold long long types for VSX vector memory builtins.
16914         (RS6000_BTI_unsigned_long_long): Ditto.
16915         (long_long_integer_type_internal_node): Ditti.
16916         (long_long_unsigned_type_internal_node): Ditti.
16917
16918         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16919         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16920         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16921
16922         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16923         short cuts.
16924         (vec_vsx_st): Ditto.
16925
16926 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
16927
16928         * config/pa/pa-hpux10.opt: New.
16929         * config/hpux11.opt (pthread): New Driver option.
16930         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16931         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16932
16933 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
16934
16935         * config/ia64/vms.opt: New.
16936         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16937
16938 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
16939
16940         PR target/47580
16941         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16942         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16943         generator functions.
16944         (vsx_floatuns<VSi><mode>2): Ditto.
16945         (vsx_fix_trunc<mode><VSi>2): Ditto.
16946         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16947
16948 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
16949
16950         * config/i386/djgpp.opt (posix): New Driver option.
16951
16952 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
16953
16954         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16955         Move to the unsupported targets list.
16956
16957 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
16958
16959         PR rtl-optimization/47525
16960         * df-scan.c: Update copyright years.
16961         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16962         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16963
16964 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16965
16966         * config/i386/sysv4.h (TARGET_VERSION): Remove.
16967         (SUBTARGET_RETURN_IN_MEMORY): Remove.
16968         (ASM_OUTPUT_ASCII): Remove.
16969         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16970
16971 2011-02-02  Jeff Law  <law@redhat.com>
16972
16973         PR middle-end/47543
16974         * reload.c (find_reloads_address): Handle reg+d address where both
16975         components are invalid by reloading the entire address.
16976
16977 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
16978             Richard Guenther  <rguenther@suse.de>
16979
16980         PR tree-optimization/40979
16981         PR bootstrap/47044
16982         * passes.c (init_optimization_passes): After LIM call copy_prop
16983         and DCE to clean up.
16984         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16985
16986 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
16987
16988         PR tree-optimization/47576
16989         PR tree-optimization/47555
16990         * doc/invoke.texi (scev-max-expr-complexity): Documented.
16991         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16992         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16993         * tree-scalar-evolution.c (follow_ssa_edge): Use
16994         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16995
16996 2011-02-02  Richard Guenther  <rguenther@suse.de>
16997
16998         PR tree-optimization/47566
16999         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17000
17001 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17002
17003         PR debug/47106
17004         PR debug/47402
17005         * tree-inline.c (declare_return_variable): Remove unused caller
17006         variable.
17007
17008         PR debug/47106
17009         PR debug/47402
17010         * tree-flow-inline.h (clear_is_used, is_used_p): New.
17011         * cfgexpand.c (account_used_vars_for_block): Use them.
17012         * tree-nrv.c (tree_nrv): Likewise.
17013         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17014         (dump_scope_block): Likewise.
17015         (remove_unused_locals): Likewise.
17016
17017         PR debug/47106
17018         PR debug/47402
17019         * tree-inline.c (declare_return_variable): Add result decl to
17020         local decls only once.
17021         * gimple-low.c (record_vars_into): Mark newly-created variables
17022         as referenced.
17023
17024 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17025
17026         PR debug/47498
17027         PR debug/47501
17028         PR debug/45136
17029         PR debug/45130
17030         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17031         debug insns.
17032         (no_real_insns_p, schedule_block, set_priorities): Drop special
17033         treatment of boundary debug insns.
17034         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17035         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17036         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17037         (BOUNDARY_DEBUG_INSN_P): Likewise.
17038         (SCHEDULE_DEBUG_INSN_P): Likewise.
17039         * sched-rgn.c (init_ready_list): Drop special treatment of
17040         boundary debug insns.
17041         * final.c (rest_of_clean_state): Clear notes' BB.
17042
17043 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17044
17045         * config/openbsd.opt (assert=): New Driver option.
17046
17047 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17048
17049         * config/i386/nto.opt: New.
17050         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17051
17052 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17053
17054         * config/i386/netware.opt: New.
17055         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17056
17057 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17058
17059         * config/interix.opt (posix): New Driver option.
17060
17061 2011-02-01  DJ Delorie  <dj@redhat.com>
17062
17063         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17064
17065         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17066         class for A0/A1.
17067
17068 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
17069
17070         PR tree-optimization/47561
17071         * toplev.c (process_options): Print the Graphite flags.  Add
17072         flag_loop_flatten to the list of options requiring Graphite.
17073
17074 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17075
17076         * config/i386/cygming.opt (posix): New Driver option.
17077
17078 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17079
17080         * config/arm/vxworks.opt: New.
17081         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17082
17083 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17084
17085         * config/alpha/elf.opt: New.
17086         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17087         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17088
17089 2011-02-01  Richard Guenther  <rguenther@suse.de>
17090
17091         PR tree-optimization/47559
17092         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17093         store-motion on references that can throw.
17094
17095 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
17096
17097         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17098         * tree-pass.h (TDF_CSELIB): New macro.
17099         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17100         cselib_lookup): Check for it rather than for TDF_DETAILS.
17101
17102 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
17103
17104         PR driver/47547
17105         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17106         is HOST_BIT_BUCKET.
17107
17108         * opts.c (finish_options): Don't add x_aux_base_name if it is
17109         HOST_BIT_BUCKET.
17110
17111 2011-02-01  Richard Guenther  <rguenther@suse.de>
17112
17113         PR tree-optimization/47555
17114         Revert
17115         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
17116
17117         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17118
17119 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
17120
17121         PR gcc/46692
17122         * config/lm32/t-lm32: Add multilib for all CPU options.
17123
17124 2011-02-01  Richard Guenther  <rguenther@suse.de>
17125
17126         PR tree-optimization/47541
17127         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17128         sure to have a field at offset zero.
17129
17130 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17131
17132         * config/arc/arc.opt (EB, EL): New Driver options.
17133
17134 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17135
17136         * config/alpha/osf5.opt: New.
17137         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17138
17139 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17140
17141         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17142
17143 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
17144
17145         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17146         -floop-interchange.
17147         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17148         is an alias of -floop-interchange and that it requires the
17149         Graphite infrastructure.
17150         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17151         flag_loop_interchange based on the value of flag_tree_loop_linear.
17152
17153 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
17154             Richard Guenther  <rguenther@suse.de>
17155
17156         PR tree-optimization/47538
17157         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17158         type instead of r1type, except for comparisons.  For right
17159         shifts and comparisons punt if there are mismatches in
17160         sizetype vs. non-sizetype types.
17161
17162 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17163
17164         * doc/sourcebuild.texi (Effective-Target Keywords): Document
17165         avx_runtime.
17166
17167 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17168
17169         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17170         version number.
17171         * configure: Regenerate.
17172
17173 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17174
17175         * configure.ac (gcc_cv_ld_static_option): Define.
17176         (gcc_cv_ld_dynamic_option): Define.
17177         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17178         instead.
17179         (HAVE_LD_STATIC_DYNAMIC): Update message.
17180         (LD_STATIC_OPTION): Define.
17181         (LD_DYNAMIC_OPTION): Define.
17182         * configure: Regenerate.
17183         * config.in: Regenerate.
17184         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17185         HAVE_LD_STATIC_DYNAMIC]: Use them.
17186
17187 2011-01-31  Nick Clifton  <nickc@redhat.com>
17188
17189         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17190         registers inside interrupt handlers if the handler is not a leaf
17191         function.
17192
17193 2011-01-31  Nick Clifton  <nickc@redhat.com>
17194
17195         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17196         reg_renumber returning an INVALID_REGNUM.
17197
17198 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17199
17200         PR libgcj/44341
17201         * doc/install.texi: Document host options discarded when cross
17202         configuring target libraries.
17203
17204 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17205
17206         Reverted:
17207         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17208         PR debug/45136
17209         PR debug/45130
17210         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17211         debug insns.
17212         (no_real_insns_p, schedule_block, set_priorities): Drop special
17213         treatment of boundary debug insns.
17214         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17215         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17216         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17217         (BOUNDARY_DEBUG_INSN_P): Likewise.
17218         (SCHEDULE_DEBUG_INSN_P): Likewise.
17219         * sched-rgn.c (init_ready_list): Drop special treatment of
17220         boundary debug insns.
17221         * final.c (rest_of_clean-state): Clear notes' BB.
17222
17223 2011-01-31  Alan Modra  <amodra@gmail.com>
17224
17225         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17226         toc relative expressions as we do in print_operand_address.
17227
17228 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
17229
17230         * doc/extend.texi: Follow spelling conventions.
17231         * doc/invoke.texi: Fix a typo.
17232
17233 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
17234
17235         * config/hpux11.opt: New.
17236         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17237         ia64*-*-hpux*): Use hpux11.opt.
17238
17239 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
17240
17241         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17242         to tmake_file.
17243
17244 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17245
17246         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17247         support sites.
17248
17249 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17250
17251         * doc/install.texi (Binaries): Remove outdated reference for
17252         Motorola 68HC11/68HC12 downloads.
17253
17254 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17255
17256         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17257         Drepper's paper.
17258
17259 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
17260
17261         PR bootstrap/47147
17262         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17263         used by NetBSD.
17264
17265 2011-01-28  Ahmad Sharif  <asharif@google.com>
17266
17267         * value-prof.c (check_counter): Corrected error message.
17268
17269 2011-01-29  Jie Zhang  <jie@codesourcery.com>
17270
17271         * config/arm/arm.c (arm_legitimize_reload_address): New.
17272         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17273         arm_legitimize_reload_address.
17274         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17275
17276 2011-01-28  Ian Lance Taylor  <iant@google.com>
17277
17278         * godump.c (go_define): Ignore macros whose definitions include
17279         two adjacent operands.
17280
17281 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
17282
17283         PR target/42894
17284         * varasm.c (force_const_mem): Store copy of x in desc->constant
17285         instead of x itself.
17286         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17287         itself into REG_EQUAL note.
17288
17289 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
17290
17291         * config/freebsd.opt (posix, rdynamic): New Driver options.
17292
17293 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17294
17295         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17296         -Bstatic/-Bdynamic.
17297         * configure: Regenerate.
17298
17299 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
17300
17301         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17302         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17303
17304 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
17305
17306         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17307         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17308         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17309         (s390_preferred_reload_class): Make static. Change return and
17310         'rclass' argument type to reg_class_t.
17311
17312 2011-01-27  Jan Hubicka  <jh@suse.cz>
17313
17314         PR middle-end/46949
17315         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17316         (process_function_and_variable_attributes): Check defined weakrefs.
17317
17318 2011-01-27  Martin Jambor  <mjambor@suse.cz>
17319
17320         PR tree-optimization/47228
17321         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17322         build_ref_for_offset.
17323
17324 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17325
17326         * config/spu/spu-elf.h (ASM_SPEC): Remove.
17327
17328 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
17329
17330         PR rtl-optimization/46856
17331         * postreload.c (reload_combine_recognize_const_pattern): Do not
17332         separate cc0 setter and user on cc0 targets.
17333
17334 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
17335
17336         PR c/43082
17337         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17338         passed a VOID_TYPE expression, immediately emit an error and
17339         return error_mark_node.
17340
17341 2011-01-26  Jeff Law  <law@redhat.com>
17342
17343         PR rtl-optimization/47464
17344         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17345         rather than may_trap_p as needed.
17346
17347 2011-01-26  DJ Delorie  <dj@redhat.com>
17348
17349         PR rtl-optimization/46878
17350         * combine.c (insn_a_feeds_b): Check for the implicit cc0
17351         setter/user dependency as well.
17352
17353 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
17354
17355         PR rtl-optimization/44469
17356         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17357         after removing trivially dead basic blocks.
17358
17359 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17360
17361         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17362         * config/frv/frv.h (LINK_SPEC): Likewise.
17363         * config/i386/netware.h (LINK_SPEC): Likewise.
17364         * config/m68k/linux.h (ASM_SPEC): Likewise.
17365         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17366         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17367         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17368         * config/sparc/linux.h (ASM_SPEC): Likewise.
17369         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17370         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17371
17372 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17373
17374         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17375         * config/frv/frv.h (ASM_SPEC): Likewise.
17376         * config/m68k/linux.h (ASM_SPEC): Likewise.
17377         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17378         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17379         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17380         * config/sparc/linux.h (ASM_SPEC): Likewise.
17381         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17382         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17383
17384 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17385
17386         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17387         * config/frv/frv.h (LINK_SPEC): Likewise.
17388         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17389
17390 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17391
17392         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17393         * config/frv/frv.h (ASM_SPEC): Likewise.
17394         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17395         * config/m68k/linux.h (ASM_SPEC): Likewise.
17396         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17397         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17398         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17399         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17400         * config/sparc/linux.h (ASM_SPEC): Likewise.
17401         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17402         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17403         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17404
17405 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
17406
17407         PR target/46997
17408         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17409         (*mux2): Ditto.
17410         (vec_extract_evenodd_help): Ditto.
17411         (vec_extract_evenv4hi): Ditto.
17412         (vec_extract_oddv4hi): Ditto.
17413         (vec_interleave_lowv2si): Ditto.
17414         (vec_interleave_highv2si): Ditto.
17415         (vec_extract_evenv2si): Ditto.
17416         (vec_extract_oddv2si: Ditto.
17417         (vec_pack_trunc_v2si): Ditto.
17418
17419 2011-01-22  Jan Hubicka  <jh@suse.cz>
17420
17421         PR target/47237
17422         * cgraph.h (cgraph_local_info): New field can_change_signature.
17423         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17424         signature can change.
17425         (ipcp_estimate_growth): Call sequence simplify only if calle signature
17426         can change.
17427         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17428         (cgraph_function_versioning): We can not change signature of functions
17429         that don't allow that.
17430         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17431         (lto_input_node): Likewise.
17432         * ipa-inline.c (compute_inline_parameters): Compute
17433         local.can_change_signature.
17434         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17435         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17436         functions that can not change signature.
17437         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17438         init_cumulative_args): Do not use local calling conventions
17439         for functions that can not change signature.
17440
17441 2011-01-22  Jan Hubicka  <jh@suse.cz>
17442
17443         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17444
17445 2011-01-26  Richard Guenther  <rguenther@suse.de>
17446
17447         PR tree-optimization/47190
17448         * cgraphunit.c (process_common_attributes): New function.
17449         (process_function_and_variable_attributes): Use it.
17450
17451 2011-01-26  Richard Guenther  <rguenther@suse.de>
17452
17453         PR lto/47423
17454         * cgraphbuild.c (record_eh_tables): Record reference to personality
17455         function.
17456
17457 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
17458
17459         PR debug/45454
17460         * sel-sched.c (moveup_expr): Don't let debug insns prevent
17461         non-debug insns from moving up.
17462
17463 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17464
17465         PR target/40125
17466         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17467         t-dlldir{,-x} fragment for build and add it to tmake_file.
17468         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17469         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17470         * config/i386/t-dlldir: New file.
17471         (SHLIB_DLLDIR): Define.
17472         * config/i386/t-dlldir-x: New file.
17473         (SHLIB_DLLDIR): Define.
17474         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17475         (SHLIB_INSTALL): Use it.
17476
17477 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
17478
17479         PR target/47246
17480         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17481         lower bound of the allowed Thumb-2 coprocessor load/store
17482         index range to -256. Add explaining comment.
17483
17484 2011-01-25  Ian Lance Taylor  <iant@google.com>
17485
17486         * godump.c (go_define): Improve lexing of macro expansion to only
17487         accept expressions which match Go spec.
17488
17489 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17490
17491         PR c++/43601
17492         * tree.c (handle_dll_attribute): Handle it.
17493         * doc/extend.texi (@item dllexport): Mention it.
17494         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17495
17496 2011-01-25  Ian Lance Taylor  <iant@google.com>
17497
17498         PR tree-optimization/26854
17499         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17500         (decl_jump_unsafe): Move higher in file, with no other change.
17501         (bind): Set has_jump_unsafe_decl if appropriate.
17502         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17503         (check_earlier_gotos): Likewise.
17504         (c_check_switch_jump_warnings): Likewise.
17505
17506 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
17507
17508         * doc/invoke.texi (Warning Options): Add missing hyphen.
17509         (-fprofile-dir): Minor grammatical fixes.
17510         (-fbranch-probabilities): Likewise.
17511
17512 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17513
17514         PR debug/45136
17515         PR debug/45130
17516         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17517         debug insns.
17518         (no_real_insns_p, schedule_block, set_priorities): Drop special
17519         treatment of boundary debug insns.
17520         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17521         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17522         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17523         (BOUNDARY_DEBUG_INSN_P): Likewise.
17524         (SCHEDULE_DEBUG_INSN_P): Likewise.
17525         * sched-rgn.c (init_ready_list): Drop special treatment of
17526         boundary debug insns.
17527         * final.c (rest_of_clean-state): Clear notes' BB.
17528
17529 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17530
17531         * Makefile.in (LAMBDA_H): Removed.
17532         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17533         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17534         lambda-trans.o, and tree-loop-linear.o.
17535         (lto-symtab.o): Remove dependence on LAMBDA_H.
17536         (tree-loop-linear.o): Remove rule.
17537         (lambda-mat.o): Same.
17538         (lambda-trans.o): Same.
17539         (lambda-code.o): Same.
17540         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17541         (tree-vect-slp.o): Same.
17542         * hwint.h (gcd): Moved here.
17543         (least_common_multiple): Same.
17544         * lambda-code.c: Removed.
17545         * lambda-mat.c: Removed.
17546         * lambda-trans.c: Removed.
17547         * lambda.h: Removed.
17548         * tree-loop-linear.c: Removed.
17549         * lto-symtab.c: Do not include lambda.h.
17550         * omega.c (gcd): Removed.
17551         * passes.c (init_optimization_passes): Remove pass_linear_transform.
17552         * tree-data-ref.c (print_lambda_vector): Moved here.
17553         (lambda_vector_copy): Same.
17554         (lambda_matrix_copy): Same.
17555         (lambda_matrix_id): Same.
17556         (lambda_vector_first_nz): Same.
17557         (lambda_matrix_row_add): Same.
17558         (lambda_matrix_row_exchange): Same.
17559         (lambda_vector_mult_const): Same.
17560         (lambda_vector_negate): Same.
17561         (lambda_matrix_row_negate): Same.
17562         (lambda_vector_equal): Same.
17563         (lambda_matrix_right_hermite): Same.
17564         * tree-data-ref.h: Do not include lambda.h.
17565         (lambda_vector): Moved here.
17566         (lambda_matrix): Same.
17567         (dependence_level): Same.
17568         (lambda_transform_legal_p): Removed declaration.
17569         (lambda_collect_parameters): Same.
17570         (lambda_compute_access_matrices): Same.
17571         (lambda_vector_gcd): Same.
17572         (lambda_vector_new): Same.
17573         (lambda_vector_clear): Same.
17574         (lambda_vector_lexico_pos): Same.
17575         (lambda_vector_zerop): Same.
17576         (lambda_matrix_new): Same.
17577         * tree-flow.h (least_common_multiple): Removed declaration.
17578         * tree-parloops.c (lambda_trans_matrix): Moved here.
17579         (LTM_MATRIX): Same.
17580         (LTM_ROWSIZE): Same.
17581         (LTM_COLSIZE): Same.
17582         (LTM_DENOMINATOR): Same.
17583         (lambda_trans_matrix_new): Same.
17584         (lambda_matrix_vector_mult): Same.
17585         (lambda_transform_legal_p): Same.
17586         * tree-pass.h (pass_linear_transform): Removed declaration.
17587         * tree-ssa-loop.c (tree_linear_transform): Removed.
17588         (gate_tree_linear_transform): Removed.
17589         (pass_linear_transform): Removed.
17590         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17591         flag_loop_interchange.
17592
17593 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17594
17595         PR tree-optimization/47265
17596         PR tree-optimization/47443
17597         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17598         if name still has some uses.
17599
17600 2011-01-25  Martin Jambor  <mjambor@suse.cz>
17601
17602         PR tree-optimization/47382
17603         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17604         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17605
17606 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
17607
17608         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17609         sjlj_except_unwind_info.
17610
17611 2011-01-25  Richard Guenther  <rguenther@suse.de>
17612
17613         PR tree-optimization/47426
17614         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17615         visible functions results escape.
17616
17617 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17618
17619         PR target/45701
17620         * config/arm/arm.c (any_sibcall_uses_r3): New function.
17621         (arm_get_frame_offsets): Use it.
17622
17623 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17624             Jakub Jelinek  <jakub@redhat.com>
17625
17626         PR tree-optimization/47271
17627         * tree-if-conv.c (bb_postdominates_preds): New.
17628         (if_convertible_bb_p): Call bb_postdominates_preds.
17629         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17630         (predicate_scalar_phi): Call bb_postdominates_preds.
17631
17632 2011-01-25  Nick Clifton  <nickc@redhat.com>
17633
17634         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17635         * config/rx/rx.c (rx_function_value): Likewise.
17636         (rx_promote_function_mode): Likewise.
17637         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17638         in order to make it legitimate.
17639         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17640         make sure that the first operand is the same as the result register.
17641         (addsi3_unspec): Delete.
17642         (subdi3): Do not accept immediate operands.
17643         (subdi3_internal): Likewise.
17644
17645 2011-01-25  Jeff Law  <law@redhat.com>
17646
17647         PR rtl-optimization/37273
17648         * ira-costs.c (scan_one_insn): Detect constants living in memory and
17649         handle them like argument loads from stack slots.  Do not double
17650         count memory for memory constants and argument loads from stack slots.
17651
17652 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17653
17654         PR tree-optimization/47427
17655         PR tree-optimization/47428
17656         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17657         coalesce if the new root var would be TREE_READONLY.
17658
17659 2011-01-25  Richard Guenther  <rguenther@suse.de>
17660
17661         PR middle-end/47414
17662         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17663         correct type for TBAA.
17664
17665 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17666
17667         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17668         (close_phi_written_to_memory): Call for_each_index with
17669         dr_indices_valid_in_loop.
17670
17671 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17672
17673         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17674         when it is initialized.
17675
17676 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17677
17678         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17679         call to graphite_find_data_references_in_stmt.
17680         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17681         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
17682         call to graphite_find_data_references_in_stmt.
17683         (analyze_drs_in_stmts): Same.
17684         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17685         in which the scalar analysis of indices is performed.
17686         (create_data_ref): Same.  Update call to dr_analyze_indices.
17687         (find_data_references_in_stmt): Update call to create_data_ref.
17688         (graphite_find_data_references_in_stmt): Same.
17689         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17690         declaration.
17691         (create_data_ref): Same.
17692         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17693         call to create_data_ref.
17694
17695 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17696
17697         * graphite-sese-to-poly.c (build_poly_scop): Move
17698         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17699
17700 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17701
17702         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17703         VAR_DECL, PARM_DECL, and RESULT_DECL.
17704
17705 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17706
17707         * graphite-dependences.c (reduction_dr_1): Allow several reductions
17708         in a reduction PBB.
17709         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17710         that have already been marked as PBB_IS_REDUCTION.
17711
17712 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17713
17714         * graphite-scop-detection.c (same_close_phi_node): New.
17715         (remove_duplicate_close_phi): New.
17716         (make_close_phi_nodes_unique): New.
17717         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17718
17719 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17720
17721         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17722         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17723         of both data references to be the same.
17724
17725 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17726
17727         * graphite-dependences.c (build_lexicographical_constraint): Remove
17728         the gdim parameter.
17729         (build_lexicographical_constraint): Adjust call to
17730         ppl_powerset_is_empty.
17731         (dependence_polyhedron): Same.
17732         (graphite_legal_transform_dr): Same.
17733         (graphite_carried_dependence_level_k): Same.
17734         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17735         parameter.
17736         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17737
17738 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17739
17740         * graphite-sese-to-poly.c
17741         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17742         (close_phi_written_to_memory): New.
17743         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17744         and unshare_expr.
17745
17746 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17747
17748         * doc/install.texi: Update the expected version number of PPL to 0.11.
17749         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17750         #if PPL_VERSION_MINOR < 11.
17751
17752 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17753
17754         * graphite-dependences.c: Include graphite-cloog-util.h.
17755         (new_poly_ddr): Inlined into dependence_polyhedron.
17756         (free_poly_ddr): Moved close by new_poly_ddr.
17757         (dependence_polyhedron_1): Renamed dependence_polyhedron.
17758         Early return NULL when ppl_powerset_is_empty returns true.
17759         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
17760         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
17761         (graphite_legal_transform_dr): Call new_poly_ddr.
17762         (graphite_carried_dependence_level_k): Same.
17763         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
17764         (dot_transformed_deps_stmt_1): Removed.
17765         (dot_deps_stmt_1): Call dot_deps_stmt_2.
17766         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
17767         (dot_deps_1): Call dot_deps_2.
17768         * Makefile.in (graphite-dependences.o): Add missing dependence on
17769         graphite-cloog-util.h.
17770
17771 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17772
17773         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17774         (build_lexicographical_constraint): Same.
17775         (dependence_polyhedron_1): Same.
17776         (graphite_legal_transform_dr): Same.
17777         (graphite_carried_dependence_level_k): Same.
17778         * graphite-ppl.c (ppl_powerset_is_empty): New.
17779         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17780         * tree-data-ref.c (dump_data_reference): Print the basic block index.
17781
17782 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17783
17784         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17785         the "a followed by b" relation and document it.
17786
17787 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17788
17789         * graphite-dependences.c (build_lexicographical_constraint): Stop the
17790         iteration when the bag of constraints is empty.
17791
17792 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17793
17794         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17795
17796 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17797
17798         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17799         nest and two loop depths as parameters.
17800         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17801         lst_perfect_nestify.
17802
17803 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17804
17805         * graphite-dependences.c (print_pddr): Call
17806         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17807
17808 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17809
17810         * graphite-ppl.c (debug_gmp_value): New.
17811         * graphite-ppl.h (debug_gmp_value): Declared.
17812
17813 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
17814
17815         * doc/install.texi: Document availability of cloog-0.16.
17816
17817 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
17818
17819         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17820         invalid postdominance info.
17821
17822 2011-01-24  Jan Hubicka  <jh@suse.cz>
17823
17824         PR c/21659
17825         * doc/extend.texi (weak pragma): Drop claim that it must
17826         appear before definition.
17827         * varasm.c (merge_weak, declare_weak): Only sanity check
17828         that DECL is not output at a time it is declared weak.
17829
17830 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
17831
17832         * machmode.def: Fixed comments.
17833
17834 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
17835
17836         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17837
17838 2011-01-24  Paul Koning  <ni1d@arrl.net>
17839
17840         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17841         WORDS_BIG_ENDIAN.
17842
17843 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
17844
17845         PR target/46519
17846         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17847         (block_info): Add scanned and prev.
17848         (move_or_delete_vzeroupper_2): Return if the basic block
17849         has been scanned and the upper 128bit state is unchanged
17850         from the last scan.
17851         (move_or_delete_vzeroupper_1): Return true if the exit
17852         state is changed.
17853         (move_or_delete_vzeroupper): Visit basic blocks using the
17854         work-list based algorithm based on vt_find_locations in
17855         var-tracking.c.
17856
17857         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17858
17859 2011-01-24  Nick Clifton  <nickc@redhat.com>
17860
17861         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17862         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17863         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
17864         then define __v850e1__.
17865         * doc/invoke.texi: Document -mv850es.
17866
17867 2011-01-24  Richard Henderson  <rth@redhat.com>
17868
17869         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17870         compound unordered comparisons.
17871         * config/rx/rx.c (rx_split_fp_compare): Remove.
17872         * config/rx/rx-protos.h: Update.
17873         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17874         (cbranchsf4): Don't call rx_split_fp_compare.
17875         (*cbranchsf4): Use rx_split_cbranch.
17876         (*cmpsf): Don't accept "i" constraint.
17877         (*conditional_branch): Only valid after reload.
17878         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
17879
17880 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17881
17882         PR target/47385
17883         * config/rs6000/altivec.md (vector constant splitters): Add
17884         support for creating vector single precision constants if -mvsx is
17885         used and we would create the constant using Altivec primitives.
17886
17887 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
17888             Richard Sandiford  <rdsandiford@googlemail.com>
17889
17890         PR rtl-optimization/47166
17891         * reload1.c (emit_reload_insns): Disable the spill_reg_store
17892         mechanism for PRE_MODIFY and POST_MODIFY.
17893         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17894         reloadreg.
17895
17896 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
17897
17898         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17899
17900 2011-01-22  Jan Hubicka  <jh@suse.cz>
17901
17902         PR lto/47333
17903         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17904
17905 2011-01-22  Jan Hubicka  <jh@suse.cz>
17906
17907         PR tree-optimization/43884
17908         PR lto/44334
17909         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17910         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17911
17912 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
17913
17914         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17915         * config/s390/s390.c (s390_register_move_cost,
17916         s390_memory_move_cost): New.
17917         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17918
17919 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17920
17921         PR middle-end/47401
17922         * except.c (sjlj_assign_call_site_values): Move setting the
17923         crtl->uses_eh_lsda flag to ...
17924         (sjlj_mark_call_sites): ... here.
17925         (sjlj_emit_function_enter): Support NULL dispatch label.
17926         (sjlj_build_landing_pads): In a function with no landing pads
17927         that still has must-not-throw regions, generate code to register
17928         a personality function with empty LSDA.
17929
17930 2011-01-21  Richard Henderson  <rth@redhat.com>
17931
17932         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17933
17934         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17935
17936         * compare-elim.c: New file.
17937         * Makefile.in (OBJS-common): Add it.
17938         (compare-elim.o): New.
17939         * common.opt (fcompare-elim): New.
17940         * opts.c (default_options_table): Add OPT_fcompare_elim.
17941         * tree-pass.h (pass_compare_elim_after_reload): New.
17942         * passes.c (init_optimization_passes): Add it.
17943         * recog.h: Protect against re-inclusion.
17944         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17945         * doc/invoke.texi (-fcompare-elim): Document it.
17946         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17947         * doc/tm.texi: Rebuild.
17948
17949 2011-01-22  Nick Clifton  <nickc@redhat.com>
17950
17951         * config/rx/rx.md (cstoresf4): Pass comparison operator to
17952         rx_split_fp_compare.
17953
17954 2011-01-22  Nick Clifton  <nickc@redhat.com>
17955
17956         * config/rx/rx.md (UNSPEC_CONST): New.
17957         (deallocate_and_return): Wrap the amount popped off the stack in
17958         an UNSPEC_CONST in order to stop it being rejected by
17959         -mmax-constant-size.
17960         (pop_and_return): Add a "(return)" rtx.
17961         (call): Drop the immediate operand.
17962         (call_internal): Likewise.
17963         (call_value): Likewise.
17964         (call_value_internal): Likewise.
17965         (sibcall_internal): Likewise.
17966         (sibcall_value_internal): Likewise.
17967         (sibcall): Likewise.  Generate an explicit call using
17968         sibcall_internal.
17969         (sibcall_value): Likewise.
17970         (mov<>): FAIL if a constant operand is not legitimate.
17971         (addsi3_unpsec): New pattern.
17972
17973         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17974         (ok_for_max_constant): New function.
17975         (gen_safe_add): New function.
17976         (rx_expand_prologue): Use gen_safe_add.
17977         (rx_expand_epilogue): Likewise.
17978         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
17979         UNSPEC CONSTs.
17980
17981 2011-01-21  Jeff Law  <law@redhat.com>
17982
17983         PR tree-optimization/47053
17984         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17985         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17986         statements are deleted.
17987         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
17988         is nonempty, then purge dead edges and cleanup the CFG.
17989
17990 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
17991
17992         PR debug/47402
17993         Temporarily revert:
17994         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
17995         PR debug/47106
17996         * tree-dfa.c (create_var_ann): Mark variable as used.
17997
17998 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
17999
18000         PR middle-end/45566
18001         * except.c (convert_to_eh_region_ranges): Emit queued no-region
18002         notes from other section in hot/cold partitioning even if
18003         last_action is -3.  Increment call_site_base.
18004
18005         PR rtl-optimization/47366
18006         * fwprop.c (forward_propagate_into): Return bool.  If
18007         any changes are made, -fnon-call-exceptions is used and
18008         REG_EH_REGION note is present, call purge_dead_edges
18009         and return true if it purged anything.
18010         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18011         any EH edges were purged.
18012
18013 2011-01-21  Jeff Law  <law@redhat.com>
18014
18015         PR rtl-optimization/41619
18016         * caller-save.c (setup_save_areas): Break out code to determine
18017         which hard regs are live across calls by examining the reload chains
18018         so that it is always used.
18019         Eliminate code which checked REG_N_CALLS_CROSSED.
18020
18021 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18022
18023         PR tree-optimization/47355
18024         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18025         NOP has non-debug uses beyond PHIs in new_bb.
18026
18027 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18028
18029         PR debug/47106
18030         * cfgexpand.c (account_used_vars_for_block): Only account vars
18031         that are annotated as used.
18032         (estimated_stack_frame_size): Don't set TREE_USED.
18033         * tree-dfa.c (create_var_ann): Mark variable as used.
18034
18035 2011-01-21  Richard Guenther  <rguenther@suse.de>
18036
18037         PR middle-end/47395
18038         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18039
18040 2011-01-21  Richard Guenther  <rguenther@suse.de>
18041
18042         PR tree-optimization/47365
18043         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18044         (vn_reference_lookup_pieces): Adjust.
18045         (vn_reference_lookup): Likewise.
18046         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18047         (vn_reference_lookup_3): Only look through kills if in
18048         VN_WALKREWRITE mode.
18049         (vn_reference_lookup_pieces): Adjust.
18050         (vn_reference_lookup): Likewise.
18051         (visit_reference_op_load): Likewise.
18052         (visit_reference_op_store): Likewise.
18053         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18054         (compute_avail): Likewise.
18055         (eliminate): Likewise.
18056
18057 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18058
18059         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18060         DECL_IGNORED_P non-reg vars if they are used.
18061
18062         PR tree-optimization/47391
18063         * varpool.c (const_value_known_p): Return false if
18064         decl is volatile.
18065
18066 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
18067
18068         PR bootstrap/47215
18069         * config/i386/i386.c (ix86_local_alignment): Handle
18070         case for va_list_type_node is nil.
18071         (ix86_canonical_va_list_type): Likewise.
18072
18073 2011-01-21  Alan Modra  <amodra@gmail.com>
18074
18075         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18076         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18077
18078 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18079
18080         * config/arm/arm.md (define_attr type): Rename f_load
18081         and f_store to f_fpa_load and f_fpa_store. Update.
18082         (write_conflict): Deal with rename fallout.
18083         (*push_fp_multi): Likewise.
18084         * config/arm/fpa.md (f_load): Use f_fpa_load.
18085         (f_store): Use f_fpa_store.
18086         (*movsf_fpa): Likewise.
18087         (*movdf_fpa): Likewise.
18088         (*movxf_fpa): Likewise.
18089         (*thumb2_movsf_fpa): Likewise.
18090         (*thumb2_movdf_fpa): Likewise.
18091         (*thumb2_movxf_fpa): Likewise.
18092         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18093         f_loadd and f_stored.
18094         (*thumb2_movdi_vfp): Likewise.
18095         (*thumb2_movsf_vfp): Fix attribute to f_loads.
18096         (*thumb2_movsi_vfp): Likewise.
18097         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18098         Use f_loads instead of f_load.
18099         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18100
18101 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
18102
18103         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18104         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18105         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18106         (xtensa_mode_dependent_address_p): New function.
18107         (constantpool_address_p): Make static. Change return type to bool.
18108         Change argument type to const_rtx. Use CONST_INT_P predicate.
18109
18110 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
18111
18112         PR debug/46583
18113         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18114
18115 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18116
18117         PR debug/47283
18118         * cfgexpand.c (expand_debug_expr): Instead of generating
18119         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18120         etc. handling.
18121
18122 2011-01-20  Richard Guenther  <rguenther@suse.de>
18123
18124         PR middle-end/47370
18125         * tree-inline.c (remap_gimple_op_r): Recurse manually for
18126         the pointer operand of MEM_REFs.
18127
18128 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18129
18130         PR tree-optimization/46130
18131         * ipa-split.c (consider_split): If return_bb contains non-virtual
18132         PHIs other than for retval or if split_function would not adjust it,
18133         refuse to split.
18134
18135 2011-01-20  Richard Guenther  <rguenther@suse.de>
18136
18137         PR tree-optimization/47167
18138         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18139         Revert previous change, only avoid enumeral type changes.
18140
18141 2011-01-19  Mike Stump  <mikestump@comcast.net>
18142
18143         * doc/tm.texi.in (BRANCH_COST): Englishify.
18144         * doc/tm.texi (BRANCH_COST): Likewise.
18145
18146 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
18147
18148         PR c++/47291
18149         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18150         (gen_scheduled_generic_parms_dies): New functions.
18151         (gen_struct_or_union_type_die): Schedule template parameters DIEs
18152         generation for the end of CU compilation.
18153         (dwarf2out_finish): Generate template parameters DIEs here.
18154
18155 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18156
18157         PR debug/46240
18158         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18159         debug bind stmt on merge edges.
18160
18161 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18162
18163         PR debug/47079
18164         PR debug/46724
18165         * function.c (instantiate_expr): Instantiate incoming rtl of
18166         implicit arguments, and recurse on VALUE_EXPRs.
18167         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18168         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18169
18170 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18171
18172         * c-parser.c (c_parser_for_statement): Initialize
18173         collection_expression.
18174
18175 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18176
18177         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18178
18179 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18180
18181         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18182         (LINK_SHLIB_SPEC): Don't use %(link_path).
18183         (SUBTARGET_EXTRA_SPECS): Remove link_path.
18184
18185 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18186
18187         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18188         (NO_SHARED_LIB_SUPPORT): Remove.
18189         (LINK_SHLIB_SPEC): Remove one conditional definition.
18190
18191 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18192
18193         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18194         %{call_shared}.
18195         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18196         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18197         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18198         %{call_shared} and conditionals on these options not being passed.
18199         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18200         %{call_shared}.
18201
18202 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18203
18204         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18205         simplify.
18206
18207         * ipa-split.c: Spelling fixes.
18208
18209 2011-01-19  Richard Henderson  <rth@redhat.com>
18210
18211         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18212         (*mulsi3): Likewise.
18213
18214         * longlong.h [__mn10300__] (count_leading_zeros): New.
18215         [__mn10300__] (umul_ppmm, smul_ppmm): New.
18216         [__mn10300__] (add_ssaaaa, subddmmss): New.
18217         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18218         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18219
18220 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18221
18222         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18223
18224 2011-01-19  Richard Henderson  <rth@redhat.com>
18225
18226         * config/mn10300/mn10300.md (addsi3_flags): New.
18227         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18228         (subsi3_flags, subc_internal, subdi3): New.
18229         (subdi3_internal, *subdi3_degenerate): New.
18230         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18231
18232         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18233         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18234         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
18235         * config/mn10300/mn10300-protos.h: Update.
18236         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18237         (return_ret): Likewise.  Rename from return_internal_regs.
18238         (return_internal): Remove.
18239
18240         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18241         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18242         (mn10300_legitimate_constant_p): Likewise.
18243         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18244         (mn10300_frame_size): New.
18245         (mn10300_expand_prologue): Use it.
18246         (mn10300_expand_epilogue): Likewise.
18247         (mn10300_initial_offset): Likewise.
18248         * config/mn10300/mn10300-protos.h: Update.
18249         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18250         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18251         (prologue, epilogue, return_internal): Tidy output code.
18252         (mn10300_store_multiple_operation, return): Likewise.
18253         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18254         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18255         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18256         (load_pic, am33_load_pic): New.
18257         (mn10300_load_pic0, mn10300_load_pic1): New.
18258
18259         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18260         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18261         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18262         (cc_flags_for_mode, cc_flags_for_code): New.
18263         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18264         overflow flag is not valid.  Validate that the flags we need
18265         for the comparison are valid.
18266         (mn10300_output_cmp): Remove.
18267         (mn10300_output_add): New.
18268         (mn10300_select_cc_mode): Use cc_flags_for_code.
18269         (mn10300_split_cbranch): New.
18270         (mn10300_match_ccmode): New.
18271         (mn10300_split_and_operand_count): New.
18272         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18273         to the function.
18274         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18275         (addsi3): ... here.  Use mn10300_output_add.
18276         (*addsi3_flags): New.
18277         (*am33_subsi3, *mn10300_subsi3): Merge...
18278         (subsi3): ... here.  Use attribute isa.
18279         (*subsi3_flags): New.
18280         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
18281         when possible.
18282         (*am33_andsi3, *mn10300_andsi3): Merge...
18283         (andsi3): ... here.
18284         (*andsi3_flags): New.
18285         (andsi3 splitters): New.
18286         (*am33_iorsi3, *mn10300_iorsi3): Merge...
18287         (iorsi3): ... here.
18288         (*iorsi3_flags): New.
18289         (*am33_xorsi3, *mn10300_xorsi3): Merge...
18290         (xorsi3): ... here.
18291         (*xorsi3_flags): New.
18292         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18293         (one_cmplsi2): ... here.
18294         (*one_cmplsi2_flags): New.
18295         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
18296         instead of "dax" in constraints.  Use mn10300_split_cbranch.
18297         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
18298         use matching constraints to eliminate a self-comparison.
18299         (*integer_conditional_branch): Rename from integer_conditional_branch.
18300         Use int_mode_flags to match CC_REG.
18301         (*cbranchsi4_btst, *btstsi): New.
18302         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
18303         mn10300_split_cbranch.
18304         (*am33_cmpsf): Rename from am33_cmpsf.
18305         (*float_conditional_branch): Rename from float_conditional_branch.
18306         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18307         (zero_extendqisi2): ... here.
18308         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18309         (zero_extendhisi2): ... here.
18310         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18311         (extendqisi2): ... here.
18312         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18313         (extendhisi2): ... here.
18314         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18315         (ashlsi3): ... here.
18316         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18317         (lshrsi3): ... here.
18318         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18319         (ashrsi3): ... here.
18320         (consecutive add peephole): Remove.
18321         * config/mn10300/predicates.md (label_ref_operand): New.
18322         (int_mode_flags): New.
18323         (CCZN_comparison_operator): New.
18324
18325         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18326         (throughput_42_latency_43): New reservation.
18327         (mulsidi3, umulsidi3): New expanders.
18328         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
18329         the MDR register to allocation; separately allocate the low and
18330         high parts of the DImode result.
18331         (umulsidi3_internal): Similarly.
18332         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18333         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
18334         (udivsi3, umodsi3): Remove.
18335         (udivmodsi4, divmodsi4): New expanders.
18336         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
18337         (*divmodsi4): Simiarly.
18338         (ext_internal): New.
18339
18340         * config/mn10300/constraints.md ("z"): New constraint.
18341         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18342         (FIXED_REGISTERS): Don't fix MDR.
18343         (CALL_USED_REGSITERS): Reformat nicely.
18344         (REG_ALLOC_ORDER): Add MDR.
18345         (enum regclass): Add MDR_REGS.
18346         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18347         (IRA_COVER_CLASSES): Add MDR_REGS.
18348         (REGNO_REG_CLASS): Handle MDR_REG.
18349         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18350         (mn10300_register_move_cost): Likewise.
18351         * config/mn10300/mn10300.md (MDR_REG): New.
18352         (*movsi_internal): Handle moves to/from MDR_REGS.
18353
18354         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18355         POST_MODIFY.
18356         (mn10300_secondary_reload): Tidy combination reload classes.
18357         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18358         addresses for AM33.  Allow symbolic offsets for reg+imm.
18359         (mn10300_regno_in_class_p): New.
18360         (mn10300_legitimize_reload_address): New.
18361         * config/mn10300/mn10300.h (enum reg_class): Remove
18362         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18363         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
18364         SP_OR_GENERAL_REGS.
18365         (REG_CLASS_NAMES): Update to match.
18366         (REG_CLASS_CONTENTS): Likewise.
18367         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18368         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18369         (REGNO_IN_RANGE_P): Remove.
18370         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18371         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18372         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18373         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18374         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18375         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18376         (REGNO_GENERAL_P): New.
18377         (HAVE_POST_MODIFY_DISP): New.
18378         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18379         (LEGITIMIZE_RELOAD_ADDRESS): New.
18380         * config/mn10300/mn10300-protos.h: Update.
18381
18382         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18383         DATA_REGS for AM33 stack-pointer destination.
18384         (mn10300_preferred_output_reload_class): Likewise.
18385         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18386         into a form appropriate for ...
18387         (TARGET_SECONDARY_RELOAD): New.
18388         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18389         * config/mn10300/mn10300-protos.h: Update.
18390         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18391         reload_insi; use the "A" constraint for the scratch; handle AM33
18392         moves of sp to non-address registers.
18393
18394         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18395         (*movqi_internal): ... here.
18396         (*am33_movhi, *mn10300_movhi): Merge into...
18397         (*movhi_internal): ... here.
18398         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
18399         as the source/destination of moves from/to SP.
18400         (movsf): Only allow for AM33-2.
18401         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18402         any integer constant constraint.  Only allow for AM33-2.  Tidy
18403         all of the alternative outputs.
18404         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18405         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
18406         for MN103.
18407         (udivsi3, umodsi3): New patterns for MN103 only.
18408
18409 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
18410
18411         * doc/tm.texi.in: Spell out that a lack of register class unions
18412         can lead to ICEs.
18413         * doc/tm.texi: Regenerate.
18414
18415 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18416
18417         PR rtl-optimization/47337
18418         * dce.c (check_argument_store): New function.
18419         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
18420
18421         PR tree-optimization/47290
18422         * tree-eh.c (infinite_empty_loop_p): New function.
18423         (cleanup_empty_eh): Use it.
18424
18425 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
18426
18427         PR target/46997
18428         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18429         (a64_expand_widen_sum): Ditto.
18430         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18431         (vec_extract_evenodd_help): Ditto.
18432         (vec_extract_evenv4hi): Ditto.
18433         (vec_extract_oddv4hi): Ditto.
18434         (vec_extract_evenv2si): Ditto.
18435         (vec_extract_oddv2si): Ditto.
18436         (vec_extract_evenv2sf): Ditto.
18437         (vec_extract_oddv2sf): Ditto.
18438         (vec_pack_trunc_v4hi: Ditto.
18439         (vec_pack_trunc_v2si): Ditto.
18440         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18441         (vec_interleave_highv8qi): Ditto.
18442         (mix1_r): Ditto.
18443         (vec_extract_oddv8qi): Ditto.
18444         (vec_interleave_lowv4hi): Ditto.
18445         (vec_interleave_highv4hi): Ditto.
18446         (vec_interleave_lowv2si): Ditto.
18447         (vec_interleave_highv2si): Ditto.
18448
18449 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18450
18451         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18452         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18453         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
18454         (pa_c_mode_for_suffix): New.
18455         (TARGET_EXPAND_BUILTIN): Define.
18456         (TARGET_C_MODE_FOR_SUFFIX): Define.
18457         (pa_builtins): Define.
18458         (pa_init_builtins): Register __float128 type and init new support
18459         builtins.
18460         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18461         * config/pa/quadlib.c (_U_Qfcopysign): New.
18462
18463 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
18464
18465         PR middle-end/46894
18466         * explow.c (allocate_dynamic_stack_space): Do not assume more than
18467         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18468         are defined.
18469
18470 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18471
18472         PR tree-optimization/47179
18473         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18474         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18475
18476 2011-01-18  Richard Guenther  <rguenther@suse.de>
18477
18478         PR rtl-optimization/47216
18479         * emit-rtl.c: Include tree-flow.h.
18480         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18481         of replicating it with different semantics.
18482         * Makefile.in (emit-rtl.o): Adjust.
18483
18484 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18485
18486         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18487         (cortex_a9_dp): Handle neon types correctly.
18488
18489 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
18490
18491         PR rtl-optimization/47299
18492         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18493         subtarget.  Use normal multiplication if both operands are constants.
18494         * expmed.c (expand_widening_mult): Don't try to optimize constant
18495         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
18496         before using it.
18497
18498 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18499
18500         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
18501         spacing after 'e.g.', typos, comma, hyphenation.
18502
18503 2011-01-17  Richard Henderson  <rth@redhat.com>
18504
18505         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18506         (rx_restricted_mem_operand): New.
18507         (rx_shift_operand): Use register_operand.
18508         (rx_source_operand, rx_compare_operand): Likewise.
18509         * config/rx/rx.md (addsi3_flags): New expander.
18510         (adddi3): Rewrite as expander.
18511         (adc_internal, *adc_flags, adddi3_internal): New patterns.
18512         (subsi3_flags): New expander.
18513         (subdi3): Rewrite as expander.
18514         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18515
18516         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18517         (rx_init_builtins): Remove sat builtin.
18518         (rx_expand_builtin): Likewise.
18519         * config/rx/rx.md (ssaddsi3): New.
18520         (*sat): Rename from sat.  Represent the CC_REG input.
18521
18522         * config/rx/predicates.md (rshift_operator): New.
18523         * config/rx/rx.c (rx_expand_insv): Remove.
18524         * config/rx/rx-protos.h: Update.
18525         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
18526         operand to the canonical position.
18527         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18528         (*bitclr, *bitclr_in_memory): Similarly.
18529         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18530         (insv): Retain the zero_extract in the expansion.
18531
18532         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18533         (bswaphi2, bitinvert, revw): Likewise.
18534
18535         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18536         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18537         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18538         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18539         (bitset, bitset_in_memory): Likewise.
18540         (bitinvert, bitinvert_in_memory): Likewise.
18541         (bitclr, bitclr_in_memory): Likewise.
18542         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18543         (rx_strend, rx_cmpstrn): Likewise.
18544         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
18545         (bitop peep2 patterns): Remove.
18546
18547         * config/rx/rx.c (rx_match_ccmode): New.
18548         * config/rx/rx-protos.h: Update.
18549         * config/rx/rx.md (abssi2): Clobber, don't set flags.
18550         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18551         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18552         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18553         (fix_truncsfsi2, floatsisf2): Likewise.
18554         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18555         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18556         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18557         (*subsi3_flags, *xorsi3_flags): New.
18558
18559         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18560
18561         * config/rx/rx.c (rx_print_operand): Remove workaround for
18562         unsplit comparison operations.
18563
18564         * config/rx/rx.md (movsicc): Split after reload.
18565         (*movsicc): Merge *movsieq and *movsine via match_operator.
18566         (*stcc): New pattern.
18567
18568         * config/rx/rx.c (rx_float_compare_mode): Remove.
18569         * config/rx/rx.h (rx_float_compare_mode): Remove.
18570         * config/rx/rx.md (cstoresi4): Split after reload.
18571         (*sccc): New pattern.
18572
18573         * config/rx/predicates.md (label_ref_operand): New.
18574         (rx_z_comparison_operator): New.
18575         (rx_zs_comparison_operator): New.
18576         (rx_fp_comparison_operator): New.
18577         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18578         Validate that the flags are set properly for the comparison.
18579         (rx_gen_cond_branch_template): Remove.
18580         (rx_cc_modes_compatible): Remove.
18581         (mode_from_flags): New.
18582         (flags_from_code): Rename from flags_needed_for_conditional.
18583         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18584         (rx_select_cc_mode): Likewise.
18585         (rx_split_fp_compare): New.
18586         (rx_split_cbranch): New.
18587         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18588         (*cbranchsi4): Use match_operator and rx_split_cbranch.
18589         (*cbranchsf4): Similarly.
18590         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
18591         match_operator and rx_split_cbranch.
18592         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18593         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
18594         (*cmpsi): Rename from cmpsi.
18595         (*tstsi): Rename from tstsi.
18596         (*cmpsf): Rename from cmpsf; use CC_Fmode.
18597         (*conditional_branch): Rename from conditional_branch.
18598         (*reveresed_conditional_branch): Remove.
18599         (b<code>): Remove expander.
18600         * config/rx/rx-protos.h: Update.
18601
18602         * config/rx/rx.c (rx_compare_redundant): Remove.
18603         * config/rx/rx.md (cmpsi): Don't use it.
18604         * config/rx/rx-protos.h: Update.
18605
18606         * config/rx/rx-modes.def (CC_F): New mode.
18607         * config/rx/rx.c (rx_select_cc_mode): New.
18608         * config/rx/rx.h (SELECT_CC_MODE): Use it.
18609         * config/rx/rx-protos.h: Update.
18610
18611 2011-01-17  Richard Henderson  <rth@redhat.com>
18612
18613         * except.c (dump_eh_tree): Fix stray ; after for statement.
18614
18615 2011-01-17  Richard Guenther  <rguenther@suse.de>
18616
18617         PR tree-optimization/47313
18618         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18619         handling before copying the body.  Properly deal with
18620         by-reference result in SSA form.
18621
18622 2011-01-17  Ian Lance Taylor  <iant@google.com>
18623
18624         PR target/47219
18625         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18626         (struct_value_alias_set): Don't define.
18627         (sparc_option_override): Don't set sparc_sr_alias_set and
18628         struct_value_alias_set.
18629         (save_or_restore_regs): Use gen_frame_mem rather than calling
18630         set_mem_alias_set.
18631         (sparc_struct_value_rtx): Likewise.
18632
18633 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18634
18635         PR target/47318
18636         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18637         (_mm_maskstore_pd): Likewise.
18638         (_mm_maskload_ps): Likewise.
18639         (_mm_maskstore_ps): Likewise.
18640         (_mm256_maskload_pd): Change mask to __m256i.
18641         (_mm256_maskstore_pd): Likewise.
18642         (_mm256_maskload_ps): Likewise.
18643         (_mm256_maskstore_ps): Likewise.
18644
18645         * config/i386/i386-builtin-types.def: Updated.
18646         (ix86_expand_special_args_builtin): Likewise.
18647
18648         * config/i386/i386.c (bdesc_special_args): Update
18649         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18650         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18651         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18652         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18653
18654         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18655         Use <avxpermvecmode> on mask register.
18656         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18657
18658 2011-01-17  Olivier Hainque  <hainque@adacore.com>
18659             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18660             Eric Botcazou  <ebotcazou@adacore.com>
18661
18662         PR target/46655
18663         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18664         if <= USHRT_MAX in 32-bit mode.
18665
18666 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18667
18668         * doc/install.texi (Configuration, Specific): Wrap long
18669         lines in examples.  Allow line wrapping in long options
18670         and URLs where beneficial for PDF output.
18671
18672 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
18673
18674         * config/mips/mips.c (mips_classify_symbol): Don't return
18675         SYMBOL_PC_RELATIVE for nonlocal labels.
18676
18677 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
18678
18679         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18680
18681 2011-01-15  Jan Hubicka  <jh@suse.cz>
18682
18683         PR tree-optimization/47276
18684         * ipa.c (function_and_variable_visibility): Do not try to mark alias
18685         declarations as needed.
18686
18687 2011-01-15  Martin Jambor  <mjambor@suse.cz>
18688
18689         * common.opt (fdevirtualize): New flag.
18690         * doc/invoke.texi (Option Summary): Document it.
18691         * opts.c (default_options_table): Add devirtualize flag.
18692         * ipa-prop.c (detect_type_change): Return immediately if
18693         devirtualize flag is not set.
18694         (detect_type_change_ssa): Likewise.
18695         (compute_known_type_jump_func): Likewise.
18696         (ipa_analyze_virtual_call_uses): Likewise.
18697
18698 2011-01-14  Martin Jambor  <mjambor@suse.cz>
18699
18700         PR tree-optimization/45934
18701         PR tree-optimization/46302
18702         * ipa-prop.c (type_change_info): New type.
18703         (stmt_may_be_vtbl_ptr_store): New function.
18704         (check_stmt_for_type_change): Likewise.
18705         (detect_type_change): Likewise.
18706         (detect_type_change_ssa): Likewise.
18707         (compute_complex_assign_jump_func): Check for dynamic type change.
18708         (compute_complex_ancestor_jump_func): Likewise.
18709         (compute_known_type_jump_func): Likewise.
18710         (compute_scalar_jump_functions): Likewise.
18711         (ipa_analyze_virtual_call_uses): Likewise.
18712         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18713
18714 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18715
18716         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18717         * config/i386/i386.opt (msse5): New Alias.
18718
18719 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18720
18721         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18722         * config/sparc/linux64.h (CC1_SPEC): Likewise.
18723         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18724         * config/sparc/sparc.h (CC1_SPEC): Likewise.
18725
18726 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18727
18728         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18729         -mcpu options.
18730         * config/sparc/linux64.h (CC1_SPEC): Likewise.
18731         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18732         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18733         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18734         Likewise.
18735         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18736
18737 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18738
18739         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18740
18741 2011-01-14  Mike Stump  <mikestump@comcast.net>
18742
18743         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18744         * config/fr30/fr30.md: Likweise
18745         (movsi_push): Likewise.
18746         (movsi_pop): Likewise.
18747         (enter_func): Likewise.
18748         * config/moxie/moxie.md (movsi_push): Likewise.
18749         (movsi_pop): Likewise.
18750
18751 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18752
18753         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18754         %{no_archive} %{exact_version}.
18755         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18756         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18757         %{no_archive} %{exact_version}.
18758         * config/mips/openbsd.h (LINK_SPEC): Likewise.
18759         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18760         * config/mips/vxworks.h: Likewise.
18761
18762 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18763
18764         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
18765
18766 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18767
18768         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18769         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18770
18771 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18772
18773         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18774         -nodefaultlib.
18775
18776 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18777
18778         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18779         for mcpu not cpu.
18780         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18781         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18782         not cpu.
18783         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18784         Don't handle -shlib.
18785
18786 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18787
18788         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18789         (CC1_SPEC): Don't handle -profile.
18790
18791 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18792
18793         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18794         * config/mips/mips.h (CC1_SPEC): Likewise.
18795
18796 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18797
18798         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18799         * config/mips/mips.h (CC1_SPEC): Likewise.
18800
18801 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18802
18803         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18804         * config/m32r/linux.h (LINK_SPEC): Likewise.
18805         * config/mips/linux.h (LINK_SPEC): Likewise.
18806         * config/mips/linux64.h (LINK_SPEC): Likewise.
18807         * config/sparc/linux.h (LINK_SPEC): Likewise.
18808         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18809         LINK_SPEC): Likewise.
18810         * config/xtensa/linux.h (LINK_SPEC): Likewise.
18811
18812 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18813
18814         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18815         %{version:-v}.
18816         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18817
18818 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18819
18820         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18821         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18822
18823 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18824
18825         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18826
18827 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18828
18829         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18830         supports -Bstatic/-Bdynamic.
18831         * configure: Regenerate.
18832
18833 2011-01-14  Jan Hubicka  <jh@suse.cz>
18834             Jack Howarth  <howarth@bromo.med.uc.edu>
18835
18836         PR target/46037
18837         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18838         when checking debug_info_level. Test write_symbols instead of
18839         debug_hooks->var_location when setting flag_var_tracking_uninit.
18840
18841 2011-01-14  Richard Guenther  <rguenther@suse.de>
18842
18843         PR tree-optimization/47179
18844         * target.def (ref_may_alias_errno): New target hook.
18845         * targhooks.h (default_ref_may_alias_errno): Declare.
18846         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18847         (default_ref_may_alias_errno): New function.
18848         * target.h (struct ao_ref_s): Declare.
18849         * tree-ssa-alias.c: Include target.h.
18850         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18851         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18852         (targhooks.o): Likewise.
18853         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18854         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18855
18856 2011-01-14  Richard Guenther  <rguenther@suse.de>
18857
18858         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
18859
18860 2011-01-14  Richard Guenther  <rguenther@suse.de>
18861
18862         PR tree-optimization/47280
18863         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18864         return CFG changes.
18865         (tree_ssa_forward_propagate_single_use_vars): Deal with
18866         CFG changes from associate_plusminus.
18867
18868 2011-01-14  Richard Guenther  <rguenther@suse.de>
18869
18870         PR middle-end/47281
18871         Revert
18872         2011-01-11  Richard Guenther  <rguenther@suse.de>
18873
18874         PR tree-optimization/46076
18875         * tree-ssa.c (useless_type_conversion_p): Conversions from
18876         unprototyped to empty argument list function types are useless.
18877
18878 2011-01-14  Richard Guenther  <rguenther@suse.de>
18879
18880         PR tree-optimization/47286
18881         * tree-ssa-structalias.c (new_var_info): Register variables are global.
18882
18883 2011-01-14  Martin Jambor  <mjambor@suse.cz>
18884
18885         PR middle-end/46823
18886         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18887
18888 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
18889
18890         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18891         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18892         * config/xtensa/xtensa.c (xtensa_libcall_value,
18893         xtensa_function_value_regno_p): New functions.
18894         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18895
18896 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
18897
18898         PR c++/47213
18899         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18900         PE specific hook.
18901         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18902         New function prototype.
18903         * config/i386/winnt.c (i386_pe_assemble_visibility):
18904         Warn only if attribute was specified by user.
18905
18906 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18907
18908         PR target/47251
18909         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18910         floating point.
18911         (floatunsdidf2_fcfidu): Ditto.
18912
18913 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18914
18915         * config/s390/s390.c (print_operand_address): Replace 'error' with
18916         'output_operand_lossage'.
18917         (print_operand): Likewise.
18918
18919 2011-01-13  Jeff Law  <law@redhat.com>
18920
18921         PR rtl-optimization/39077
18922         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18923         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18924         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18925         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18926         * gcse.c (prune_insertions_deletions): New function.
18927         (compute_pre_data): Use it.
18928
18929 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
18930
18931         PR debug/PR46973
18932         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18933         static function.
18934         (prune_unused_types_mark): Use it.
18935
18936 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
18937
18938         PR rtl-optimization/45352
18939         * sel-sched.c: Update copyright years.
18940         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18941         in the advancing loop when we have issued issue_rate insns.
18942
18943 2011-01-12  Richard Henderson  <rth@redhat.com>
18944
18945         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18946         (TARGET_MD_ASM_CLOBBERS): New.
18947
18948         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18949         (TARGET_DELEGITIMIZE_ADDRESS): New.
18950
18951         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18952         (clzsi2, *bsch): New patterns.
18953
18954         * config/mn10300/mn10300.md (INT): New mode iterator.
18955         (*mov<INT>_clr): New pattern, and peep2 to generate it.
18956
18957         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18958         flag_split_wide_types.
18959
18960         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18961         (mn10300_trampoline_init): Rewrite without a template, an immediate
18962         load and a direct branch.
18963         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18964
18965 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
18966
18967         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18968         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18969         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18970         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18971
18972 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
18973
18974         PR debug/47209
18975         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18976         of type.
18977
18978 2011-01-12  Jan Hubicka  <jh@suse.cz>
18979
18980         PR driver/47244
18981         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18982         (PLUGIN_COND_CLOSE): New macro.
18983         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18984
18985 2011-01-12  Richard Guenther  <rguenther@suse.de>
18986
18987         PR lto/47259
18988         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18989         register variables in a MEM_REF.
18990
18991 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
18992
18993         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18994         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18995         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18996         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18997         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18998         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18999         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19000         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19001         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19002         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19003         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19004         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19005         * config/gnu-user.h: New.  Copied from linux.h.
19006         (LINUX_TARGET_STARTFILE_SPEC): Rename to
19007         GNU_USER_TARGET_STARTFILE_SPEC.
19008         (LINUX_TARGET_ENDFILE_SPEC): Rename to
19009         GNU_USER_TARGET_ENDFILE_SPEC.
19010         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19011         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19012         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19013         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19014         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19015         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19016         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19017         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19018         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19019         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19020         * config/arm/linux-eabi.h (CC1_SPEC): Use
19021         GNU_USER_TARGET_CC1_SPEC.
19022         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19023         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19024         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19025         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19026         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19027         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19028         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19029         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19030
19031 2011-01-12  Richard Guenther  <rguenther@suse.de>
19032
19033         PR other/46946
19034         * doc/invoke.texi (ffast-math): Document it is turned on
19035         with -Ofast.
19036
19037 2011-01-12  Jan Hubicka  <jh@suse.cz>
19038
19039         PR tree-optimization/47233
19040         * opts.c (common_handle_option): Disable ipa-reference with profile
19041         feedback.
19042
19043 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19044
19045         * c-parser.c (c_parser_objc_at_property_declaration): Improved
19046         error message.
19047
19048 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19049
19050         * c-parser.c (c_lex_one_token): Updated and reindented some
19051         comments.  No changes in code.
19052
19053 2011-01-11  Ian Lance Taylor  <iant@google.com>
19054
19055         * godump.c (go_output_var): Don't output the variable if there is
19056         already a type with the same name.
19057
19058 2011-01-11  Ian Lance Taylor  <iant@google.com>
19059
19060         * godump.c (go_format_type): Don't generate float80.
19061
19062 2011-01-11  Richard Henderson  <rth@redhat.com>
19063
19064         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19065         declaration.  Rewrite for both speed and size.
19066         (mn10300_address_cost_1): Remove.
19067         (mn10300_register_move_cost): New.
19068         (mn10300_memory_move_cost): New.
19069         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
19070         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
19071         extensions, shifts, BSWAP, CLZ.
19072         (mn10300_wide_const_load_uses_clr): Remove.
19073         (TARGET_REGISTER_MOVE_COST): New.
19074         (TARGET_MEMORY_MOVE_COST): New.
19075         * config/mn10300/mn10300-protos.h: Update.
19076         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19077
19078         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19079         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19080         * config/mn10300/mn10300-protos.h: Update.
19081         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19082         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19083         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19084         (*test_int_bitfield, *test_byte_bitfield): Remove.
19085         (*bit_test, *subreg_bit_test): Remove.
19086         * config/mn10300/predicates.md (const_8bit_operand): Remove.
19087
19088         * config/mn10300/constraints.md ("c"): Rename from "A".
19089         ("A", "D"): New constraint letters.
19090         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19091         (fmssf4, fnmasf4, fnmssf4): Likewise.
19092
19093         * config/mn10300/mn10300.md (isa): New attribute.
19094         (enabled): New attribute.
19095
19096         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19097         (abssf2, negsf2): Define only for hardware fp.
19098         (sqrtsf2): Reformat.
19099         (addsf3, subsf3, mulsf3): Merge expander and insn.
19100
19101         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19102         (DEBUGGER_AUTO_OFFSET): Remove.
19103         (DEBUGGER_ARG_OFFSET): Remove.
19104
19105         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19106         Emit register stores with the same offsets as the hardware.
19107         (mn10300_store_multiple_operation): Don't check that the register
19108         save offsets are monotonic.
19109         * config/mn10300/mn10300-protos.h: Update.
19110
19111         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19112
19113         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19114         in terms of the value on the stack, not the MDR register.
19115
19116 2011-01-11  Jan Hubicka  <jh@suse.cz>
19117
19118         PR lto/45721
19119         PR lto/45375
19120         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19121         (symbol_alias_set_destroy, symbol_alias_set_contains,
19122         propagate_aliases_backward): Declare.
19123         * lto-streamer-out.c (struct sets): New sturcture.
19124         (trivally_defined_alias): New function.
19125         (output_alias_pair_p): Rewrite.
19126         (output_unreferenced_globals): Fix output of alias pairs.
19127         (produce_symtab): Likewise.
19128         * ipa.c (function_and_variable_visibility): Set weak alias destination
19129         as needed in lto.
19130         * varasm.c (symbol_alias_set_t): Remove.
19131         (symbol_alias_set_destroy): Export.
19132         (propagate_aliases_forward, propagate_aliases_backward): New functions
19133         based on ...
19134         (compute_visible_aliases): ... this one; remove.
19135         (trivially_visible_alias): New
19136         (trivially_defined_alias): New.
19137         (remove_unreachable_alias_pairs): Rewrite.
19138         (finish_aliases_1): Reorganize code checking if alias is defined.
19139         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19140         in LTO mode.
19141
19142 2011-01-11  Richard Guenther  <rguenther@suse.de>
19143
19144         PR tree-optimization/46076
19145         * tree-ssa.c (useless_type_conversion_p): Conversions from
19146         unprototyped to empty argument list function types are useless.
19147
19148 2011-01-11  Richard Guenther  <rguenther@suse.de>
19149
19150         PR middle-end/45235
19151         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19152         volatile MEMs as MEM_READONLY_P.
19153
19154 2011-01-11  Richard Guenther  <rguenther@suse.de>
19155
19156         PR tree-optimization/47239
19157         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19158
19159 2011-01-11  Jeff Law  <law@redhat.com>
19160
19161         PR tree-optimization/47086
19162         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19163         IVs from statements that might throw.
19164
19165 2011-01-10  Jan Hubicka  <jh@suse.cz>
19166
19167         PR lto/45375
19168         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19169
19170 2011-01-10  Jan Hubicka  <jh@suse.cz>
19171
19172         PR lto/45375
19173         * profile.c (read_profile_edge_counts): Ignore profile inconistency
19174         when correcting profile.
19175
19176 2011-01-10  Jan Hubicka  <jh@suse.cz>
19177
19178         PR lto/46083
19179         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19180         DECL_FINI_PRIORITY.
19181         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19182         Restore DECL_FINI_PRIORITY.
19183
19184 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19185
19186         * doc/gimple.texi: Fix quoting of multi-word return values in
19187         @deftypefn statements.  Ensure presence of return value.  Wrap
19188         overlong @deftypefn lines.
19189         (is_gimple_operand, is_gimple_min_invariant_address): Remove
19190         descriptions of removed functions.
19191         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19192         of multi-word return value in @deftypefn statement.
19193
19194 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19195
19196         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19197         (Conditional Expressions, Logical Operators)
19198         (Statement and operand traversals): Do not indent smallexample
19199         code.  Fix duplicate function argument in example.
19200
19201 2011-01-10  Jeff Law  <law@redhat.com>
19202
19203         PR tree-optimization/47141
19204         * ipa-split.c (split_function): Handle case where we are
19205         returning a value and the return block has a virtual operand phi.
19206
19207 2011-01-10  Jan Hubicka  <jh@suse.cz>
19208
19209         PR tree-optimization/47234
19210         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19211         (pass_feedback_split_functions): Declare.
19212         * passes.c (init_optimization_passes): Add ipa-split as subpass of
19213         tree-profile.
19214         * ipa-split.c (gate_split_functions): Update comments; disable
19215         split-functions for profile_arc_flag and branch_probabilities.
19216         (gate_feedback_split_functions): New function.
19217         (execute_feedback_split_functions): New function.
19218         (pass_feedback_split_functions): New global var.
19219
19220 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
19221
19222         PR lto/46760
19223         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19224         calling gimple_call_set_cannot_inline.
19225
19226 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
19227
19228         * config/darwin-sections.def: Remove unused section.
19229
19230 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
19231
19232         PR c++/47218
19233         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19234
19235 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
19236
19237         PR objc/47232
19238         * c-parser.c (c_parser_declaration_or_fndef): Improved
19239         error message.
19240
19241 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
19242
19243         * config/i386/winnt.c (i386_pe_start_function): Make sure
19244         to switch back to function's section.
19245
19246 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
19247
19248         PR gcc/46902
19249         PR testsuite/46912
19250         * plugin.c: Move include of dlfcn.h from here...
19251         * system.h: ... to here.
19252
19253 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19254
19255         * doc/cpp.texi (C++ Named Operators): Fix markup for header
19256         file name.
19257         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19258         two extra empty pages in PDF output.
19259
19260 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
19261
19262         PR objc/47078
19263         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19264         for error recovery purposes behave as if it was not specified so
19265         that the default type is usd.
19266
19267 2011-01-07  Jan Hubicka  <jh@suse.cz>
19268
19269         PR tree-optmization/46469
19270         * ipa.c (function_and_variable_visibility): Clear needed flags on
19271         nodes with external decls; handle weakrefs merging correctly.
19272
19273 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
19274
19275         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19276         not false.
19277
19278 2011-01-07  Jan Hubicka  <jh@suse.cz>
19279
19280         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19281         and no longer claim that gold is required for linker plugin.
19282         * configure: Regenerate.
19283         * gcc.c (PLUGIN_COND): New macro.
19284         (LINK_COMMAND_SPEC): Use it.
19285         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19286         * config.in (HAVE_LTO_PLUGIN): New.
19287         * configure.ac (--with-lto-plugin): New parameter; autodetect
19288         HAVE_LTO_PLUGIN.
19289
19290 2011-01-07  Jan Hubicka  <jh@suse.cz>
19291
19292         PR tree-optimization/46367
19293         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19294         when we can update original.
19295         (cgraph_mark_inline_edge): Sanity check.
19296         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19297
19298 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19299
19300         * config/spu/spu.h (ASM_COMMENT_START): Define.
19301
19302 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19303
19304         PR driver/42445
19305         * gcc.c (%>S): New.
19306         (SWITCH_KEEP_FOR_GCC): Likewise.
19307         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19308         (do_spec_1): Handle "%>".
19309
19310         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19311
19312 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
19313
19314         PR target/47201
19315         * config/i386/i386.c (ix86_delegitimize_address): If
19316         simplify_gen_subreg fails, return orig_x.
19317
19318         PR bootstrap/47187
19319         * value-prof.c (gimple_stringop_fixed_value): Handle
19320         lhs of the call properly.
19321
19322 2011-01-07  Jan Hubicka  <jh@suse.cz>
19323
19324         PR lto/45375
19325         * lto-opt.c (lto_reissue_options): Set flag_shlib.
19326
19327 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19328
19329         * target.def (function_switched_text_sections): New hook.
19330         * doc/tm.texi: Regenerated.
19331         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19332         * final.c (default_function_switched_text_sections): New.
19333         (final_scan_insn): Call function_switched_text_sections when a
19334         mid-function section change occurs.
19335         * output.h (default_function_switched_text_sections): Declare.
19336         * config/darwin-protos.h (darwin_function_switched_text_sections):
19337         Likewise.
19338         * config/darwin.c (darwin_function_switched_text_sections): New.
19339         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19340
19341 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19342
19343         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
19344         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
19345         the secondary code fragment when outputting for DWARF == 2.
19346
19347 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
19348
19349         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19350         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19351         Remove.
19352         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19353         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19354
19355 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
19356
19357         PR debug/46704
19358         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19359         when it is not empty.
19360
19361 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
19362
19363         Bobcat Enablement
19364         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19365         (case ${target}): Add btver1.
19366         * config/i386/driver-i386.c (host_detect_local_cpu): Let
19367         -march=native recognize btver1 processors.
19368         * config/i386/i386-c.c (ix86_target_macros_internal): Add
19369         btver1 def_and_undef
19370         * config/i386/i386.c (struct processor_costs btver1_cost): New
19371         btver1 cost table.
19372         (m_BTVER1): New definition.
19373         (m_AMD_MULTIPLE): Includes m_BTVER1.
19374         (initial_ix86_tune_features): Add btver1 tune.
19375         (processor_target_table): Add btver1 entry.
19376         (static const char *const cpu_names): Add btver1 entry.
19377         (software_prefetching_beneficial_p): Add btver1.
19378         (ix86_option_override_internal): Add btver1 instruction sets.
19379         (ix86_issue_rate): Add btver1.
19380         (ix86_adjust_cost): Add btver1.
19381         * config/i386/i386.h (TARGET_BTVER1): New definition.
19382         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19383         (enum processor_type): Add PROCESSOR_BTVER1.
19384         * config/i386/i386.md (define_attr "cpu"): Add btver1.
19385
19386 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19387
19388         PR target/43309
19389         * config/i386/i386.c (legitimize_tls_address)
19390         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19391         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19392         (tls_initial_exec_64_sun): New pattern.
19393
19394 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
19395
19396         * doc/invoke.texi (Overall Options): Improve wording and markup
19397         of the description of -wrapper.
19398
19399 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19400
19401         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19402         rdynamic, threads): New Driver options.
19403
19404 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19405
19406         PR target/38118
19407         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19408         if coming from .tdata.
19409         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19410
19411 2011-01-06  Jan Hubicka  <jh@suse.cz>
19412
19413         PR lto/47188
19414         * collect2.c (main): Do not enable LTOmode when plugin is active.
19415
19416 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19417
19418         PR other/45915
19419         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19420         --version output if supported.
19421         * configure: Regenerate.
19422
19423 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19424
19425         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19426         Driver options.
19427
19428 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
19429
19430         PR c/47150
19431         * c-convert.c (convert): When converting a complex expression
19432         other than COMPLEX_EXPR to a different complex type, ensure
19433         c_save_expr is called instead of save_expr, unless in_late_binary_op.
19434         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19435         when converting COMPLEX_TYPE.
19436
19437 2011-01-06  Ira Rosen  <irar@il.ibm.com>
19438
19439         PR tree-optimization/47139
19440         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19441         only the last reduction value is used outside the loop.  Update
19442         documentation.
19443
19444 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
19445
19446         * config/rtems.opt: New.
19447         * config.gcc (*-*-rtems*): Use rtems.opt.
19448
19449 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
19450
19451         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19452         processors do not support 3DNow instructions.
19453
19454 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19455
19456         * config/spu/spu.c (spu_option_override): Set parameter
19457         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19458
19459 2011-01-05  Jan Hubicka  <jh@suse.cz>
19460
19461         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19462         at the command line.
19463
19464 2011-01-05  Martin Jambor  <mjambor@suse.cz>
19465
19466         PR lto/47162
19467         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19468         deltas on streamed outgoing edges.
19469         (output_node_opt_summary): Output info for outgoing edges only when
19470         the node is in new parameter set.
19471         (output_cgraph_opt_summary): New parameter set, passed to the two
19472         aforementioned functions.  Update its forward declaration and its
19473         callee too.
19474
19475 2011-01-05  Tom Tromey  <tromey@redhat.com>
19476
19477         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19478         operator to c_finish_omp_atomic.
19479         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19480         (build_unary_op): Update.
19481         (build_modify_expr): Update.
19482         (build_asm_expr): Update.
19483
19484 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19485
19486         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19487         newly inserted insns.
19488         (pad_bb): Likewise.
19489         (spu_emit_branch_hint): Likewise.
19490         (insert_hbrp_for_ilb_runout): Likewise.
19491         (spu_machine_dependent_reorg): Call df_finish_pass after
19492         schedule_insns returns.
19493
19494 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19495
19496         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19497
19498 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
19499
19500         PR tree-optimization/47005
19501         * tree-sra.c (struct access): Add 'non_addressable' bit.
19502         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19503         (decide_one_param_reduction): Return 0 if the parameter is passed by
19504         reference and one of the accesses in the group is non_addressable.
19505
19506 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19507
19508         PR tree-optimization/47056
19509         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19510         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
19511         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
19512
19513 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19514
19515         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19516         initializer.  Skip view conversions from aggregate types.
19517
19518 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
19519
19520         PR bootstrap/47055
19521         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19522
19523 2011-01-04  Philipp Thomas  <pth@suse.de>
19524
19525         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19526         obvious typo.
19527
19528 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19529
19530         * function.c (thread_prologue_and_epilogue_insns): Do not crash
19531         on empty epilogue sequences.
19532
19533 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
19534
19535         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19536         non-static): New Driver options.
19537
19538 2011-01-04  Jie Zhang  <jie@codesourcery.com>
19539
19540         PR driver/47137
19541         * gcc.c (default_compilers[]): Set combinable field to 0
19542         for all assembly languages.
19543
19544 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
19545
19546         * config/mips/loongson3a.md: New file.
19547         * config/mips/mips.md: Include loongson3a.md.
19548         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19549         TUNE_LOONGSON_3A.
19550
19551 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
19552
19553         PR middle-end/47017
19554         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19555         instead of convert_memory_address_addr_space on the base expression.
19556
19557 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19558
19559         * config/spu/spu.c (spu_option_override): Update error text
19560         for bad -march= / -mtune= values.
19561
19562 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19563
19564         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19565         if branch-hint optimization will be performed.
19566
19567 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19568
19569         PR tree-optimization/47148
19570         * ipa-split.c (split_function): Convert arguments to
19571         DECL_ARG_TYPE if possible.
19572
19573         PR tree-optimization/47155
19574         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19575         when computing uns.
19576
19577         PR rtl-optimization/47157
19578         * combine.c (try_combine): If undobuf.other_insn becomes
19579         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19580         and set *new_direct_jump_p too.
19581
19582 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
19583
19584         PR tree-optimization/47021
19585         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19586
19587 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19588
19589         * gcc.c (process_command): Update copyright notice dates.
19590         * gcov.c (print_version): Likewise.
19591         * gcov-dump.c (print_version): Likewise.
19592         * mips-tfile.c (main): Likewise.
19593         * mips-tdump.c (main): Likewise.
19594
19595 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19596
19597         PR tree-optimization/46801
19598         * tree-sra.c (type_internals_preclude_sra_p): Check whether
19599         aggregate fields start at byte boundary instead of the bit-field flag.
19600
19601 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19602
19603         PR driver/47137
19604         * gcc.c (main): Revert revision 168407.
19605
19606 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19607
19608         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19609
19610 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19611
19612         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19613         vector optab to expand vector/scalar shift, update gimple to vector.
19614
19615 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19616
19617         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19618         a thunk.
19619
19620 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19621
19622         PR tree-optimization/46984
19623         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19624         HOST_WIDE_INT.
19625         (cgraph_create_indirect_edge): Fixed line length.
19626         (cgraph_indirect_call_info): Declare.
19627         (cgraph_make_edge_direct) Update declaration.
19628         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19629         (cgraph_create_indirect_edge): Use it.
19630         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
19631         callees.
19632         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19633         the new thunk_delta representation.
19634         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19635         HOST_WIDE_INT.
19636         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19637         (ipa_read_indirect_edge_info): Likewise.
19638         * lto-cgraph.c (output_edge_opt_summary): New function.
19639         (output_node_opt_summary): Call it on all outgoing edges.
19640         (input_edge_opt_summary): New function.
19641         (input_node_opt_summary): Call it on all outgoing edges.
19642
19643 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
19644
19645         PR driver/47137
19646         * gcc.c (main): Don't check have_o when settting combine_inputs.
19647
19648 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
19649
19650         * regrename.c: Add general comment describing the pass.
19651         (struct du_head): Remove 'length' field.
19652         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19653         (regrename_optimize): Do not sort chains.  Rework comments, add others.
19654         Force renaming to the preferred class (if any) in the first pass and do
19655         not consider registers that belong to it in the second pass.
19656         (create_new_chain): Do not set 'length' field.
19657         (scan_rtx_reg): Likewise.
19658
19659 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
19660
19661         PR tree-optimization/47140
19662         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19663         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19664         to bit_value_binop.
19665
19666         PR rtl-optimization/47028
19667         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19668         parm_birth_insn instead of at the beginning of first bb.
19669
19670 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
19671
19672         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19673         Remove the word "see" before "@pxref".
19674         * doc/rtl.texi: Remove the word "see" before "@pxref".
19675
19676 2011-01-01  Jan Hubicka  <jh@suse.cz>
19677
19678         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19679         memory.
19680
19681 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
19682
19683         PR target/38662
19684         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19685
19686 \f
19687 Copyright (C) 2011 Free Software Foundation, Inc.
19688
19689 Copying and distribution of this file, with or without modification,
19690 are permitted in any medium without royalty provided the copyright
19691 notice and this notice are preserved.