OSDN Git Service

* Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
2
3         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
4
5 2011-06-28  Richard Henderson  <rth@redhat.com>
6
7         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
8         all code and arguments that handled pushes.  Update all callers.
9
10 2011-06-28  Richard Henderson  <rth@redhat.com>
11
12         * config/arm/arm.c (arm_output_function_prologue): Don't call
13         thumb1_output_function_prologue.
14         (arm_expand_prologue): Avoid dead store.
15         (number_of_first_bit_set): Use ctz_hwi.
16         (thumb1_emit_multi_reg_push): New.
17         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
18         to emit the entire prologue as rtl.
19         (thumb1_output_interwork): Split out from
20         thumb1_output_function_prologue.
21         (thumb1_output_function_prologue): Remove.
22         (arm_attr_length_push_multi): Handle thumb1.
23         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
24         (prologue_thumb1_interwork): New.
25         (*push_multi): Allow thumb1; use push_mult_memory_operand.
26         * config/arm/predicates.md (push_mult_memory_operand): New.
27
28 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
29
30         * config/sparc/sync.md (*stbar): Delete.
31         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
32
33 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
34
35         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
36
37 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38
39         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
40         (TARGET_64BIT_DEFAULT): Define.
41         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
42         of tm_file.
43         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
44
45 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
46
47         * common.opt (in_lto_p): New Variable entry.
48         * flags.h (in_lto_p): Move to common.opt.
49         * gcc.c: Include params.h.
50         (set_option_handlers): Also use common_handle_option and
51         target_handle_option.
52         (main): Call global_init_params, finish_params and
53         init_options_struct.
54         * opts.c (debug_type_names): Move from toplev.c.
55         (print_filtered_help): Access quiet_flag through opts pointer.
56         (common_handle_option): Return early in the driver for some
57         options.  Access in_lto_p, dwarf_version and
58         warn_maybe_uninitialized through opts pointer.
59         * toplev.c (in_lto_p): Move to common.opt.
60         (debug_type_names): Move to opts.c.
61         * Makefile.in (OBJS): Remove opts.o.
62         (OBJS-libcommon-target): Add opts.o.
63         (gcc.o): Update dependencies.
64
65 2011-06-28  Kai Tietz  <ktietz@redhat.com>
66
67         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve
68         type sinking.
69
70 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
71
72         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
73         with '=' constraint modifier.
74         (*divdf3_vfp): Likewise.
75         ("*mulsf3_vfp"): Likewise.
76         ("*muldf3_vfp"): Likewise.
77         ("*mulsf3negsf_vfp"): Likewise.
78         ("*muldf3negdf_vfp"): Likewise.
79
80 2011-06-28  Nick Clifton  <nickc@redhat.com>
81
82         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
83         relaxation when performing an incremental link.
84
85 2011-06-28  Kai Tietz  <ktietz@redhat.com>
86
87         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
88         within BB from last to first.
89
90 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
91
92         * genattr-common.c: New.  Based on genattr.c.
93         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
94         (MOSTLYCLEANFILES): Add insn-attr-common.h.
95         (opts.o): Update dependencies.
96         (.PRECIOUS): Add insn-attr-common.h.
97         (simple_rtl_generated_h): Add insn-attr-common.h.
98         (build/genattr-common.o): New.
99         (genprogrtl): Add attr-common.
100         * genattr.c (main): Include insn-attr-common.h.  Don't generate
101         definitions of DELAY_SLOTS or INSN_SCHEDULING.
102         * opts.c: Include insn-attr-common.h instead of rtl.h and
103         insn-attr.h.
104
105 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
106
107         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
108         avr-*-* and avr-*-rtems* targets.
109
110         * config/avr/elf.h: New file.
111         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
112         (TARGET_ASM_SELECT_SECTION): Define.
113         (INIT_SECTION_ASM_OP): Undefine.
114         (FINI_SECTION_ASM_OP): Undefine.
115         (READONLY_DATA_SECTION_ASM_OP): Undefine.
116         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
117         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
118         * config/avr/avr.h:
119         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
120         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
121         (MAX_OFILE_ALIGNMENT): Move to elf.h.
122         (STRING_LIMIT): Move to elf.h.
123         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
124         (ASM_DECLARE_OBJECT_NAME): Remove.
125         (ESCAPES): Remove.
126         (ASM_OUTPUT_SKIP): Remove.
127         (DWARF2_DEBUGGING_INFO): Remove.
128         (OBJECT_FORMAT_ELF): Remove.
129         (USER_LABEL_PREFIX): Remove.
130         (ASM_OUTPUT_EXTERNAL): Remove.
131         (ASM_OUTPUT_ASCII): Remove.
132         (TYPE_ASM_OP): Remove.
133         (SIZE_ASM_OP): Remove.
134         (WEAK_ASM_OP): Remove.
135         (STRING_ASM_OP): Remove.
136         (SET_ASM_OP): Remove.
137         (ASM_WEAKEN_LABEL): Remove.
138         (TYPE_OPERAND_FMT): Remove.
139         (ASM_DECLARE_FUNCTION_SIZE): Remove.
140         (ASM_FINISH_DECLARE_OBJECT): Remove.
141         (NO_DOLLAR_IN_LABEL): Remove.
142         (ASM_GENERATE_INTERNAL_LABEL): Remove.
143         (ASM_OUTPUT_CASE_LABEL): Remove.
144         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
145         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
146         (gas_output_ascii): Remove.
147         (gas_output_limited_string): Remove.
148         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
149         * config/avr/avr-protos.h
150         (gas_output_ascii): Remove prototye.
151         (gas_output_limited_string): Remove prototype.
152
153 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
154
155         PR target/48637
156         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
157         asm operands.
158
159 2011-06-27  Jan Hubicka  <jh@suse.cz>
160
161         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
162         node instead of references in node.
163
164 2011-06-27  Richard Henderson  <rth@redhat.com>
165
166         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
167         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
168         inside ifdef.
169
170 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
171
172         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
173
174         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
175         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
176         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
177         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
178         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
179         (evaluate_stmt, execute_fold_all_builtins): Handle
180         BUILT_IN_ASSUME_ALIGNED.
181         * tree-ssa-dce.c (propagate_necessity): Likewise.
182         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
183         call_may_clobber_ref_p_1): Likewise.
184         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
185         (expand_builtin_assume_aligned): New function.
186         * doc/extend.texi (__builtin_assume_aligned): Document.
187
188         PR debug/49544
189         * cselib.c (promote_debug_loc): If cselib_preserve_constants
190         and l has two DEBUG_INSN owned locs instead of just one, adjust
191         the second location's setting_insn too.
192
193 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
194
195         PR libmudflap/38738
196         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
197
198 2011-06-27  Nick Clifton  <nickc@redhat.com>
199
200         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
201         convert bit position of highest bit set into a count of the high
202         zero bits.
203
204 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
205
206         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
207
208 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
209
210         PR lto/48492
211         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
212         to a NULL parent.
213
214 2011-06-27  Richard Guenther  <rguenther@suse.de>
215
216         PR tree-optimization/49394
217         * passes.c (execute_one_pass): Restore current_pass after
218         applying IPA transforms.
219
220 2011-06-27  Kai Tietz  <ktietz@redhat.com>
221
222         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
223         out of type precision after operation.
224         (find_bswap): Take for limit value the integer auto-
225         promotion into account.
226
227 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
228
229         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
230         forward scan as well.
231
232 2011-06-27  Tristan Gingold  <gingold@adacore.com>
233
234         PR target/44241
235         * config/vms/vms-protos.h: New file.
236         * config/vms/vms-crtlmap.map: New file.
237         * config/vms/vms.c: New file.
238         * config/vms/make-crtlmap.awk: New file.
239         * config/vms/vms-crtl.h: File removed.
240         * config/vms/vms-crtl-64.h: File removed.
241         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
242         * config/alpha/vms64.h: Do not include vms-crtl-64.h
243         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
244         clear some builtins on VMS.  Calls vms_patch_builtins.
245         (avms_asm_output_external): Remove.
246         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
247         (struct crtl_name_spec): Remove
248         (DO_CTRL_NAMES): Remove.
249         * config/ia64/vms.h (struct crtl_name_spec): Remove
250         (DO_CTRL_NAMES): Remove.
251         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
252         clear some builtins on VMS.  Calls vms_patch_builtins.
253         (ia64_asm_output_external): Remove DO_CRTL_NAME.
254         * config/ia64/vms64.h: Do not include vms-crtl-64.h
255         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
256         tm_p_file.
257
258 2011-06-27  Tristan Gingold  <gingold@adacore.com>
259
260         * config/alpha/alpha.c (alpha_end_function): Always generate .end
261         directive on VMS.
262
263 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
264
265         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
266         the function receives nonlocal gotos.
267
268 2011-06-27  Richard Guenther  <rguenther@suse.de>
269
270         PR tree-optimization/49536
271         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
272         For non-scalar inner types use a scalar type according to
273         the scalar inner mode.
274
275 2011-06-27  Richard Guenther  <rguenther@suse.de>
276
277         PR tree-optimization/49365
278         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
279
280 2011-06-27  Richard Guenther  <rguenther@suse.de>
281
282         PR tree-optimization/49169
283         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
284         the alignment of function decls.
285
286 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
287
288         PR target/47997
289         * config/darwin.c (darwin_mergeable_string_section): Place string
290         constants in '.cstring' rather than '.const' when CF/NSStrings are
291         active.
292
293 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
294
295         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
296         (emit_save_register_window): Likewise.
297         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
298         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
299         Swap back %o7/%i7 in register naming.
300
301 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
302
303         PR driver/49371
304         * config/darwin.c (darwin_override_options): Improve warning when
305         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
306         is given with fpie/fPIE.
307         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
308         * config/darwin9.h (PIE_SPEC): New.
309
310 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
311
312         * timevar.c (timevar_print): Increase width for display of timevar
313         name.
314
315 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
316
317         PR c++/46400
318         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
319         instead of TYPE_CHAIN for chain_next for types.
320
321 2011-06-24  Richard Henderson  <rth@redhat.com>
322
323         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
324         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
325         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
326         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
327         (sparc_flat_expand_prologue): Emit individual instructions
328         instead of one of the above.
329
330 2011-06-24  Easwaran Raman  <eraman@google.com>
331
332         PR rtl-optimization/49429
333         PR target/49454
334         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
335         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
336         used to copy y into x.
337         * calls.c (initialize_argument_information): Mark
338         an argument addressable if it is passed by invisible reference.
339         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
340         if it is passed by reference.
341
342 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
343
344         PR rtl-optimization/49504
345         * rtlanal.c (nonzero_bits1): Properly handle addition or
346         subtraction of a pointer in Pmode if pointers extend unsigned.
347         (num_sign_bit_copies1): Likewise.
348
349 2011-06-24  Martin Jambor  <mjambor@suse.cz>
350
351         PR tree-optimizations/49516
352         * tree-sra.c (sra_modify_assign): Choose the safe path for
353         aggregate copies if we also did scalar replacements.
354
355 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
356
357         PR target/49335
358         * config/arm/predicates.md (add_operator): New.
359         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
360         in Thumb2.
361
362 2011-06-24  Andi Kleen  <ak@linux.intel.com>
363
364         * tree-sra.c (type_internals_preclude_sra_p): Add msg
365         parameter. Split up ifs and report reason in *msg.
366         (reject): Add.
367         (find_var_candiate): Add msg variable.
368         Split up ifs and report reason to reject.
369         (find_param_candidates): Add msg variable.
370         Pass msg to type_internals_preclude_sra_p.
371
372 2011-06-23  Jeff Law  <law@redhat.com>
373
374         PR middle-end/48770
375         * reload.h (reload): Change to return a bool.
376         * ira.c (ira): If requested by reload, run a fast DCE pass after
377         reload has completed.  Fix comment typo.
378         * reload1.c (need_dce): New file scoped static.
379         (reload): Set reload_completed here.  Return whether or not a DCE
380         pass after reload is needed.
381         (delete_dead_insn): Set need_dce as needed.
382
383         PR middle-end/49465
384         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
385         to detect threading through joiner block.  If there was already
386         an edge to the new target, then do not change the PHI nodes.
387
388 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
389
390         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
391         get_pointer_alignment to see if base isn't sufficiently aligned.
392
393 2011-06-23  Jan Hubicka  <jh@suse.cz>
394
395         PR tree-optimize/49373
396         * tree-pass.h (all_late_ipa_passes): Declare.
397         * cgraphunit.c (init_lowered_empty_function): Fix properties.
398         (cgraph_optimize): Execute late passes; remove unreachable funcions
399         after materialization.
400         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
401         LTOing.
402         * passes.c (all_late_ipa_passes): Declare.
403         (dump_passes, register_pass): Handle late ipa passes.
404         (init_optimization_passes): Move ipa_pta to late passes; schedule
405         fixup_cfg at beggining of all_passes.
406         (apply_ipa_transforms): New function.
407         (execute_one_pass): When doing simple ipa pass, apply all transforms.
408
409 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
410
411         * params.c: Include common/common-target.h.  Don't include tm.h.
412         (lang_independent_params): Move from toplev.c.
413         (global_init_params): New.
414         * params.h (global_init_params): Declare.
415         * target.def (default_params): Move to common-target.def.
416         * toplev.c (lang_independent_options): Remove.
417         (lang_independent_params): Move to params.c.
418         (general_init): Use global_init_params.
419         * common/common-target.def (option_default_params): Move from
420         target.def.
421         * common/config/ia64/ia64-common.c: Include params.h.
422         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
423         from ia64.c.
424         * common/config/rs6000/rs6000-common.c: Include params.h.
425         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
426         from rs6000.c.
427         * common/config/sh/sh-common.c: Include params.h.
428         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
429         from sh.c.
430         * common/config/spu/spu-common.c: Include params.h.
431         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
432         from spu.c.
433         * config/ia64/ia64.c (ia64_option_default_params,
434         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
435         * config/rs6000/rs6000.c (rs6000_option_default_params,
436         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
437         * config/sh/sh.c (sh_option_default_params,
438         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
439         * config/spu/spu.c (spu_option_default_params,
440         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
441         * Makefile.in (OBJS): Remove params.o.
442         (OBJS-libcommon-target): Add params.o.
443         (params.o, $(common_out_object_file)): Update dependencies.
444         * doc/tm.texi: Regenerate.
445
446 2011-06-23  Alan Modra  <amodra@gmail.com>
447
448         PR bootstrap/49383
449         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
450         invocation for 2011-06-09 changes.
451
452 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
453
454         PR libgomp/49490
455         * omp-low.c (expand_omp_for_static_nochunk): Only
456         use n ceil/ nthreads size for the first
457         n % nthreads threads in the team instead of
458         all threads except for the last few ones which
459         get less work or none at all.
460
461         PR debug/49496
462         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
463         uses.
464
465 2011-06-22  Richard Guenther  <rguenther@suse.de>
466
467         PR tree-optimization/49493
468         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
469         Refer to the alias target of variables.
470         (associate_varinfo_to_alias_1): Remove.
471         (ipa_pta_execute): Do not associate aliases with anything.
472         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
473         (cgraph_function_node): Likewise.
474         (cgraph_function_or_thunk_node): Likewise.
475         (varpool_variable_node): Likewise.
476
477 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
478
479         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
480         typo.
481         * config.gcc (arm*-*-linux*): Default to gnu tls.
482         (arm*-*-*): Add --with-tls option.
483         (all_defaults): Add 'tls'.
484
485 2011-06-22  Richard Henderson  <rth@redhat.com>
486
487         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
488         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
489         (dwarf2out_frame_debug_cfa_window_save): Rename from
490         dwarf2out_window_save; make static.
491         * tree.h (dwarf2out_window_save): Don't declare.
492
493         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
494         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
495         (emit_save_register_window): Rename from gen_save_register_window;
496         emit the insn and add REG_CFA_* notes.
497         (sparc_expand_prologue): Update to match.
498         * config/sparc/sparc.md (save_register_window_1): Simplify from
499         save_register_window<P:mode>.
500
501 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
502
503         PR target/49497
504         * config/i386/i386.md (*lea_general_2): Always allow SImode.
505         (*lea_general_2_zext): Likewise.
506         (imul to lea peepholes): Use const359_operand and check
507         TARGET_PARTIAL_REG_STALL.
508
509         * config/i386/predicates.md (const359_operand): New.
510
511 2011-06-22  Michael Matz  <matz@suse.de>
512
513         * cgraphunit.c (assemble_thunk): Use correct return type.
514
515 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
516         Dmitry Melnik  <dm@ispras.ru>
517
518         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
519         (neon_output_shift_immediate): Ditto.
520         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
521         prototype.
522         (neon_output_shift_immediate): Ditto.
523         * config/arm/neon.md (vashl<mode>3): Modified constraint.
524         (vashr<mode>3_imm): New insn pattern.
525         (vlshr<mode>3_imm): Ditto.
526         (vashr<mode>3): Modified constraint.
527         (vlshr<mode>3): Ditto.
528         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
529         predicate.
530         (imm_for_neon_rshift_operand): Ditto.
531         (imm_lshift_or_reg_neon): Ditto.
532         (imm_rshift_or_reg_neon): Ditto.
533
534         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
535
536 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
537
538         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
539         builtin calls even if likelyvalue is not CONSTANT.
540         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
541         Return get_value_for_expr of first operand
542         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
543         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
544         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
545         their non-checking counterparts.
546         (call_may_clobber_ref_p_1): Likewise.
547         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
548         like their non-checking counterparts.
549         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
550         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
551         like their non-checking counterparts.
552         (find_func_clobbers): Likewise.
553         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
554         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
555
556         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
557         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
558         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
559         of base type reference as argument.
560         (resolve_addr_in_expr): Likewise.  Fix keep computation.
561         (convert_descriptor_to_signed): Renamed to...
562         (convert_descriptor_to_mode): ... this.  For wider types convert
563         to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
564         untyped.
565         (typed_binop): New function.
566         (scompare_loc_descriptor, ucompare_loc_descriptor,
567         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
568         default to unsigned type instead of signed.
569
570         PR debug/47858
571         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
572         (gimple_build_debug_source_bind_stat): New prototype.
573         (gimple_build_debug_source_bind): Define.
574         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
575         gimple_debug_source_bind_get_value,
576         gimple_debug_source_bind_get_value_ptr,
577         gimple_debug_source_bind_set_var,
578         gimple_debug_source_bind_set_value): New inlines.
579         * gimple.c (gimple_build_debug_source_bind_stat): New function.
580         * gimple-pretty-print.c (dump_gimple_debug): Handle
581         GIMPLE_DEBUG_SOURCE_BIND.
582         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
583         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
584         * tree-parloops.c (eliminate_local_variables,
585         separate_decls_in_region): Likewise.
586         (separate_decls_in_region_debug): Renamed from
587         separate_decls_in_region_debug_bind.  Handle
588         gimple_debug_source_bind_p.
589         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
590         prototypes.
591         (DECL_HAS_DEBUG_ARGS_P): Define.
592         (struct tree_function_decl): Add has_debug_args_flag field.
593         * tree.c (debug_args_for_decl): New variable.
594         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
595         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
596         (rewrite_debug_stmt_uses): New function.
597         (rewrite_stmt): Use it to rewrite debug stmt uses.
598         * rtl.def (DEBUG_PARAMETER_REF): New.
599         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
600         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
601         DEBUG_PARAMETER_REF.
602         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
603         * print-rtl.c (print_rtx): Likewise.
604         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
605         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
606         debug stmts in the first bb.
607         * tree-inline.c (remap_ssa_name): If remapping default def
608         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
609         a source bind debug stmt.
610         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
611         (maybe_move_debug_stmts_to_successors): Likewise.
612         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
613         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
614         debug args vector from old_decl to new_decl.
615         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
616         or modified parameters, add debug bind stmts before call
617         setting DEBUG_EXPR_DECL which is remembered in debug args
618         vector.
619         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
620         on DECL_DEBUG_EXPRs from debug args vector.
621         (expand_debug_source_expr): New function.
622         (expand_debug_locations): Use it for source bind insns.
623         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
624         * var-tracking.c (prepare_call_arguments): Add debug args
625         to call_arguments if any.
626         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
627         output_loc_operands, output_loc_operands_raw,
628         resolve_addr_in_expr, compare_loc_operands): Handle
629         DW_OP_GNU_parameter_ref.
630         (get_ref_die_offset, parameter_ref_descriptor): New functions.
631         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
632         (gen_subprogram_die): Handle parameters identified by
633         DEBUG_PARAMETER_REF.
634
635 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
636
637         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
638         * doc/install.texi (Configuration): Document --with-tls.
639         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
640         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
641         (arm_tls_descseq_addr): New.
642         (legitimize_tls_address): Add tlsdesc support.
643         (arm_cannot_copy_insn_p): Check for tlscall.
644         (arm_emit_tls_decoration): Likewise.
645         * config/arm/arm.h (TARGET_GNU2_TLS): New.
646         (OPTION_DEFAULT_SPECS): Add with-tls support.
647         * config/arm/arm.md (R1_REGNUM): Define.
648         (tlscall): New.
649         * config/arm/arm.opt (tls_type): New enumeration type and values.
650         (mtls-dialect): New switch.
651         * config/arm/arm-opts.h (enum tls_type): New.
652
653 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
654
655         * attribs.c (register_attribute): Added assert to check that all
656         attribute specs are registered with a name that is not empty and
657         does not start with '_'.
658         (decl_attributes): Avoid the lookup of the "naked" attribute spec
659         if the function has no attributes.
660         * tree.c (is_attribute_with_length_p): Removed.
661         (is_attribute_p): Removed.
662         (private_is_attribute_p): New.  
663         (private_lookup_attribute): New.
664         (lookup_attribute): Removed.
665         (lookup_ident_attribute): New.
666         (remove_attribute): Require the first argument to be in the form
667         'text', not '__text__'.  Updated asserts.
668         (merge_attributes): Use lookup_ident_attributes instead of
669         lookup_attribute.
670         (merge_dllimport_decl_attributes): Use remove_attribute.
671         (attribute_list_contained): Likewise.
672         (attribute_list_equal): Immediately return 1 if the arguments are
673         identical pointers.
674         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
675         'int'.  Require the first argument to be in the form 'text', not
676         '__text__'.  Require the second argument to be an identifier.
677         (lookup_attribute): Made inline.  Require the first argument to be
678         in the form 'text', not '__text__'.
679         (private_is_attribute_p, private_lookup_attribute): New.
680         Updated comments.
681         
682 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
683
684         * builtins.c: Add sync_ or SYNC__ to builtin names.
685         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
686         * omp-low.c: Add sync_ or SYNC__ to builtin names.
687
688 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
689
690         PR target/33049
691         * config/avr/avr.md (extzv): New expander.
692         (*extzv): New insn.
693         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
694         * config/avr/constraints.md (C04): New constraint.
695         * doc/md.texi (Machine Constraints): Document it.
696
697 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
698
699         PR middle-end/49489
700         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
701         unsignedp argument instead of 1 for clrsb_optab.
702         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
703         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
704         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
705         * optabs.c (widen_leading): Call widen_operand and expand_unop
706         with 0 as unsignedp argument instead of 1 for clrsb_optab.
707         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
708
709 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
710
711         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
712
713 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
714
715         * gensupport.c (add_define_attr): New static function.
716         (is_predicable): Allow multi-alternative lists for the "predicable"
717         attribute.
718         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
719         (process_one_cond_exec): Call alter_attrs_for_insn.
720         * doc/md.texi (Defining Attributes): Mention some standard names.
721         (Conditional Execution): Update documentation for "predicable".
722
723         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
724         __builtin_clrsbll): Document.
725         * doc/rtl.texi (clrsb): New entry.
726         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
727         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
728         (expand_unop): Handle clrsb_optab.
729         (init_optabs): Initialize it.
730         * optabs.h (enum optab_index): New entry OTI_clrsb.
731         (clrsb_optab): Define.
732         * genopinit.c (optabs): Add an entry for it.
733         * builtins.c (expand_builtin): Handle clrsb builtin functions.
734         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
735         BUILT_IN_CLRSBLL): New.
736         * rtl.def (CLRSB): New code.
737         * dwarf2out.c (mem_loc_descriptor): Handle it.
738         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
739         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
740         and popcount.
741         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
742         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
743         (__ctzDI2): Move declaration.
744         * config/bfin/bfin.md (clrsbsi2): New expander.
745         (signbitssi2): Use the CLRSB rtx.
746         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
747         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
748
749 2011-06-21  Richard Guenther  <rguenther@suse.de>
750
751         * ipa-inline-transform.c (inline_transform): Fix previous change.
752
753 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
754
755         PR tree-optimization/49478
756         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
757         with constant operand.
758
759 2011-06-21  Richard Guenther  <rguenther@suse.de>
760
761         * ipa-inline-transform.c (inline_transform): Fix typo.
762
763 2011-06-21  Richard Guenther  <rguenther@suse.de>
764
765         PR tree-optimization/49483
766         * tree-vect-stmts.c (vectorizable_assignment): Also handle
767         VIEW_CONVERT_EXPR conversions.
768
769 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
770
771         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
772         * config/avr/avr-tables.opt: New file (generated).
773         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
774         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
775         avr-mcus.def.
776         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
777         (avr_option_override): Don't process -mmcu= argument here.  Set
778         avr_current_device using avr_mcu_index.
779         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
780         * config/avr/avr.opt (mmcu=): Use Enum.
781         * config/avr/t-avr (avr-devices.o): Update dependencies.
782         ($(srcdir)/config/avr/avr-tables.opt): New.
783         * target.def (help): Remove.
784         * doc/tm.texi.in (TARGET_HELP): Remove.
785         * doc/tm.texi: Regenerate.
786         * opts.c: Don't include target.h.
787         (common_handle_option): Don't call targetm.help.
788         * system.h (TARGET_HELP): Poison.
789         * Makefile.in (opts.o): Update dependencies.
790
791 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
792
793         * config/usegld.h: New file.
794         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
795         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
796         (LIB_SPEC): Likewise.  Search /lib.
797         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
798         (RDYNAMIC_SPEC): Handle GNU ld.
799         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
800         Define.
801         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
802         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
803         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
804         (STACK_CHECK_STATIC_BUILTIN): Define.
805         * config/sol2.opt (compat-bsd): Remove.
806         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
807         * config/sol2-bi.h: New file.
808         * config/sol2-gld.h: Remove.
809         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
810         (NO_DBX_BNSYM_ENSYM): Remove.
811         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
812         (STACK_CHECK_STATIC_BUILTIN): Remove.
813         Test USE_GLD instead of TARGET_GNU_LD.
814         * config/i386/sol2-10.h: Rename to ...
815         * config/i386/sol2-bi.h .. this.
816         (SUBTARGET_EXTRA_SPECS): Redefine.
817         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
818         (MULTILIB_DEFAULTS): Remove.
819         (DEFAULT_ARCH32_P): Define.
820         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
821         (ARCH64_SUBDIR): Define.
822         Test USE_GLD instead of TARGET_GNU_LD.
823         (I386_EMULATION): Rename to ...
824         (ARCH32_EMULATION): ... this.
825         (X86_64_EMULATION): Rename to ...
826         (ARCH64_EMULATION): ... this.
827         (TARGET_LD_EMULATION): Remove.
828         (LINK_ARCH_SPEC): Remove.
829         * config/i386/sol2-gas.h: Remove.
830         * config/i386/t-sol2-10: Rename to ...
831         * config/i386/t-sol2-64: ... this.
832         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
833         (AS_SPARC64_FLAG): Define.
834         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
835         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
836         depending on TARGET_CPU_DEFAULT.
837         (CPP_CPU_SPEC): Redefine.
838         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
839         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
840         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
841         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
842         ASM_ARCH_DEFAULT_SPEC): Redefine.
843         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
844         LINK_ARCH_DEFAULT_SPEC.
845         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
846         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
847         (ARCH64_SUBDIR): Define.
848         (LINK_ARCH64_SPEC): Redefine.
849         (CC1_SPEC): Redefine.
850         (OPTION_DEFAULT_SPECS): Redefine.
851         (MULTILIB_DEFAULTS): Define.
852         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
853         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
854         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
855         (NO_DBX_BNSYM_ENSYM): Remove.
856         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
857         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
858         (TARGET_ASM_NAMED_SECTION): Likewise.
859         (STACK_CHECK_STATIC_BUILTIN): Remove.
860         * config/sparc/sol2-bi.h: Remove.
861         * config/sparc/sol2-gas-bi.h: Remove.
862         * config/sparc/sol2-gas.h: Remove.
863         * config/sparc/sol2-gld-bi.h: Remove.
864         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
865         common parts ...
866         (*-*-solaris2*): ... here.
867
868 2011-06-21  Christian Bruel  <christian.bruel@st.com>
869
870         PR other/43564
871         * ipa-inline.c (can_inline_edge_p): Check
872         !DECL_DISREGARD_INLINE_LIMITS.
873
874 2011-06-21  Christian Bruel  <christian.bruel@st.com>
875
876         PR middle-end/49139
877         * cgraphunit.c (process_function_and_variable_attributes): warn when
878         always_inline functions that are not inline.
879         * ipa-inline-transform.c (inline_transform): Always call
880         optimize_inline.
881         * tree-inline.c (tree_inlinable_function_p): Use error instead
882         of sorry.
883         (expand_call_inline): Likewise.
884
885 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
886
887         * Makefile.in (dg_target_exps): Set.
888         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
889         instead of 7, try to divide it more evenly.
890
891 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
892
893         PR i386/49089
894         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
895         (avx256_split_unaligned_store): New definition.
896         (ix86_option_override_internal): Enable avx256 unaligned load/store
897         splitting only when avx256_split_unaligned_load/store is set.
898
899 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
900
901         * regrename.c (scan_rtx_reg): Handle the case where we write to an
902         open chain in a smaller mode without failing the entire block.
903
904 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
905
906         PR middle-end/47725
907         * combine.c (cant_combine_insn_p): Don't check zero/sign
908         extended hard registers.
909
910 2011-06-21  Alan Modra  <amodra@gmail.com>
911
912         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
913         CONST high part large-toc address.
914         (rs6000_tls_referenced_p): Make static.
915         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
916
917 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
918
919         PR middle-end/47725
920         * combine.c (cant_combine_insn_p): Check zero/sign extended
921         hard registers.
922
923 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
924
925         PR target/49385
926         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
927         one of the operands is a register.
928
929 2011-06-20  Kai Tietz  <ktietz@redhat.com>
930
931         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
932         operations in combination with binary and.
933
934 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
935
936         * regrename.c (do_replace): Don't update notes.
937
938 2011-06-20  Alan Modra  <amodra@gmail.com>
939
940         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
941         of toc-relative address in CONST.
942         (rs6000_delegitimize_address): Recognize changed address.
943         (rs6000_legitimize_reload_address): Likewise.
944         (rs6000_emit_move): Don't force these constants to memory.
945         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
946         toc-relative address in CONST.
947         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
948         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
949
950 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
951
952         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
953         (count_trailing_zeros): Likewise.
954
955 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
956
957         PR other/49325
958         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
959         .init_array can be used with .ctors on targets.
960         * configure: Regenerated.
961
962 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
963
964         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
965         if the element type is volatile.
966
967 2011-06-18  Jan Hubicka  <jh@suse.cz>
968
969         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
970         extra name aliases.
971         (lto_symtab_resolve_can_prevail_p): Likewise.
972         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
973         * cgraphbuild.c (record_reference): Remove extra body alias code.
974         (mark_load): Likewise.
975         (mark_store): Likewise.
976         * cgraph.h (varpool_node): Remove extra_name filed;
977         add alias_of and extraname_alias.
978         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
979         (varpool_alias_aliased_node): New inline function.
980         (varpool_variable_node): New function.
981         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
982         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
983         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
984         (input_varpool_node): Likewise.
985         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
986         (varpool_externally_visible_p): Remove extra body alias code.
987         (function_and_variable_visibility): Likewise.
988         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
989         (ipa_pta_execute): Use it.
990         * varpool.c (varpool_remove_node): Remove extra name alias code.
991         (varpool_mark_needed_node): Likewise.
992         (varpool_analyze_pending_decls): Analyze aliases.
993         (assemble_aliases): New functoin.
994         (varpool_assemble_decl): Use it.
995         (varpool_create_variable_alias): New function.
996         (varpool_extra_name_alias): Rewrite.
997         (varpool_for_node_and_aliases): New function.
998
999 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
1000
1001         PR target/49411
1002         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1003         last_arg_constant and last argument doesn't match its predicate,
1004         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1005         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1006         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1007         spelling of error message.
1008         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1009         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1010         const_0_to_255_operand instead of const_int_operand.
1011
1012         Revert:
1013         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1014
1015         * config/i386/sse.md (blendbits): Remove mode attribute.
1016         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1017         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1018         Check integer value of operand 3 in insn constraint.
1019
1020 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
1021
1022         PR rtl-optimization/48542
1023         * reload.c (find_equiv_reg): Stop looking when finding a
1024         setjmp-type call.
1025         * reload1.c (reload_as_needed): Invalidate all reload
1026         registers when crossing a setjmp-type call.
1027
1028 2011-06-16  Jeff Law  <law@redhat.com>
1029
1030         * tree-ssa-threadupdate.c (struct redirection_data): New field
1031         intermediate_edge.
1032         (THREAD_TARGET2): Define.
1033         (redirection_data_eq): Also check that the intermediate edge is equal.
1034         (lookup_redirection_data): Drop useless argument.  Extract the
1035         outgoing_edge and intermediate edge from E.  Callers updated.
1036         (copy_phi_args, update_destination_phis): New functions.
1037         (fix_duplicate_block_edges): Likewise.
1038         (create_edge_and_update_destination_phis): Duplicate all the edges
1039         hung off e->aux.  Use copy_phi_args.
1040         (create_duplicates): Use fix_duplicate_block_edges.
1041         (fixup_template_block): Likewise.
1042         (redirect_edges): If necessary, redirect the joiner block's incoming
1043         edge to the duplicate of the joiner block.
1044         (thread_block): Don't muck up loops when threading through a joiner
1045         block.
1046         (thread_through_loop_header): Handle threading through a joiner block.
1047         (mark_threaded_blocks, register_jump_thread): Likewise.
1048         * tree-flow.h (register_jump_thread): Add new argument.  Callers
1049         updated.
1050         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1051         (thread_across_edge): Handle threading through a joiner block.
1052
1053 2011-06-16  Martin Jambor  <mjambor@suse.cz>
1054
1055         PR tree-optimization/49343
1056         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1057         calculate offset, provide 2nd operand for the new COMPONENT_REF.
1058
1059 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
1060
1061         * config/darwin-protos.h (machopic_select_rtx_section): Move to
1062         inside RTX_CODE ifdef.
1063
1064 2011-06-16  Tom de Vries  <tom@codesourcery.com>
1065
1066         PR target/45098
1067         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1068         Disallow NULL pointer for pointer arithmetic.
1069
1070 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1071
1072         PR target/49398
1073         Revert.
1074         2011-06-10  Wei Guozhi  <carrot@google.com>
1075
1076         PR target/45335
1077         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1078         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1079         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1080         related peephole2.
1081         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1082         related peephole2.
1083         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1084         (arm_legitimate_ldrd_p): New prototype.
1085         (arm_output_ldrd): New prototype.
1086         * config/arm/arm.c (arm_check_ldrd_operands): New function.
1087         (arm_legitimate_ldrd_p): New function.
1088         (arm_output_ldrd): New function.
1089
1090 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
1091
1092         PR middle-end/46500
1093         * doc/tm.texi.in: Update Copyright date.
1094         * doc/tm.texi: Regenerate.
1095         * targhooks.c (default_setup_incoming_varargs): Replace
1096         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1097         (default_pretend_outgoing_varargs_named): Likewise.
1098         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1099         (hook_callee_copies_named): Likewise.
1100         (default_function_arg_advance): Likewise.
1101         (default_function_arg): Likewise.
1102         (default_function_incoming_arg): Likewise.
1103         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1104         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1105         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1106         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1107         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1108         * targhooks.h (default_setup_incoming_varargs): Likewise.
1109         (default_pretend_outgoing_varargs_named): Likewise.
1110         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1111         (hook_callee_copies_named): Likewise.
1112         (default_function_arg_advance): Likewise.
1113         (default_function_arg): Likewise.
1114         (default_function_incoming_arg): Likewise.
1115         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1116         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1117         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1118         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1119         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1120         * target.def (pass_by_reference): Likewise.
1121         (setup_incoming_varargs, strict_argument_naming): Likewise.
1122         (pretend_outgoing_varargs_named, callee_copies): Likewise.
1123         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1124         (function_incoming_arg): Likewise.
1125         * target.h: Don't include "tm.h" .
1126         (cumulative_args_t): New typedef.
1127         [GCC_TM_H] (get_cumulative_args): New static inline function.
1128         [GCC_TM_H] (pack_cumulative_args): Likewise.
1129         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1130         argument type with cumulative_args_t.
1131         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1132         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1133         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1134         (frv_arg_partial_bytes, frv_function_arg): Likewise.
1135         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1136         (frv_function_arg_1): Likewise.
1137         * config/s390/s390.c (s390_pass_by_reference): Likewise.
1138         (s390_function_arg_advance, s390_function_arg): Likewise.
1139         * config/m32c/m32c.c (m32c_function_arg): Likewise.
1140         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1141         (m32c_strict_argument_naming): Likewise.
1142         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1143         (spu_function_arg_advance): Likewise.
1144         (spu_setup_incoming_varargs): Likewise.  Make static.
1145         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1146         Remove prototype.
1147         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1148         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1149         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1150         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1151         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1152         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1153         (mep_pass_by_reference, mep_function_arg): Likewise.
1154         (mep_function_arg_advance): Likewise.
1155         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1156         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1157         (m32r_function_arg, m32r_function_arg_advance): Likewise.
1158         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1159         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1160         (ix86_function_arg, ix86_pass_by_reference): Likewise.
1161         (ix86_setup_incoming_varargs): Likewise.
1162         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1163         (sh_strict_argument_naming): Likewise.
1164         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1165         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1166         (sh_function_arg_advance, sh_function_arg): Likewise.
1167         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1168         (pdp11_function_arg_advance): Likewise.
1169         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1170         Likewise.
1171         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1172         * config/avr/avr.c (avr_function_arg): Likewise.
1173         (avr_function_arg_advance): Likewise.
1174         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1175         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1176         (xtensa_function_arg_1): Likewise.
1177         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1178         Likewise.
1179         (xstormy16_function_arg): Likewise.
1180         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1181         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1182         (fr30_function_arg_advance): Likewise.
1183         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1184         (lm32_function_arg, lm32_function_arg_advance): Likewise.
1185         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1186         (moxie_function_arg, moxie_function_arg_advance): Likewise.
1187         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1188         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1189         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1190         (cris_function_arg, cris_function_incoming_arg): Likewise.
1191         (cris_function_arg_advance, cris_function_arg_1): Likewise.
1192         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1193         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1194         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1195         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1196         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1197         (mn10300_arg_partial_bytes): Likewise.
1198         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1199         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1200         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1201         (ia64_function_arg_1): Likewise.
1202         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1203         (m68k_function_arg): Likewise.
1204         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1205         (rs6000_function_arg, setup_incoming_varargs): Likewise.
1206         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1207         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1208         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1209         (picochip_arg_advance): Likewise.
1210         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1211         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1212         (mcore_function_arg_advance): Likewise.
1213         * config/score/score.c (score_pass_by_reference): Likewise.
1214         (score_function_arg_advance): Likewise.
1215         (score_arg_partial_bytes): Likewise.  Make static.
1216         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1217         * config/arm/arm.c (arm_arg_partial_bytes): Replace
1218         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1219         (arm_function_arg, arm_function_arg_advance): Likewise.
1220         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1221         * config/pa/pa.c (pa_pass_by_reference): Likewise.
1222         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1223         (pa_function_arg): Likewise.
1224         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1225         (mips_function_arg, mips_function_arg_advance): Likewise.
1226         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1227         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1228         * config/vax/vax.c (vax_function_arg): Likewise.
1229         (vax_function_arg_advance): Likewise.
1230         * config/h8300/h8300.c (h8300_function_arg): Likewise.
1231         (h8300_function_arg_advance): Likewise.
1232         * config/v850/v850.c (v850_pass_by_reference): Likewise.
1233         (v850_strict_argument_naming, v850_function_arg): Likewise.
1234         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1235         (v850_setup_incoming_varargs): Likewise.
1236         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1237         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1238         (mmix_function_arg, mmix_pass_by_reference): Likewise.
1239         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1240         with const void *.
1241         * config/bfin/bfin.c (setup_incoming_varargs): Replace
1242         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1243         (bfin_function_arg_advance, bfin_function_arg): Likewise.
1244         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1245         * calls.c (emit_call_1): Change type of args_so_far to
1246         cumulative_args_t.  Changed all callers.
1247         (initialize_argument_information): Likewise.
1248         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1249         * dse.c (get_call_args): Likewise.
1250         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1251         * function.c (pass_by_reference, reference_callee_copied): Likewise.
1252         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1253         New member args_so_far_v.  Changed all users.
1254         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1255         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1256         * config/mips/mips.c (mips_output_args_xfer): Likewise.
1257         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1258         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1259         * config/microblaze/microblaze.c (microblaze_expand_prologue):
1260         Likewise.
1261         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1262         m32r_pass_by_reference.
1263
1264 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
1265
1266         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1267         argument to be a VEC of statements.
1268         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1269         assert that pattern statements have to have their vector type set.
1270         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1271         Change the first argument to be a VEC of statements.  Update
1272         documentation.
1273         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1274         (vect_handle_widen_mult_by_const): New function.
1275         (vect_recog_widen_mult_pattern):  Change the first argument to be a
1276         VEC of statements.  Update documentation.  Check that the constant is
1277         INTEGER_CST.  Support multiplication by a constant that fits an
1278         intermediate type - call vect_handle_widen_mult_by_const.
1279         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1280         call.  Handle additional pattern statements if necessary.
1281
1282 2011-06-16  Nick Clifton  <nickc@redhat.com>
1283
1284         PR target/49427
1285         * config.gcc: Set cpu_type to v850 for any V850 architecture.
1286         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1287         md_file, extra_modes, out_file and extra_options are these are all
1288         deduced from cpu_type.
1289
1290 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1291
1292         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1293         truncation mask to 63.
1294
1295 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1296
1297         PR target/49313
1298         PR target/29524
1299         * longlong.h: Add AVR support:
1300         (count_leading_zeros): New macro.
1301         (count_trailing_zeros): New macro.
1302         (COUNT_LEADING_ZEROS_0): New macro.
1303         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1304         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1305         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1306         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1307         (LIB2FUNCS_EXCLUDE): Add _clz.
1308         * config/avr/libgcc.S (XCALL): Move up in file.
1309         (XJMP): New C Macro.
1310         (DEFUN): New asm macro.
1311         (ENDF): New asm macro.
1312         (__ffssi2): New function.
1313         (__ffshi2): New function.
1314         (__loop_ffsqi2): New function.
1315         (__ctzsi2): New function.
1316         (__ctzhi2): New function.
1317         (__clzdi2): New function.
1318         (__clzsi2): New function.
1319         (__clzhi2): New function.
1320         (__paritydi2): New function.
1321         (__paritysi2): New function.
1322         (__parityhi2): New function.
1323         (__parityqi2): New function.
1324         (__popcounthi2): New function.
1325         (__popcountsi2): New function.
1326         (__popcountdi2): New function.
1327         (__popcountqi2): New function.
1328         (__bswapsi2): New function.
1329         (__bswapdi2): New function.
1330         (__ashldi3): New function.
1331         (__ashrdi3): New function.
1332         (__lshrdi3): New function.
1333         Fix suspicous lines.
1334
1335 2011-06-16  Richard Guenther  <rguenther@suse.de>
1336
1337         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1338         the same as x != 0.
1339         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1340         to (bool) X & 1.
1341         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1342         equality compares against zero for the lower bit.
1343
1344 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
1345
1346         PR tree-optimization/49419
1347         * tree-vrp.c (execute_vrp): Call init_range_assertions
1348         before estimate_numbers_of_iterations, call
1349         free_number_of_iterations_estimates before calling
1350         remove_range_assertions.
1351
1352 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1353
1354         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1355         (struct partial_schedule): Add rows_length field.
1356         (verify_partial_schedule): Check rows_length.
1357         (ps_insert_empty_row): Handle rows_length.
1358         (create_partial_schedule): Likewise.
1359         (free_partial_schedule): Likewise.
1360         (reset_partial_schedule): Likewise.
1361         (create_ps_insn): Remove rest_count argument.
1362         (remove_node_from_ps): Update rows_length.
1363         (add_node_to_ps): Update rows_length and call create_ps_insn
1364         without passing row_rest_count.
1365         (rotate_partial_schedule): Update rows_length.
1366
1367 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1368
1369         * ddg.c (add_intra_loop_mem_dep): New function.
1370         (build_intra_loop_deps): Call it.
1371
1372 2011-06-13  Jeff Law  <law@redhat.com>
1373
1374         * df-problems.c (df_lr_local_compute): Manually CSE
1375         PIC_OFFSET_TABLE_REGNUM.
1376         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1377         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1378
1379 2011-06-13  Jan Hubicka  <jh@suse.cz>
1380
1381         * cgraphunit.c (handle_alias_pairs): New function.
1382         (cgraph_finalize_compilation_unit): Use it.
1383         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1384         as externally visible.
1385
1386 2011-06-15  Richard Guenther  <rguenther@suse.de>
1387
1388         * expr.c (expand_expr_real_2): Reduce all integral types to
1389         bitfield precision.
1390         (expand_expr_real_1): Likewise.
1391
1392 2011-06-15  Martin Jambor  <mjambor@suse.cz>
1393
1394         PR tree-optimization/48613
1395         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1396         ipa_node_params_vector is NULL.
1397
1398 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
1399
1400         PR debug/49382
1401         * dwarf2out.c (dw_loc_list_node): Add force field.
1402         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1403         location in the list, even if it is modified before first real insn.
1404         (output_loc_list): Emit empty ranges with force flag set.
1405         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1406
1407 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
1408
1409         PR target/49349
1410         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1411         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
1412         above a fence.  Update comments.
1413         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1414         placed just above it.  Do not allow NULL place_to_insert.
1415
1416 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
1417
1418         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1419         (slpeel_tree_peel_loop_to_edge): Don't call
1420         remove_dead_stmts_from_loop.
1421         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1422         remove irrelevant pattern statements.  For irrelevant statements
1423         check if it is the last statement of a detected pattern, use
1424         corresponding pattern statement instead.
1425         (destroy_loop_vec_info): No need to remove pattern statements,
1426         only free stmt_vec_info.
1427         (vect_transform_loop): For irrelevant statements check if it is
1428         the last statement of a detected pattern, use corresponding
1429         pattern statement instead.
1430         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1431         pattern statements.  Set basic block for the new statement.
1432         (vect_pattern_recog): Update documentation.
1433         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1434         operands of pattern statements.
1435         (vectorizable_call): Fix printing.  In case of a pattern statement
1436         use the lhs of the original statement when creating a dummy
1437         statement to replace the original call.
1438         (vect_analyze_stmt): For irrelevant statements check if it is
1439         the last statement of a detected pattern, use corresponding
1440         pattern statement instead.
1441         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1442         statements use gsi of the original statement.
1443
1444 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1445
1446         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1447         common/common-target-def.h.
1448         * target.def (default_target_flags, handle_option,
1449         supports_split_stack, optimization_table, init_struct,
1450         except_unwind_info, unwind_tables_default, have_named_sections):
1451         Move to common/common-target.def.
1452         * target.h (enum opt_levels, struct default_options): Move to
1453         common/common-target.h.
1454         * targhooks.c (default_except_unwind_info,
1455         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1456         default_target_handle_option, empty_optimization_table): Move to
1457         common/common-targhooks.c.
1458         * targhooks.h (default_except_unwind_info,
1459         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1460         default_target_handle_option, empty_optimization_table): Move to
1461         common/common-targhooks.h.
1462         * common/common-target-def.h: Include common/common-targhooks.h.
1463         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1464         defined.
1465         * common/common-target.def (handle_option, option_init_struct,
1466         option_optimization_table, default_target_flags,
1467         except_unwind_info, supports_split_stack, unwind_tables_default,
1468         have_named_sections): Move from target.def.
1469         (HOOK_PREFIX): Undefine at end of file.
1470         * common/common-target.h: Include input.h.
1471         (enum opt_levels, struct default_options): Move from target.h.
1472         * common/common-targhooks.c, common/common-targhooks.h: New.
1473         * config.gcc (target_has_targetm_common): Default to yes.
1474         (moxie*): Set target_has_targetm_common=no.
1475         (hppa*-*-*): Don't set target_has_targetm_common=yes.
1476         * doc/tm.texi: Regenerate.
1477         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1478         (C_TARGET_DEF_H): Add common/common-targhooks.h.
1479         (GCC_OBJS): Remove vec.o.
1480         (OBJS): Remove hooks.o and vec.o.
1481         (OBJS-libcommon-target): Add vec.o, hooks.o and
1482         common/common-targhooks.o.
1483         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1484         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1485         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1486         cfglayout.o, $(out_object_file), $(common_out_object_file)):
1487         Update dependencies.
1488         (common/common-targhooks.o): New.
1489         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
1490         * common/config/pa/pa-common.c: Include more headers.  Take
1491         copyright dates from pa.c.
1492         (pa_option_optimization_table, pa_handle_option,
1493         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1494         TARGET_HANDLE_OPTION): Move from pa.c.
1495         * common/config/alpha/alpha-common.c,
1496         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1497         common/config/bfin/bfin-common.c,
1498         common/config/cris/cris-common.c,
1499         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1500         common/config/h8300/h8300-common.c,
1501         common/config/i386/i386-common.c,
1502         common/config/ia64/ia64-common.c,
1503         common/config/iq2000/iq2000-common.c,
1504         common/config/lm32/lm32-common.c,
1505         common/config/m32c/m32c-common.c,
1506         common/config/m32r/m32r-common.c,
1507         common/config/m68k/m68k-common.c,
1508         common/config/mcore/mcore-common.c,
1509         common/config/mep/mep-common.c,
1510         common/config/microblaze/microblaze-common.c,
1511         common/config/mips/mips-common.c,
1512         common/config/mmix/mmix-common.c,
1513         common/config/mn10300/mn10300-common.c,
1514         common/config/pdp11/pdp11-common.c,
1515         common/config/picochip/picochip-common.c,
1516         common/config/rs6000/rs6000-common.c,
1517         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1518         common/config/score/score-common.c, common/config/sh/sh-common.c,
1519         common/config/sparc/sparc-common.c,
1520         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1521         common/config/vax/vax-common.c,
1522         common/config/xstormy16/xstormy16-common.c,
1523         common/config/xtensa/xtensa-common.c: New.
1524         * config/alpha/alpha.c: Include common/common-target.h.
1525         (alpha_option_optimization_table, alpha_handle_option,
1526         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1527         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1528         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1529         * config/arm/arm.c (arm_option_optimization_table,
1530         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1531         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1532         arm-common.c.
1533         * config/avr/avr.c (avr_option_optimization_table,
1534         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1535         to avr-common.c.
1536         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1537         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1538         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1539         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1540         * config/cris/cris.c (cris_option_optimization_table,
1541         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1542         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1543         cris-common.c.
1544         * config/fr30/fr30.c (fr30_option_optimization_table,
1545         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1546         to fr30-common.c.
1547         * config/frv/frv.c (frv_option_optimization_table,
1548         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1549         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1550         * config/h8300/h8300.c (h8300_option_optimization_table,
1551         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1552         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1553         * config/i386/i386-protos.h (ix86_handle_option): Declare.
1554         * config/i386/i386.c: Include common/common-target.h.
1555         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1556         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1557         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1558         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1559         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1560         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1561         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1562         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1563         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1564         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1565         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1566         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1567         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1568         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1569         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1570         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1571         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1572         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1573         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1574         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1575         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1576         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1577         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1578         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1579         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1580         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1581         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1582         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1583         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1584         ix86_option_optimization_table, ix86_option_init_struct,
1585         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1586         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1587         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1588         i386-common.c.
1589         * config/i386/t-i386 (i386.o): Update dependencies.
1590         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1591         * config/ia64/ia64.c (ia64_option_optimization_table,
1592         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1593         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1594         ia64_handle_option): Move to ia64-common.c.
1595         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1596         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1597         * config/lm32/lm32.c (lm32_option_optimization_table,
1598         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1599         to lm32-common.c.
1600         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1601         m32c-common.c.
1602         * config/m32r/m32r.c (m32r_option_optimization_table,
1603         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1604         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1605         m32r_handle_option): Move to m32r-common.c.
1606         (m32r_memory_move_cost): Remove comment referring to
1607         TARGET_HANDLE_OPTION.
1608         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1609         Move to m68k-common.c.
1610         * config/mcore/mcore.c (mcore_option_optimization_table,
1611         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1612         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1613         * config/mep/mep.c (mep_option_optimization_table,
1614         mep_handle_option, TARGET_HANDLE_OPTION,
1615         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1616         Move to mep-common.c.
1617         * config/microblaze/microblaze.c
1618         (microblaze_option_optimization_table,
1619         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1620         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1621         * config/mips/mips.c (mips_handle_option,
1622         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1623         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1624         mips-common.c.
1625         * config/mmix/mmix.c (mmix_option_optimization_table,
1626         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1627         Move to mmix-common.c.
1628         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1629         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1630         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1631         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1632         * config/pa/pa.c: Include common/common-target.h.
1633         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1634         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1635         pa_handle_option): Move to pa-common.c.
1636         (pa_option_override): Use targetm_common.except_unwind_info.
1637         (pa_asm_output_mi_thunk, pa_function_section): Use
1638         targetm_common.have_named_sections.
1639         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1640         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1641         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1642         pdp11_handle_option, pdp11_option_init_struct): Move to
1643         pdp11-common.c.
1644         * config/picochip/picochip.c (picochip_option_optimization_table,
1645         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1646         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1647         * config/rs6000/rs6000.c: Include common/common-target.h.
1648         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1649         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1650         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1651         rs6000_handle_option): Move to rs6000-common.c.
1652         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1653         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1654         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1655         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1656         * config/s390/s390.c (processor_flags_table,
1657         s390_option_optimization_table, s390_option_init_struct,
1658         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1659         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1660         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1661         * config/s390/s390.h (processor_flags_table): Declare.
1662         * config/score/score.c (score_option_optimization_table,
1663         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1664         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1665         score_handle_option): Move to score-common.c.
1666         * config/sh/sh.c (sh_option_optimization_table,
1667         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1668         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1669         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1670         * config/sparc/sparc.c: Include common/common-target.h.
1671         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1672         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1673         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1674         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1675         spu_option_init_struct): Move to spu-common.c.
1676         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1677         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1678         * config/v850/v850.c (small_memory_physical_max,
1679         v850_handle_memory_optionn v850_handle_option,
1680         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1681         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1682         v850-common.c.
1683         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1684         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1685         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1686         Move to xtensa-common.c.
1687         * cfglayout.c: Include common/common-target.h.
1688         (fixup_reorder_chain): Use targetm_common.have_named_sections.
1689         * cfgrtl.c: Include common/common-target.h.
1690         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1691         targetm_common.have_named_sections.
1692         * dbxout.c: Include common/common-target.h.
1693         (dbxout_function_end): Use targetm_common.have_named_sections.
1694         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1695         targetm_common.except_unwind_info.
1696         * dwarf2out.c: Include common/common-target.h.
1697         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1698         dwarf2out_begin_prologue, dwarf2out_frame_init,
1699         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1700         targetm_common.except_unwind_info.
1701         * except.c: Include common/common-target.h.
1702         (init_eh, finish_eh_generation,
1703         output_one_function_exception_table): Use
1704         targetm_common.except_unwind_info.
1705         (switch_to_exception_section): Use targetm_common.have_named_sections.
1706         * explow.c: Include common/common-target.h.
1707         * expr.c: Include common/common-target.h.
1708         (build_personality_function): Use targetm_common.except_unwind_info.
1709         * function.c: Include common/common-target.h.
1710         (expand_function_end): Use targetm_common.except_unwind_info.
1711         * haifa-sched.c: Include common/common-target.h.
1712         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1713         * lto-opts.c: Include common/common-target.h instead of target.h.
1714         (lto_reissue_options): Use targetm_common.handle_option.
1715         * opts.c: Include common/common-target.h.
1716         (target_handle_option): Use targetm_common.handle_option.
1717         (init_options_struct): Update comment referring to
1718         targetm.target_option.optimization.  Use
1719         targetm_common.default_target_flags,
1720         targetm_common.unwind_tables_default and
1721         targetm_common.option_init_struct.
1722         (default_options_optimization): Use
1723         targetm_common.option_optimization_table.
1724         (finish_options): Use targetm_common.except_unwind_info,
1725         targetm_common.unwind_tables_default,
1726         targetm_common.have_named_sections and
1727         targetm_common.supports_split_stack.
1728         * toplev.c: Include common/common-target.h.
1729         (process_options): Use targetm_common.have_named_sections.
1730         * tree-tailcall.c: Include common/common-target.h.
1731         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
1732         * tree.c: Include common/common-target.h.
1733         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
1734         * varasm.c: Include common/common-target.h.
1735         (resolve_unique_section, hot_function_section,
1736         default_function_section): Use targetm_common.have_named_sections.
1737
1738 2011-06-14  Easwaran Raman  <eraman@google.com>
1739
1740         PR rtl-optimization/44194
1741         * dse.c: Include tree-flow.h
1742         (insn_info): Add new field non_frame_wild_read.
1743         (group_info): Add new fields escaped_n and escaped_p.
1744         (kill_on_calls): New variable.
1745         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1746         (dse_step0): Initialize kill_on_calls.
1747         (can_escape): New function.
1748         (set_usage_bits): Add additional parameter; record information
1749         about escaped locations.
1750         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
1751         (dse_step2_nospill): Set kill_on_calls based on
1752         group->escaped_n and group->escaped_n.
1753         (add_wild_read): Refactor into...
1754         (reset_active_stores): ... New function, and
1755         (free_read_records): ... New function.
1756         (add_non_frame_wild_read): New function.
1757         (scan_insn): Call add_non_frame_wild_read on non-const calls.
1758         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
1759         (dse_step5_nospill): Call scan_reads_nospill for instructions
1760         marked as non_frame_wild_read.
1761         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
1762
1763 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1764
1765         * common/common-target-def.h, common/common-target.def,
1766         common/common-target.h, common/config/default-common.c,
1767         common/config/pa/pa-common.c: New files.
1768         * Makefile.in (common_out_file, common_out_object_file,
1769         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1770         (OBJS-libcommon-target): Include $(common_out_object_file).
1771         (prefix.o): Update dependencies.
1772         ($(common_out_object_file), common/common-target-hooks-def.h,
1773         s-common-target-hooks-def-h): New.
1774         (s-tm-texi): Also check timestamp on common-target.def.
1775         (build/genhooks.o): Update dependencies.
1776         * config.gcc (common_out_file, target_has_targetm_common): Define.
1777         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1778         TARGET_ALWAYS_STRIP_DOTDOT.
1779         * configure.ac (common_out_object_file): Define.
1780         (common_out_file, common_out_object_file): Substitute.
1781         (common): Create directory.
1782         * configure: Regenerate.
1783         * doc/tm.texi.in (targetm_common): Document.
1784         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1785         * doc/tm.texi: Regenerate.
1786         * genhooks.c (hook_array): Also include common/common-target.def.
1787         * prefix.c (tm.h): Don't include.
1788         (common/common-target.h): Include.
1789         (ALWAYS_STRIP_DOTDOT): Don't define.
1790         (update_path): Use targetm_common.always_strip_dotdot instead of
1791         ALWAYS_STRIP_DOTDOT.
1792         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1793
1794 2011-06-14  David Li  <davidxl@google.com>
1795
1796         * passes.c (execute_function_todo): Remove TODO_dump_func.
1797         (execute_one_pass): Remove TODO_dump_func.
1798         (execute_function_dump): New function.
1799         * tree-vrp.c: Remove TODO_dump_func.
1800         * regrename.c: Remove TODO_dump_func.
1801         * fwprop.c: Remove TODO_dump_func.
1802         * tree-into-ssa.c: Remove TODO_dump_func.
1803         * tree-complex.c: Remove TODO_dump_func.
1804         * tracer.c: Remove TODO_dump_func.
1805         * tree-loop-distribution.c: Remove TODO_dump_func.
1806         * postreload-gcse.c: Remove TODO_dump_func.
1807         * postreload.c: Remove TODO_dump_func.
1808         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1809         * tree-tailcall.c: Remove TODO_dump_func.
1810         * ipa-cp.c: Remove TODO_dump_func.
1811         * final.c: Remove TODO_dump_func.
1812         * tree-emutls.c: Remove TODO_dump_func.
1813         * omp-low.c: Remove TODO_dump_func.
1814         * tree-ssa-dse.c: Remove TODO_dump_func.
1815         * tree-ssa-uncprop.c: Remove TODO_dump_func.
1816         * auto-inc-dec.c: Remove TODO_dump_func.
1817         * reorg.c: Remove TODO_dump_func.
1818         * tree-ssa-copyrename.c: Remove TODO_dump_func.
1819         * tree-ssa-ccp.c: Remove TODO_dump_func.
1820         * compare-elim.c: Remove TODO_dump_func.
1821         * mode-switching.c: Remove TODO_dump_func.
1822         * modulo-sched.c: Remove TODO_dump_func.
1823         * tree-call-cdce.c: Remove TODO_dump_func.
1824         * cse.c: Remove TODO_dump_func.
1825         * web.c: Remove TODO_dump_func.
1826         * tree-stdarg.c: Remove TODO_dump_func.
1827         * lto-streamer-out.c: Remove TODO_dump_func.
1828         * tree-ssa-math-opts.c: Remove TODO_dump_func.
1829         * tree-ssa-dom.c: Remove TODO_dump_func.
1830         * tree-nrv.c: Remove TODO_dump_func.
1831         * loop-init.c: Remove TODO_dump_func.
1832         * gimple-low.c: Remove TODO_dump_func.
1833         * ipa-inline.c: Remove TODO_dump_func.
1834         * tree-ssa-sink.c: Remove TODO_dump_func.
1835         * jump.c: Remove TODO_dump_func.
1836         * ifcvt.c: Remove TODO_dump_func.
1837         * tree-ssa-loop.c: Remove TODO_dump_func.
1838         * recog.c: Remove TODO_dump_func.
1839         * dse.c: Remove TODO_dump_func.
1840         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1841         * matrix-reorg.c: Remove TODO_dump_func.
1842         * tree-eh.c: Remove TODO_dump_func.
1843         * regmove.c: Remove TODO_dump_func.
1844         * function.c: Remove TODO_dump_func.
1845         * tree-vectorizer.c: Remove TODO_dump_func.
1846         * ipa-split.c: Remove TODO_dump_func.
1847         * gcse.c: Remove TODO_dump_func.
1848         * tree-if-conv.c: Remove TODO_dump_func.
1849         * init-regs.c: Remove TODO_dump_func.
1850         * tree-ssa-phiopt.c: Remove TODO_dump_func.
1851         * implicit-zee.c: Remove TODO_dump_func.
1852         * lower-subreg.c: Remove TODO_dump_func.
1853         * bt-load.c: Remove TODO_dump_func.
1854         * tree-dfa.c: Remove TODO_dump_func.
1855         * except.c: Remove TODO_dump_func.
1856         * emit-rtl.c: Remove TODO_dump_func.
1857         * store-motion.c: Remove TODO_dump_func.
1858         * cfgexpand.c: Remove TODO_dump_func.
1859         * tree-cfgcleanup.c: Remove TODO_dump_func.
1860         * cfgcleanup.c: Remove TODO_dump_func.
1861         * tree-ssa-pre.c: Remove TODO_dump_func.
1862         * tree-sra.c: Remove TODO_dump_func.
1863         * tree-mudflap.c: Remove TODO_dump_func.
1864         * tree-ssa-copy.c: Remove TODO_dump_func.
1865         * cfglayout.c: Remove TODO_dump_func.
1866         * tree-ssa-forwprop.c: Remove TODO_dump_func.
1867         * tree-ssa-dce.c: Remove TODO_dump_func.
1868         * ira.c: Remove TODO_dump_func.
1869         * tree-ssa.c: Remove TODO_dump_func.
1870         * integrate.c: Remove TODO_dump_func.
1871         * tree-optimize.c: Remove TODO_dump_func.
1872         * tree-ssa-phiprop.c: Remove TODO_dump_func.
1873         * tree-object-size.c: Remove TODO_dump_func.
1874         * combine.c: Remove TODO_dump_func.
1875         * bb-reorder.c: Remove TODO_dump_func.
1876         * cprop.c: Remove TODO_dump_func.
1877         * var-tracking.c: Remove TODO_dump_func.
1878         * tree-profile.c: Remove TODO_dump_func.
1879         * tree-vect-generic.c: Remove TODO_dump_func.
1880         * reg-stack.c: Remove TODO_dump_func.
1881         * sched-rgn.c: Remove TODO_dump_func.
1882         * tree-ssa-structalias.c: Remove TODO_dump_func.
1883         * tree-switch-conversion.c: Remove TODO_dump_func.
1884         * tree-cfg.c: Remove TODO_dump_func.
1885         * tree-ssa-reassoc.c: Remove TODO_dump_func.
1886         * combine-stack-adj.c: Remove TODO_dump_func.
1887         * dce.c: Remove TODO_dump_func.
1888         * tree-ssanames.c: Remove TODO_dump_func.
1889         * regcprop.c: Remove TODO_dump_func.
1890
1891 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1892
1893         PR middle-end/47364
1894         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1895         and properly handle result not in Pmode.
1896
1897 2011-06-14  Robert Millan  <rmh@gnu.org>
1898
1899         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1900         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1901         `config/linux.h'.
1902
1903         * config/i386/kfreebsd-gnu64.h: New file.
1904         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1905         with `i386/kfreebsd-gnu64.h'.
1906
1907         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1908         (GNU_USER_LINK_EMULATION64): New macros.
1909         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1910         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1911         of hardcoding `elf_i386' and `elf_x86_64'.
1912
1913 2011-06-14  Nick Clifton  <nickc@redhat.com>
1914
1915         PR target/49403
1916         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1917
1918         PR target/49402
1919         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1920
1921 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
1922
1923         PR fortran/49103
1924         * tree.h (DECL_NONSHAREABLE): Define.
1925         (struct tree_decl_common): Change decl_common_unused to
1926         decl_nonshareable_flag.
1927         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1928         Ignore vars with DECL_NONSHAREABLE bit set.
1929         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1930         on stores to automatic aggregate vars.
1931
1932         PR rtl-optimization/49390
1933         Revert:
1934         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
1935
1936         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1937         MEM_ALIAS_SET.
1938
1939 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
1940             Tom de Vries  <tom@codesourcery.com>
1941
1942         PR target/45098
1943         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1944         Document changed semantics.
1945         (max_stmt_executions, max_stmt_executions_int): Declare.
1946         * tree-data-ref.c (estimated_loop_iterations)
1947         (estimated_loop_iterations_int): Move functions...
1948         * tree-ssa-loop-niter.c (estimated_loop_iterations)
1949         (estimated_loop_iterations_int): here.
1950         (record_estimate): Change nb_iterations_upper_bound and
1951         nb_iterations_estimate semantics.
1952         (max_stmt_executions, max_stmt_executions_int): New function.
1953         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1954         (max_stmt_executions_tree): this.
1955         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1956         estimated_loop_iterations_tree.
1957         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1958         max_stmt_executions_int instead of estimated_loop_iterations_int.
1959         * predict.c (predict_loops): Idem.
1960         * tree-parloops.c (parallelize_loops): Idem.
1961         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1962         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1963         (init_omega_for_ddr_1): Idem.
1964         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1965         (loop_prefetch_arrays): Idem
1966         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1967         max_stmt_executions instead of estimated_loop_iterations.
1968         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1969         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1970         instead of nb_iterations_upper_bound.
1971
1972 2011-06-13  Jan Hubicka  <jh@suse.cz>
1973
1974         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1975
1976 2011-06-14  Richard Henderson  <rth@redhat.com>
1977
1978         PR debug/48459
1979         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1980         (based_loc_descr): Assert it's true.
1981         (compute_frame_pointer_to_fb_displacement): Set it, rather than
1982         aborting immediately.
1983
1984 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
1985             Mingfeng Wu  <mingfeng@faraday-tech.com>
1986
1987         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1988
1989 2011-06-13  Jan Hubicka  <jh@suse.cz>
1990
1991         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1992
1993 2011-06-13  Jan Hubicka  <jh@suse.cz>
1994
1995         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1996         similarly to DECL_COMDAT.
1997         * cgraphunit.c (cgraph_analyze_function): Likewise.
1998         * ipa.c (function_and_variable_visibility): Likewise.
1999
2000 2011-06-13  Jan Hubicka  <jh@suse.cz>
2001
2002         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2003         BINFO_VIRTUALS when streaming for ltrans unit.
2004
2005 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
2006
2007         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2008         (movdi_internal64): Same.
2009
2010 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
2011
2012         PR target/44618
2013         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2014         a set of similar patterns, where the MATCH_OPERAND for the function
2015         argument is replaced with individual references to hardware registers.
2016         (save_fpregs_<mode>): Ditto
2017         (restore_gpregs_<mode>): Ditto
2018         (return_and_restore_gpregs_<mode>): Ditto
2019         (return_and_restore_fpregs_<mode>): Ditto
2020         (return_and_restore_fpregs_aix_<mode>): Ditto
2021
2022 2011-06-13  Jan Hubicka  <jh@suse.cz>
2023
2024         * ipa-utils.c (postorder_stack): New structure.
2025         (ipa_reverse_postorder): Handle aliases.
2026
2027 2011-06-13  Jan Hubicka  <jh@suse.cz>
2028
2029         * ipa-inline.c (reset_edge_caches): Walk aliases.
2030         (update_caller_keys): Do not test inlinability of aliases.
2031         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2032         (do_estimate_growth): Fix typo.
2033
2034 2011-06-13  Jan Hubicka  <jh@suse.cz>
2035
2036         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2037         (can_remove_node_now_p): ... here; handle same comdat groups.
2038         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2039         (inline_call): Update use of can_remove_node_now_p.
2040
2041 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2042
2043         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2044         condition to disallow non-identical memory locations.
2045         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2046         preference to bit manipulation instructions.
2047
2048 2011-06-13  Jan Hubicka  <jh@suse.cz>
2049
2050         * cgraph.c (cgraph_for_node_thunks_and_aliases,
2051         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2052         (nonremovable_p): New function.
2053         (cgraph_can_remove_if_no_direct_calls_p): New function.
2054         (used_from_object_file_p): New functoin.
2055         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2056         references from aliases.
2057         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2058         * ipa-inline.c (check_caller_edge): New function.
2059         (want_inline_function_called_once_p): Use it; accept aliases called
2060         once, too.
2061         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2062
2063 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2064
2065         PR target/48454
2066         * config/arm/neon.md (vec_pack_trunc): Set the lengths
2067         correctly for the case with Quad vectors.
2068
2069 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
2070            Ira Rosen  <ira.rosen@linaro.org>
2071
2072         PR tree-optimization/49352
2073         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2074         all, make sure loop_use_stmt after the loop is a def stmt of a used
2075         SSA_NAME that is the only one defined inside of the loop.  Don't
2076         check for COND_EXPR and GIMPLE_BINARY_RHS.
2077         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2078         check_reduction is true.
2079
2080 2011-06-11  Jan Hubicka  <jh@suse.cz>
2081
2082         PR middle-end/49373
2083         * ipa.c (cgraph_externally_visible_p): Check resolution info.
2084
2085 2011-06-11  Jan Hubicka  <jh@suse.cz>
2086
2087         PR middle-end/48836
2088         * ipa-inline-transform.c: Include tree-pass.h
2089         (inline_transform): Set TODO_update_ssa_only_virtuals.
2090         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2091
2092 2011-06-11  Jan Hubicka  <jh@suse.cz>
2093
2094         PR middle-end/49378
2095         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2096         aliases and thunks.
2097
2098 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
2099
2100         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2101         Take number of iterations to peel into account for equally frequent
2102         misalignment values.
2103
2104 2011-06-11  Jan Hubicka  <jh@suse.cz>
2105
2106         * lto-streamer-out.c (produce_symtab): Stream out the newly
2107         represented aliases.
2108
2109 2011-06-11  Jan Hubicka  <jh@suse.cz>
2110
2111         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2112         varying args.
2113         (ipa_update_after_lto_read): Likewise.
2114         (ipa_write_node_info): Do not sream call_with_var_arguments.
2115         (ipa_read_node_info): Likewise.
2116
2117 2011-06-11  Jan Hubicka  <jh@suse.cz>
2118
2119         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2120
2121 2011-06-11  Jan Hubicka  <jh@suse.cz>
2122
2123         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2124         (lto_symtab_resolve_can_prevail_p): Likewise.
2125         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2126         * cgraph.c (same_body_aliases_done): New global var.
2127         (cgraph_same_body_alias_1): Rename to ...
2128         (cgraph_create_function_alias): ... this one; reorg to new
2129         representation.
2130         (cgraph_same_body_alias): Use cgraph_create_function_alias;
2131         record references when asked to.
2132         (cgraph_add_thunk): Fix formating.
2133         (cgraph_get_node): Kill same body alias code.
2134         (cgraph_node_for_asm): Likewise.
2135         (cgraph_remove_same_body_alias): Remove.
2136         (cgraph_remove_node): Kill same body alias code.
2137         (cgraph_mark_address_taken_node): Mark also the aliased function
2138         as having address taken.
2139         (dump_cgraph_node): Dump same body aliases.
2140         (cgraph_for_node_thunks_and_aliases): Update for new alias
2141         representation.
2142         (cgraph_for_node_and_aliases): Likewise.
2143         * cgraph.h (same_body): Kll pointer.
2144         (same_body_alias): Update comment.
2145         (same_body_aliases_done): Declare.
2146         (cgraph_remove_same_body_alias): Remove declaration.
2147         (cgraph_create_function_alias): Declare.
2148         (cgraph_process_same_body_aliases): Declare.
2149         (cgraph_function_with_gimple_body_p): Check for alias.
2150         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2151         (cgraph_alias_aliased_node): New function.
2152         (cgraph_function_node): Update for new aliases.
2153         (cgraph_function_or_thunk_node): Likewise.
2154         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2155         (inline_call): Remove dead aliases.
2156         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2157         name hack for same body aliases.
2158         (clone_of_p): Look through aliases.
2159         (verify_cgraph_node): Verify aliases.
2160         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2161         (cgraph_process_same_body_aliases): New function.
2162         (process_function_and_variable_attributes): Disable weakref warning on
2163         alias.
2164         (cgraph_analyze_functions): Handle aliases.
2165         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2166         (assemble_thunks): Rename to ...
2167         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2168         (cgraph_expand_function): Remove alias output code.
2169         (cgraph_output_in_order): Skip aliases.
2170         (cgraph_preserve_function_body_p): Aliases don't need preserving.
2171         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2172         (ipa_record_reference): Do not assert on alias references.
2173         (ipa_ref_has_aliases_p): New function.
2174         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2175         (ipa_ref_has_aliases_p): Declare.
2176         * lto-cgraph.c (lto_output_node): Handle aliases.
2177         (input_node): Likewise.
2178         * lto-streamer-out.c (lto_output): Skip aliases.
2179         (produce_symtab): Kill same_body_alias code.
2180         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2181         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2182         * ipa-inline.c (update_caller_keys): Walk aliases.
2183         (inline_small_functions): Fix thinko in previous patch.
2184         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2185         (function_and_variable_visibility): Do not walk same body aliases.
2186         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2187         (ipa_pta_execute): Use it.
2188
2189 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2190
2191         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2192         (*vec_dupv2df): Rename from vec_dupv2df.
2193         (vec_dupv2df): New expander.
2194
2195 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2196
2197         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2198
2199 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2200
2201         * config/i386/i386.md: Use default value in "isa" attribute.
2202         * config/i386/sse.md: Ditto.
2203         * config/i386/mmx.md: Ditto.
2204
2205 2011-06-10  Wei Guozhi  <carrot@google.com>
2206
2207         PR target/45335
2208         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2209         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2210         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2211         related peephole2.
2212         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2213         related peephole2.
2214         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2215         (arm_legitimate_ldrd_p): New prototype.
2216         (arm_output_ldrd): New prototype.
2217         * config/arm/arm.c (arm_check_ldrd_operands): New function.
2218         (arm_legitimate_ldrd_p): New function.
2219         (arm_output_ldrd): New function.
2220
2221 2011-06-10  David Li  <davidxl@google.com>
2222
2223         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2224         * passes.c (passr_eq): New function.
2225         (create_pass_tab): New function.
2226         (pass_traverse): New function.
2227         (dump_one_pass): New function.
2228         (dump_pass_list): New function.
2229         (dump_passes): New function.
2230
2231 2011-06-10  Jan Hubicka  <jh@suse.cz>
2232
2233         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2234         setting the nothrow flag.
2235         * ipa-reference.c (propagate): Skip aliases.
2236         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2237         (propagate_nothrow): Skip aliases; do not update cgraph.
2238         (local_pure_const): Do not update cgraph.
2239         * tree-profile.c (tree_profiling): Do fixup_cfg.
2240
2241 2011-06-10  Jan Hubicka  <jh@suse.cz>
2242
2243         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2244         (cgraph_local_node_p): ... here; handle aliases.
2245         (has_addr_references_p): Break out from ...;
2246         (cgraph_remove_unreachable_nodes) ... here.
2247
2248 2011-06-10  Jan Hubicka  <jh@suse.cz>
2249
2250         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2251         * common.opt (flag_inline_functions_called_once): Do not
2252         initialize to 1.
2253
2254 2011-06-10  Jan Hubicka  <jh@suse.cz>
2255
2256         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2257         (ipcp_initialize_node_lattices): Do not deal with aliases;
2258         Do not try to propagate through thunks.
2259         (ipcp_change_tops_to_bottom): Do not deal with aliases.
2260
2261 2011-06-10  Jan Hubicka  <jh@suse.cz>
2262
2263         * ipa-prop.c (ipa_write_node_info): Stream jump functions
2264         for indirect calls.
2265         (ipa_read_node_info): Likewise.
2266
2267 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2268
2269         PR lto/49302
2270         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2271         (build_and_insert_call): Likewise.
2272         (build_and_insert_ref): New.
2273         (gimple_expand_builtin_pow): Minor cleanup.
2274         (gimple_expand_builtin_cabs): New.
2275         (execute_cse_sincos): Add case for BUILT_IN_CABS.
2276
2277 2011-06-10  Jan Hubicka  <jh@suse.cz>
2278
2279         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2280         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2281         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2282         (ipcp_propagate_stage): Skip aliases when propagating.
2283         (ipcp_need_redirect_p): Skip aliases.
2284         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2285         collect_callers_of_node.
2286         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2287         for aliases.
2288         (ipa_compute_jump_functions): Look through aliases.
2289
2290 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2291
2292         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2293
2294 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2295
2296         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2297         Adjust comments.
2298         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2299
2300 2011-06-10  Jan Hubicka  <jh@suse.cz>
2301
2302         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2303         Update call of gimple_get_virt_method_for_binfo.
2304         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2305         refuse_thunks parameter.
2306         (gimple_fold_call): Update.
2307         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2308
2309 2011-06-10  Jan Hubicka  <jh@suse.cz>
2310
2311         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2312         (not_all_callers_have_enough_arguments_p): ... this one; turn into
2313         worker for cgraph_for_node_and_aliases.
2314         (convert_callers_for_node): Break out from ...
2315         (convert_callers): ... here.
2316         (modify_function): Use collect_callers_of_node.
2317         (ipa_early_sra): Use cgraph_for_node_and_aliases.
2318
2319 2011-06-10  Richard Guenther  <rguenther@suse.de>
2320
2321         PR tree-optimization/49361
2322         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2323         when not already in gimple form.
2324
2325 2011-06-10  Richard Guenther  <rguenther@suse.de>
2326
2327         PR bootstrap/49344
2328         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2329         FOR_EACH_PHI_OR_STMT_USE.
2330
2331 2011-06-10  Jan Hubicka  <jh@suse.cz>
2332
2333         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2334         (clone_inlined_nodes): ... here.
2335         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2336         to real destination prior inlining.
2337         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2338         can_early_inline_edge_p, want_early_inline_function_p,
2339         want_early_inline_function_p, want_inline_small_function_p,
2340         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2341         edge_badness, update_all_callee_keys, lookup_recursive_calls,
2342         add_new_edges_to_heap, inline_small_functions, flatten_function,
2343         inline_always_inline_functions, early_inline_small_functions): Use
2344         cgraph_function_or_thunk_node.
2345         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2346         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2347         (do_estimate_edge_growth_1): Break out from ...
2348         (do_estimate_growth) ... here; walk aliases.
2349         (inline_generate_summary): Skip aliases.
2350
2351 2011-06-10  Richard Guenther  <rguenther@suse.de>
2352
2353         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2354         forward when combining, visit inserted stmts when a stmt was changed.
2355
2356 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
2357
2358         * tree.h (error_operand_p): Add.
2359         * dbxout.c (dbxout_type_fields): Use the latter.
2360         * c-decl.c (add_stmt): Likewise.
2361         * gimplify.c (omp_add_variable, omp_notice_variable,
2362         gimplify_scan_omp_clauses): Likewise.
2363
2364 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
2365
2366         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2367         when a value is actually passed in regs.
2368
2369 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
2370             Laurent Rougé  <laurent.rouge@menta.fr>
2371
2372         * doc/invoke.texi (SPARC options): Add -mflat.
2373         * config/sparc/sparc.opt: Likewise.
2374         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2375         (sparc_flat_expand_prologue): Declare.
2376         (sparc_flat_expand_epilogue): Likewise.
2377         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2378         (CPP_ENDIAN_SPEC): Replace with...
2379         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
2380         (CPP_SPEC): Adjust to above change.
2381         (EXTRA_SPECS): Likewise.
2382         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2383         (INCOMING_REGNO): Likewise.
2384         (OUTGOING_REGNO): Likewise.
2385         (LOCAL_REGNO): Likewise.
2386         (SETUP_FRAME_ADDRESSES): Likewise.
2387         (FIXED_REGISTERS): Set 0 for %fp.
2388         (CALL_USED_REGISTERS): Likewise.
2389         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2390         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2391         (RETURN_ADDR_REGNUM): Define.
2392         (RETURN_ADDR_RTX): Use it.
2393         (INCOMING_RETURN_ADDR_REGNUM): Define.
2394         (INCOMING_RETURN_ADDR_RTX): Use it.
2395         (DWARF_FRAME_RETURN_COLUMN): Likewise.
2396         (EH_RETURN_REGNUM): Define.
2397         (EH_RETURN_STACKADJ_RTX): Use it.
2398         (EH_RETURN_HANDLER_RTX): Delete.
2399         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2400         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2401         Delete.
2402         (struct machine_function): Add frame_size, apparent_frame_size,
2403         frame_base_reg, frame_base_offset, n_global_fp_regs and
2404         save_local_in_regs_p fields.
2405         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2406         sparc_frame_base_offset, sparc_n_global_fp_regs,
2407         sparc_save_local_in_regs_p): New macros.
2408         (sparc_option_override): Error out if -fcall-saved-REG is specified
2409         for Out registers.
2410         (eligible_for_restore_insn): Fix formatting.
2411         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
2412         (eligible_for_sibcall_delay): Likewise.
2413         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2414         (sparc_legitimate_address_p): Adjust to above change.
2415         (save_global_or_fp_reg_p): New predicate.
2416         (return_addr_reg_needed_p): Likewise.
2417         (save_local_or_in_reg_p): Likewise.
2418         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
2419         (SORR_SAVE, SORR_RESTORE): Delete.
2420         (sorr_pred_t): New typedef.
2421         (sorr_act_t): New enum.
2422         (save_or_restore_regs): Rename to...
2423         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
2424         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2425         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
2426         mechanism.  Add CFI information for double-word saves in 32-bit mode.
2427         (emit_adjust_base_to_offset): New function extracted from...
2428         (emit_save_or_restore_regs): ...this.  Rename the rest to...
2429         (emit_save_or_restore_regs_global_fp_regs): ...this.
2430         (emit_save_or_restore_regs_local_in_regs): New function.
2431         (gen_create_flat_frame_[123]): New functions.
2432         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
2433         (sparc_flat_expand_prologue): New function.
2434         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2435         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
2436         (sparc_flat_expand_epilogue): New function.
2437         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2438         (output_return): Likewise.
2439         (output_sibcall): Likewise.
2440         (sparc_output_mi_thunk): Likewise.
2441         (sparc_frame_pointer_required): Likewise.
2442         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2443         function optimization.
2444         * config/sparc/sparc.md (flat): New attribute.
2445         (prologue): Add TARGET_FLAT handling.
2446         (save_register_window): Disable if TARGET_FLAT.
2447         (create_flat_frame_[123]): New patterns.
2448         (epilogue): Add TARGET_FLAT handling.
2449         (sibcall_epilogue): Likewise.
2450         (eh_return): New expander.
2451         (eh_return_internal): New insn and splitter.
2452         (return_internal): Add TARGET_FLAT handling.
2453         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2454         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2455         (nonlocal_goto): Add TARGET_FLAT handling.
2456         * config/sparc/t-elf: Add -mflat multilib.
2457         * config/sparc/t-leon: Likewise.
2458
2459 2011-06-10  Jan Hubicka  <jh@suse.cz>
2460
2461         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2462         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2463         (self_recursive_p): Use cgraph_function_node.
2464         (propagate_pure_const): Likewise.
2465         (propagate_nothrow): Likewise.
2466         * ipa-reference.c (ipa_reference_get_not_read_global): Use
2467         cgraph_function_node.
2468         (propagate_bits): Likewise.
2469         (propagate): Likewise.
2470
2471 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2472             Richard Earnshaw  <rearnsha@arm.com>
2473
2474         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2475         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2476         (*thumb2_movdi_vfp): Delete.
2477         (*arm_movdi_vfp_cortexa8): Delete.
2478         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2479         (*movdi_vfp_cortexa8): Likewise.
2480
2481 2011-06-10  Richard Guenther  <rguenther@suse.de>
2482
2483         * stor-layout.c (initialize_sizetypes): Give names to all
2484         sizetype kinds.
2485
2486 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
2487
2488         PR tree-optimization/49318
2489         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2490         irrelevant pattern statements.
2491
2492 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2493
2494         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2495
2496         PR bootstrap/49354
2497         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2498         to last assignment.
2499
2500 2011-06-09  Jan Hubicka  <jh@suse.cz>
2501
2502         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2503         do not recompute reachable flag.
2504         (cgraph_finalize_function, cgraph_analyze_functions): Set
2505         redefined_extern_inline here.
2506
2507 2011-06-09  Jan Hubicka  <jh@suse.cz>
2508
2509         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2510         (cgraph_only_called_directly_p): ... this one; bring offline.
2511         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2512         varpool_used_from_object_file_p): Drop names from the declaratoin.
2513         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2514         collect_callers_of_node): New.
2515         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2516         (cgraph_edge_recursive_p): Use cgraph_function_node.
2517         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2518         (cgraph_node_cannot_be_local_p_1): Break out from ...
2519         (cgraph_node_can_be_local_p): ... here; walk aliases.
2520         (cgraph_for_node_thunks_and_aliases): New function.
2521         (cgraph_for_node_and_aliases): New function.
2522         (cgraph_make_node_local_1): Break out from ...
2523         (cgraph_make_node_local) ... here; use
2524         cgraph_for_node_thunks_and_aliases.
2525         (cgraph_set_nothrow_flag_1): Break out from ...
2526         (cgraph_set_nothrow_flag) ... here;
2527         use cgraph_for_node_thunks_and_aliases.
2528         (cgraph_set_const_flag_1): Break out from ...
2529         (cgraph_set_const_flag) ... here;
2530         use cgraph_for_node_thunks_and_aliases.
2531         (cgraph_set_pure_flag_1): Break out from ...
2532         (cgraph_set_pure_flag) ... here;
2533         use cgraph_for_node_thunks_and_aliases.
2534         (cgraph_propagate_frequency_1): Break out from ...
2535         (cgraph_propagate_frequency) ... here; use
2536         cgraph_for_node_thunks_and_aliases.
2537         (cgraph_used_from_object_file_p): Do not care about aliases.
2538         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2539         New functions.
2540         (collect_callers_of_node_1, collect_callers_of_node): New functions.
2541
2542 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2543
2544         PR rtl-optimization/49154
2545         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2546         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2547         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2548         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2549         * config/cris/cris.h (cris_register_move_cost): Remove
2550         !TARGET_V32 code.  Tweak comments.
2551
2552 2011-06-09  Jan Hubicka  <jh@suse.cz>
2553
2554         * cgraphbuild.c (record_eh_tables): Mark personality function as having
2555         address taken.
2556
2557 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2558
2559         PR rtl-optimization/49154
2560         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2561         is a matching slot in the hashtable, assign it to classes_ptr.
2562
2563         PR rtl-optimization/49154
2564         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2565         register classes.
2566         * doc/tm.texi: Regenerate.
2567
2568 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2569
2570         PR target/49307
2571         * config/sh/sh.md (UNSPEC_CHKADD): New.
2572         (chk_guard_add): New define_insn_and_split.
2573         (symGOT_load): Use chk_guard_add instead of blockage.
2574
2575 2011-06-09  Kai Tietz  <ktietz@redhat.com>
2576
2577         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2578
2579 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2580
2581         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2582
2583 2011-06-09  Wei Guozhi  <carrot@google.com>
2584
2585         PR target/46975
2586         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2587         (peephole2 for conditional move): Generate 16 bit instructions.
2588
2589 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
2590
2591         * config/i386/i386.md (*movdi_internal_rex64): Merge
2592         alternatives 6 and 8.
2593
2594 2011-06-09  David Li  <davidxl@google.com>
2595
2596         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2597         * passes.c (passr_eq): New function.
2598         (create_pass_tab): New function.
2599         (pass_traverse): New function.
2600         (dump_one_pass): New function.
2601         (dump_pass_list): New function.
2602         (dump_passes): New function.
2603
2604 2011-06-09  David Li  <davidxl@google.com>
2605
2606         * tree-complex.c (tree_lower_complex): Gate cleanup.
2607         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2608         (execute_optimize_stdarg): Ditto.
2609         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2610         (execute_cleanup_eh_1): Ditto.
2611         (execute_cleanup_eh): Ditto.
2612         * gcse.c (gate_rtl_pre): Ditto.
2613         (execute_rtl_pre): Ditto.
2614         * except.c (finish_eh_generation): Ditto.
2615         (convert_to_eh_region_ranges): Ditto.
2616         * cprop.c (one_cprop_pass): Ditto.
2617
2618 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
2619
2620         PR target/48673
2621         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2622         in all basic blocks.
2623
2624 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2625
2626         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2627         (HAVE_ENABLE_EXECUTE_STACK): Define.
2628         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2629         (HAVE_ENABLE_EXECUTE_STACK): Define.
2630         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2631         (HAVE_ENABLE_EXECUTE_STACK): Define.
2632         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2633         (ENABLE_EXECUTE_STACK): Remove.
2634         (HAVE_ENABLE_EXECUTE_STACK): Define.
2635         [IN_LIBGCC2]: Don't include <windows.h>.
2636         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2637         (HAVE_ENABLE_EXECUTE_STACK): Define.
2638         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2639         (HAVE_ENABLE_EXECUTE_STACK): Define.
2640         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2641         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2642         (HAVE_ENABLE_EXECUTE_STACK): Define.
2643         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2644         (HAVE_ENABLE_EXECUTE_STACK): Define.
2645         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2646         (HAVE_ENABLE_EXECUTE_STACK): Define.
2647         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2648         (HAVE_ENABLE_EXECUTE_STACK): Define.
2649         * config/alpha/alpha.c (alpha_trampoline_init): Test
2650         HAVE_ENABLE_EXECUTE_STACK.
2651         * config/i386/i386.c (ix86_trampoline_init): Likewise.
2652         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2653         (sparc64_initialize_trampoline): Likewise.
2654         * libgcc2.c [L_enable_execute_stack]: Remove.
2655         * system.h (ENABLE_EXECUTE_STACK): Poison.
2656         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2657         * doc/tm.texi: Regenerate.
2658         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2659
2660 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
2661
2662         PR middle-end/49308
2663         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2664         variable.  After resetting and rescanning insn continue with previous
2665         statement.
2666
2667 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2668
2669         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2670         (gcc_cv_ld_hidden): Likewise.
2671         * configure: Regenerate.
2672         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2673         (ix86_stack_protect_fail): Mark unused.
2674         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2675         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2676         [TARGET_MACHO]: Don't define.
2677         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2678         (TARGET_STACK_PROTECT_FAIL): Likewise.
2679         (rs6000_stack_protect_fail): Mark unused.
2680         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2681         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
2682
2683 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2684
2685         * varasm.c (get_section): Print location of other conflict
2686         for section conflicts.
2687
2688 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2689
2690         * config/i386/driver-i386.c (host_detect_local_cpu):
2691         Add model 0x2d Intel CPU.
2692
2693 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2694
2695         * reginfo.c (global_regs_decl): Add.
2696         (globalize_reg): Add decl parameter. Compute location.  Pass location
2697         to warnings and add inform. Store decl in global_regs_decl.
2698         * rtl.h (globalize_reg): Update prototype.
2699         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2700
2701 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
2702
2703         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2704
2705 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2706
2707         PR target/49305
2708         * config/sh/predicates.md (general_movsrc_operand): Check
2709         mode for memory with indexed address for QI and HImode.
2710         (general_movdst_operand): Likewise.
2711
2712 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
2713
2714         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2715
2716 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
2717
2718         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2719         (num_ssa_operands): Likewise.
2720         (op_iter_init_phiuse): Forward-declare.
2721         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2722
2723 2011-06-08  Nick Clifton  <nickc@redhat.com>
2724
2725         * doc/invoke.texi (ARM Options): Update description of
2726         -mthumb-interwork.
2727
2728 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
2729
2730         * config/i386/driver-i386.c (host_detect_local_cpu): Support
2731         unknown Intel family 0x6 CPUs.
2732
2733 2011-06-08  Martin Jambor  <mjambor@suse.cz>
2734
2735         * tree-sra.c (mark_rw_status): Removed.
2736         (analyze_access_subtree): New parameter parent instead of
2737         mark_read and mark_write, propagate from that.
2738
2739 2011-06-08  Julian Brown  <julian@codesourcery.com>
2740
2741         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2742         for double-precision helper functions in hard-float mode if only
2743         single-precision arithmetic is supported in hardware.
2744
2745 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
2746
2747         PR rtl-optimization/49303
2748         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
2749         code_motion_path_driver returned 0 or 1.
2750         (sel_region_finish): Clear h_d_i_d.
2751
2752 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2753
2754         * config/sh/sh.c (prepare_move_operands): Set pic register
2755         appropriately for global and local dynamic tls models even
2756         if flag_pic is unset.
2757
2758 2011-06-07  Jason Merrill  <jason@redhat.com>
2759
2760         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2761
2762 2011-06-07  Xinliang David Li  <davidxl@google.com>
2763         * passes.c (enable_disable_pass): Handle assembler name.
2764         (is_pass_explicitly_enabled_or_disabled): Ditto.
2765
2766 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2767
2768         PR tree-optimization/48497
2769         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2770
2771 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2772
2773         PR tree-optimization/46728
2774         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2775         to use gimple_val_nonnegative_real_p.
2776         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2777         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2778
2779 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
2780
2781         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2782
2783 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
2784
2785         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2786         constant vectors.
2787
2788 2011-06-07  Richard Guenther  <rguenther@suse.de>
2789
2790         * stor-layout.c (initialize_sizetypes): Initialize all
2791         sizetypes based on target definitions.
2792         (set_sizetype): Remove.
2793         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2794         * tree.h (set_sizetype): Remove.
2795
2796 2011-06-07  Nick Clifton  <nickc@redhat.com>
2797
2798         * config.gcc: Unify V850 architecture options and add support for
2799         newer V850 architectures.
2800         * config/v850/t-v850e: Delete.
2801
2802 2011-06-07  Richard Guenther  <rguenther@suse.de>
2803
2804         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2805         Call set_sizetype from here.
2806
2807 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
2808
2809         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2810         (*maddhisi4tb, *maddhisi4tt): New define_insns.
2811
2812 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
2813             Andrew Stubbs  <ams@codesourcery.com>
2814
2815         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2816         multiplies.
2817         * doc/md.texi (Canonicalization of Instructions): Document widening
2818         multiply canonicalization.
2819
2820 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
2821
2822         PR gcov-profile/49299
2823         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2824
2825 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
2826
2827         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2828         a pointer.
2829         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2830         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2831         vect_recog_pow_pattern): Likewise.
2832         (vect_pattern_recog_1): Remove declaration.
2833         (widened_name_p): Remove declaration.  Add new argument to specify
2834         whether to check that both types are either signed or unsigned.
2835         (vect_recog_widen_mult_pattern): Update documentation.  Handle
2836         unsigned patterns and multiplication by constants.
2837         (vect_pattern_recog_1): Update vect_recog_func references.  Use
2838         statement information from the statement returned from pattern
2839         detection functions.
2840         (vect_pattern_recog): Update vect_recog_func reference.
2841         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2842         multiplication by a constant use the type of the other operand.
2843
2844 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
2845
2846         PR rtl-optimization/49145
2847         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2848
2849 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
2850
2851         PR debug/49262
2852         * dwarf2out.c (native_encode_initializer): Decrement count in each
2853         iteration.
2854
2855         PR debug/49294
2856         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2857         non-MODE_INT modes.
2858
2859         PR c++/49264
2860         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2861         if stmt folded into nothing.
2862         * tree-inline.c (fold_marked_statements): If a builtin at the end of
2863         a bb folded into nothing, just update cgraph edges and move to next bb.
2864         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2865         to be NULL.  Don't compute count and frequency if new_call is NULL.
2866
2867 2011-06-04  Diego Novillo  <dnovillo@google.com>
2868
2869         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2870         (cgraph.o): Likewise.
2871         (cgraphunit.o): Likewise.
2872         * cgraphunit.c: Include lto-streamer.h
2873         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2874         if LTO is enabled.
2875         * lto-streamer-in.c (unpack_value_fields): Call
2876         streamer_hooks.unpack_value_fields if set.
2877         (lto_materialize_tree): For unhandled nodes, first try to
2878         call lto_streamer_hooks.alloc_tree, if it exists.
2879         (lto_input_ts_decl_common_tree_pointers): Move reading of
2880         DECL_INITIAL to lto_streamer_read_tree.
2881         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2882         (lto_streamer_read_tree): New.
2883         (lto_reader_init): Rename from lto_init_reader.
2884         Move initialization code to lto/lto.c.
2885         * lto-streamer-out.c (pack_value_fields): Call
2886         streamer_hooks.pack_value_fields if set.
2887         (lto_output_tree_ref): For tree nodes that are not normally indexable,
2888         call streamer_hooks.indexable_with_decls_p before giving up.
2889         (lto_output_ts_decl_common_tree_pointers): Move handling
2890         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2891         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2892         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
2893         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2894         (lto_streamer_write_tree): New.
2895         (lto_output): Call lto_streamer_init directly.
2896         (lto_writer_init): Remove.
2897         * lto-streamer.c (streamer_hooks): New.
2898         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2899         instead of lto_preload_common_nodes.
2900         (lto_is_streamable): Move from lto-streamer.h
2901         (lto_streamer_hooks_init): New.
2902         (streamer_hooks): New.
2903         (streamer_hooks_init): New.
2904         * lto-streamer.h (struct output_block): Forward declare.
2905         (struct lto_input_block): Likewise.
2906         (struct data_in): Likewise.
2907         (struct bitpack_d): Likewise.
2908         (struct streamer_hooks): Declare.
2909         (streamer_hooks): Declare.
2910         (lto_streamer_hooks_init): Declare.
2911         (lto_streamer_write_tree): Declare.
2912         (lto_streamer_read_tree): Declare.
2913         (streamer_hooks_init): Declare.
2914         (lto_is_streamable): Move to lto-streamer.c
2915
2916 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2917
2918         * longlong.h (smul_ppmm): The resulting register pair contains the
2919         higher order word first.
2920
2921 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2922
2923         PR tree-optimization/46728
2924         * builtins.c (powi_table): Remove.
2925         (powi_lookup_cost): Remove.
2926         (powi_cost): Remove.
2927         (expand_powi_1): Remove.
2928         (expand_powi): Remove.
2929         (expand_builtin_pow_root): Remove.
2930         (expand_builtin_pow): Remove.
2931         (expand_builtin_powi): Eliminate handling of constant exponent.
2932         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2933
2934 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2935
2936         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2937
2938 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2939
2940         * dce.c (reset_unmarked_insns_debug_uses): New.
2941         (delete_unmarked_insns): Skip debug insns.
2942         (prescan_insns_for_dce): Likewise.
2943         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2944         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2945         active reg can be found.
2946         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
2947         (convert_regs_1): Use it.
2948
2949 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2950
2951         * tree-pretty-print.c (dump_function_header): Add flags.
2952         Don't dump decl_uid with nouid.
2953         * tree-pretty-print.h (dump_function_header): Adjust.
2954         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2955         * passes.c (pass_init_dump_file): Pass dump_flags on.
2956         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2957
2958 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
2959
2960         PR bootstrap/49270
2961         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2962
2963 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
2964
2965         PR tree-optimization/49243
2966         * calls.c (setjmp_call_p): Also check if fndecl has the
2967         returns_twice attribute.
2968
2969 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2970
2971         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2972         -ffast-math etc.
2973
2974 2011-06-06  Richard Henderson  <rth@redhat.com>
2975             Georg-Johann Lay  <avr@gjlay.de>
2976
2977         PR target/42210
2978         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2979         New predicates.
2980         * config/avr/avr.md ("insv"): New insn expander.
2981         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2982         "*insv.not.io", "*insv.reg"): New insns.
2983
2984 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
2985
2986         PR target/49285
2987         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2988         to nonimmediate_operand from memory_operand for the operand that is to
2989         be forced to memory by the expander.  Lose the constraints.
2990
2991 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
2992
2993         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2994         EH return when delayed branches are disabled.
2995
2996 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
2997
2998         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2999         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
3000         calculation.
3001         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3002         Simplify MODE_V1DF and MODE_V2SF handling.
3003         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3004         Simplify MODE_SF handling.
3005
3006 2011-06-04  Jan Hubicka  <jh@suse.cz>
3007
3008         PR tree-optimization/48893
3009         PR tree-optimization/49091
3010         PR tree-optimization/49179
3011         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3012         Bounds check.
3013
3014 2011-06-04  Jan Hubicka  <jh@suse.cz>
3015
3016         PR lto/48954
3017         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3018         bitmaps.
3019
3020 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
3021
3022         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3023
3024 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
3025
3026         PR target/49281
3027         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3028         to be strictly smaller than 1 << shiftcount.
3029
3030 2011-06-04  Jan Hubicka  <jh@suse.cz>
3031
3032         PR tree-optimize/48929
3033         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3034         of empty predicate.
3035
3036 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
3037
3038         PR debug/48333
3039         * calls.c (emit_call_1): Prefer the __builtin declaration of
3040         builtin functions.
3041
3042 2011-06-03   Diego Novillo  <dnovillo@google.com>
3043
3044         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3045         (lto_input_tree_pointers): Likewise.
3046         * lto-streamer-out.c (pack_value_fields): Likewise.
3047         (lto_output_tree_pointers): Likewise.
3048         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3049         and OPTIMIZATION_NODE.
3050
3051 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3052
3053         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3054         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3055         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3056         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3057         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3058         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3059         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3060         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3061         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3062         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3063         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3064         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3065         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3066         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3067         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3068         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3069         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3070         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3071         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3072         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3073         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3074         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3075         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3076         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3077         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3078         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3079         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3080         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3081         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3082         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3083         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3084         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3085         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3086         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3087         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3088         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3089         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3090         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3091         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3092         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3093         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3094         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3095         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3096         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3097         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3098         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3099         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3100         * system.h (MD_UNWIND_SUPPORT): Poison.
3101         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3102         * doc/tm.texi: Regenerate.
3103         * unwind-dw2.c: Include md-unwind-support.h instead of
3104         MD_UNWIND_SUPPORT.
3105         * config/ia64/unwind-ia64.c: Likewise.
3106         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3107
3108 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
3109
3110         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3111
3112 2011-06-03  Richard Henderson  <rth@redhat.com>
3113             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3114
3115         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3116         (sigill_hdlr): Correct insn, insn size.
3117         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3118
3119 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3120
3121         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3122         t-slibgcc-dummy.
3123         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3124         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3125         * config/mips/t-iris: Remove.
3126         * config/mips/t-irix6: New file.
3127         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3128
3129 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3130
3131         * Makefile.in (LIB2ADDEHDEP): Remove.
3132         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3133         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3134         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3135         * config/t-darwin (LIB2ADDEHDEP): Remove.
3136         * config/t-freebsd (LIB2ADDEHDEP): Remove.
3137         * config/t-linux (LIB2ADDEHDEP): Remove.
3138
3139 2011-06-03  Diego Novillo  <dnovillo@google.com>
3140
3141         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3142         (lto_register_var_decl_in_symtab): Likewise.
3143         (lto_register_function_decl_in_symtab): Likewise.
3144         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3145         logic to uniquify_nodes.
3146
3147 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3148
3149         * config/alpha/t-osf5: Remove.
3150         * config/alpha/t-osf-pthread: Remove.
3151         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3152         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3153
3154 2011-06-03  Julian Brown  <julian@codesourcery.com>
3155
3156         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3157         (strongarm1110): Use strongarm tuning.
3158         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3159         * config/arm/arm.c (arm_strongarm_tune): New.
3160         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3161         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3162         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3163         setting, using previous defaults or 1 for Cortex-A5.
3164         (arm_option_override): Set max_insns_skipped from current tuning.
3165
3166 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
3167
3168         * doc/install.texi (Options specification): Document --with-specs.
3169
3170 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3171
3172         * config/arm/neon.md (orndi3_neon): Actually split it.
3173
3174 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3175
3176         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3177         * var-tracking.c (reverse_op): Limite recurse depth to 5.
3178
3179 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3180
3181         PR debug/47590
3182         * target.def (delay_sched2, delay_vartrack): New.
3183         * doc/tm.texi.in: Update.
3184         * doc/tm.texi: Rebuild.
3185         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3186         * var-tracking.c (gate_handle_var_tracking): Likewise.
3187         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3188         (bfin_flag_var_tracking): Drop.
3189         (output_file_start): Don't save and override flag_var_tracking.
3190         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3191         (bfin_reorg): Test original variables.
3192         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3193         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3194         (ia64_flag_var_tracking): Drop.
3195         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3196         (ia64_file_start): Don't save and override flag_var_tracking.
3197         (ia64_override_options_after_change): Ditto
3198         flag_schedule_insns_after_reload.
3199         (ia64_reorg): Test original variables.
3200         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3201         (picochip_flag_var_tracking): Drop.
3202         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3203         (picochip_option_override): Don't save and override
3204         flag_schedule_insns_after_reload.
3205         (picochip_asm_file_start): Ditto flag_var_tracking.
3206         (picochip_reorg): Test original variables.
3207         * config/spu/spu.c (spu_flag_var_tracking): Drop.
3208         (TARGET_DELAY_VARTRACK): Define.
3209         (spu_var_tracking): New.
3210         (spu_machine_dependent_reorg): Call it.
3211         (asm_file_start): Don't save and override flag_var_tracking.
3212
3213 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
3214
3215         PR target/49163
3216         * config/sh/predicates.md (general_movsrc_operand): Return 0
3217         for memory and memory subreg of which address is an invalid
3218         indexed address for QI and HImode.
3219         (general_movdst_operand): Likewise.
3220
3221 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3222
3223         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3224         edges only, when there is a non-local label in the function.
3225         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3226
3227 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3228
3229         * config/i386/constraints.md (Y3): New register constraint.
3230         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3231         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3232         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3233         *sse2_interleave_lowv2df.
3234
3235 2011-06-02  Julian Brown  <julian@codesourcery.com>
3236
3237         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3238         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3239         (arm_cortex_a5_tune): New.
3240
3241 2011-06-02  Julian Brown  <julian@codesourcery.com>
3242
3243         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3244         * config/arm/arm.c (arm_default_branch_cost): New.
3245         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3246         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3247         (arm_fa726_tune): Set branch_cost field using
3248         arm_default_branch_cost.
3249         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3250         current_tune structure.
3251         * dojump.c (tm_p.h): Include file.
3252
3253 2011-06-02  Julian Brown  <julian@codesourcery.com>
3254
3255         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3256         tuning.
3257         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3258         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3259         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3260         field.
3261         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3262         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3263         (arm_fa726te_tune): Add prefer_constant_pool setting.
3264         (arm_v6t2_tune, arm_cortex_tune): New.
3265         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3266         prefer_constant_pool setting.
3267
3268 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3269
3270         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3271         switch statement.
3272         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3273         (*movdf_internal) <case 6,7,8>: Ditto.
3274
3275         * config/i386/constraints.md (Y4): New register constraint.
3276         * config/i386/sse.md (vec_set<mode>_0): Merge with
3277         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3278         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3279         *vec_extractv2di_1_sse.
3280         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3281         and *vec_concatv2di_rex64_sse.
3282
3283 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
3284
3285         PR target/48807
3286         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3287         of cgraph_local_info for null before attempting to use it.
3288
3289 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3290
3291         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3292         (current_function_dynamic_alloc_count): Delete.
3293         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3294         (expand_builtin_nonlocal_goto): Remove obsolete comment.
3295         (expand_builtin_update_setjmp_buf): Remove dead code.
3296         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3297         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3298         support.
3299         * function.c (instantiate_virtual_regs): Likewise.
3300         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3301         for a block with a single abnormal incoming edge.
3302         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3303         (SETJMP_VIA_SAVE_AREA): Delete.
3304         * config/sparc/sparc-protos.h (load_got_register): Declare.
3305         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3306         (load_got_register): Make global.
3307         (sparc_frame_pointer_required): Add 'static'.
3308         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
3309         (sparc_builtin_setjmp_frame_value): New function.
3310         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3311         (save_stack_nonlocal): New expander.
3312         (restore_stack_nonlocal): Likewise.
3313         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3314         (nonlocal_goto_internal): New insn.
3315         (goto_handler_and_restore): Delete.
3316         (builtin_setjmp_setup): Likewise.
3317         (do_builtin_setjmp_setup): Likewise.
3318         (setjmp): Likewise.
3319         (builtin_setjmp_receiver): New expander.
3320
3321 2011-06-01  David Li  <davidxl@google.com>
3322
3323         PR middle-end/49261
3324         * tree-pretty-print.c (dump_function_header): Format cleanup.
3325
3326 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
3327
3328         PR target/49238
3329         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3330         needed when original operands are used for msw_skip comparison.
3331
3332 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3333
3334         PR debug/49250
3335         * var-tracking.c (add_uses, add_stores): Don't call
3336         cselib_subst_to_values on ENTRY_VALUE.
3337
3338 2011-06-01  Diego Novillo  <dnovillo@google.com>
3339
3340         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3341         output_record_start with LTO_null instead of output_zero.
3342         (lto_output_ts_binfo_tree_pointers): Likewise.
3343         (lto_output_tree): Likewise.
3344         (output_eh_try_list): Likewise.
3345         (output_eh_region): Likewise.
3346         (output_eh_lp): Likewise.
3347         (output_eh_regions): Likewise.
3348         (output_bb): Likewise.
3349         (output_function): Likewise.
3350         (output_unreferenced_globals): Likewise.
3351         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3352         instead of NUM_TREE_CODES.
3353         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3354         (lto_output_int_in_range): Change << to >> when shifting VAL.
3355
3356 2011-06-01  Diego Novillo  <dnovillo@google.com>
3357
3358         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3359         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3360
3361 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3362
3363         PR target/45074
3364         * optabs.h (valid_multiword_target_p): Declare.
3365         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3366         doing multi-word operations.
3367         * optabs.c (expand_binop): Likewise.
3368         (expand_doubleword_bswap): Likewise.
3369         (expand_absneg_bit): Likewise.
3370         (expand_unop): Likewise.
3371         (expand_copysign_bit): Likewise.
3372         (multiword_target_p): New function.
3373
3374 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3375
3376         PR rtl-optimization/48830
3377         PR rtl-optimization/48808
3378         PR rtl-optimization/48792
3379         * reload.c (push_reload): Check contains_reg_of_mode.
3380         * reload1.c (strip_paradoxical_subreg): New function.
3381         (gen_reload_chain_without_interm_reg_p): Use it to handle
3382         paradoxical subregs.
3383         (emit_output_reload_insns, gen_reload): Likewise.
3384
3385 2011-06-01  David Li  <davidxl@google.com>
3386
3387         * predict.c : Change pass name
3388         * ipa.c: Ditto.
3389         * dce.c: Ditto.
3390         * tree-profile.c: Ditto.
3391         * except.c: Ditto.
3392
3393 2011-06-01  David Li  <davidxl@google.com>
3394
3395         * tree-pretty-print.c (dump_function_header): New function.
3396         * final.c (rest_of_clean_state): Use header dumper.
3397         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3398         * passes.c (pass_init_dump_file): Use header dumper.
3399
3400 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3401
3402         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3403         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3404         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3405         New functions.
3406         (mem_loc_descriptor): Use them.
3407
3408         * var-tracking.c (create_entry_value): New function.
3409         (vt_add_function_parameter): Use it.
3410
3411 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3412
3413         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3414         Include <signal.h>, <ucontext.h>.
3415         (sigill_caught): Define.
3416         (sigill_hdlr): New function.
3417         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3418         insns can be executed.
3419         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3420         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3421
3422 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3423
3424         * config/t-slibgcc-darwin: Move to ...
3425         * config/t-slibgcc-dummy: ... this.  Clarify comments.
3426         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3427         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3428         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3429         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
3430         Remove i386/t-crtstuff from tmake_file.
3431         (i[34567]86-*-solaris2*): Remove t-svr4,
3432         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3433         t-slibgcc-dummy.
3434         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3435         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3436         sparc/t-crtfm from tmake_file.
3437         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3438         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3439         Remove extra_parts.
3440         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3441         * config/i386/t-nwld (SHLIB_LINK): Remove.
3442         * config/i386/t-rtems-i386: Rename to ...
3443         * config/i386/t-rtems: ... this.
3444         ($(T)crti.o, $(T)crtn.o): Remove.
3445         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3446         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3447         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3448         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3449         EXTRA_MULTILIB_PARTS): Remove.
3450         * config/sparc/t-sol2-64: Likewise.
3451         * config/sparc/t-sol2: Remove.
3452         * config/sparc/t-crtin: Remove.
3453         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3454         * config/i386/gmon-sol2.c: Remove.
3455         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3456         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3457         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3458         * config/i386/sol2-gc1.asm: Remove.
3459         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3460         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3461         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3462         * config/t-slibgcc-sld: Remove.
3463
3464 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3465
3466         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3467         base_type_for_mode with op_mode instead of mode.
3468
3469 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
3470
3471         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
3472         Cortex-A15.
3473         * config/arm/arm-tune.md: Regenerate.
3474         * config/arm/arm-tables.opt: Regenerate.
3475         * config/arm/arm.c (FL_DIV): Rename...
3476         (FL_THUMB_DIV): ... to this.
3477         (FL_ARM_DIV): Define.
3478         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3479         (arm_arch_hwdiv): Remove.
3480         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3481         (arm_issue_rate): Add cortexr5.
3482         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3483         __ARM_ARCH_EXT_IDIV__.
3484         (TARGET_IDIV): Define.
3485         (arm_arch_hwdiv): Remove.
3486         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3487         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3488         (divsi3, udivsi3): New patterns.
3489         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3490         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3491
3492 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3493
3494         * ipa-utils.c (ipa_dfs_info): New field scc_no.
3495         * ipa-utils.c (searchc): Set scc_no.
3496
3497 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3498
3499         * ipa-utils.c (searchc_env): New field allow_overwritable.
3500         (searchc): do not ignore edges to overwritable nodes if indicated
3501         by env->allow_overwritable.
3502         (ipa_reduced_postorder): Set env.allow_overwritable.
3503
3504 2011-06-01  Richard Guenther  <rguenther@suse.de>
3505
3506         * tree.c (free_lang_data): Do not reset boolean_type_node nor
3507         char_type_node.
3508         * lto-streamer.c (lto_record_common_node): Take node pointer,
3509         do not register types.
3510         (lto_preload_common_nodes): Explicitly skip preloading nodes
3511         that differ between frontends.
3512
3513 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3514
3515         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3516         NON_FLOAT_REGS.
3517
3518 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3519
3520         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3521         parameter value for dump. Dump cost on outermost call only.
3522         (rs6000_memory_move_cost): Dump cost on outermost call only.
3523
3524 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3525
3526         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3527         DW_OP_GNU_convert ops.
3528
3529         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3530         cselib_preserve_constants.
3531         (cselib_lookup_1): If cselib_preserve_constants,
3532         a new VALUE is being created for REG and there is a VALUE for the
3533         same register in wider mode, add another loc with lowpart SUBREG of
3534         the wider VALUE.
3535         (cselib_subst_to_values): Handle ENTRY_VALUE.
3536         * var-tracking.c  (replace_expr_with_values): Return NULL for
3537         ENTRY_VALUE too.
3538         * dwarf2out.c (convert_descriptor_to_signed): New function.
3539         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3540         instead of two shifts.
3541         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3542         the right mode if needed.
3543         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3544         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3545         convert_descriptor_to_signed.
3546         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3547         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3548
3549         PR target/48688
3550         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3551
3552 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3553
3554         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3555         of X87MODEI12 and SWI48x instead of SSEMODEI24.
3556         (SWI248x): New mode iterator, rename from X87MODEI.
3557         (X87MODEI): Remove mode iterator.
3558         (X87MODEI12): Ditto.
3559         (SSEMODEI24): Ditto.
3560
3561 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3562
3563         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3564         * doc/invoke.texi: Document max-vartrack-expr-depth.
3565         * var-tracking.c (EXPR_DEPTH): New.
3566         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3567
3568 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3569
3570         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3571         * config/i386/sse.md: Add n to negated FMA pattern names.
3572
3573 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3574
3575         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3576
3577 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3578
3579         * gengtype-state.c (read_state_params_structs): Initialize previous.
3580
3581 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3582
3583         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3584         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3585
3586 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3587
3588         * config/i386/i386.md (*movtf_internal): Avoid allocating general
3589         registers.  Penalize F*r->o alternative to prevent partial memory
3590         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
3591         CONST_DOUBLE immediates when optimizing function for size.  Do not move
3592         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3593         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3594         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3595         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3596         alternatives.
3597         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3598
3599         (fp_register_operand splitters): Use fp_register_operand
3600         constraint.  Do not use FP_REG_P in insn condition.
3601         (any_fp_register_operand splitters): Use any_fp_register_operand
3602         constraint.  Do not use ANY_FP_REG_P in insn condition.
3603
3604 2011-05-31  Jan Hubicka  <jh@suse.cz>
3605
3606         * cgraph.h (cgraph_inline_failed_t): Give enum a name
3607         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3608         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3609         (lto_output_edge): Use output_enum and var_len_unsigned.
3610         (lto_output_varpool_node): Likewise.
3611         (input_overwrite_node): Do not take resolution parameter;
3612         extract it from a bitpack.
3613         (input_node): Do not read resolution; use input_enum and
3614         var_len_unsigned.
3615         (input_varpool_node): Likewise.
3616         (input_edge): Likewise.
3617         (input_cgraph_1): Likewise.
3618
3619 2011-05-31  Richard Guenther  <rguenther@suse.de>
3620
3621         * gimple.c (gimple_register_canonical_type): Do not register
3622         any types via gimple_register_type.
3623
3624 2011-05-31  Jan Hubicka  <jh@suse.cz>
3625
3626         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3627         of thunks.
3628
3629 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3630
3631         PR rtl-optimization/49235
3632         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3633         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3634
3635 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
3636
3637         PR tree-optimization/49093
3638         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3639         data references.
3640
3641 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
3642
3643         PR debug/49047
3644         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3645         for concrete functions containing the code of cloned functions.
3646
3647 2011-05-31  Richard Guenther  <rguenther@suse.de>
3648
3649         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3650         to ...
3651         (forward_propagate_into_comparison_1): ... this.
3652         (forward_propagate_comparison): Rename to ...
3653         (forward_propagate_into_comparison): ... this.  Split out
3654         real forward propagation code to ...
3655         (forward_propagate_comparison): ... this.
3656         (forward_propagate_into_gimple_cond): Remove looping.
3657         (forward_propagate_into_cond): Likewise.
3658         (simplify_not_neg_expr): Return whether we have done something.
3659         (simplify_gimple_switch): Likewise.
3660         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3661         (ssa_forward_propagate_and_combine): ... this.  Re-structure
3662         to do a forward forward-propagation walk on BBs and a backward
3663         stmt combining walk on BBs.  Consistently re-scan changed statements.
3664         (pass_forwprop): Adjust.
3665
3666 2011-05-30  Ian Lance Taylor  <iant@google.com>
3667
3668         * godump.c (go_format_type): Correct length of name added to
3669         obstack for anonymous field.
3670
3671 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
3672
3673         PR target/49186
3674         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3675         part of the second operand is 0.
3676
3677 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
3678
3679         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3680         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
3681         to memory for !TARGET_MEMORY_MISMATCH_STALL.
3682         (*movdf_internal_rex64): Do not penalize F->r alternative.
3683         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3684         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
3685         when optimizing function for size.  Do not move CONST_DOUBLEs
3686         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3687         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
3688         SUBREGs.  Do not check for MEM_P operands in the insn condition,
3689         check for ANY_FP_REGNO_P instead.
3690         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3691         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3692         function for speed.
3693         * config/i386/i386.c (ix86_option_override_internal): Do not
3694         set TARGET_INTEGER_DFMODE_MOVES here.
3695
3696 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3697
3698         PR target/49168
3699         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3700
3701 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
3702
3703         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3704         DW_TAG_rvalue_reference_type even for
3705         -gdwarf-4 -fno-debug-types-section.
3706
3707 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3708
3709         PR tree-optimization/46728
3710         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3711         (build_and_insert_binop): New.
3712         (gimple_expand_builtin_pow): Reorder args for
3713         build_and_insert_call; use build_and_insert_binop; add more
3714         optimizations for fractional exponents.
3715
3716 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3717
3718         PR bootstrap/49190
3719
3720         Revert:
3721         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3722
3723         * tree.h (struct tree_identifier): Inherit from tree_typed, not
3724         tree_common.
3725         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3726         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3727         TS_BASE instead of TS_COMMON.
3728         * varasm.c (assemble_name): Remove assert.
3729
3730 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
3731
3732         * config.gcc: Keep obselete list sorted.
3733
3734 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
3735             Eric Botcazou  <ebotcazou@adacore.com>
3736
3737         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3738         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3739         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3740         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3741         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3742
3743 2011-05-30  Richard Guenther  <rguenther@suse.de>
3744
3745         * gimple.c (gimple_types_compatible_p_1): Compare record
3746         and union type members properly.
3747
3748 2011-05-30  Richard Guenther  <rguenther@suse.de>
3749
3750         PR tree-optimization/49210
3751         * ipa-split.c (split_function): Care for the case where the call
3752         result is not trivially convertible to the result holding variable.
3753
3754 2011-05-30  Richard Guenther  <rguenther@suse.de>
3755
3756         PR tree-optimization/49218
3757         * tree-vrp.c (adjust_range_with_scev): Properly check whether
3758         overflow occured.
3759
3760 2011-05-30  Richard Guenther  <rguenther@suse.de>
3761
3762         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3763         New function split out from ...
3764         (forward_propagate_into_gimple_cond): ... here.  Adjust.
3765         (forward_propagate_into_cond): Likewise.
3766         (forward_propagate_comparison): Also propagate into
3767         comparisons on assignment RHS.  Change return value to
3768         behave similar to forward_propagate_into_cond.
3769         (tree_ssa_forward_propagate_single_use_vars): Handle
3770         strict-overflow warnings properly for forward_propagate_comparison.
3771
3772 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3773
3774         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3775         from plugin linker.
3776         * configure: Regenerate.
3777
3778 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
3779
3780         PR tree-optimization/49199
3781         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3782         non-reduction operands are either defined in the loop or by induction.
3783
3784 2011-05-29  Xinliang David Li  <davidxl@google.com>
3785
3786         * opts-global.c (handle_common_deferred_options): Handle new options.
3787         * passes.c (register_one_dump_file): Call register_pass_name.
3788         (execute_one_pass): Check explicit enable/disable flag.
3789         (passr_hash): New function.
3790         (passr_eq): Ditto.
3791         (register_pass_name): Ditto.
3792         (get_pass_by_name): Ditto.
3793         (pass_hash): Ditto.
3794         (pass_eq): Ditto.
3795         (enable_pass): Ditto.
3796         (disable_pass): Ditto.
3797         (is_pass_explicitly_enabled_or_disabled): Ditto.
3798
3799 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
3800
3801         * config/i386/i386.md (*movoi_internal_avx): Use
3802         standard_sse_constant_opcode for alternative 0.
3803         (*movti_internal_sse): Ditto.
3804         (*movti_internal_rex64): Use standard_sse_constant_opcode for
3805         alternative 2.
3806         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3807         sselog1 type moves.
3808         (*movsi_internal): Ditto.
3809         (*movdi_internal): Ditto.  Add ssecvt type moves.
3810
3811 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
3812
3813         PR target/48830
3814         * rtlanal.c (simplify_subreg_regno): Adjust comment.
3815
3816 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
3817
3818         PR rtl-optimization/49095
3819         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3820         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3821
3822 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
3823
3824         PR target/43995
3825         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3826         recurse_p argument.  Only follow register copies if it is set,
3827         and prevent mips_find_pic_call_symbol from recursing.
3828         (mips_find_pic_call_symbol): Add a recurse_p argument.
3829         Pass it to mips_pic_call_symbol_from_set.
3830         (mips_annotate_pic_calls): Update accordingly.
3831
3832 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
3833
3834         * emit-rtl.c (try_split): Use a loop to search for
3835         NOTE_INSN_CALL_ARG_LOCATIONs.
3836
3837 2011-05-29  Richard Guenther  <rguenther@suse.de>
3838
3839         PR tree-optimization/49217
3840         * ipa-pure-const.c (propagate_pure_const): Fix typos.
3841
3842 2011-05-28  Jan Hubicka  <jh@suse.cz>
3843
3844         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3845         length.
3846         (string_slot_free): Remove
3847         (create_output_block): Initialize obstack.
3848         (destroy_output_block): Free obstack.
3849         (lto_string_index): Add PERSISTENT parameter; do not duplicate
3850         the string unless it needs to be added into the hash.
3851         (lto_output_string_with_length): Add persistent attribute;
3852         handle NULL strings.
3853         (lto_output_string): Add PERSISTENT parameter.
3854         (output_string_cst, output_identifier): Simplify.
3855         (lto_output_location_bitpack): Update.
3856         (lto_output_builtin_tree): Update.
3857         * lto-streamer.h (struct output_block): Add obstack.
3858         (lto_output_string, lto_output_string_with_length): Remove
3859         declarations; functions are static now.
3860
3861 2011-05-28  Jan Hubicka  <jh@suse.cz>
3862
3863         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3864         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3865         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3866         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3867         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3868         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3869         unpack_ts_decl_with_vis_value_fields,
3870         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3871         lto_get_builtin_tree): Use enum and variable length i/o.
3872         * basic-block.h (profile_status_d): Add PROFILE_LAST.
3873         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3874         New functions.
3875         (bp_pack_enum, bp_unpack_enum): New macros.
3876
3877 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
3878
3879         * genrecog.c: Remove redundant forward declarations.
3880
3881 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
3882
3883         * config.gcc: Deprecate mips*-*-openbsd*.
3884
3885 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
3886
3887         PR bootstrap/49195
3888         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3889         for match_op_dup.
3890
3891 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
3892
3893         PR middle-end/48981
3894         * gengtype.c (vec_prefix_type): New function.
3895         (note_def_vec): Use vec_prefix_type and change the length
3896         attribute to be based on the prefix.
3897         * vec.c: Include coretypes.h before vec.h.
3898         (struct vec_prefix): Remove.
3899         (vec_gc_p_reserve): Change the offsetof to sizeof.
3900         (vec_gc_p_reserve_exact): Likewise.
3901         (vec_heap_p_reserve): Likewise.
3902         (vec_heap_p_reserve_exact): Likewise.
3903         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3904         (vec_stack_p_reserve): Change the offsetof to sizeof.
3905         (vec_stack_p_reserve_exact): Likewise.
3906         * vec.h (struct vec_prefix): New struct definition.
3907         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3908         (VEC_T_GTY(T,B)): Likewise.
3909         (DEF_VEC_FUNC_P(T)): Use prefix field.
3910         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3911         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3912
3913 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3914
3915         PR tree-optimization/46728
3916         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3917         (powi_as_mults): Add gimple_set_location.
3918         (build_and_insert_call): New.
3919         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3920         0.5, 0.25, 0.75, 1./3., or 1./6.
3921
3922 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
3923
3924         * doc/contrib.texi: Update copyright years.
3925         (Contributors): Add Zdenek Sojka.
3926
3927 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3928
3929         * c-decl.c (c_push_function_context): Copy the current statement
3930         list stack.
3931         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3932         (finish_struct): Call building_stmt_list_p instead of checking
3933         cur_stmt_list.
3934         * c-parser.c (c_parser_postfix_expression): Likewise.
3935         * c-typeck.c (c_end_compound_stmt): Likewise.
3936         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3937         * tree-iterator.c (stmt_list_cache): Change to a VEC.
3938         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3939         (free_stmt_list): Likewise.
3940         * tree.h (struct tree_statement_list): Include typed_tree instead
3941         of tree_common.
3942         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3943         as TS_TYPED instead of TS_COMMON.
3944
3945 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3946             Uros Bizjak  <ubizjak@gmail.com>
3947
3948         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3949         (HAVE_AS_IX86_TLSGDPTL): Define.
3950         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3951         (HAVE_AS_IX86_TLSLDMPLT): Define.
3952         * configure: Regenerate.
3953         * config.in: Regenerate.
3954         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3955         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3956         TARGET_SUN_TLS, use @tlsgdplt or @plt.
3957         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3958         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3959         @tlsldmplt or @plt.
3960         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3961
3962 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
3963
3964         * sched-int.h (struct _haifa_deps_insn_data): New members cond
3965         and reverse_cond.
3966         (INSN_COND, INSN_REVERSE_COND): New macros.
3967         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3968         once.
3969         (sched_get_condition_with_rev): Cache the results, and look them up
3970         if possible.
3971         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3972         are clobbered by the current insn.
3973         * target.def (exposed_pipline): New sched data hook.
3974         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3975         * doc/tm.texi: Regenerate.
3976
3977 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3978
3979         PR tree-optimization/49170
3980         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
3981         sincos or cexp.
3982
3983 2011-05-27  Richard Guenther  <rguenther@suse.de>
3984
3985         PR middle-end/49189
3986         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3987         of comparisons.
3988
3989 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
3990
3991         * haifa-sched.c (sched_scan_info): Remove.
3992         (schedule_block): Call sched_extend_luids rather than sched_init_luids
3993         with NULL args.
3994         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3995         Remove functions.
3996         (sched_scan): Remove.
3997         (sched_extend_luids): Renamed from luids_extend_insn and no longer
3998         static.  All callers changed.
3999         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4000         static.  All callers changed.
4001         (sched_init_luids): Remove all arguments except the first.  All
4002         callers changed.  Don't use sched_scan.
4003         (haifa_init_h_i_d): Likewise.
4004         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4005         manually rather than using sched_init_luids.  Likewise with
4006         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4007         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4008         rather than sched_init_luids with NULL args.
4009         * sel-sched-ir.c (new_insns): Remove variable.
4010         (sched_scan): New static function, previously in haifa-sched.c.  Remove
4011         all arguments but the first two; all callers changed.
4012         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4013         rather than sched_init_luids.
4014         (sel_init_bbs): Remove second argument.  All callers changed.
4015         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4016         with NULL arguments.
4017         (create_insn_rtx_from_pattern): Likewise.
4018         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4019         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4020         (sched_init_insn_luid, sched_extend_luids): Declare.
4021         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4022         declarations.
4023
4024 2011-05-27  Richard Guenther  <rguenther@suse.de>
4025
4026         PR middle-end/49177
4027         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4028         A CMP B ? (T) true : (T) false for non-integral types T again.
4029
4030 2011-05-27  Jan Hubicka  <jh@suse.cz>
4031
4032         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4033         so 0 means NULL string.
4034         (lto_output_string_with_length): ... here.
4035         (lto_output_string, output_string_cst, output_identifier): Update
4036         handling of NULL strings.
4037         (lto_output_location_bitpack): New function.
4038         (lto_output_location): Use it.
4039         (lto_output_tree_ref): Use output_record_start.
4040         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4041         len values.
4042         * lto-streamer-in.c (string_for_index): Break out from ...; offset
4043         values by 1.
4044         (input_string_internal): ... here;
4045         (input_string_cst, input_identifier, lto_input_string): Update handling
4046         of NULL strings.
4047         (lto_input_location_bitpack): New function
4048         (lto_input_location): Use it.
4049         (unpack_ts_type_common_value_fields): Pack align & alias in var len
4050         values.
4051         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4052         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4053         (bp_pack_value): Sanity check the value range.
4054         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4055         New functions.
4056         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4057         New functions.
4058
4059 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
4060
4061         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4062         call_arg_location instructions down the floor.
4063
4064 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
4065
4066         PR rtl-optimization/49154
4067         * ira.c (setup_pressure_classes): Process class without sublcasses
4068         as a candidate for pressure classes.
4069
4070 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
4071
4072         PR rtl-optimization/48575
4073         * genrecog.c (position_type): New enum.
4074         (position): New structure.
4075         (decision): Use position structure instead of a string.
4076         (root_pos, peep2_insn_pos_list): New variables.
4077         (next_position, compare_positions): New functions.
4078         (new_decision): Use position structures instead of strings.
4079         (maybe_both_true): Likewise.
4080         (change_state): Likewise.
4081         (write_tree): Likewise.
4082         (make_insn_sequence): Likewise.
4083
4084 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4085
4086         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4087         TS_BASE instead of TS_COMMON.
4088         (find_decls_types_r): Check for TS_TYPED structure before looking at
4089         TREE_TYPE.
4090         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4091         Add chain field.
4092         (BLOCK_CHAIN): Use new chain field.
4093
4094 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
4095
4096         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4097         moves expensive on Power7 also.
4098
4099 2011-05-26  Richard Guenther  <rguenther@suse.de>
4100
4101         * fold-const.c (fold_unary_loc): Remove bogus code.
4102
4103 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4104
4105         * tree.h (struct tree_identifier): Inherit from tree_typed, not
4106         tree_common.
4107         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4108         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4109         TS_BASE instead of TS_COMMON.
4110         * varasm.c (assemble_name): Remove assert.
4111
4112 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4113
4114         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4115         substituted first.
4116         * libgcc-std.ver: Delete file.
4117
4118 2011-05-26  Richard Guenther  <rguenther@suse.de>
4119
4120         PR tree-optimization/48702
4121         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4122         only when we know the base address is within bounds.
4123         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4124         assume the base address of TARGET_MEM_REFs is in bounds.
4125
4126 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4127
4128         PR target/49099
4129         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4130         declaration in TARGET_SOLARIS.
4131
4132 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
4133
4134         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4135         The instruction is then expanded explicitly.
4136         (supported_compare): Callable instruction.
4137         (compare): Likewise.
4138
4139 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4140
4141         PR c++/49165
4142         * gimplify.c (shortcut_cond_r): Don't special case
4143         COND_EXPRs if they have void type on one of their arms.
4144
4145 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4146
4147         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4148         to reduce duplication, and to achieve a slightly more logical order
4149         of operations.
4150
4151 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4152
4153         PR tree-optimization/49161
4154         * tree-vrp.c (struct case_info): New type.
4155         (compare_case_labels): Sort case_info structs instead of
4156         trees, and not primarily by CASE_LABEL uids but by
4157         label_for_block indexes.
4158         (find_switch_asserts): Put case labels into struct case_info
4159         array instead of TREE_VEC, adjust sorting, compare label_for_block
4160         values instead of CASE_LABELs.
4161
4162 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4163
4164         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4165         ("orndi3_neon"): Likewise.
4166         ("bic<mode>3_neon"): Likewise.
4167
4168 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
4169
4170         PR tree-optimization/49038
4171         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4172         Ensure at least one epilogue iteration if required by data
4173         accesses with gaps.
4174         * tree-vectorizer.h (struct _loop_vec_info): Add new field
4175         to mark loops that require peeling for gaps.
4176         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4177         (vect_get_known_peeling_cost): Take peeling for gaps into
4178         account.
4179         (vect_transform_loop): Generate epilogue if required by data
4180         access with gaps.
4181         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4182         loop as requiring an epilogue if there are gaps in the end of
4183         the strided group.
4184
4185 2011-05-25  Ian Lance Taylor  <iant@google.com>
4186
4187         * godump.c (go_format_type): Output the first field with a usable
4188         Go type, if any.
4189
4190 2011-05-25  Ian Lance Taylor  <iant@google.com>
4191
4192         * godump.c (go_format_type): Check for invalid type names, pointer
4193         target types, and struct field types.
4194
4195 2011-05-25  Jason Merrill  <jason@redhat.com>
4196
4197         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4198
4199 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
4200
4201         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4202
4203 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4204
4205         * config/i386/i386.md (*movqi_extv_1)): Put back
4206         "register_operand" check in "type" calculation.
4207         (*movqi_extzv_2): Likewise.
4208
4209 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4210
4211         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4212
4213 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4214
4215         PR bootstrap/49160
4216         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4217         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4218         __divxc3, __divtc3): Wrap definitions in #ifndef.
4219
4220 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4221
4222         PR target/49142
4223         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4224         "register_operand" check and replace q_regs_operand with
4225         QIreg_operand in "type" calculation.
4226         (*movqi_extv_1): Likewise.
4227         (*movqi_extzv_2_rex64): Likewise.
4228         (*movqi_extzv_2): Likewise.
4229
4230         * config/i386/predicates.md (QIreg_operand): New.
4231
4232 2011-05-25  Richard Guenther  <rguenther@suse.de>
4233
4234         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4235         type-based offset disambiguation, streamline MEM_REF and
4236         TARGET_MEM_REF handling.
4237
4238 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4239
4240         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4241         (bdesc_special_args): Add pause intrinsic.
4242
4243         * config/i386/i386.md (UNSPEC_PAUSE): New.
4244         (pause): Likewise.
4245         (*pause): Likewise.
4246         * config/i386/ia32intrin.h (__pause): Likewise.
4247
4248         * doc/extend.texi (X86 Built-in Functions): Add documentation for
4249         pause intrinsic.
4250
4251 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4252
4253         PR tree-optimization/46728
4254         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4255         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4256
4257 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
4258
4259         * tree.h (struct tree_exp): Inherit from struct tree_typed.
4260         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4261         instead of TS_COMMON.
4262
4263 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4264
4265         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4266         LIBGCC2_GNU_PREFIX is defined.
4267         (__N): New macro.
4268         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4269         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4270         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4271         __clz_tab): Define using __N.
4272         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4273         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4274         * target.def (libfunc_gnu_prefix): New hook.
4275         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4276         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4277         * doc/tm.texi: Regenerate.
4278         * system.h (LIBGCC2_GNU_PREFIX): Poison.
4279         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4280         account.
4281         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4282         (init_optabs): Likewise for the bswap libfuncs.
4283         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4284         and divide.
4285         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4286         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4287         * libgcc-std.ver: Remove.
4288         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4289         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4290         libgcc-std.ver.
4291         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4292         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4293         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4294         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4295         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4296         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4297         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4298         * config/fixed-bit.h (FIXED_OP): Define differently depending on
4299         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4300         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4301
4302 2011-05-25  Jan Hubicka  <jh@suse.cz>
4303
4304         * lto-streamer-out.c (output_record_start): Use lto_output_enum
4305         (lto_output_tree): Use output_record_start.
4306         * lto-streamer-in.c (input_record_start): Use lto_input_enum
4307         (lto_get_pickled_tree): Use input_record_start.
4308         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4309         (lto_value_range_error): New function.
4310         * lto-streamer.h (lto_value_range_error): Declare.
4311         (lto_output_int_in_range, lto_input_int_in_range): New functions.
4312         (lto_output_enum, lto_input_enum): New macros.
4313
4314 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4315
4316         * common.opt (flag_stack_usage_info): New variable.
4317         (-Wstack-usage): New option.
4318         * doc/invoke.texi (Warning options): Document -Wstack-usage.
4319         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4320         <OPT_fstack_usage>: Likewise.
4321         * toplev.c (output_stack_usage): Handle -Wstack-usage.
4322         * calls.c (expand_call): Test flag_stack_usage_info variable instead
4323         of flag_stack_usage.
4324         (emit_library_call_value_1): Likewise.
4325         * explow.c (allocate_dynamic_stack_space): Likewise.
4326         * function.c (instantiate_virtual_regs ): Likewise.
4327         (prepare_function_start): Likewise.
4328         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4329         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4330         * config/arm/arm.c (arm_expand_prologue): Likewise.
4331         (thumb1_expand_prologue): Likewise.
4332         * config/avr/avr.c (expand_prologue): Likewise.
4333         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4334         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4335         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4336         * config/mips/mips.c (mips_expand_prologue): Likewise.
4337         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4338         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4339         * config/s390/s390.c (s390_emit_prologue): Likewise.
4340         * config/sh/sh.c (sh_expand_prologue): Likewise.
4341         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4342         * config/spu/spu.c (spu_expand_prologue): Likewise.
4343
4344 2011-05-25  Richard Guenther  <rguenther@suse.de>
4345
4346         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4347         (gimple_canonical_types_compatible_p): Likewise.
4348
4349 2011-05-25  Jan Hubicka  <jh@suse.cz>
4350
4351         PR middle-end/49062
4352         * ipa.c (function_and_variable_visibility): Only add to same
4353         comdat group list if DECL_ONE_ONLY.
4354
4355 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
4356
4357         PR rtl-optimization/49014
4358         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4359
4360 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
4361
4362         PR target/49128
4363         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4364
4365 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4366
4367         PR rtl-optimization/48757
4368         * ira-build.c (loop_with_eh_edge_p): Rename to
4369         loop_with_complex_edge_p, check edges on complexity, make function
4370         conditional.
4371         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4372         conditional.
4373
4374 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4375
4376         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4377         force flag_ira_share_save_slots to 0.
4378
4379 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4380
4381         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4382         (vt_initialize): Set PROLOGUE_BB unconditionally.
4383         Add block comment about CFA_BASE_RTX machinery.
4384         Reset FP_CFA_OFFSET to -1 on all invalid paths.
4385         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4386
4387 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
4388
4389         PR objc/48187
4390         * c-parser.c (c_parser_objc_class_instance_variables): More robust
4391         parsing of syntax error in ObjC instance variable lists.  In
4392         particular, avoid an infinite loop if there is a stray ']'.
4393         Updated error message.
4394
4395 2011-05-24  Ian Lance Taylor  <iant@google.com>
4396
4397         * godump.c (go_define): Don't accept a string immediately after
4398         another operand.
4399
4400 2011-05-24  Ian Lance Taylor  <iant@google.com>
4401
4402         * godump.c (struct godump_container): Add invalid_hash field.
4403         (go_format_type): Return false if type is found in invalid_hash.
4404         (go_output_typedef): Add invalid type to invalid_hash.
4405         (go_finish): Create and delete invalid_hash.
4406
4407 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4408
4409         PR tree-optimization/46728
4410         * tree-ssa-math-opts.c (powi_table): New.
4411         (powi_lookup_cost): New.
4412         (powi_cost): New.
4413         (powi_as_mults_1): New.
4414         (powi_as_mults): New.
4415         (gimple_expand_builtin_powi): New.
4416         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4417         (gate_cse_sincos): Remove sincos/cexp restriction.
4418
4419 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4420
4421         PR target/3746
4422         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4423         mips-tdump native.
4424         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4425         * mips-tdump.c: Likewise.
4426
4427 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4428
4429         PR target/49128
4430         * config/i386/driver-i386.c (host_detect_local_cpu): Always
4431         add -mno-XXX.  Handle FMA.
4432
4433 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4434
4435         PR rtl-optimization/48633
4436         * ira-build.c (loop_with_eh_edge_p): New function.
4437         (mark_loops_for_removal): Use it.
4438
4439 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4440
4441         PR rtl-optimization/48971
4442         * ira.c (setup_pressure_classes): Don't check register move cost
4443         for classes with one registers.  Don't add pressure class if there
4444         is a pressure class with the same available hard registers.
4445         Check contains_reg_of_mode.  Fix a typo in collecting
4446         temp_hard_regset.  Ignore hard registers not belonging to a class.
4447
4448 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
4449
4450         PR target/49133
4451         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4452
4453 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4454             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4455
4456         PR gcov-profile/48845
4457         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4458
4459 2011-05-24  Richard Guenther  <rguenther@suse.de>
4460
4461         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4462         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4463         (gimple_types_compatible_p_1): Adjust.
4464         (iterative_hash_canonical_type): Do not bother about complete vs.
4465         incomplete types.
4466         (gimple_canonical_types_compatible_p): Likewise.
4467
4468 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4469
4470         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4471
4472 2011-05-24  Richard Guenther  <rguenther@suse.de>
4473
4474         PR bootstrap/49078
4475         * gimple.c (gimple_register_canonical_type): Revert
4476         previous change.
4477         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4478         does not for a tree for the case where it matters.  Cache
4479         pointer-type alias-sets.
4480
4481 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
4482
4483         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4484         (OBJS): Remove options.o, opts-common.o and prefix.o.
4485         (OBJS-libcommon-target): New.
4486         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4487         (BACKEND): Include libcommon-target.a.
4488         (MOSTLYCLEANFILES): Include libcommon-target.a.
4489         (libcommon-target.a): New.
4490         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4491         prefix.o.
4492
4493 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
4494
4495         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
4496         parts of output shared with the driver.
4497         * optc-gen.awk: Don't generate parts of output not shared with the
4498         driver.
4499         * opth-gen.awk: Remove GCC_DRIVER conditionals.
4500         * doc/options.texi (SourcerInclude): Mention options-save.c.
4501         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4502         (OBJS): Add options-save.o.
4503         (options-save.c, options-save.o): New.
4504         (options.o): Update dependencies.
4505         (gcc-options.o): Remove.
4506         (mostlyclean): Remove options-save.c.
4507
4508 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4509
4510         PR debug/49032
4511         * dbxout.c: Include cgraph.h.
4512         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4513         and without value expr, return NULL if no varpool node exists for
4514         it or if it is not needed.
4515         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4516
4517         PR c/49120
4518         * c-decl.c (start_decl): Convert expr to void_type_node.
4519
4520 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
4521
4522         PR rtl-optimization/48826
4523         * emit-rtl.c (try_split): When splitting a call that is followed
4524         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4525
4526 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4527
4528         * cfgexpand.c (expand_debug_expr): For unused non-addressable
4529         parameters passed in memory prefer using DECL_INCOMING_RTL over
4530         the pseudos it will be copied into.
4531
4532 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4533
4534         PR target/47315
4535         * config/i386/i386.c (ix86_option_override_internal): Save the
4536         initial options after checking vzeroupper.
4537
4538 2011-05-23  David Li  <davidxl@google.com>
4539
4540         PR tree-optimization/48988
4541         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4542         Initialize has_valid_pred for each pred chain.
4543
4544 2011-05-23  Richard Guenther  <rguenther@suse.de>
4545
4546         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4547         (iterative_hash_gimple_type): Always hash type names.
4548
4549 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
4550
4551         * c-typeck.c (build_function_call_vec): Tweak call to
4552         check_function_arguments.
4553
4554 2011-05-23  Richard Guenther  <rguenther@suse.de>
4555
4556         PR tree-optimization/49115
4557         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4558         is not necessarily carried out, do not claim it kills the ref.
4559         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4560
4561 2011-05-23  Richard Guenther  <rguenther@suse.de>
4562
4563         PR middle-end/15419
4564         * builtins.c (fold_builtin_memory_op): Be less restrictive about
4565         what pointer types we accept for folding.
4566
4567 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4568
4569         * gthr-gnat.c: Remove.
4570         * gthr-gnat.h: Remove.
4571         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4572         * config/t-freebsd (LIB2ADDEH): Likewise.
4573         * config/t-linux (LIB2ADDEH): Likewise.
4574         * config/t-sol2 (LIB2ADDEH): Likewise.
4575         * config/ia64/t-vms (LIB2ADDEH): Likewise.
4576         * configure.ac (target_thread_file): Remove gnat handling.
4577         * configure: Regenerate.
4578         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4579
4580 2011-05-23  Tristan Gingold  <gingold@adacore.com>
4581             Eric Botcazou  <ebotcazou@adacore.com>
4582
4583         * gcov.c (create_file_names): If no object directory is specified,
4584         keep the directory of the file.
4585
4586 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4587
4588         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4589         * configure: Regenerate.
4590
4591 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4592
4593         PR middle-end/48973
4594         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4595         failed and the comparison has a single bit signed type, use
4596         constm1_rtx instead of const1_rtx for true value.
4597         (do_store_flag): If ops->type is single bit signed type, disable
4598         signel bit test optimization and pass -1 instead of 1 as last
4599         parameter to emit_store_flag_force.
4600
4601 2011-05-23  Tom de Vries  <tom@codesourcery.com>
4602
4603         PR target/45098
4604         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4605         function.
4606         (infer_loop_bounds_from_undefined): Use new function.
4607
4608 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4609
4610         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4611         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
4612         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4613         and -O0 otherwise.
4614         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4615
4616 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4617
4618         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4619         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4620         returns true.
4621
4622 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4623
4624         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4625
4626 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4627
4628         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4629         UNSPEC_MOVE_PIC pattern.
4630
4631 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4632
4633         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4634         (sparc-*-rtems*): Likewise.
4635         (sparc64-*-elf*): Likewise.
4636         (sparc64-*-rtems*): Likewise.
4637         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
4638         * config/sparc/t-crtin: New file.
4639         * config/sparc/t-sol2 (crti.o): Delete rule.
4640         (crtn.o): Likewise.
4641         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4642         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4643         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4644         (ENDFILE_SPEC): Add crtn.o.
4645
4646 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4647
4648         PR middle-end/48689
4649         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4650         CODE_CONTAINS_STRUCT (TS_COMMON).
4651
4652 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
4653
4654         PR middle-end/49029
4655         * expmed.c (extract_fixed_bit_field): Test whether target can be used
4656         only after deciding which mode to use.
4657
4658 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4659
4660         PR target/45098
4661         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4662         for call to get_shiftadd_cost.
4663
4664 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
4665
4666         PR target/49104
4667         * config/i386/cpuid.h (bit_MMXEXT): New define.
4668
4669 2011-05-22  Nick Clifton  <nickc@redhat.com>
4670
4671         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4672         initialisation of non-existant args[2] element.  Use args[] array
4673         not arg[] array to pass arguments to build_function_type_list.
4674
4675 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
4676
4677         PR tree-optimization/49087
4678         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4679
4680 2011-05-21  Jason Merrill  <jason@redhat.com>
4681
4682         PR c++/49092
4683         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4684         static storage duration.
4685
4686 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4687
4688         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4689         frame pointer.
4690
4691 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4692
4693         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4694         false if there are call-saved registers here...
4695         (sparc_can_use_return_insn_p): ...but here instead.
4696         (save_or_restore_regs): Fix thinko.
4697         (sparc_expand_prologue): Use current_function_is_leaf.
4698         (sparc_frame_pointer_required): Likewise.
4699
4700 2011-05-21  Nick Clifton  <nickc@redhat.com>
4701
4702         PR target/49098
4703         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4704
4705 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4706
4707         * gengtype.c (walk_type): Implemented "atomic" GTY option.
4708         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4709
4710 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
4711
4712         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
4713         * optc-gen.awk: Move common code to opt-read.awk.
4714         * opth-gen.awk: Likewise.
4715         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4716
4717 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
4718
4719         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4720
4721 2011-05-20  Tom de Vries  <tom@codesourcery.com>
4722
4723         PR target/45098
4724         * tree-ssa-loop-ivopts.c: Include expmed.h.
4725         (get_shiftadd_cost): New function.
4726         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
4727
4728 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
4729
4730         PR bootstrap/49086
4731         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4732         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4733
4734 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
4735
4736         * Makefile.in: Update comment referring to $(OBJS-common).
4737
4738 2011-05-20  Ian Lance Taylor  <iant@google.com>
4739
4740         * godump.c (go_output_typedef): Put enum constants in the macro
4741         hash table to avoid duplicate Go const definitions.
4742
4743 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
4744
4745         * Makefile.in (LIBDEPS): Add libcommon.a.
4746         (LIBS): Likewise.
4747         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4748         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4749         pretty-print.o and version.o.
4750         (OBJS-libcommon): New.
4751         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4752         (BACKEND): Add libcommon.a.
4753         (MOSTLYCLEANFILES): Likewise.
4754         (libcommon.a): New.
4755         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4756         (cpp$(exeext)): Likewise.
4757         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4758         pretty-print.o and input.o.
4759         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4760         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4761         (errors.o): Remove.
4762         (mips-tfile): Don't explicitly use version.o.
4763         (mips-tdump): Likewise.
4764         (gcov.o): Depend on $(DIAGNOSTIC_H).
4765         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4766         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4767         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4768         * gcov-dump.c: Include intl.h and diagnostic.h.
4769         (main): Initialize diagnostics.
4770         * gcov.c: Include diagnostic.h.
4771         (fnotice): Remove.
4772         (main): Initialize diagnostics.
4773         * lto-wrapper.c: Include diagnostic.h.
4774         (main): Initialize diagnostics.
4775
4776 2011-05-20  Michael Matz  <matz@suse.de>
4777
4778         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4779
4780 2011-05-20  Michael Matz  <matz@suse.de>
4781             Richard Guenther  <rguenther@suse.de>
4782
4783         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4784         use lto_streamer_cache_append directly instead of returning a VEC.
4785         (preload_common_node): Remove.
4786         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4787         track seen nodes.
4788         (lto_streamer_cache_create): Call lto_preload_common_nodes.
4789
4790 2011-05-20  Richard Guenther  <rguenther@suse.de>
4791
4792         PR tree-optimization/49079
4793         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4794         MEM_REFs correctly for the trailing array access detection.
4795         Special case constants the same way as decls for overall size
4796         constraining.
4797
4798 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
4799
4800         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4801         argument expansion.
4802
4803 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
4804
4805         PR tree-optimization/49073
4806         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4807         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4808         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4809
4810 2011-05-20  Richard Guenther  <rguenther@suse.de>
4811
4812         PR middle-end/48849
4813         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4814         of pointer types the same way the middle-end does.
4815
4816 2011-05-20  Richard Guenther  <rguenther@suse.de>
4817
4818         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4819         or pointer-to chains.  Delay all fixup to uniquify_nodes.
4820
4821 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
4822
4823         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4824         (fma4_fmaddsub): Likewise
4825
4826 2011-05-19  Jan Hubicka  <jh@suse.cz>
4827
4828         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4829         (GIMPLE_TYPE_PAIR_SIZE): New macro.
4830         (type_pair_cache): New static var.
4831         (lookup_type_pair): Use fixed sized custom hash; make inline.
4832         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4833         calls of lookup_type_pair.
4834         (print_gimple_types_stats): Remove cache stats.
4835         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4836         and gtc_ob.
4837
4838 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
4839
4840         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4841         when TARGET_RDRND is active.
4842         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4843         Generate dummy SImode target register when target is NULL.
4844
4845 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
4846
4847         * config/arm/arm-fpus.def: New.
4848         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4849         arm-fpus.def.
4850         * config/arm/arm-tables.opt: Regenerate.
4851         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4852         (arm_option_override): Don't decode FPU name to string here.
4853         * config/arm/arm.opt (mfpu=): Use Enum.
4854         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4855         Update dependencies.
4856
4857 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
4858
4859         * collect2.c: Include diagnostic.h.
4860         (fatal_perror, fatal, error, fancy_abort): Remove.
4861         (main): Set progname.  Call xmalloc_set_program_name and
4862         diagnostic_initialize.
4863         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4864         scan_libraries, resolve_lib_name): Call fatal_error instead of
4865         fatal and fatal_perror.
4866         * collect2.h (error, fatal, fatal_perror): Don't declare.
4867         * tlink.c: Include diagnostic-core.h.
4868         (recompile_files): Call fatal_error instead of fatal_perror.
4869         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4870         pretty-print.o and input.o.
4871         (collect2.o, tlink.o): Update dependencies.
4872
4873 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4874
4875         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4876
4877 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4878
4879         PR target/40483
4880         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4881         COMDAT group syntax, both SPARC and x86 variants.
4882         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4883         * configure: Regenerate.
4884         * config/sol2.h (TARGET_SOLARIS): Define.
4885         (PUSHSECTION_FORMAT): Remove.
4886         (SECTION_NAME_FORMAT): Define.
4887         * config/sol2.c: Include hashtab.h.
4888         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4889         expansion, using SECTION_NAME_FORMAT.
4890         (solaris_comdat_htab): New variable.
4891         (struct comdat_entry): Define.
4892         (comdat_hash): New function.
4893         (comdat_eq): New function.
4894         (solaris_elf_asm_comdat_section): New function.
4895         (solaris_define_comdat_signature): New function.
4896         (solaris_code_end): New function.
4897         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4898         (solaris_code_end): Declare.
4899         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4900         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4901         solaris_code_end.
4902         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4903         Remove ATTRIBUTE_UNUSED.
4904         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4905         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4906         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4907         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4908         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4909         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4910         (PUSHSECTION_FORMAT): Remove.
4911         (SECTION_NAME_FORMAT): Redefine.
4912
4913 2011-05-19  Kai Tietz  <ktietz@redhat.com>
4914
4915         * tree-cfg.c (verify_gimple_assign_binary): Barf on
4916         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4917         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4918
4919 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
4920             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4921
4922         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4923
4924 2011-05-19  Richard Guenther  <rguenther@suse.de>
4925
4926         PR middle-end/48985
4927         * tree-object-size.c (addr_object_size): If the pointed-to
4928         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4929
4930 2011-05-19  Richard Guenther  <rguenther@suse.de>
4931
4932         * gimple.c (gimple_types_compatible_p_1): Compare names of
4933         the types themselves.
4934         (iterative_hash_gimple_type): And hash them that way.
4935         (gimple_register_type_1): If we register a main variant properly
4936         initialize the leader to ourselves.
4937
4938 2011-05-19  Tom de Vries  <tom@codesourcery.com>
4939
4940         PR target/45098
4941         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4942         get_loop_invariant_expr_id.
4943         (get_loop_invariant_expr_id): Use get_expr_id.
4944         (parm_decl_cost): New function.
4945         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4946         Improve bound cost estimation.  Use different inv_expr_id for elim and
4947         express cases.
4948
4949 2011-05-19  Tom de Vries  <tom@codesourcery.com>
4950
4951         PR target/45098
4952         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4953         cost_base.cost == 0.
4954
4955 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4956
4957         PR target/49002
4958         * config/i386/sse.md
4959         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4960         load cast.
4961
4962 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
4963
4964         PR tree-optimization/49039
4965         * tree-vrp.c (extract_range_from_binary_expr): For
4966         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4967         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4968
4969 2011-05-18  Tom de Vries  <tom@codesourcery.com>
4970
4971         PR target/45098
4972         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4973
4974 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
4975
4976         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4977         (*tls_global_dynamic_64): Ditto.
4978         (*tls_local_dynamic_base_32_gnu): Ditto.
4979         (*tls_local_dynamic_base_64): Ditto.
4980         (tls_initial_exec_64_sun): Ditto.
4981
4982 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
4983
4984         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4985         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4986         bf592-none.
4987         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4988         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4989         * config/bfin/bfin.c (bfin_cpus): Add bf592.
4990         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4991         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4992         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4993         * config/bfin/elf.h (LIB_SPEC): Add bf592.
4994
4995 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
4996
4997         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4998         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4999         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5000         target_thread_pointer, arm_structure_size_boundary, struct
5001         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5002         struct abi_name, arm_all_abis): Remove.
5003         (arm_option_override) Don't process most enumerated option values here.
5004         Don't process target_fpe_name here.  Work with integer not string for
5005         structure size boundary; use separate diagnostics for each case.
5006         * config/arm/arm.h (enum float_abi_type, enum
5007         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5008         to arm-opts.h.
5009         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5010         arm_structure_size_boundary): Remove.
5011         * config/arm/arm.opt (mabi=): Use Enum and Init.
5012         (arm_abi_type): New Enum and EnumValue entries.
5013         (mfloat-abi=): Use Enum and Init.
5014         (float_abi_type): New Enum and EnumValue entries.
5015         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5016         (mfp16-format=): Use Enum and Init.
5017         (arm_fp16_format_type): New Enum and EnumValue entries.
5018         (mstructure-size-boundary=): Use UInteger and Init.
5019         (mtp=): Use Enum and Init.
5020         (arm_tp_type): New Enum and EnumValue entries.
5021
5022 2011-05-18  Richard Guenther  <rguenther@suse.de>
5023
5024         PR tree-optimization/49018
5025         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5026         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5027         gimple_has_side_effects.
5028
5029 2011-05-18  Richard Guenther  <rguenther@suse.de>
5030
5031         * gimple.c (gimple_register_type_1): New function, split out from ...
5032         (gimple_register_type): ... here.  Avoid infinite recursion.
5033
5034 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
5035
5036         PR tree-optimization/41881
5037         * tree-vectorizer.h (struct _loop_vec_info): Add new field
5038         reduction_chains along with a macro for its access.
5039         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5040         (destroy_loop_vec_info): Free reduction chains.
5041         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5042         (vect_is_slp_reduction): New function.
5043         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5044         (vect_create_epilog_for_reduction): Support SLP reduction chains.
5045         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5046         definition types for reduction chains.
5047         (vect_supported_load_permutation_p): Don't allow permutations for
5048         reduction chains.
5049         (vect_analyze_slp_instance): Support reduction chains.
5050         (vect_analyze_slp): Try to build SLP instance from reduction chains.
5051         (vect_get_constant_vectors):  Handle reduction chains.
5052         (vect_schedule_slp_instance): Mark the first statement of the
5053         reduction chain as reduction.
5054
5055 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
5056
5057         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5058         names for group elements access.
5059         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5060         reduction chains as well.  Remove data reference and interleaving
5061         related words from the fields names.
5062         * tree-vect-loop.c (vect_transform_loop): Use new names for group
5063         elements access.
5064         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5065         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5066         vect_update_interleaving_chain, vect_same_range_drs,
5067         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5068         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5069         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5070         vect_analyze_group_access, vect_analyze_data_ref_access,
5071         vect_create_data_ref_ptr, vect_transform_strided_load,
5072         vect_record_strided_load_vectors): Likewise.
5073         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5074         vect_model_load_cost, vectorizable_store, vectorizable_load,
5075         vect_remove_stores, new_stmt_vec_info): Likewise.
5076         * tree-vect-slp.c (vect_build_slp_tree,
5077         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5078
5079 2011-05-18  Richard Guenther  <rguenther@suse.de>
5080
5081         PR middle-end/48989
5082         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5083         operand verification.
5084         (verify_gimple_assign_binary): Likewise.
5085         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5086         to non-1-precision BOOLEAN_TYPEs.
5087
5088 2011-05-18  Tom de Vries  <tom@codesourcery.com>
5089
5090         PR target/45098
5091         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5092
5093 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
5094
5095         PR tree-optimization/49000
5096         * tree-ssa.c (execute_update_addresses_taken): Call
5097         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
5098         be rewritten and decl has been marked for renaming, reset
5099         the debug stmt.
5100
5101 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
5102
5103         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5104         enum_opts_set when testing if attributes have set -mfpmath=.
5105
5106 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
5107
5108         * config/mips/mips.c (mips_handle_option): Remove unused variable.
5109
5110 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5111
5112         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5113         info->entry with 0
5114         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
5115         id.transform_lang_insert_block with NULL.
5116
5117 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5118
5119         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5120         (output_fp_compare): Change args 3 and 4 to bool.
5121         (ix86_expand_call): Change arg 6 to bool.
5122         (ix86_attr_length_immediate_default): Change arg 2 to bool.
5123         (ix86_attr_length_vex_default): Change arg 3 to bool.
5124         * config/i386/i386.md: Update all uses.
5125         * config/i386/i386.c: Ditto.
5126         (ix86_flags_dependent): Change return type to bool.
5127
5128 2011-05-17  Richard Guenther  <rguenther@suse.de>
5129
5130         * gimple.c (type_hash_pair_compare): Fix comparison.
5131
5132 2011-05-17  Richard Guenther  <rguenther@suse.de>
5133
5134         * gimple.c (iterative_hash_gimple_type): Simplify singleton
5135         case some more, fix final hash value of the non-singleton case.
5136
5137 2011-05-17  Richard Guenther  <rguenther@suse.de>
5138
5139         PR bootstrap/49013
5140         Revert
5141         2011-05-16  Richard Guenther  <rguenther@suse.de>
5142
5143         * gimple.c (gimple_types_compatible_p_1): Use names of the
5144         type itself, not its main variant.
5145         (iterative_hash_gimple_type): Likewise.
5146
5147 2011-05-17  Richard Guenther  <rguenther@suse.de>
5148
5149         * gimple.c (gimple_register_canonical_type): Use the main-variant
5150         leader for computing the canonical type.
5151
5152 2011-05-17  Nick Clifton  <nickc@redhat.com>
5153
5154         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5155         moves.
5156
5157         * config/rx/rx.md: Add peephole to remove redundant extensions
5158         after loads.
5159         (bitset_in_memory): Use rx_restricted_mem_operand.
5160         (bitinvert_in_memory): Likewise.
5161         (bitclr_in_memory): Likewise.
5162
5163 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
5164             Nick Clifton  <nickc@redhat.com>
5165
5166         * config/rx/rx.md: Add peepholes to match a register move followed
5167         by a comparison of the moved register.  Replace these with an
5168         addition of zero that does both actions in one instruction.
5169
5170 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
5171
5172         PR target/48986
5173         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5174         predicate to allow CONST_INT.
5175         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5176
5177 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5178
5179         * opts-common.c (opt_enum_arg_to_value): New.
5180         * opts.h (opt_enum_arg_to_value): Declare.
5181         * config/i386/i386.opt (fpmath): Remove.
5182         (mfpmath=): Use Enum, Init and Save.
5183         (fpmath_unit): New Enum and EnumValue entries.
5184         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5185         name for function fpmath state.
5186         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5187         * config/i386/i386.c: Include diagnostic.h.
5188         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5189         (ix86_target_string): Take enum fpmath_unit value instead of string.
5190         (ix86_debug_options): Update call to ix86_target_string.
5191         (ix86_option_override_internal): Don't process fpmath strings here.
5192         (x86_function_specific_save, ix86_function_specific_restore):
5193         Don't handle fpmath state specially.
5194         (ix86_function_specific_print): Pass fpmath state to
5195         ix86_target_string instead of printing in this function.
5196         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5197         Handle enum attributes.
5198         (IX86_ATTR_ENUM, ix86_opt_enum): New.
5199         (ix86_valid_target_attribute_tree): Update option_strings
5200         handling.  Handle fpmath as enum option.
5201         (ix86_can_inline_p): Update field names for function fpmath state.
5202         (ix86_expand_builtin): Update call to ix86_target_string.
5203         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5204         (ix86_fpmath): Remove.
5205         * config/i386/t-i386 (i386.o): Update dependencies.
5206
5207 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5208
5209         PR preprocessor/48677
5210         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5211         from decoded_options[0], not from itself.
5212
5213 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
5214
5215         * config/i386/constraints.md (z): New constraint.
5216         * config/i386/i386.c (c): New mode attribute.
5217         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5218         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5219         constraint for operand 0.
5220         (*call_vzeroupper): Ditto.
5221         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
5222         (*call_rex64_ms_sysv_vzeroupper): Ditto.
5223         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5224         Use "lzm" constraint for operand 0.
5225         (*call_pop_vzeroupper): Ditto.
5226         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5227         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
5228         constraint for operand 0.
5229         (*sibcall_vzeroupper): Ditto.
5230         (*sibcall_rex64_ms_sysv): Ditto.
5231         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5232         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5233         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
5234         (*sibcall_pop_vzeroupper): Ditto.
5235         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5236         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5237         mode iterator.  Use "<c>zm" constraint for operand 1.
5238         (*call_value_vzeroupper): Ditto.
5239         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
5240         for operand 1.
5241         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5242         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5243         *call_value_pop_1.  Use "lzm" constraint for operand 1.
5244         (*call_value_pop_vzeroupper): Ditto.
5245         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5246         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5247         mode iterator.  Use "Uz" constraint for operand 1.
5248         (*sibcall_value_vzeroupper): Ditto.
5249         (*sibcall_value_rex64_ms_sysv): Ditto.
5250         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5251         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
5252         constraint for operand 1.
5253         (*sibcall_value_pop_vzeroupper): Ditto.
5254         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5255         and "z" constraint for operand 2.
5256         (*tls_global_dynamic_32_gnu): Ditto.
5257         (*tls_local_dynamic_base_32_gnu): Ditto.
5258         (*tls_local_dynamic_base_64): Ditto.
5259         (*tls_local_dynamic_32_once): Ditto.
5260         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5261         Update all callers.
5262         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5263
5264 2011-05-16  Richard Guenther  <rguenther@suse.de>
5265
5266         * gimple.c (gimple_types_compatible_p_1): Use names of the
5267         type itself, not its main variant.
5268         (iterative_hash_gimple_type): Likewise.
5269
5270 2011-05-16  Richard Guenther  <rguenther@suse.de>
5271
5272         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5273         always visit pointer target and function result and argument types.
5274
5275 2011-05-16  Jason Merrill  <jason@redhat.com>
5276
5277         PR c++/48999
5278         * tree-inline.c (copy_statement_list): Put back recursion.
5279
5280 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5281
5282         PR target/27663
5283         PR target/41076
5284         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5285         * config/avr/avr.md ("*ior<mode>qi.byte0",
5286         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5287
5288 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5289
5290         PR target/45099
5291         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5292         register is needed for a function argument.
5293
5294 2011-05-16  Richard Guenther  <rguenther@suse.de>
5295
5296         * gimple.c (struct type_hash_pair): New type.
5297         (type_hash_pair_compare): New function.
5298         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5299
5300 2011-05-16  Revital Eres  <revital.eres@linaro.org>
5301
5302         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5303
5304 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5305
5306         * config/i386/i386.md (floating point move splitters): Fix
5307         usage of standard_80387_constant_p.
5308         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5309
5310 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5311
5312         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5313
5314 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5315
5316         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5317         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5318         (tree_ssa_lim_finalize): Likewise.
5319
5320 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
5321
5322         * config/i386/constraint.md (Yd, Yx): New register constraints.
5323         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
5324         Yd conditional register constraint.
5325         (*movtf_internal): Use standard_sse_constant_opcode.
5326         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
5327         Yx conditional register constraint.
5328         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
5329         Yd conditional register constraint.  Use standard_sse_constant_p to
5330         check for valid SSE constants and call standard_sse_constant_opcode to
5331         output SSE insn.
5332         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5333         constants and call standard_sse_constant_opcode to output SSE insn.
5334         * config/i386/i386.c (ix86_option_ovverride_internal): Set
5335         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
5336         optimize_size is set.
5337         (standard_sse_constant_opcode): Output conditional AVX insn templates.
5338
5339 2011-05-14  Tobias Burnus  <burnus@net-b.de>
5340
5341         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5342
5343 2011-05-13  Martin Jambor  <mjambor@suse.cz>
5344
5345         * ipa-prop.c (ipa_cst_from_jfunc): New function.
5346         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5347         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5348         (evaluate_conditions_for_ipcp_clone): Removed.
5349         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5350         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5351         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5352
5353 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
5354
5355         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5356         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5357         lieu of MAY_HAVE_DEBUG_STMTS.
5358         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5359         debug statements if !MAY_HAVE_DEBUG_STMTS.
5360
5361 2011-05-13  Martin Thuresson  <martint@google.com>
5362
5363         PR gcov-profile/47793
5364         * libgcov.c (gcov_exit): Support relative profile paths.
5365         * doc/invoke.texi (-fprofile-dir): Update for above change.
5366
5367 2011-05-13  Richard Guenther  <rguenther@suse.de>
5368
5369         * gimple.c (gimple_canonical_types_compatible_p): Do not use
5370         type-pair caching, do not compare hashes.
5371
5372 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
5373
5374         PR middle-end/48965
5375         * tree-cfg.c (edge_to_cases_cleanup): Return true.
5376         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5377
5378 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5379
5380         * gimplify.c (gimplify_expr): Make sure operand is boolified.
5381         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5382         compatible type for TRUTH_NOT_EXPR.
5383
5384 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5385
5386         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5387         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
5388         can_create_pseudo_p ().
5389
5390 2011-05-13  Richard Guenther  <rguenther@suse.de>
5391
5392         PR lto/48978
5393         * gimple.c (iterative_hash_gimple_type): Revert change in
5394         pointer target and function result and argument hashing.
5395
5396 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
5397
5398         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5399         (*movxf_internal_nointeger): Ditto.
5400         (*movdf_internal_rex64): Ditto.
5401         (*movdf_internal): Ditto.
5402         (*movdf_internal_nointeger): Ditto.
5403         (*movsf_internal): Ditto.
5404         (sincos splitters): Use can_create_pseudo ().
5405
5406 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
5407
5408         * config/i386/i386-opts.h: New.
5409         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5410         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5411         ix86_section_threshold): Remove.
5412         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
5413         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5414         OPT_mbranch_cost_.
5415         (ix86_option_override_internal): Don't decode strings for options
5416         other than -march=, -mtune= and -mfpmath=.  Don't allow for
5417         __attribute__ uses in remaining diagnostics for options with
5418         string arguments.  Don't check for integer arguments being negative.
5419         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5420         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5421         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5422         ix86_branch_cost, ix86_section_threshold): Remove.
5423         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5424         HeaderInclude.
5425         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5426         but not Var.
5427         (masm=): Use Enum and Init.
5428         (asm_dialect): New Enum and EnumValue entries.
5429         (mbranch-cost=): Use UInteger.
5430         (mlarge-data-threshold=): Use UInteger and Init.
5431         (mcmodel=): Use Enum and Init.
5432         (cmodel): New Enum and EnumValue entries.
5433         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5434         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5435         mregparm=): Use UInteger.
5436         (mstringop-strategy=): Use Enum and Init.
5437         (stringop_alg): New Enum and EnumValue entries.
5438         (mtls-dialect=): Use Enum and Init.
5439         (tls_dialect): New Enum and EnumValue entries.
5440         (mabi=): Use Enum and Init.
5441         (calling_abi): New Enum and EnumValue entries.
5442         (mveclibabi=): Use Enum and Init.
5443         (ix86_veclibabi): New Enum and EnumValue entries.
5444
5445 2011-05-13  Nick Clifton  <nickc@redhat.com>
5446
5447         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5448         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5449
5450 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5451
5452         PR middle-end/48984
5453         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5454         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5455         (gimple_boolify): Check for cast for boolean_type_node instead for
5456         BOOLEAN_TYPE.
5457
5458 2011-05-13  Richard Guenther  <rguenther@suse.de>
5459
5460         PR tree-optimization/48172
5461         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5462         multiplying by number of iterations for equal step.
5463         (vect_create_cond_for_alias_checks): Likewise.
5464
5465 2011-05-13  Andreas Schwab  <schwab@redhat.com>
5466
5467         * configure.ac: Use AS_HELP_STRING throughout.
5468         * configure: Regenerate.
5469
5470 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5471
5472         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5473         (ix86_emit_restore_regs_using_mov): Likewise.
5474         (ix86_emit_restore_sse_regs_using_mov): Likewise.
5475
5476 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
5477
5478         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5479         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5480         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5481         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5482         RTX_OK_FOR_OLO10_P): ...here.
5483         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5484         SYMBOLIC_CONST.
5485
5486 2011-05-12  Kai Tietz  <ktietz@redhat.com>
5487
5488         * gimplify.c (gimple_boolify): Re-boolify expression
5489         arguments even if expression type is of kind BOOLEAN_TYPE.
5490         (gimplify_boolean_expr): Removed.
5491         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5492         and XOR. Additional take care that we keep expression's type.
5493         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5494         of TRUTH_AND|OR|XOR_EXPR.
5495
5496 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5497
5498         PR tree-optimization/48975
5499         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5500         on all bbs here and free and clear ifc_bbs at the end.
5501
5502 2011-05-12  Richard Guenther  <rguenther@suse.de>
5503
5504         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5505         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
5506         until after simple checks.
5507         (gimple_types_compatible_p): Likewise.
5508         (iterative_hash_gimple_type): Always hash pointer targets
5509         and function return and argument types.
5510         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5511         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
5512         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5513         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
5514         completely in the simple compare section.
5515         (gimple_register_canonical_type): Query the cache again after
5516         registering.
5517
5518 2011-05-12  Richard Guenther  <rguenther@suse.de>
5519
5520         PR tree-optimization/48172
5521         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5522         the number of iterations from the segment size calculation.
5523         (vect_create_cond_for_alias_checks): Adjust.
5524
5525 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5526
5527         PR debug/48967
5528         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5529         if validate_subreg fails.
5530
5531 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
5532
5533         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5534         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5535         early.
5536
5537 2011-05-12  DJ Delorie  <dj@redhat.com>
5538
5539         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5540         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5541         created builtin into rx_builtins array.
5542         (rx_builtin_decl): New function.
5543         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
5544
5545 2011-05-12  DJ Delorie  <dj@redhat.com>
5546             Nick Clifton  <nickc@redhat.com>
5547
5548         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5549         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5550         (rx_is_legitimate_address): Add pre-decrement and post-increment
5551         addressing in HImode and QImode.  Fix test for out of range
5552         REG+INT addressing.
5553         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5554         (rx_align_for_label): Test label before extracting its usage count.
5555         (rx_adjust_insn_lengths): Fix selection of insn codes.
5556         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5557
5558 2011-05-11  Jason Merrill  <jason@redhat.com>
5559
5560         * tree.c (type_hash_canon): Use struct tree_type_non_common.
5561
5562 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5563
5564         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5565         reindent the subsequent block.
5566
5567 2011-05-11  Satoru Takabayashi  <satorux@google.com>
5568             Paul Pluzhnikov  <ppluzhnikov@google.com>
5569
5570         * doc/install.texi (Configuration): Document --with-linker-hash-style.
5571         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5572         * config.in: Add LINKER_HASH_STYLE.
5573         * configure.ac: Add --with-linker-hash-style.
5574         * configure: Regenerate.
5575
5576 2011-05-11  Richard Guenther  <rguenther@suse.de>
5577
5578         PR middle-end/48964
5579         * gimple.c (iterative_hash_canonical_type): Fix typo.
5580
5581 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
5582
5583         * config/i386/i386.c (legitimize_tls_address)
5584         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5585         expanders directly for TARGET_GNU2_TLS.  Determine pic and
5586         __tls_get_addr symbol reference here.  Update call to
5587         gen_tls_global_dynamic_{32,64} for added arguments.
5588         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5589         expanders directly for TARGET_GNU2_TLS.  Determine
5590         __tls_get_addr symbol reference here.  Update call to
5591         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
5592         unique UNSPEC REG_EQUIV to libcall block.
5593         (ix86_tls_get_addr): Declare static.
5594         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5595         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5596         Do not determine pic and __tls_get_addr symbol reference here. Do not
5597         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5598         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5599         (tls_global_dynamic_64): Add operand 2.  Do not determine
5600         __tls_get_addr symbol reference here.  Do not call
5601         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5602         (tls_local_dynamic_base64): Ditto for operand 1.
5603
5604 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5605
5606         * function.c (expand_function_start): Initialize stack_check_probe_note
5607         only if the generic stack checking mechanism is used.
5608
5609 2011-05-11  Richard Guenther  <rguenther@suse.de>
5610
5611         PR tree-optimization/15256
5612         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5613         (A & B) | C, combine (A op CST1) op CST2.
5614         (tree_ssa_forward_propagate_single_use_vars): Only bother to
5615         visit assigns that have uses.
5616
5617 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
5618
5619         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5620         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5621         (unpack_ts_type_common_value_fields): ...this.  Update comment.
5622         (unpack_value_fields): Adjust for renaming.
5623         (lto_input_ts_type_tree_pointers): Split into...
5624         (lto_input_ts_type_common_tree_pointer): ...this and...
5625         (lto_input_ts_type_non_common_tree_pointers): ...this.
5626         (lto_input_tree_pointers): Adjust for above split.
5627         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5628         (pack_ts_type_common_value_fields): ...this.  Update comment.
5629         (lto_output_ts_type_tree_pointers): Split into...
5630         (lto_output_ts_type_common_tree_pointers): ...this and...
5631         (lto_output_ts_type_non_common_tree_pointers): ...this.
5632         (lto_output_tree_pointers): Adjust for above split.
5633         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5634         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5635         * stor-layout.c (vector_type_mode): Adjust location of mode field.
5636         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5637         Define.
5638         (struct tree_type): Split into...
5639         (struct tree_type_common: ...this and...
5640         (struct tree_type_with_lang_specific): ...this and...
5641         (struct tree_type_non_common): ...this.  Adjust accessor macros
5642         accordingly.
5643         (TYPE_VALUES_RAW): Define.
5644         (union tree_node): Update for above changes.
5645         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5646         TS_TYPE_NON_COMMON.
5647         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5648         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5649         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5650         * treestructu.def (TS_TYPE): Remove.
5651         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5652         Define.
5653
5654 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
5655
5656         PR debug/48159
5657         * tree-ssa.c (reset_debug_uses): New function.
5658         * tree-flow.h (reset_debug_uses): New prototype.
5659         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5660         * tree-loop-distribution.c (generate_loops_for_partition): Call
5661         reset_debug_uses on the stmts that will be removed.  Keep around
5662         all debug stmts, don't count them as bits in partition bitmap.
5663         (generate_builtin): Don't count debug stmts or labels as bits in
5664         partition bitmap.
5665
5666 2011-05-11  Richard Guenther  <rguenther@suse.de>
5667
5668         * gimple.c (gimple_type_hash_1): Merge with ...
5669         (gimple_type_hash): ... this.
5670         (gtc_visit): Remove mode parameter and simplify accordingly.
5671         (gimple_types_compatible_p_1): Likewise.
5672         (gimple_types_compatible_p): Likewise.
5673         (iterative_hash_gimple_type): Likewise.
5674         (visit): Likewise.
5675         (gimple_type_eq): Adjust.
5676
5677 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5678
5679         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5680         enters the branch create an anti edge in the opposite direction
5681         to prevent the creation of reg-moves.
5682         * modulo-sched.c: Adjust comment to reflect the fact we are
5683         scheduling closing branch.
5684         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5685         (stage_count): New field in struct partial_schedule.
5686         (calculate_stage_count): New function.
5687         (normalize_sched_times): Rename to reset_sched_times and handle
5688         incrementing the sched time of the nodes by a constant value
5689         passed as parameter.
5690         (duplicate_insns_of_cycles): Skip closing branch.
5691         (sms_schedule_by_order): Schedule closing branch.
5692         (ps_insn_find_column): Handle closing branch.
5693         (sms_schedule): Call reset_sched_times and adjust the code to
5694         support scheduling of the closing branch.
5695         (ps_insert_empty_row): Update calls to normalize_sched_times
5696         and rotate_partial_schedule functions.
5697
5698 2011-05-11  Richard Guenther  <rguenther@suse.de>
5699
5700         PR middle-end/48953
5701         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5702
5703 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
5704
5705         * opts.c (finish_options): Move warning settings from process_options.
5706         * toplev.c (process_options): Move warning settings to finish_options.
5707
5708 2011-05-11  Richard Guenther  <rguenther@suse.de>
5709
5710         PR tree-optimization/18041
5711         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5712         (simplify_bitwise_binary): ... this.  Handle operand conversions
5713         by applying them to the result instead.
5714         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
5715
5716 2011-05-11  Richard Guenther  <rguenther@suse.de>
5717
5718         * gimple.c (gimple_canonical_types_compatible_p): Split out
5719         from gimple_types_compatible_p and friends.  Do not recurse
5720         to pointed-to types.
5721         (gimple_canonical_type_eq): Use it.
5722         (iterative_hash_canonical_type): Split out from
5723         iterative_hash_gimple_type and friends.  Do not recurse
5724         to pointed-to types.
5725         (gimple_canonical_type_hash): Use it, allocate the hash here.
5726
5727 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5728
5729         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5730         recognizing doloop.
5731
5732 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5733
5734         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5735         instead of PREV_INSN.
5736
5737 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5738
5739         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5740         * loop-doloop.c (doloop_condition_get): Likewise.
5741         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5742         (doloop_end): New.
5743         * config/arm/arm.md (*addsi3_compare0): Remove "*".
5744
5745 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
5746
5747         * tree.def (CASE_LABEL_EXPR): Add an operand.
5748         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5749
5750 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5751
5752         * c-decl.c (c_override_global_bindings_to_false): Remove.
5753         (global_bindings_p): Don't check
5754         c_override_global_bindings_to_false.
5755         * c-tree.h (c_override_global_bindings_to_false): Remove.
5756         * c-typeck.c (composite_type): Don't set
5757         c_override_global_bindings_to_false.
5758
5759 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5760
5761         PR target/48857, 48495
5762         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5763         (VSX_MODE): Ditto.
5764         (VSX_MOVE_MODE): Ditto.
5765         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5766         VSX vector types.  Add V2DImode.
5767         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5768         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5769         (MODES_TIEABLE_P): Ditto.
5770
5771         * config/rs6000/rs6000.c (rs6000_emit_move): Use
5772         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5773         VSX_VECTOR_MODE.
5774         (init_cumulative_args): Ditto.
5775         (rs6000_function_arg_boundary): Ditto.
5776         (rs6000_function_arg_advance_1): Ditto.
5777         (rs6000_function_arg): Ditto.
5778         (rs6000_function_ok_for_sibcall): Ditto.
5779         (emit_frame_save): Ditto.
5780         (rs6000_function_value): Ditto.
5781         (rs6000_libcall_value): Ditto.
5782
5783 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5784
5785         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5786         i386/darwin-lib.h to $libgcc_tm_file.
5787         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5788
5789 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5790
5791         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5792
5793 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5794
5795         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5796         * config/rs6000/rs6000-tables.opt: New file (generated).
5797         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5798         rs6000/rs6000-tables.opt to extra_options.
5799         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5800         * config/rs6000/rs6000.c (rs6000_select): Remove.
5801         (processor_target_table): Move contents to rs6000-cpus.def.
5802         (darwin_rs6000_override_options): Check
5803         global_options_set.x_rs6000_cpu_index instead of
5804         rs6000_select[1].string.
5805         (rs6000_option_override_internal): Likewise.
5806         (rs6000_handle_option): Don't assert that global structures are in
5807         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
5808         (rs6000_default_cpu): New variable.
5809         (rs6000_file_start): Set it instead of local default_cpu.  Check
5810         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5811         global_options_set.x_rs6000_tune_index instead of rs6000_select.
5812         (rs6000_darwin_file_start): Check rs6000_default_cpu and
5813         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5814         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5815         rs6000_select): Remove.
5816         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5817         Remove.
5818         (mcpu=, mtune=): Use Var, Init, Enum and Save.
5819         * config/rs6000/t-rs6000
5820         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5821         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5822         global_options_set.x_rs6000_cpu_index instead of
5823         rs6000_select[1].string.
5824         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5825         global_options_set.x_rs6000_cpu_index instead of
5826         rs6000_select[1].string.
5827
5828 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5829
5830         * config.gcc (libgcc_tm_file): Define instead of including files
5831         from ../../libgcc/config/ in tm_file.
5832         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
5833         * configure: Regenerate.
5834         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5835         libgcc_tm.h, cs-libgcc_tm.h): New.
5836         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5837         (clean): Remove libgcc_tm.h.
5838         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5839         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5840         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5841
5842 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
5843
5844         PR target/48896
5845         * config/avr/avr.c (avr_ret_register): Return unsigned int
5846         instead of int.
5847         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5848         it to avr_libcall_value.
5849         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5850         expand_expr.
5851         (avr_expand_binop_builtin): Ditto.
5852         (avr_expand_unop_builtin): Ditto.
5853
5854 2011-05-10  DJ Delorie  <dj@redhat.com>
5855
5856         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5857         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5858         * config/rx/rx.c (rx_align_for_label): Add label and
5859         uses_threshold parameters.  Do not align when the label is not
5860         used enough.
5861         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5862
5863 2011-05-10  Richard Guenther  <rguenther@suse.de>
5864
5865         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5866         a series of conversions and apply foldings similar to what
5867         fold-const does.
5868         (tree_ssa_forward_propagate_single_use_vars): Call it.
5869
5870 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
5871
5872         PR tree-optimization/48611
5873         PR tree-optimization/48794
5874         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5875         referenced from RESX or EH_DISPATCH arguments.
5876
5877         PR debug/48928
5878         * dfp.c (decimal_to_decnumber): Handle conversion from
5879         dconst{1,2,m1,half}.
5880
5881 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5882
5883         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5884         for !flag_prefer_avx128.
5885         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5886
5887 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
5888
5889         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5890         (fold_ternary_loc): Use expr_location_or.
5891
5892 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5893
5894         PR debug/48853
5895         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5896         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5897         Pmode and mem_mode is not VOIDmode.
5898
5899 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
5900
5901         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5902         TYPE_QUAL_RESTRICT): Convert to enum.
5903
5904 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5905
5906         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5907         (const_pow2_1_to_8_operand): Ditto.
5908         (const_pow2_1_to_128_operand): Ditto.
5909         (const_pow2_1_to_32768_operand): Ditto.
5910         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5911         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
5912         in insn constraint to check integer value of operand 3.
5913         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5914
5915         (PINSR_MODE): New mode iterator.
5916         (sse2p4_1): New mode attribute.
5917         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5918         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5919         iterator.  Use const_int_operand instead of
5920         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
5921         exact_log2 in insn constraint to check integer value of operand 3.
5922
5923 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5924
5925         * config/i386/sse.md (blendbits): Remove mode attribute.
5926         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5927         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5928         Check integer value of operand 3 in insn constraint.
5929
5930 2011-05-09  Richard Guenther  <rguenther@suse.de>
5931
5932         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5933         for diagnostics.
5934         (lto_symtab_merge): Likewise.  Do not register types here.
5935         (lto_symtab_merge_decls_2): Likewise.
5936         (lto_symtab_merge_decls_1): Likewise.
5937         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5938         * gimple.c (enum gtc_mode): Declare.
5939         (gimple_types_compatible_p): Make static.
5940
5941 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5942
5943         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5944         temporary register to match Pmode.
5945
5946 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5947
5948         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5949         and *vec_concatv4si_1_avx.
5950
5951 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5952
5953         PR rtl-optimization/48927
5954         * ira-conflicts.c (commutative_constraint_p): Use
5955         recog_data.alternative_enabled_p to disable alternatives where
5956         "enabled" attribute is false.
5957         (get_dup_num): Ditto.
5958         * ira-lives.c (single_reg_class): Ditto.
5959         (ira_implicitly_set_insn_hard_regs): Ditto.
5960
5961 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
5962
5963         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5964         (dataflow_set_preserve_mem_locs): Likewise.
5965
5966 2011-05-09  Philipp Thomas  <pth@suse.de>
5967
5968         * config/mep/mep.c (mep_validate_vliw): Syntax description
5969         should not be translated.
5970
5971 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
5972
5973         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5974         * config/mips/mips-tables.opt: New file (generated).
5975         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5976         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5977         MIPS_ARCH_OPTION_NATIVE): Define.
5978         * config/mips/mips.c (mips_cpu_info_table): Move contents to
5979         mips-cpus.def.
5980         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5981         mips_parse_cpu): Remove.
5982         (mips_cpu_info_from_opt, mips_default_arch): New.
5983         (mips_handle_option): Don't assert that global structures are in
5984         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5985         (mips_option_override): Use new variables and functions to set
5986         state of these options.  Use strcmp to check for individual CPU names.
5987         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5988         definition.
5989         * config/mips/mips.opt (march=): Use ToLower and Enum.
5990         (mips): Use ToLower, Enum and Var.
5991         (mtune=): Use ToLower and Enum.
5992         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5993
5994 2011-05-08  Jan Hubicka  <jh@suse.cz>
5995
5996         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5997         Arrange type pairs to be UID ordered.
5998         (gimple_lookup_type_leader): Make inline.
5999
6000 2011-05-09  Nick Clifton  <nickc@redhat.com>
6001
6002         PR target/48899
6003         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6004         PROCESSOR_DEFAULT.
6005
6006         PR target/48897
6007         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6008         variable 's'.
6009
6010 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
6011
6012         * combine.c (simplify_comparison): Abstract out parts into...
6013         (simplify_compare_const): ... new function.
6014         (try_combine): Generalize parallel arithmetic/compare combining
6015         to call simplify_compare_const() and CANONICALIZE_COMPARE().
6016
6017 2011-05-08  Jan Hubicka  <jh@suse.cz>
6018
6019         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6020         (cgraph_create_virtual_clone): Call hooks once virtual clone
6021         is finished.
6022         * cgraph.h (cgraph_clone_node): Update prototype.
6023         * ipa-cp.c (ipcp_estimate_growth): Use
6024         estimate_ipcp_clone_size_and_time.
6025         * ipa-inline-transform.c (clone_inlined_nodes): Update.
6026         * lto-cgraph.c (input_node): Update.
6027         * ipa-inline.c (recursive_inlining): Update.
6028         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6029         (evaluate_conditions_for_known_args): Break out from ...
6030         (evaluate_conditions_for_edge): ... here.
6031         (evaluate_conditions_for_ipcp_clone): New function.
6032         (inline_node_duplication_hook): Update clone summary based
6033         on parameter map.
6034         (estimate_callee_size_and_time): Rename to ...
6035         (estimate_node_size_and_time): take NODE instead of EDGE;
6036         take POSSIBLE_TRUTHS as argument.
6037         (estimate_callee_size_and_time): Update.
6038         (estimate_ipcp_clone_size_and_time): New function.
6039         (do_estimate_edge_time): Update.
6040
6041 2011-05-08  Richard Guenther  <rguenther@suse.de>
6042
6043         PR middle-end/48908
6044         PR middle-end/48905
6045         * expmed.c (expand_shift_1): Compute adjusted constant shift
6046         amount manually.
6047
6048 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
6049
6050         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6051
6052 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
6053
6054         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6055
6056 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
6057
6058         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6059
6060 2011-05-07  Jan Hubicka  <jh@suse.cz>
6061
6062         * ipa-inline-transform.c (inline_call): Account when program size
6063         decreases.
6064         * ipa-inline.c (relative_time_benefit): New function.
6065         (edge_badness): Reorganize to be power 2 based; fix thinko when
6066         computing badness for negative growth; update comments to match
6067         reality; better dumps.
6068
6069 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6070
6071         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6072         type to bool and adjust comment.
6073         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6074         (fold_mathfn_compare): Remove calls to global_bindings_p.
6075         (fold_inf_compare): Likewise.
6076         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6077         * c-tree.h (global_bindings_p): Adjust prototype.
6078         * c-decl.c (global_bindings_p): Return bool and simplify.
6079
6080 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
6081
6082         PR tree-optimization/48837
6083         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6084         when accumulator transformation is performed.
6085
6086 2011-05-06  Jan Hubicka  <jh@suse.cz>
6087
6088         * i386.h (ix86_tune_indices): Add
6089         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6090         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6091         * i386.c (initial_ix86_tune_features): Add
6092         X86_SOFTARE_PREFETCHING_BENEFICIAL.
6093         (software_prefetching_beneficial_p): Remove predicate.
6094         (ix86_option_override_internal): Use new macro.
6095
6096 2011-05-06  Jan Hubicka  <jh@suse.cz>
6097
6098         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6099
6100 2011-05-06  Jan Hubicka  <jh@suse.cz>
6101
6102         * cgraph.c (cgraph_add_thunk): Create real function node instead
6103         of alias node; finalize it and mark needed/reachale; arrange visibility
6104         to be right and add it into the corresponding same comdat group list.
6105         (dump_cgraph_node): Dump thunks.
6106         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6107         cgraph_function_with_gimple_body_p,
6108         cgraph_first_function_with_gimple_body,
6109         cgraph_next_function_with_gimple_body): New functions.
6110         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6111         New macros.
6112         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6113         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6114         * cgraphunit.c (cgraph_finalize_function): Only look into possible
6115         devirtualization when optimizing.
6116         (verify_cgraph_node): Verify thunks.
6117         (cgraph_analyze_function): Analyze thunks.
6118         (cgraph_mark_functions_to_output): Output thunks only in combination
6119         with function they are assigned to.
6120         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6121         alias into normal node.
6122         (assemble_thunks): New functoin.
6123         (cgraph_expand_function): Use it.
6124         * lto-cgraph.c (lto_output_node): Stream thunks.
6125         (input_overwrite_node): Stream in thunks.
6126         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6127         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6128         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6129         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6130         (inline_analyze_function): Do not care about thunk jump functions.
6131         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6132         * ipa-prop.c (ipa_prop_write_jump_functions): Use
6133         cgraph_function_with_gimple_body_p.
6134         * passes.c (do_per_function_toporder): Use
6135         cgraph_function_with_gimple_body_p.
6136         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6137         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6138         (function_called_by_processed_nodes_p): Likewise.
6139
6140 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6141
6142         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6143         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6144         entries.
6145         (mabi=): Replace with separate entries for mabi=altivec,
6146         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6147         mabi=ieeelongdouble and mabi=ibmlongdouble.
6148         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6149         check for -mabi=spe without SPE ABI support here.
6150         (rs6000_handle_option): Replace OPT_mabi_ handling with
6151         OPT_mabi_altivec and OPT_mabi_spe handling.
6152
6153 2011-05-06  Cary Coutant  <ccoutant@google.com>
6154
6155         * dwarf2out.c (contains_subprogram_definition): New function.
6156         (should_move_die_to_comdat): Call it.
6157
6158 2011-05-06  Jeff Law  <law@redhat.com>
6159
6160         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6161         remove_ctrl_stmt_and_useless_edges.
6162         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6163         (fixup_template_block, thread_single_edge): Likewise.
6164         (mark_threaded_blocks): Use THREAD_TARGET.
6165
6166 2011-05-06  Alan Modra  <amodra@gmail.com>
6167
6168         PR target/48900
6169         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6170         const0_rtx as the arg to the dummy __tls_get_addr libcall.
6171
6172 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6173
6174         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6175         constraint modifier to "r".
6176
6177 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6178
6179         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6180         fall through for OPT_mcmodel_.
6181
6182 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6183
6184         * config/s390/s390.c (s390_asm_trampoline_template): Comment
6185         instruction sizes.
6186         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6187
6188 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6189
6190         PR target/47930
6191         * config/arm/arm.opt (marm): Document it.
6192         (mthumb): Reject negative variant.
6193
6194 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6195
6196         PR target/48898
6197         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6198         Fix typo in "ccvt" variable name.
6199
6200 2011-05-06  Tristan Gingold  <gingold@adacore.com>
6201
6202         PR target/48895
6203         * config/vms/vms-ar.c (main): Remove cwd variable.
6204
6205 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
6206
6207         PR debug/48902
6208         * var-tracking.c (prepare_call_arguments): Move else before #endif.
6209
6210 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
6211
6212         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6213         * gimplify.c (gimplify_switch_expr): Likewise.
6214         * omp-low.c (expand_omp_sections): Likewise.
6215         * tree-eh.c (lower_try_finally_switch): Likewise.
6216         (lower_eh_dispatch): Likewise.
6217         * tree.h (build_case_label): Declare.
6218         * tree.c (build_case_label): Define.
6219
6220 2011-05-05  Jason Merrill  <jason@redhat.com>
6221
6222         PR c++/40975
6223         * tree-inline.c (copy_tree_r): Use copy_statement_list.
6224         (copy_statement_list): Don't recurse.
6225         * stor-layout.c (copy_self_referential_tree_r): Don't allow
6226         STATEMENT_LIST.
6227
6228 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6229
6230         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6231         through from -mfpu= handling.
6232         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6233
6234 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
6235
6236         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6237         POST_MODIFY.
6238
6239 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
6240
6241         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6242         for 11.31.
6243         (hppa[12]*-*-hpux11*): Ditto.
6244         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6245         * config/ia64/hpux-unix2003.h: New.
6246         * config/pa/pa-hpux1131.opt: New.
6247         * config/pa/pa-hpux1131.h: New.
6248         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6249         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6250         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6251
6252 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6253
6254         PR debug/48853
6255         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6256         instead of mode as 3rd argument to recursive call.
6257         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6258         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6259         VOIDmode.
6260         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6261         don't give up if mode is Pmode and mem_mode is not VOIDmode.
6262         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6263         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6264
6265 2011-05-05  Julian Brown  <julian@codesourcery.com>
6266
6267         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6268         parenthesis in D-register case.
6269
6270 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6271
6272         * opt-functions.awk (var_type_struct): Handle Enum options.
6273         * optc-gen.awk: Don't check range of variables of character type.
6274         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6275         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6276         rs6000_sdata_name, rs6000_explicit_options): Remove.
6277         (rs6000_option_override_internal): Check for -malign-power here.
6278         Use global_options_set instead of rs6000_explicit_options.
6279         (rs6000_parse_fpu_option): Remove.
6280         (rs6000_handle_option): Access variables via opts and opts_set
6281         pointers.  Use error_at and warning_at.  Add fall-through
6282         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6283         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6284         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6285         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6286         here.  Don't use rs6000_parse_fpu_option.
6287         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6288         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6289         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6290         (mrecip=): Use Var.
6291         (mspe): Use Var and Save.
6292         (mtraceback=): Use Enum and Var.
6293         (rs6000_traceback_type): New Enum and EnumValue entries.
6294         (mfloat-gprs=): Use Enum, Var and Save.
6295         (rs6000_float_gprs): New Enum and EnumValue entries.
6296         (mlong-double-): use Var and Save.
6297         (msched-costly-dep=, minsert-sched-nops=): Use Var.
6298         (malign-): Use Enum and Var.
6299         (rs6000_alignment_flags): New Enum and EnumValue entries.
6300         (mfpu=): Use Enum.
6301         (fpu_type_t): New Enum and EnumValue entries.
6302         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6303         global_options_set instead of rs6000_explicit_options.
6304         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6305         global_options_set instead of rs6000_explicit_options.
6306         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6307         global_options_set instead of rs6000_explicit_options.
6308         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6309         global_options_set instead of rs6000_explicit_options.
6310         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6311         global_options_set instead of rs6000_explicit_options.
6312         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6313         global_options_set instead of rs6000_explicit_options.
6314         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6315         definition.
6316         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6317         global_options_set instead of rs6000_explicit_options.
6318         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6319         (rs6000_cmodel): New Enum and EnumValue entries.
6320         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6321         global_options_set instead of rs6000_explicit_options.
6322         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6323         (mtls-size=): Use Enum and Var.
6324         (rs6000_tls_size): New Enum and EnumValue entries.
6325
6326 2011-05-05  Michael Matz  <matz@suse.de>
6327
6328         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6329         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6330         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6331         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6332         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6333         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6334         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6335         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6336         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6337         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6338         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6339         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6340         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6341         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6342         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6343         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6344
6345 2011-05-05  Richard Guenther  <rguenther@suse.de>
6346
6347         * expmed.c (expand_variable_shift): Rename to ...
6348         (expand_shift_1): ... this.  Take an expanded shift amount.
6349         For rotates recurse directly not building trees for the shift amount.
6350         (expand_variable_shift): Wrap around expand_shift_1.
6351         (expand_shift): Adjust.
6352
6353 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6354
6355         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6356
6357 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
6358
6359         * tree.h (get_pending_sizes): Remove prototype.
6360         (put_pending_size): Likewise.
6361         (put_pending_sizes): Likewise.
6362         * stor-layout.c (pending_sizes): Delete.
6363         (get_pending_sizes): Likewise.
6364         (put_pending_size): Likewise.
6365         (put_pending_sizes): Likewise.
6366         (variable_size): Do not call put_pending_size and tidy up.
6367         * function.h (struct function): Remove dont_save_pending_sizes_p.
6368         * lto-streamer-in.c (input_function): Do not stream it.
6369         * lto-streamer-out.c (output_function): Likewise.
6370         * tree-inline.c (initialize_cfun): Do not copy it.
6371         * c-decl.c (store_parm_decls): Do not set it.
6372         * omp-low.c (create_task_copyfn): Likewise.
6373         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6374
6375 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
6376
6377         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6378         conditions.
6379         (*movdf_internal): Ditto.
6380         (*movdf_internal_nointeger): Ditto.
6381         (*movsf_internal): Ditto.
6382
6383 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6384
6385         * c-decl.c (finish_decl): Don't call get_pending_sizes.
6386         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
6387         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
6388         (c_variable_size): Remove.
6389         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
6390         call put_pending_sizes.
6391         (get_parm_info): Add parameter expr.  Use it to set
6392         arg_info->pending_sizes.
6393         (store_parm_decls): Use arg_info->pending_sizes instead or calling
6394         get_pending_sizes.
6395         * c-parser.c (c_parser_parms_declarator): Update call to
6396         c_parser_parms_list_declarator.
6397         (c_parser_parms_list_declarator): Take parameter expr.  Update
6398         call to push_parm_decl.  Update recursive call.  Don't call
6399         get_pending_sizes.  Update calls to get_parm_info.
6400         (c_parser_objc_method_definition): Update calls to
6401         c_parser_objc_method_decl and objc_start_method_definition.
6402         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6403         (c_parser_objc_method_decl): Add parameter expr.  Update call to
6404         grokparm.
6405         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6406         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6407         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6408
6409 2011-05-05  Michael Hope  <michael.hope@linaro.org>
6410
6411         PR pch/45979
6412         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6413         __ARM_EABI__ hosts.
6414
6415 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6416
6417         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6418         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6419         (spu_output_mi_thunk): New function.
6420
6421 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6422
6423         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6424         targetm.asm_out.print_operand.
6425         * config/sol2.c: Include target.h.
6426
6427 2011-05-04  Jan Hubicka  <jh@suse.cz>
6428
6429         * ipa-inline.c (reset_edge_caches): New function.
6430         (update_caller_keys): Add check_inlinablity_for; do not
6431         reset edge caches; remove now unnecesary loop.
6432         (update_callee_keys): Add comments; reset node_growth_cache of callee.
6433         (update_all_callee_keys): Likewise.
6434         (inline_small_functions): Sanity check cache; update code
6435         recomputing it.
6436
6437 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
6438
6439         PR rtl-optimization/47612
6440         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6441         as the last insn of the sequence to be moved.
6442
6443 2011-05-04  Tobias Burnus  <burnus@net-b.de>
6444
6445         PR fortran/48864
6446         * doc/invoke.texi (Ofast): Document that it
6447         enables Fortran's -fno-protect-parens.
6448
6449 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6450
6451         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6452
6453 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
6454
6455         * stor-layout.c (variable_size): Do not issue errors.
6456
6457 2011-05-04  Richard Guenther  <rguenther@suse.de>
6458
6459         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6460         for array-ref indices.
6461         (tree_coverage_counter_addr): Likewise.
6462         (build_fn_info_type): Use size_int for index types.
6463         (build_gcov_info): Likewise.
6464
6465 2011-05-04  Richard Guenther  <rguenther@suse.de>
6466
6467         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6468         to build_int_cst.
6469         * c-typeck.c (really_start_incremental_init): Use bitsize_int
6470         for constructor indices.
6471         (push_init_level): Likewise.
6472
6473 2011-05-04  Richard Guenther  <rguenther@suse.de>
6474
6475         * explow.c (promote_mode): Move variable declarations before code.
6476
6477 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
6478
6479         * tree.h (build_function_type_array): Declare.
6480         (build_varargs_function_type_array): Declare.
6481         (build_function_type_vec, build_varargs_function_type_vec): Define.
6482         * tree.c (build_function_type_array_1): New function.
6483         (build_function_type_array): New function.
6484         (build_varargs_function_type_array): New function.
6485
6486 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
6487
6488         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6489         before setting STMT_VINFO_TYPE.
6490
6491 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6492
6493         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6494         instead of spu_pass_by_reference.
6495
6496 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6497
6498         * calls.c (emit_library_call_value_1): Invoke
6499         promote_function_mode hook on libcall arguments.
6500         * explow.c (promote_function_mode, promote_mode): Handle TYPE
6501         argument being NULL.
6502         * targhooks.c (default_promote_function_mode): Lisewise.
6503         * config/s390/s390.c (s390_promote_function_mode): Likewise.
6504         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6505
6506         * doc/tm.texi: Document that TYPE argument might be NULL.
6507
6508 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6509
6510         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6511
6512 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6513
6514         From Bernd Schmidt
6515         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6516
6517 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6518
6519         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6520         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6521         Move ...
6522         * mips-tfile.c: ... here.
6523         Don't include coretypes.h, tm.h, filenames.h.
6524         (saber_stop): Remove definition and all calls.
6525         [__SABER__]: Remove.
6526         (__LINE__): Remove default.
6527         (Size_t, Ptrdiff_t): Remove definitions.
6528         Replace by size_t, ptrdiff_t.
6529         [!MIPS_DEBUGGING_INFO]: Remove.
6530         (SHASH_SIZE, THASH_SIZE): Remove defaults.
6531         (progname): Add const.
6532         (STATIC): Remove.
6533         Replace all uses by static.
6534         (ALIGN_SYMTABLE_OFFSET): Remove default.
6535         * mips-tdump.c: Don't include coretypes.h, tm.h.
6536         Remove !MIPS_IS_STAB guard.
6537         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6538         $(TM_H), filenames.h dependencies.
6539         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6540
6541 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6542
6543         From Jie Zhang
6544         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6545         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6546
6547 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6548
6549         From Bernd Schmidt
6550         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6551         account and save/restore RETS.
6552         (PROFILE_BEFORE_PROLOGUE): Define.
6553         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
6554         the push insn to use predecrement.
6555
6556 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6557
6558         From Jie Zhang
6559         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6560
6561 2011-05-04  Nick Clifton  <nickc@redhat.com>
6562
6563         * config/mn10300/mn10300.c: Include cfgloop.h.
6564         (DUMP): New macro.
6565         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
6566         Lcc or a FLcc insn into the instruction stream.
6567         (mn10300_block_contains_call): New function.  Returns true if the
6568         given basic block contains a CALL insn.
6569         (mn10300_loop_contains_call_insn): New function.  Returns true if
6570         the given loop contains a CALL insn.
6571         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
6572         to use the SETLB and Lcc or FLcc insns.
6573         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6574         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6575         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
6576         disable the SETLB optimization.
6577         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6578         __SETLB__ or __NO_SETLB__.
6579         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6580         (movsf_internal): Handle MDR register.
6581         (cmpsi): Make visible.
6582         (setlb): New pattern.
6583         (Lcc): New pattern.
6584         (FLcc): New pattern.
6585
6586 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6587
6588         PR target/48860
6589         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6590         for reg<->xmm moves.
6591         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6592         (vec_concatv2di_rex64_sse): Ditto.
6593         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6594         (*vec_extractv2di_1_rex64): Ditto.
6595
6596         Revert:
6597         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6598
6599         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6600         reg<->xmm moves.
6601         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6602
6603 2011-05-04  Richard Guenther  <rguenther@suse.de>
6604
6605         * tree.h (int_const_binop): Remove notrunc argument.
6606         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
6607         create integer constants that are properly truncated.
6608         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6609         (const_binop): Remove zero notrunc argument to int_const_binop.
6610         (size_binop_loc): Likewise.
6611         (fold_div_compare): Likewise.
6612         (maybe_canonicalize_comparison_1): Likewise.
6613         (fold_comparison): Likewise.
6614         (fold_binary_loc): Likewise.
6615         (multiple_of_p): Likewise.
6616         * expr.c (store_constructor): Likewise.
6617         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6618         (maybe_fold_stmt_addition): Likewise.
6619         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6620         * stor-layout.c (layout_type): Likewise.
6621         * tree-data-ref.c (tree_fold_divides_p): Likewise.
6622         * tree-sra.c (build_ref_for_offset): Likewise.
6623         (build_user_friendly_ref_for_offset): Likewise.
6624         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6625         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6626         * tree-ssa-loop-niter.c (inverse): Likewise.
6627         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6628         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6629         * tree-switch-conversion.c (check_range): Likewise.
6630         (build_constructors): Likewise.
6631         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6632         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6633         (extract_range_from_assert): Likewise.
6634         (vrp_int_const_binop): Likewise.
6635         (extract_range_from_binary_expr): Likewise.
6636         (extract_range_from_unary_expr): Likewise.
6637         (check_array_ref): Likewise.
6638         (find_case_label_range): Likewise.
6639         (simplify_div_or_mod_using_ranges): Likewise.
6640         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6641         comparing case labels for merging.
6642
6643 2011-05-03  Mark Wielaard  <mjw@redhat.com>
6644
6645         * dwarf2out.c (debug_str_hash_forced): Removed.
6646         (gen_label_for_indirect_string): Removed.
6647         (get_debug_string_label): Removed.
6648         (AT_string_form): Generate label directly.
6649         (output_indirect_string): Test indirect_string_node for
6650         DW_FORM_strp instead of checking label and refcount.
6651         (prune_indirect_string): Removed.
6652         (prune_unused_types): Don't check debug_str_hash_forced or
6653         call prune_indirect_string.
6654
6655 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6656
6657         PR other/48093
6658         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6659
6660 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6661
6662         PR debug/47994
6663         PR debug/47919
6664         * combine.c (try_combine): Skip debug insns at m_split tests.
6665
6666 2011-04-26  Mark Wielaard  <mjw@redhat.com>
6667
6668         PR42288
6669         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6670         when info_section_emitted.
6671
6672 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
6673
6674         * config/mips/mips-opts.h: New.
6675         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6676         to mips-opts.h.
6677         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6678         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6679         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
6680         via opts pointer.
6681         * config/mips/mips.h (enum mips_code_readable_setting): Move to
6682         mips-opts.h.
6683         (mips_abi, mips_code_readable): Don't declare.
6684         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6685         (mabi=): Use Enum and Var.
6686         (mips_abi): New Enum and EnumValue entries.
6687         (mcode-readable=): Use Enum and Var.
6688         (mips_code_readable_setting): New Enum and EnumValue entries.
6689         (mr10k-cache-barrier=): Use Enum and Var.
6690         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6691
6692 2011-05-03  Jan Hubicka  <jh@suse.cz>
6693
6694         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6695         replace hash by pointer map.
6696         (cgraph_node_set_element_def, cgraph_node_set_element,
6697         const_cgraph_node_set_element, varpool_node_set_element_def,
6698         varpool_node_set_element, const_varpool_node_set_element): Remove.
6699         (free_cgraph_node_set, free_varpool_node_set): New function.
6700         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6701         * tree-emutls.c: Free varpool node set.
6702         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6703         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6704         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6705         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6706         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6707         Move here from ipa.c; implement using pointer_map
6708         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6709         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6710         debug_cgraph_node_set, varpool_node_set_new,
6711         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6712         dump_varpool_node_set, debug_varpool_node_set):
6713         Move to ipa-uitls.c.
6714         * passes.c (ipa_write_summaries): Update.
6715
6716 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6717
6718         From Mike Frysinger:
6719         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6720         bf542/bf544/bf547/bf548/bf549.
6721
6722 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
6723
6724         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6725
6726 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6727
6728         From Bernd Schmidt:
6729         * config/bfin/bfin.md (MOVCC): New mode_macro.
6730         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6731         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
6732         comments from generated assembly.
6733
6734 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6735
6736         From Bernd Schmidt
6737         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6738         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6739         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6740         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6741         * config/bfin/lib1funcs.asm (___muldi3): New function.
6742
6743 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6744
6745         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6746         build_function_type_list instead of build_function_type.
6747         Rearrange initialization of `args' to do so.
6748
6749 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6750
6751         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6752         instead of build_function_type.
6753
6754 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6755
6756         * config/rs6000/rs6000.c (spe_init_builtins): Call
6757         build_function_type_list instead of build_function_type.
6758         (paired_init_builtins, altivec_init_builtins): Likewise.
6759         (builtin_function_type): Likewise.
6760
6761 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6762
6763         * config/sh/sh.c (sh_media_init_builtins): Call
6764         build_function_type_list instead of build_function_type.
6765
6766 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6767
6768         * config/sparc/sparc.c (sparc_file_end): Call
6769         build_function_type_list instead of build_function_type.
6770
6771 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6772
6773         * config/alpha/alpha.c (alpha_init_builtins): Call
6774         build_function_type_list instead of build_function_type.
6775
6776 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6777
6778         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6779         build_function_type_list instead of build_function_type.
6780
6781 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6782
6783         * config/iq2000/i2000.c (iq2000_init_builtins): Call
6784         build_function_type_list instead of build_function_type.
6785         Delete `endlink' variable.
6786
6787 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6788
6789         * config/avr/avr.c (avr_init_builtins): Call
6790         build_function_type_list instead of build_function_type.
6791
6792 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6793
6794         * config/picochip/picochip.c (picochip_init_builtins): Call
6795         build_function_type_list instead of build_function_type.
6796         Delete `endlink' variable.
6797
6798 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6799
6800         * config/bfin/bfin.c (bfin_init_builtins): Call
6801         build_function_type_list instead of build_function_type.
6802
6803 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6804
6805         From Bernd Schmidt
6806         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6807         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
6808
6809 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6810
6811         From Jie Zhang:
6812         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6813         libbffastfp overrides libgcc when -mfast-fp.
6814
6815 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6816
6817         Originally from Bernd Schmidt
6818         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6819         * config/bfin/bfin.c (override_options): Test it and error if
6820         TARGET_FDPIC.
6821
6822 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6823
6824         Originally From Bernd Schmidt
6825         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6826         FD-PIC.
6827
6828 2011-05-03  Jeff Law  <law@redhat.com>
6829
6830         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6831         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6832         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6833         than accessing AUX field directly.  Free the AUX field before
6834         clearing it.
6835         (thread_block, thread_through_loop_header): Likewise.
6836         (thread_single_edge, mark_threaded_blocks): Likewise.
6837         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
6838         (register_jump_thread): Do not attempt to thread to a NULL edge.
6839
6840 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
6841
6842         * function.c (init_function_start): Call decide_function_section.
6843         * varasm.c (decide_function_section): New function.
6844         (assemble_start_function): When not using
6845         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6846         or first_function_block_is_cold.
6847         * rtl.h (decide_function_section): Declare.
6848
6849 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
6850             Jakub Jelinek  <jakub@redhat.com>
6851
6852         PR target/48774
6853         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6854         only succeed if req_mode is the same as set_mode.
6855
6856 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
6857
6858         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6859         * genemit.c (gen_exp): Handle RETURN.
6860         * emit-rtl.c (verify_rtx_sharing): Likewise.
6861         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6862         * rtl.c (copy_rtx): RETURN is shared.
6863         * rtl.h (enum global_rtl_index): Add GR_RETURN.
6864         (ret_rtx): New.
6865         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6866         * config/s390/s390.c (s390_emit_epilogue): Likewise.
6867         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6868         * config/cris/cris.c (cris_expand_return): Likewise.
6869         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6870         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6871         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6872         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6873         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6874         Likewise.
6875         * config/v850/v850.c (expand_epilogue): Likewise.
6876         * config/bfin/bfin.c (bfin_expand_call): Likewise.
6877         * config/arm/arm.md (epilogue): Likewise.
6878         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6879         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6880         variable to ret_reg.
6881
6882 2011-05-03  Richard Guenther  <rguenther@suse.de>
6883
6884         PR lto/48846
6885         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6886         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6887         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6888
6889 2011-05-03  Richard Guenther  <rguenther@suse.de>
6890
6891         * c-decl.c (grokdeclarator): Instead of looking at
6892         TREE_OVERFLOW check if the constant fits in the index type.
6893
6894 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6895
6896         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6897         (vec_store_lanes<mode><mode>): Likewise.
6898
6899 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6900
6901         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6902         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6903         convert_optab_index values.
6904         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6905         * genopinit.c (optabs): Initialize the new optabs.
6906         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6907         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6908         (expand_STORE_LANES): New functions.
6909         * tree.h (build_array_type_nelts): Declare.
6910         * tree.c (build_array_type_nelts): New function.
6911         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6912         (vect_model_load_cost): Likewise.
6913         (vect_store_lanes_supported, vect_load_lanes_supported)
6914         (vect_record_strided_load_vectors): Declare.
6915         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6916         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6917         (vect_transform_strided_load): Split out statement recording into...
6918         (vect_record_strided_load_vectors): ...this new function.
6919         * tree-vect-stmts.c (create_vector_array, read_vector_array)
6920         (write_vector_array, create_array_ref): New functions.
6921         (vect_model_store_cost): Add store_lanes_p argument.
6922         (vect_model_load_cost): Add load_lanes_p argument.
6923         (vectorizable_store): Try to use store-lanes functions for
6924         interleaved stores.
6925         (vectorizable_load): Likewise load-lanes and loads.
6926         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6927         to vect_model_store_cost.
6928         (vect_build_slp_tree): Likewise vect_model_load_cost.
6929
6930 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
6931
6932         * hooks.h (hook_bool_mode_uhwi_false): Declare.
6933         * hooks.c (hook_bool_mode_uhwi_false): New function.
6934         * target.def (array_mode_supported_p): New hook.
6935         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6936         * doc/tm.texi: Regenerate.
6937         * stor-layout.c (mode_for_array): New function.
6938         (layout_type): Use it.
6939         * config/arm/arm.c (arm_array_mode_supported_p): New function.
6940         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6941
6942 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
6943
6944         PR target/48723
6945         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6946         for -fstack-check if the size to allocate is negative.
6947
6948 2011-05-02  Lawrence Crowl  <crowl@google.com>
6949
6950         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6951         (timevar_cond_start): New for starting a timer only when it is not
6952         already running.
6953         (timevar_cond_stop): New for stopping a timer when it was not already
6954         running.
6955
6956         * timevar.c (timevar_stop): Enable start/stop timers to start again.
6957         (timevar_cond_start): New as above.
6958         (timevar_cond_stop): New as above.
6959
6960         * timevar.def: Add start/stop timers for compiler phases,
6961         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6962         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6963         and TV_PHASE_FINALIZE.
6964         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6965         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6966         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6967         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6968         Make unused TV_OVERLOAD into a start/stop timer.
6969
6970         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6971         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6972         to indicate that they are start/stop timers.
6973
6974         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6975         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6976         Move initialization to do_compile.
6977         (do_compile): Add initialization from above.
6978         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6979
6980         * c-decl.c (c_write_global_declarations): Add start/stop of
6981         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6982
6983         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6984         or TV_PARSE_INLINE, as appropriate.
6985         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6986         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6987
6988 2011-05-02  Jason Merrill  <jason@redhat.com>
6989
6990         PR c++/40975
6991         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6992
6993 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
6994
6995         PR c/35445
6996         * c-decl.c (finish_decl): Only create a composite if the types are
6997         compatible.
6998
6999 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
7000
7001         * config/fr30/fr30-protos.h (Mmode): Don't define.
7002         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
7003         definition where used.
7004         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7005         define.  Expand definitions where used.
7006         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7007         Expand definitions where used.
7008         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7009         rx_function_arg, rx_function_arg_advance,
7010         rx_function_arg_boundary): Expand definitions of those macros.
7011         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
7012         definition where used.
7013
7014 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7015
7016         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7017         reg<->xmm moves.
7018         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7019         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
7020         with *movv2sf_internal_rex64_avx.
7021         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7022         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7023         Use %v prefix in insn mnemonic to handle TARGET_AVX.
7024         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
7025         "vex" in "prefix" attribute calculation.
7026         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
7027
7028 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
7029
7030         PR target/47951
7031         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7032         inputs match the output.
7033
7034 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
7035
7036         PR target/47955
7037         * config/m68k/m68k.c (m68k_expand_prologue): Set
7038         current_function_static_stack_size.
7039
7040 2011-05-02   Jan Hubicka  <jh@suse.cz>
7041
7042         * lto-streamer.c (lto_streamer_cache_insert_1,
7043         lto_streamer_cache_lookup, lto_streamer_cache_create,
7044         lto_streamer_cache_delete): Use pointer map instead of hashtable.
7045         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7046
7047 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
7048
7049         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7050         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7051         config/m68k/t-opts: New files.
7052         * config/m68k/m68k-tables.opt: New file (generated).
7053         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7054         extra_options and m68k/t-opts to tmake_file.
7055         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7056         (all_isas): Initialize using m68k-isas.def.
7057         (all_microarchs): Initialize using m68k-microarchs.def.
7058         (m68k_find_selection): Remove.
7059         (m68k_handle_option): Don't assert that global structures are in
7060         use.  Use error_at.  Access variables via opts pointer.  Don't
7061         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
7062         directly for -m68020-40 and -m68020-60.
7063         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7064         m68k_tune_entry here.
7065         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7066         to m68k-opts.h.
7067         (m68k_library_id_string): Remove declaration.
7068         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7069         (m68k_library_id_string): New Variable.
7070         (march=, mcpu=, mtune=): Use Enum and Var.
7071
7072 2011-05-02  Richard Guenther  <rguenther@suse.de>
7073
7074         * varasm.c (output_constructor_regular_field): Compute zero-based
7075         index with double-ints.  Make sure to ICE instead of producing
7076         wrong code.
7077         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7078         in asserts.  Properly use a signed type.
7079
7080 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7081
7082         * config/i386/sse.md (V): New mode iterator.
7083         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
7084         TARGET_SSE2.
7085         (V_256): Rename from AVX256MODE.
7086         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
7087         condition to all users.
7088         (VF1): Ditto.
7089         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
7090         condition to all users.
7091         (VF_128): Make V4SF mode unconditional.
7092         (VF_256): Rename from AVX256MODEF2P.
7093         (VI4F_128): Rename from SSEMODE4S.
7094         (VI8F_128): Rename from SSEMODE2D.
7095         (VI4F_256): Rename from AVX256MODE8P.
7096         (VI8F_256): Rename from AVX256MODE4P.
7097         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7098         (ssescalarmodesuffix): Remove SF and DF modes.
7099         (SSEMODE124): Remove.
7100         (SSEMODE1248): Ditto.
7101         (SSEMODEF2P): Ditto.
7102         (AVXMODEF2P): Ditto.
7103         (AVXMODEFDP): Ditto.
7104         (AVXMODEFSP): Ditto.
7105         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7106         unconditional.
7107         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
7108         unconditional.
7109         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7110         xop_pcmov_<mode>256.  Use V mode iterator.
7111
7112         Adjust RTX patterns globally for renamed mode attributes.
7113
7114 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7115
7116         * haifa-sched.c (sched_emit_insn): Emit insn before first
7117         non-scheduled insn.  Inform back-end about new insn.  Add
7118         new insn to scheduled_insns list.
7119
7120 2011-05-02  Richard Guenther  <rguenther@suse.de>
7121
7122         PR tree-optimization/48822
7123         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7124         (process_scc): Indicate which iteration we start.
7125
7126 2011-05-02  Jan Hubicka  <jh@suse.cz>
7127
7128         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7129         (lto_section_overrun): New.
7130         * lto-section-out.c (append_block): Rename to ...
7131         (lto_append_block): ... this one; export.
7132         (lto_output_1_stream): Move lto lto-streamer.h
7133         (lto_output_data_stream): Update.
7134         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7135         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7136         functions.
7137
7138 2011-05-02  Richard Guenther  <rguenther@suse.de>
7139
7140         * tree.c (tree_code_counts): New global array.
7141         (record_node_allocation_statistics): Count individual tree codes.
7142         (dump_tree_statistics): Dump individual code stats.
7143
7144 2011-05-01  Jan Hubicka  <jh@suse.cz>
7145
7146         * ipa-inline.c (caller_growth_limits): Fix thinko when
7147         looking for largest stack frame.
7148         * ipa-inline.h (dump_inline_summary): Declare.
7149         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7150         on stack usage.
7151         (dump_inline_summary): Export.
7152         (debug_inline_summary): Declare as DEBUG_FUNCTION.
7153
7154 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
7155
7156         * reginfo.c (memory_move_cost): Change rclass argument type form
7157         'enum reg_class' to reg_class_t.
7158         * reload.h (memory_move_cost): Update prototype.
7159         * postreload.c reload_cse_simplify_set): Change type dclass var to
7160         reg_class_t.
7161         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7162         Update prototype.
7163         (ira_allocate_and_set_costs): Change aclass argument type form
7164         'enum reg_class' to reg_class_t.
7165         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7166         Change aclass argument type to reg_class_t.
7167         (update_conflict_hard_reg_costs): Change type aclass and pref vars
7168         to reg_class_t.
7169         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7170         memory_move_cost call.
7171
7172         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7173         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7174         Change type tmp var to reg_class_t.
7175
7176 2011-04-30  Jan Hubicka  <jh@suse.cz>
7177
7178         * ipa-inline.c (can_inline_edge_p): Disregard limits when
7179         inlining into function with flatten attribute.
7180         (want_inline_small_function_p): Be more realistic about inlining
7181         cold calls where callee size grows.
7182
7183 2011-04-30  Jan Hubicka  <jh@suse.cz>
7184
7185         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7186         flags.
7187
7188 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
7189
7190         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7191         PRINT_OPERAND_PUNCT_VALID_P): Remove.
7192         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7193         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7194         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7195         (print_operand): Rename to...
7196         (sparc_print_operand): ...this. Make static. Adjust
7197         sparc_print_operand function call.
7198         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7199         functions.
7200
7201 2011-04-30  Jan Hubicka  <jh@suse.cz>
7202
7203         PR middle-end/48752
7204         * ipa-inline.c (early_inliner): Disable when doing late
7205         addition of function.
7206
7207 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
7208
7209         * dwarf2out.c (get_address_mode): New inline.
7210         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7211         if not dwarf_strict emit
7212         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7213         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7214         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
7215         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7216         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7217         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7218         mem_loc_descriptor callers.
7219         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7220         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7221         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7222         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7223         (base_types): New variable.
7224         (get_base_type_offset, calc_base_type_die_sizes,
7225         base_type_for_mode, mark_base_types, base_type_cmp,
7226         move_marked_base_types): New functions.
7227         (calc_die_sizes): Assert that die_offset is 0 or equal to
7228         next_die_offset.
7229         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7230         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
7231         callers.  If not dwarf_strict, call mem_loc_descriptor even for
7232         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7233         (gen_subprogram_die): Don't give up on call site parameters
7234         with non-integral or large integral modes.  Adjust
7235         mem_loc_descriptor callers.
7236         (prune_unused_types): Call prune_unused_types_mark on base_types
7237         vector entries.
7238         (resolve_addr): Call mark_base_types.
7239         (dwarf2out_finish): Call move_marked_base_types.
7240
7241         PR tree-optimization/48809
7242         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7243         type.
7244         (gen_inbound_check): Don't compute index_expr - range_min in utype
7245         again, instead reuse SSA_NAME initialized in build_arrays.
7246         Remove two useless gsi_for_stmt calls.
7247
7248 2011-04-29  Jeff Law  <law@redhat.com>
7249
7250         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7251
7252 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7253
7254         * cgraph.h (cgraph_postorder): Remove declaration.
7255         * ipa-utils.h (ipa_free_postorder_info): Declare.
7256         (ipa_reverse_postorder): Likewise.
7257         * cgraphunit.c: Include ipa-utils.h.
7258         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7259         * ipa-inline.c: Include ipa-utils.h.
7260         (ipa_inline): Update call to ipa_reverse_postorder.
7261         * ipa-pure-const.c (propagate_pure_const): Update call to
7262         ipa_reduced_postorder and ipa_print_order.  Call
7263         ipa_free_postorder_info to clean up.
7264         (propagate_nothrow): Likewise.
7265         * ipa-reference.c (propagate): Removed a useless call to
7266         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7267         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
7268         * ipa.c: Include ipa-utils.h.
7269         (ipa_profile): Update call to ipa_reverse_postorder.
7270         (cgraph_postorder): Moved to...
7271         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7272         (ipa_utils_print_order): Renamed to ipa_print_order.
7273         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7274         comments.
7275         (ipa_free_postorder_info): New function.
7276         * passes.c: Include ipa-utils.h.
7277         (do_per_function_toporder): Update call to ipa_reverse_postorder.
7278         (ipa_write_summaries): Likewise.
7279         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7280         (cgraphunit.o): Likewise.
7281         (ipa.o): Likewise.
7282         (ipa-inline.o): Likewise.
7283
7284 2011-04-29  Jan Hubicka  <jh@suse.cz>
7285
7286         * gcc.dg/tree-ssa/inline-10.c: New testcase.
7287         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7288         * ipa-inline.h (clause_t): Turn into unsigned int.
7289         * ipa-inline-analysis.c (add_clause): Do more simplification.
7290         (and_predicates): Shortcut more cases.
7291         (predicates_equal_p): Move forward; check that clauses are properly
7292         ordered.
7293         (or_predicates): Shortcut more cases.
7294         (edge_execution_predicate): Rewrite as...
7295         (set_cond_stmt_execution_predicate): ... this function; handle
7296         __builtin_constant_p.
7297         (set_switch_stmt_execution_predicate): New .
7298         (compute_bb_predicates): New.
7299         (will_be_nonconstant_predicate): Update TODO.
7300         (estimate_function_body_sizes): Use compute_bb_predicates
7301         and free them later, always try to estimate if stmt is constant.
7302         (estimate_time_after_inlining, estimate_size_after_inlining):
7303         Gracefully handle optimized out edges.
7304         (read_predicate): Fix off by one error.
7305
7306 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7307
7308         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7309
7310 2011-04-27  Xinliang David Li  <davidxl@google.com>
7311
7312         * tree-profile.c (init_ic_make_global_vars): Set
7313         tls attribute on ic vars.
7314         * coverage.c (coverage_end_function): Initialize
7315         function_list with zero.
7316
7317 2011-04-29  Richard Guenther  <rguenther@suse.de>
7318
7319         * builtins.c (fold_builtin_classify_type): Use integer_type_node
7320         for the type of the result.
7321         (fold_builtin_isascii): Likewise.
7322         (fold_builtin_toascii): Use integer_type_node where appropriate.
7323         (fold_builtin_logb): Likewise.
7324         (fold_builtin_frexp): Likewise.
7325         (fold_builtin_strstr): Likewise.
7326         (fold_builtin_strpbrk): Likewise.
7327         (fold_builtin_fputs): Likewise.
7328         (fold_builtin_sprintf): Likewise.
7329         (fold_builtin_snprintf): Likewise.
7330         (fold_builtin_printf): Likewise.
7331         (do_mpfr_remquo): Use a proper type for the assigned constant.
7332         (do_mpfr_lgamma_r): Likewise.
7333         * dwarf2out.c (resolve_one_addr): Use size_int.
7334         * except.c (init_eh): Likewise.
7335         (assign_filter_values): Use integer_type_node for filter values.
7336         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7337         indices.
7338         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7339         for EH region numbers.
7340         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7341         for the shift amount.
7342
7343 2011-04-29  Richard Guenther  <rguenther@suse.de>
7344
7345         * expr.h (expand_shift): Rename to ...
7346         (expand_variable_shift): ... this.
7347         (expand_shift): Take a constant shift amount.
7348         * expmed.c (expand_shift): Rename to ...
7349         (expand_variable_shift): ... this.
7350         (expand_shift): New wrapper around expand_variable_shift.
7351         * expr.c (convert_move, emit_group_load_1, emit_group_store,
7352         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7353         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7354         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7355         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7356         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7357         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7358         emit_store_flag_1, emit_store_flag): Likewise.
7359         * builtins.c (expand_builtin_signbit): Likewise.
7360         * calls.c (load_register_parameters): Likewise.
7361         * function.c (assign_parm_setup_block): Likewise.
7362         * lower-subreg.c (resolve_shift_zext): Likewise.
7363         * optabs.c (widen_bswap, expand_abs_nojump,
7364         expand_one_cmpl_abs_nojump, expand_float): Likewise.
7365         * spu/spu.c (spu_expand_extv): Likewise.
7366         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7367
7368 2011-04-29  Richard Guenther  <rguenther@suse.de>
7369
7370         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7371         for the remapped region number.
7372         * predict.c (build_predict_expr): Use integer_type_node for the
7373         predict kind.
7374         * fold-const.c (fold_binary_loc): Use integer_type_node for
7375         the shift amount.  Use a proper type for the PLUS_EXPR operand.
7376
7377 2011-04-29  Michael Matz  <matz@suse.de>
7378
7379         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7380         other trees that just builtins.
7381         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7382
7383 2011-04-29  Richard Guenther  <rguenther@suse.de>
7384
7385         * tree-nested.c (get_trampoline_type): Use size_int.
7386         (get_nl_goto_field): Likewise.
7387         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7388         for all indexes.
7389         (lower_eh_constructs_2): Likewise.
7390         (lower_resx): Likewise.
7391         (lower_eh_dispatch): Likewise.
7392         * tree-mudflap.c (mf_build_string): Use size_int.
7393         (mudflap_register_call): Use integer_type_node for the flag.
7394         (mudflap_enqueue_constant): Use size_int.
7395         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7396         instead of rebuilding it.
7397
7398 2011-04-29  Richard Guenther  <rguenther@suse.de>
7399
7400         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7401         Handle OBJ_TYPE_REF.
7402         (find_func_aliases_for_call): Use it more consistently.
7403
7404 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
7405
7406         * haifa-sched.c (last_nondebug_scheduled_insn): New.
7407         (rank_for_schedule): Use it.
7408         (schedule_block): Set it.
7409
7410 2011-04-28  David Li  <davidxl@google.com>
7411
7412         * tree.c (crc32_string): Use crc32_byte.
7413         (crc32_byte): New function.
7414         * tree.h (crc32_byte): New function.
7415         * gcov.c (read_graph_file): Handle new cfg_cksum.
7416         (read_count_file): Ditto.
7417         * profile.c (instrument_values): Ditto.
7418         (get_exec_counts): Ditto.
7419         (read_profile_edge_counts): Ditto.
7420         (compute_branch_probabilities): Ditto.
7421         (compute_value_histograms): Ditto.
7422         (branch_prob): Ditto.
7423         (end_branch_prob): Ditto.
7424         * coverage.c (read_counts_file): Ditto.
7425         (get_coverage_counts): Ditto.
7426         (tree_coverage_counter_addr): Ditto.
7427         (coverage_checksum_string): Ditto.
7428         (coverage_begin_output): Ditto.
7429         (coverage_end_function): Ditto.
7430         (build_fn_info_type): Ditto.
7431         (build_fn_info_value): Ditto.
7432         * libgcov.c (gcov_exit): Ditto.
7433         * gcov-dump.c (tag_function): Ditto.
7434         (compute_checksum): Remove.
7435
7436 2011-04-29  Alan Modra  <amodra@gmail.com>
7437
7438         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7439         unspec plus offset.  Tidy macho code.
7440
7441 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7442
7443         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7444         node instead of a decl.  Update all callers.
7445         * cgraph.h: Update declaration.
7446
7447 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
7448
7449         PR tree-optimization/48765
7450         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7451         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7452         to indicate if loop aware SLP is being used.  Scan the statements
7453         and update the vectorization factor according to the type of
7454         vectorization before statement analysis.
7455         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7456         pass it to vect_analyze_loop_operations.
7457         (vectorizable_reduction): Set number of copies to 1 in case of pure
7458         SLP statement.
7459         * tree-vect-stmts.c (vectorizable_conversion,
7460         vectorizable_assignment, vectorizable_shift,
7461         vectorizable_operation, vectorizable_type_demotion,
7462         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7463         Likewise.
7464         (vectorizable_condition): Move the check that it is not SLP
7465         vectorization before the number of copies check.
7466         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7467         to vectorize the loop using SLP.
7468
7469 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
7470
7471         PR middle-end/48597
7472         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7473         inline asm.
7474
7475 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
7476
7477         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7478         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7479         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7480         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7481         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7482         linux*.h headers.
7483         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7484         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7485         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7486         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7487         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7488         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7489         REG_NAME.
7490         * config/i386/linux.h (REG_NAME): Don't define.
7491         * config/i386/linux64.h (REG_NAME): Don't define.
7492         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7493         Undefine before defining.
7494
7495 2011-04-28  Jan Hubicka  <jh@suse.cz>
7496
7497         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7498         nonconstant_names array.
7499         (estimate_function_body_sizes): Build nonconstant_names array; handle
7500         BUILT_IN_CONSTANT_P.
7501
7502 2011-04-28  Richard Guenther  <rguenther@suse.de>
7503
7504         PR bootstrap/48804
7505         Revert
7506         2011-04-28  Richard Guenther  <rguenther@suse.de>
7507
7508         * tree-ssa-structalias.c (solve_constraints): Build succ graph
7509         as late as possible.
7510
7511 2011-04-28  Richard Guenther  <rguenther@suse.de>
7512
7513         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7514         (debug_constraint): Do it here.
7515         (dump_constraints): And here.
7516         (rewrite_constraints): And here.
7517         (dump_constraint_edge): Remove.
7518         (dump_constraint_graph): Rewrite to produce DOT output.
7519         (solve_constraints): Build succ graph as late as possible.
7520         Dump constraint graphs before and after solving.
7521
7522 2011-04-28  Richard Guenther  <rguenther@suse.de>
7523
7524         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7525         New function split out from ...
7526         (find_func_aliases): ... here.  Call it.
7527         (find_func_aliases_for_call): Likewise.
7528
7529 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7530
7531         * internal-fn.h (internal_fn_name_array): Declare.
7532         (internal_fn_flags_array): Likewise.
7533
7534 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7535
7536         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
7537         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7538         Move from sse.md.
7539         (ssemodefsuffix): Remove.
7540         (ssevecmodesuffix): New mode attribute.
7541         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7542         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7543         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7544         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7545         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7546         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7547         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7548         ssemodesuffix mode attribute.
7549         (float splitters): Use ssevecmodesuffix mode attribute.
7550         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7551         (sseinsmode): Rename from avxvecmode.
7552         (avxsizesuffix): Rename from avxmodesuffix.
7553         (sseintvecmode): Rename from avxpermvecmode.
7554         (ssedoublevecmode): Rename from ssedoublesizemode.
7555         (ssehalfvecmode): Rename from avxhalfvecmode.
7556         (ssescalarmode): Rename from avxscalarmode.
7557         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7558         templates for ssemodesuffix mode attribute.
7559         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7560         mode attribute.
7561
7562         Adjust RTX patterns globally for renamed mode attributes.
7563
7564 2011-04-27  Jan Hubcika  <jh@suse.cz>
7565
7566         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7567         * ipa-inline-analysis.c: Include alloc-pool.h.
7568         (edge_predicate_pool): New.
7569         (trye_predicate_p): New function
7570         (false_predicate_p): New function.
7571         (add_clause): Sanity check that false clauses are "optimized";
7572         never add clauses to predicate that is already known to be false.
7573         (and_predicate): Use flase_predicate_p.
7574         (evaulate_predicate): Rename to ...
7575         (evaluate_predicate): ... this one; update all callers; assert
7576         that false is not listed among possible truths.
7577         (dump_predicate): Use true_predicate_p.
7578         (account_size_time): Use false_predicate_p.
7579         (evaulate_conditions_for_edge): Rename to ...
7580         (evaluate_conditions_for_edge) ... this one.
7581         (edge_set_predicate): New function.
7582         (inline_edge_duplication_hook): Duplicate edge predicates.
7583         (inline_edge_removal_hook): Free edge predicates.
7584         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7585         (dump_inline_summary): Update.
7586         (estimate_function_body_sizes): Set edge predicates.
7587         (estimate_calls_size_and_time): Handle predicates.
7588         (estimate_callee_size_and_time): Update.
7589         (remap_predicate): Add toplev_predicate; update comment.
7590         (remap_edge_predicates): New function.
7591         (inline_merge_summary): Compute toplev predicate; update.
7592         (read_predicate): New function.
7593         (read_inline_edge_summary): Use it.
7594         (inline_read_section): Likewise.
7595         (write_predicate): New function.
7596         (write_inline_edge_summary): Use it.
7597         (inline_write_summary): Likewise.
7598         (inline_free_summary): Free alloc pool and edge summary vec.
7599
7600 2011-04-27  Richard Guenther  <rguenther@suse.de>
7601
7602         * tree-ssa-structalias.c (changed_count): Remove.
7603         (changed): Use a bitmap.
7604         (unify_nodes): Adjust.
7605         (do_sd_constraint): Likewise.
7606         (do_ds_constraint): Likewise.
7607         (do_complex_constraint): Likewise.
7608         (solve_graph): Likewise.
7609
7610 2011-04-27  Jan Hubicka  <jh@suse.cz>
7611
7612         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7613
7614 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7615
7616         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7617         (avx_vperm2f128_*_operand): Ditto.
7618         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7619         Use avx_vpermilp_parallel in insn condition.
7620         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7621         Use avx_vperm2f128_parallel in insn condition.
7622
7623 2011-04-27  Richard Guenther  <rguenther@suse.de>
7624
7625         * Makefile.in (tree-ssa-structalias.o): Remove
7626         gt-tree-ssa-structalias.h dependency.
7627         (GTFILES): Remove tree-ssa-structalias.c.
7628         * tree.c (allocate_decl_uid): New function.
7629         (make_node_stat): Use it.
7630         (copy_node_stat): Likewise.
7631         * tree.h (allocate_decl_uid): Declare.
7632         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7633         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7634         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7635         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7636         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7637         (struct heapvar_map): Likewise.
7638         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7639         heapvar_insert): Likewise.
7640         (make_heapvar_for): Rename to ...
7641         (make_heapvar): ... this.  Simplify.
7642         (fake_var_decl_obstack): New global var.
7643         (build_fake_var_decl): New function.
7644         (make_constraint_from_heapvar): Adjust.
7645         (handle_lhs_call): Likewise.
7646         (create_function_info_for): Likewise.
7647         (intra_create_variable_infos): Likewise.
7648         (init_alias_vars): Allocate fake_var_decl_obstack.
7649         (init_alias_heapvars, delete_alias_heapvars): Remove.
7650         (compute_points_to_sets): Do not call init_alias_heapvars.
7651         (ipa_pta_execute): Likewise.
7652         (delete_points_to_sets): Free fake_var_decl_obstack.
7653
7654 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7655
7656         * config/spu/divmovti4.c (union qword_UTItype): New data type.
7657         (si_from_UTItype, si_to_UTItype): New functions.
7658         (__udivmodti4): Use them to implement type-punning.
7659         * config/spu/multi3.c (union qword_TItype): New data type.
7660         (si_from_TItype, si_to_TItype): New functions.
7661         (__multi3): Use them to implement type-punning.
7662
7663 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7664
7665         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7666
7667 2011-04-27  Jan Hubicka  <jh@suse.cz>
7668
7669         * ipa-prop.c (function_insertion_hook_holder): New holder.
7670         (ipa_add_new_function): New function.
7671         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7672         Register/deregister holder.
7673
7674 2011-04-27  Richard Guenther  <rguenther@suse.de>
7675
7676         PR tree-optimization/48772
7677         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7678
7679 2011-04-27  Richard Guenther  <rguenther@suse.de>
7680
7681         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7682         TARGET_MEM_REF handling.
7683
7684 2011-04-27  Nick Clifton  <nickc@redhat.com>
7685
7686         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7687         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7688         (REG_CLASS_NAMES): Likewise.
7689         (REG_CLASS_CONTENTS): Likewise.
7690         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7691         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7692         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
7693         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
7694         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
7695         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7696         duplicate register classes.
7697         (frv_class_likely_spilled_p): Likewise.
7698         (frv_register_move_cost): Likewise.
7699
7700         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7701         end of the regno_reg_class array.
7702
7703 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
7704
7705         PR c/48742
7706         * c-typeck.c (build_binary_op): Don't wrap arguments if
7707         int_operands is true.
7708
7709 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
7710
7711         PR target/48767
7712         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7713         targetm.calls.must_pass_in_stack for void type.
7714
7715 2011-04-26  Jan Hubicka  <jh@suse.cz>
7716
7717         * cgraphbuild.c (build_cgraph_edges): Update call
7718         of cgraph_create_edge and cgraph_create_indirect_edge.
7719         * cgraph.c (cgraph_create_edge_including_clones,
7720         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7721         cgraph_update_edges_for_call_stmt_node): Do not take nest
7722         argument; do not initialize call_stmt_size/time.
7723         (dump_cgraph_node): Do not dump nest.
7724         (cgraph_clone_edge): Do not take loop_nest argument;
7725         do not propagate it; do not clone call_stmt_size/time.
7726         (cgraph_clone_node): Likewise.
7727         (cgraph_create_virtual_clone): Update.
7728         * cgraph.h (struct cgraph_edge): Remove
7729         call_stmt_size/call_stmt_time/loop_nest.
7730         (cgraph_create_edge, cgraph_create_indirect_edge,
7731         cgraph_create_edge_including_clones, cgraph_clone_node): Update
7732         prototype.
7733         * tree-emutls.c (gen_emutls_addr): Update.
7734         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7735         loop_nest; handle indirect calls, too.
7736         (clone_inlined_nodes): Do not care about updating inline summaries.
7737         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7738         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7739         stream call_stmt_size/call_stmt_time/loop_nest.
7740         * ipa-inline.c (edge_badness): Update.
7741         (ipa_inline): dump summaries after inlining.
7742         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7743         New.
7744         (inline_edge_summary): New function.
7745         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7746         (inline_edge_removal_hook): Handle edge summaries.
7747         (inline_edge_duplication_hook): New hook.
7748         (inline_summary_alloc): Alloc hooks.
7749         (initialize_growth_caches): Do not register removal hooks.
7750         (free_growth_caches); Do not free removal hook.
7751         (dump_inline_edge_summary): New function.
7752         (dump_inline_summary): Use it.
7753         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7754         (inline_update_callee_summaries): New function.
7755         (inline_merge_summary): Use it.
7756         (do_estimate_edge_time, do_estimate_edge_growth): Update.
7757         (read_inline_edge_summary): New function.
7758         (inline_read_section): Use it.
7759         (write_inline_edge_summary): New function.
7760         (inline_write_summary): Use it.
7761         (inline_free_summary): Free edge new holders.
7762         * tree-inline.c (copy_bb): Update.
7763
7764 2011-04-26  Jason Merrill  <jason@redhat.com>
7765
7766         * tree-eh.c (lower_try_finally_switch): Create the label along with
7767         the CASE_LABEL_EXPR.
7768
7769 2011-04-26  David S. Miller  <davem@davemloft.net>
7770             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7771
7772         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7773         * configure: Regenerate.
7774
7775 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7776
7777         PR target/48258
7778         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7779         reduction.
7780         (VEC_reduc): New code iterator and splitters for vector reduction.
7781         (VEC_reduc_name): Ditto.
7782         (VEC_reduc_rtx): Ditto.
7783         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7784         (reduc_<VEC_reduc_name>_v4sf): Ditto.
7785
7786         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7787         support for extracting SF on VSX.
7788
7789         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7790         generating xscvspdp.
7791         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7792         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7793         double add, minimum, maximum vector reduction.
7794         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7795         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7796         optimize double vector reduction.
7797         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7798
7799 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
7800
7801         * config/fr30/fr30.h (inhibit_libc): Don't define.
7802         * config/m32r/m32r-protos.h: Correct comment.
7803         * config/v850/v850.h (GHS_default_section_names,
7804         GHS_current_section_names): Use tree, not union tree_node *.
7805
7806 2011-04-26  Xinliang David Li  <davidxl@google.com>
7807
7808         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7809         * c-family/c-opts.c (c_common_handle_option): Set
7810         warn_maybe_uninitialized.
7811         * opts.c (common_handle_option): Ditto.
7812         * common.opt:  New option.
7813         * tree-ssa.c (warn_uninit): Add one more parameter.
7814         (warn_uninitialized_var): Pass warning code.
7815         * tree-flow.h: Interface change.
7816
7817 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7818
7819         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7820         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7821         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7822
7823 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7824
7825         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7826         * config/mips/mips.opt (mmips-tfile): Remove.
7827
7828         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7829         mips-tdump reference to ...
7830         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
7831         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7832         reference by Tru64 UNIX.
7833
7834 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
7835
7836         PR debug/48768
7837         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7838         is error_mark_node, set value to NULL.
7839
7840         PR tree-optimization/48734
7841         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7842         if return value from maybe_fold_*_comparsions isn't something
7843         the code is prepared to handle.
7844
7845 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
7846
7847         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7848         mode check.
7849         (ext_QIreg_nomode_operands): Remove.
7850         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7851         (*andsi_1): Ditto.
7852         (*andhi_1): Ditto.
7853
7854 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
7855
7856         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7857
7858 2011-04-26  Richard Guenther  <rguenther@suse.de>
7859
7860         * c-typeck.c (build_unary_op): Do not expand array-refs via
7861         pointer arithmetic.  Only adjust qualifiers for function types.
7862
7863 2011-04-26  Richard Guenther  <rguenther@suse.de>
7864
7865         PR middle-end/48694
7866         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7867         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7868         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
7869         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7870
7871 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
7872
7873         * doc/extend.texi: Document __underlying_type.
7874
7875 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
7876
7877         * config/rs6000/titan.md (automata_option "progress"): Remove.
7878
7879 2011-04-25  Jeff Law  <law@redhat.com>
7880
7881         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7882
7883 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7884
7885         * system.h (ENUM_BITFIELD): Remove.
7886
7887 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
7888             Eric Botcazou  <ebotcazou@adacore.com>
7889
7890         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7891         for STORE_FLAG_VALUE==-1 case.
7892
7893 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
7894
7895         PR target/43804
7896         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7897         LEGITIMATE_PIC_OPERAND_P.
7898
7899 2011-04-24  Jan Hubicka  <jh@suse.cz>
7900
7901         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7902         WPA hack.
7903         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7904         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7905         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7906         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7907         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7908         Sanity check predicate length.
7909         (remap_predicate): Likewise; sanity check jump functions.
7910         (inline_read_section, inline_write_summary): Sanity check
7911         predicate length.
7912
7913 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7914
7915         PR other/48748
7916         * doc/extend.texi (Type Traits): Document __is_standard_layout,
7917         __is_literal_type, and __is_trivial; update throughout about
7918         possibly cv-qualified void types.
7919
7920 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
7921
7922         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7923         testsuite and make it version agnostic.
7924
7925 2011-04-22  Jan Hubicka  <jh@suse.cz>
7926
7927         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7928
7929 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
7930
7931         PR c/48685
7932         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7933         to VOID_TYPE even around MODIFY_EXPR.
7934
7935 2011-04-22  Mike Stump  <mikestump@comcast.net>
7936
7937         * gensupport.c (read_md_rtx): Fix typo in comment.
7938         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7939         comment.
7940
7941 2011-04-22  Jan Hubicka  <jh@suse.cz>
7942
7943         * gengtype.c (open_base_files): Add ipa-inline.h include.
7944         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7945         ipa-prop.c; update all uses.
7946         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7947         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7948         merge summary of inlined function into former caller.
7949         * ipa-inline.c (max_benefit): Remove.
7950         (edge_badness): Compensate for removal of benefits.
7951         (update_caller_keys): Use
7952         reset_node_growth_cache/reset_edge_growth_cache.
7953         (update_callee_keys): Likewise.
7954         (update_all_callee_keys): Likewise.
7955         (inline_small_functions): Do not collect max_benefit; do not reset
7956         estimated_growth; call free_growth_caches and initialize_growth_caches.
7957         * ipa-inline.h (struct condition, type clause_t, struct predicate,
7958         struct size_time_entry): New structures.
7959         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7960         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7961         and estimated_growth.
7962         (edge_growth_cache_entry): New structure.
7963         (node_growth_cache, edge_growth_cache): New global vars.
7964         (estimate_growth): Turn into inline.
7965         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7966         initialize_growth_caches, free_growth_caches): Declare.
7967         (estimate_edge_growth): Rewrite.
7968         (estimate_edge_time): Implement as inline cache lookup.
7969         (reset_node_growth_cache, reset_edge_growth_cache): New inline
7970         functions.
7971         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7972         (NUM_CONDITIONS): New constant.
7973         (predicate_conditions): New enum.
7974         (IS_NOT_CONSTANT): New constant.
7975         (edge_removal_hook_holder): New var.
7976         (node_growth_cache, edge_growth_cache): New global vars.
7977         (true_predicate, single_cond_predicate, false_predicate,
7978         not_inlined_predicate, add_condition, add_clause, and_predicates,
7979         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7980         dump_clause, dump_predicate, account_size_time,
7981         evaulate_conditions_for_edge): New functions.
7982         (inline_summary_alloc): Move to heap.
7983         (inline_node_removal_hook): Clear condition and entry vectors.
7984         (inline_edge_removal_hook): New function.
7985         (initialize_growth_caches, free_growth_caches): New function.
7986         (dump_inline_summary): Update.
7987         (edge_execution_predicate): New function.
7988         (will_be_nonconstant_predicate): New function.
7989         (estimate_function_body_sizes): Compute BB and constantness predicates.
7990         (compute_inline_parameters): Do not clear estimated_growth.
7991         (estimate_edge_size_and_time): New function.
7992         (estimate_calls_size_and_time): New function.
7993         (estimate_callee_size_and_time): New function.
7994         (remap_predicate): New function.
7995         (inline_merge_summary): New function.
7996         (do_estimate_edge_time): New function based on...
7997         (estimate_edge_time): ... this one.
7998         (do_estimate_edge_growth): New function.
7999         (do_estimate_growth): New function based on....
8000         (estimate_growth): ... this one.
8001         (inline_analyze_function): Analyze after deciding on jump functions.
8002         (inline_read_section): New function.
8003         (inline_read_summary): Use it.
8004         (inline_write_summary): Write all the new data.
8005         * ipa-prop.c (ipa_get_param_decl_index): Export.
8006         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8007         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8008         Declare.
8009         (ipa_get_lattice): Move here from ipa-cp.c
8010         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8011         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8012         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8013         cgraph_edge_inlinable_p): Remove.
8014         * cgraphunit.c: Include ipainline.h
8015         (cgraph_process_new_functions): Update call of
8016         compute_inline_parameters.
8017
8018 2011-04-22  Richard Guenther  <rguenther@suse.de>
8019
8020         * tree.c (build_int_cst): Properly create canonicalized integer
8021         constants.
8022         (build_int_cst_type): Remove scary comments.
8023
8024 2011-04-22  Xinliang David Li  <davidxl@google.com>
8025
8026         * toplev.c (process_options): Enable -Werror=coverage-mismatch
8027         by default when -Wno-error is not specified.
8028         * opts-global.c (decode_options): Remove call to
8029         control_warning_options.
8030
8031 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
8032
8033         PR tree-optimization/48717
8034         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8035         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8036
8037 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
8038
8039         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
8040         definition where used.
8041
8042 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
8043
8044         PR c/48716
8045         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8046         TREE_STATIC variables declared inside of some OpenMP construct.
8047
8048 2011-04-22  Martin Jambor  <mjambor@suse.cz>
8049
8050         PR middle-end/48585
8051         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8052
8053 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
8054
8055         PR c/36750
8056         * c-typeck.c (pop_init_level): Do not warn about initializing
8057         with ` = {0}'.
8058
8059 2011-04-22  Alan Modra  <amodra@gmail.com>
8060
8061         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8062         when returning call_cookie.
8063         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8064         pointers, to functions with no more vector args than the current
8065         function, and some non-local calls for ABI_V4.
8066         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8067         sibcall_nonlocal_aix64): Combine to ..
8068         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
8069         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8070         (sibcall_value_nonlocal_aix<mode>): ..likewise.
8071         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8072         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
8073         operand.
8074         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8075         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8076         sibcall_value_symbolic_64): Delete.
8077
8078 2011-04-21  Xinliang David Li  <davidxl@google.com>
8079
8080         * cgraph.h: Remove pid.
8081         * cgraph.c: Remove pid.
8082         * value-prof.c (init_node_map): New function.
8083         (del_node_map): New function.
8084         (find_func_by_funcdef_no): New function.
8085         (gimple_ic_transform): Call new function.
8086         * cgraphunit.c (cgraph_finalize_function): Remove pid.
8087         * function.c (get_last_funcdef_no): New function.
8088         * function.h (get_last_funcdef_no): New function.
8089         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8090         to libgcov function.
8091         (tree-profiling): Call node map init and delete function.
8092
8093 2011-04-21  Ian Lance Taylor  <iant@google.com>
8094
8095         * godump.c (go_format_type): Use exported Go name for anonymous
8096         field name.
8097
8098 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8099
8100         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8101         Call builtin_function_type_list instead of builtin_function_type.
8102         (UNARY, BINARY, TRINARY, QUAD): Likewise.
8103
8104 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8105
8106         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8107         build_function_type_list instead of build_function_type.
8108         Delete variable `endlink'.
8109
8110 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8111
8112         * config/s390/s390.c (s390_init_builtins): Call
8113         build_function_type_list instead of build_function_type.
8114
8115 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8116
8117         * config/ia64/ia64.c (ia64_init_builtins): Call
8118         build_function_type_list instead of builtin_function_type.
8119
8120 2011-04-21  Easwaran Raman  <eraman@google.com>
8121
8122         * cfgexpand.c (stack_var): Remove OFFSET...
8123         (add_stack_var): ...and its reference here...
8124         (expand_stack_vars): ...and here.
8125         (stack_var_cmp): Sort by descending order of size.
8126         (partition_stack_vars): Change heuristic.
8127         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8128         (dump_stack_var_partition): Add newline after each partition.
8129
8130 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
8131             Jeff Law  <law@redhat.com>
8132
8133         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8134         * gengtype.c (matching_file_name_substitute): Likewise.
8135
8136 2011-04-21  Richard Guenther  <rguenther@suse.de>
8137
8138         PR lto/48703
8139         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8140
8141 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
8142
8143         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8144
8145 2011-04-21  Richard Guenther  <rguenther@suse.de>
8146
8147         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8148         file name.
8149
8150 2011-04-21  Richard Guenther  <rguenther@suse.de>
8151
8152         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8153         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8154         Use DECL_P, not SSA_VAR_P.
8155         (ptr_derefs_may_alias_p): Likewise.
8156         (ptr_deref_may_alias_ref_p_1): Likewise.
8157         (decl_refs_may_alias_p): Likewise.
8158         (refs_may_alias_p_1): Likewise.
8159         (ref_maybe_used_by_call_p_1): Likewise.
8160         (call_may_clobber_ref_p_1): Likewise.
8161         (indirect_ref_may_alias_decl_p): Assume indirect refrences
8162         are either MEM_REF or TARGET_MEM_REF.
8163         (indirect_refs_may_alias_p): Likewise.
8164         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8165         for MEM_EXPR of indirect calls.
8166
8167 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8168
8169         * vmsdbgout.c (write_srccorr): Compute file length from the string.
8170         (dst_file_info_struct): Remove flen field.
8171         (lookup_filename): Remove code that set flen field.
8172
8173 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8174
8175         * config/ia64/ia64.c (ia64_start_function): Add a guard.
8176
8177 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
8178
8179         PR target/48708
8180         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8181         vec_extract and vec_concat for non-SSE4_1 targets.
8182
8183 2011-04-21  Richard Guenther  <rguenther@suse.de>
8184
8185         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8186         return statements.
8187
8188 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8189
8190         * config/i386/cygming.h (union tree_node, TREE): Don't define or
8191         undefine.
8192         (FILE): Don't undefine.
8193
8194 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8195
8196         * config/alpha/alpha.c (struct machine_function): Use rtx, not
8197         struct rtx_def *.
8198         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8199         struct rtx_def *.
8200         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8201         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8202         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8203         rtx_def *.
8204         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
8205         definitions where used.
8206         * config/microblaze/microblaze.h (struct microblaze_args): Use
8207         rtx, not struct rtx_def *.
8208         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8209         rtx_def *.
8210         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8211         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8212         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8213         not struct rtx_def *.
8214         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8215         struct rtx_def *.
8216         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8217         rtx_def *.
8218         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8219
8220 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8221
8222         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8223         operand_equal_p to compare DR_BASE_ADDRESSes.
8224         (vect_check_interleaving): Likewise.
8225
8226 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8227
8228         PR target/46329
8229         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8230         for all Neon struct constants.
8231
8232 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8233
8234         * target.def (legitimate_constant_p): New hook.
8235         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8236         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8237         * doc/tm.texi: Regenerate.
8238         * hooks.h (hook_bool_mode_rtx_true): Declare.
8239         * hooks.c (hook_bool_mode_rtx_true): Define.
8240         * system.h (LEGITIMATE_CONSTANT_P): Poison.
8241         * calls.c (precompute_register_parameters): Replace uses of
8242         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8243         (emit_library_call_value_1): Likewise.
8244         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8245         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8246         * ira-costs.c (scan_one_insn): Likewise.
8247         * recog.c (general_operand, immediate_operand): Likewise.
8248         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8249         * reload1.c (init_eliminable_invariants): Likewise.
8250
8251         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8252         mode argument.
8253         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8254         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8255         argument.
8256         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8257         * config/alpha/predicates.md (input_operand): Update call to
8258         alpha_legitimate_constant_p.
8259
8260         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8261         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8262         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8263         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8264         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8265         (arm_legitimate_constant_p): New functions.
8266         (arm_cannot_force_const_mem): Make static.
8267
8268         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8269
8270         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8271         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8272         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8273         instead of bfin_legitimate_constant_p.
8274         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
8275         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8276
8277         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8278
8279         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8280
8281         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8282         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8283         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8284         (frv_legitimate_constant_p): Make static.  Add a mode argument.
8285
8286         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8287         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8288         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8289
8290         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8291         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8292         * config/i386/i386.c (legitimate_constant_p): Rename to...
8293         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
8294         argument.
8295         (ix86_cannot_force_const_mem): Update accordingly.
8296         (ix86_legitimate_address_p): Likewise.
8297         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8298         * config/i386/i386.md: Update commentary.
8299
8300         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8301         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8302         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8303         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
8304
8305         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8306
8307         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8308         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8309         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8310         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
8311
8312         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8313         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8314         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8315
8316         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8317         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8318         (m32r_legitimate_constant_p): New function.
8319
8320         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8321         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8322         LEGITIMATE_CONSTANT_P.
8323         (LEGITIMATE_CONSTANT_P): Delete.
8324         * config/m68k/m68k.c (m68k_expand_prologue): Call
8325         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8326         (m68k_legitimate_constant_p): New function.
8327         * config/m68k/m68k.md: Update comments.
8328
8329         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8330         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8331         (mcore_legitimate_constant_p): New function.
8332
8333         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8334         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8335         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8336         Add a mode argument.
8337         (mep_legitimate_address): Update accordingly.
8338         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8339
8340         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8341         Delete.
8342         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8343         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8344         static.  Check OP's mode for VOIDmode.
8345         (microblaze_legitimate_constant_p): New function.
8346         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8347
8348         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8349         * config/mips/mips.c (mips_legitimate_constant_p): New function.
8350         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8351         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8352         * config/mips/predicates.md: Update comments.
8353
8354         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8355         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8356         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8357         (mmix_legitimate_constant_p): Make static, return a bool, and take
8358         a mode argument.
8359         (mmix_print_operand_address): Update accordingly.
8360
8361         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8362         Delete.
8363         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8364         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8365         static.  Add a mode argument.
8366         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8367
8368         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8369
8370         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8371         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8372         (pa_legitimate_constant_p): New function.
8373
8374         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8375
8376         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8377         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8378         (pdp11_legitimate_constant_p): New function.
8379
8380         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8381         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8382         (rs6000_legitimate_constant_p): New function.
8383
8384         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8385         (rx_legitimate_constant_p): ...this.
8386         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8387         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8388         (rx_legitimate_constant_p): ...this.
8389         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8390         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8391
8392         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8393         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8394         * config/s390/s390.c (legitimate_constant_p): Rename to...
8395         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
8396         and add a mode argument.
8397         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8398
8399         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8400
8401         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8402         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8403         (sh_legitimate_constant_p): New function.
8404
8405         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8406         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8407         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8408         (legitimate_constant_p): Rename to...
8409         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
8410         argument.
8411         (constant_address_p): Update accordingly.
8412
8413         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8414         argument and return a bool.
8415         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8416         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8417         (spu_legitimate_constant_p): Add a mode argument and return a bool.
8418         (spu_rtx_costs): Update accordingly.
8419         * config/spu/predicates.md (vec_imm_operand): Likewise.
8420
8421         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8422
8423         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8424         * config/v850/v850.c (v850_legitimate_constant_p): New function.
8425         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8426
8427         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8428         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8429         * config/vax/vax.c (legitimate_constant_p): Likewise.
8430
8431         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8432         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8433         (xtensa_legitimate_constant_p): New function.
8434
8435 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8436
8437         * target.def (cannot_force_const_mem): Add a mode argument.
8438         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8439         * doc/tm.texi: Regenerate.
8440         * hooks.h (hook_bool_mode_rtx_false): Declare.
8441         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8442         (hook_bool_mode_const_rtx_true): Likewise.
8443         (hook_bool_mode_rtx_false): New function.
8444         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8445         to be non-VOID.  Update call to cannot_force_const_mem.
8446         (find_reloads): Update accordingly.
8447         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8448         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8449         argument.
8450         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8451         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8452         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8453         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8454         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8455         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8456         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8457         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8458         (m68k_cannot_force_const_mem): ...this new function.
8459         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8460         argument.
8461         (mips_const_insns, mips_legitimize_const_move): Update calls.
8462         (mips_secondary_reload_class): Likewise.
8463         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8464         (pa_cannot_force_const_mem): ...this new function.
8465         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8466         (rs6000_cannot_force_const_mem): ...this new function.
8467         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8468         argument.
8469         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8470         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8471         to...
8472         (xtensa_cannot_force_const_mem): ...this new function.
8473
8474 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8475
8476         * config/mips/mips.c (mips16_build_function_stub): Call
8477         build_function_type_list instead of build_function_type.
8478         (mips16_build_call_stub): Likewise.
8479
8480 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8481
8482         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8483         instead of build_function_type.
8484
8485 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8486
8487         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8488         instead of build_function_type.
8489
8490 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
8491
8492         PR target/48678
8493         * config/i386/i386.md (insv): Change operand 0 constraint to
8494         "register_operand".  Change operand 1 and 2 constraint to
8495         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
8496         * config/i386/sse.md (sse4_1_pinsrb): Export.
8497         (sse2_pinsrw): Ditto.
8498         (sse4_1_pinsrd): Ditto.
8499         (sse4_1_pinsrq): Ditto.
8500         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8501         * config/i386/i386.c (ix86_expand_pinsr): New.
8502
8503 2011-04-20  Easwaran Raman  <eraman@google.com>
8504
8505         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8506         containing union type only with -fstrict-aliasing.
8507
8508 2011-04-20  Jim Meyering  <meyering@redhat.com>
8509
8510         Remove useless if-before-free tests.
8511         * calls.c (expand_call, save_area): Likewise.
8512         * cfgcleanup.c (try_forward_edges): Likewise.
8513         * collect2.c (collect_execute): Likewise.
8514         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8515         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8516         * coverage.c (coverage_checksum_string): Likewise.
8517         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8518         * cselib.c (cselib_init): Likewise.
8519         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8520         (df_set_clean_cfg): Likewise.
8521         * function.c (free_after_compilation): Likewise.
8522         * gcc.c (do_spec_1, main): Likewise.
8523         * gcov.c (create_file_names): Likewise.
8524         * gensupport.c (identify_predicable_attribute): Likewise.
8525         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8526         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8527         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8528         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8529         * ipa-pure-const.c (local_pure_const): Likewise.
8530         * ipa-reference.c (propagate): Likewise.
8531         * ira-costs.c (free_ira_costs): Likewise.
8532         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8533         * matrix-reorg.c (mat_free): Likewise.
8534         * prefix.c (get_key_value): Likewise.
8535         * profile.c (compute_value_histograms): Likewise.
8536         * reload1.c (free_reg_equiv): Likewise.
8537         * sched-deps.c (free_deps): Likewise.
8538         * sel-sched-ir.c (fence_clear): Likewise.
8539         * sese.c (set_rename, if_region_set_false_region): Likewise.
8540         * tree-data-ref.c (free_rdg): Likewise.
8541         * tree-eh.c (lower_try_finally): Likewise.
8542         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8543         * tree-ssa-live.c (delete_var_map): Likewise.
8544         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8545         * tree-ssa-pre.c (phi_trans_add): Likewise.
8546
8547 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
8548
8549         PR tree-optimization/48611
8550         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8551         beyond ERT_MUST_NOT_THROW region.
8552
8553 2011-04-20  Catherine Moore  <clm@codesourcery.com>
8554
8555         * config/mips/mips.opt (mfix-24k): New.
8556         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8557         * config/mips/mips.md (length): Increase by 4 for stores if
8558         fixing 24K errata.
8559         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8560         all noreorder if fixing 24K errata.
8561         * doc/invoke.texi: Document mfix-24k.
8562
8563 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
8564
8565         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8566         quad-word modes, reduce to 9-bit index range when above 1016 limit.
8567
8568 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8569
8570         * config/arm/arm.c (arm_gen_constant): Move movw support ....
8571         (const_ok_for_op): ... to here.
8572
8573 2011-04-20  Kai Tietz  <ktietz@redhat.com>
8574
8575         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8576         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8577
8578 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8579
8580         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8581
8582 2011-04-20  Richard Guenther  <rguenther@suse.de>
8583
8584         PR tree-optimization/47892
8585         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8586         are if-convertible.
8587
8588 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8589
8590         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8591
8592 2011-04-20  Tristan Gingold  <gingold@adacore.com>
8593
8594         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8595
8596 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
8597
8598         PR target/18145
8599
8600         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8601         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8602         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8603         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8604         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8605
8606         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8607         New prototype.
8608
8609         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8610         (avr_asm_named_section, avr_asm_output_aligned_common,
8611         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8612         New functions to update...
8613         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8614         (avr_asm_init_sections): Overwrite section callbacks for
8615         data_section, bss_section.
8616         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8617         from here to...
8618         (avr_file_end): ...here.
8619
8620 2011-04-20  Richard Guenther  <rguenther@suse.de>
8621
8622         PR middle-end/48695
8623         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8624         objects and types here.  Adjust for their offset before comparing.
8625
8626 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8627
8628         * tree-vect-stmts.c (vectorizable_store): Only chain one related
8629         statement per copy.
8630
8631 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8632
8633         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8634         (GIMPLE_H): Include $(INTERNAL_FN_H).
8635         (OBJS-common): Add internal-fn.o.
8636         (internal-fn.o): New rule.
8637         * internal-fn.def: New file.
8638         * internal-fn.h: Likewise.
8639         * internal-fn.c: Likewise.
8640         * gimple.h: Include internal-fn.h.
8641         (GF_CALL_INTERNAL): New gf_mask.
8642         (gimple_statement_call): Put fntype into a union with a new
8643         internal_fn field.
8644         (gimple_build_call_internal): Declare.
8645         (gimple_build_call_internal_vec): Likewise.
8646         (gimple_call_same_target_p): Likewise.
8647         (gimple_call_internal_p): New function.
8648         (gimple_call_internal_fn): Likewise.
8649         (gimple_call_fntype): Return null for internal calls.
8650         (gimple_call_set_fntype): Assert that the function is not internal.
8651         (gimple_call_set_fn): Likewise.
8652         (gimple_call_set_fndecl): Likewise.
8653         (gimple_call_set_internal_fn): New function.
8654         (gimple_call_addr_fndecl): Handle null functions.
8655         (gimple_call_return_type): Likewise null types.
8656         * gimple.c (gimple_build_call_internal_1): New function.
8657         (gimple_build_call_internal): Likewise.
8658         (gimple_build_call_internal_vec): Likewise.
8659         (gimple_call_same_target_p): Likewise.
8660         (gimple_call_flags): Handle calls to internal functions.
8661         (gimple_call_fnspec): New function.
8662         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8663         (gimple_has_side_effects): Handle null functions.
8664         (gimple_rhs_has_side_effects): Likewise.
8665         (gimple_call_copy_skip_args): Handle calls to internal functions.
8666         * cfgexpand.c (expand_call_stmt): Likewise.
8667         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8668         * gimple-fold.c (gimple_fold_call): Handle null functions.
8669         (gimple_fold_stmt_to_constant_1): Don't fold
8670         calls to internal functions.
8671         * gimple-low.c (gimple_check_call_args): Handle calls to internal
8672         functions.
8673         * gimple-pretty-print.c (dump_gimple_call): Likewise.
8674         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8675         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8676         (do_warn_unused_result): Likewise.
8677         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8678         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8679         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8680         the target of a call.
8681         (initialize_hash_element): Update accordingly.
8682         (hashable_expr_equal_p): Use gimple_call_same_target_p.
8683         (iterative_hash_hashable_expr): Handle calls to internal functions.
8684         (print_expr_hash_elt): Likewise.
8685         * tree-ssa-pre.c (can_value_number_call): Likewise.
8686         (eliminate): Handle null functions.
8687         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8688         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8689         (find_func_aliases): Likewise.
8690         * value-prof.c (gimple_ic_transform): Likewise.
8691         (gimple_indirect_call_to_profile): Likewise.
8692         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8693         * lto-streamer-out.c (output_gimple_stmt): Likewise.
8694
8695 2011-04-19  Jan Hubicka  <jh@suse.cz>
8696
8697         * ipa-inline-transform.c (save_inline_function_body): Add comments.
8698         * ipa-inline.c (inline_small_functions): Compute summaries first,
8699         populate heap later.
8700
8701 2011-04-19  Jan Hubicka  <jh@suse.cz>
8702
8703         * cgraph.h (save_inline_function_body): Remove.
8704         * ipa-inline-transform.c: New file, broke out of...
8705         * ipa-inline.c: ... this one; Update toplevel comment.
8706         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8707         make global.
8708         (update_noncloned_frequencies): Move to ipa-inline-transform.c
8709         (cgraph_mark_inline_edge): Rename to inline_call; move to
8710         ipa-inline-transform.c.
8711         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8712         move to ipa-inline-transform.c
8713         (recursive_inlining, inline_small_functions, flatten_function,
8714         ipa_inline, inline_always_inline_functions,
8715         early_inline_small_functions): Update.
8716         (inline_transform): Move to ipa-inline-transform.c.
8717         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8718         Declare.
8719         * Makefile.in (ipa-inline-transform.o): New file.
8720         * cgraphunit.c (save_inline_function_body): Move to
8721         ipa-inline-transform.c
8722
8723 2011-04-19  DJ Delorie  <dj@redhat.com>
8724
8725         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8726         registers if we already know there aren't any.
8727         (m32c_emit_epilogue): Don't emit a barrier here.
8728         (m32c_emit_eh_epilogue): Likewise.
8729         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8730         operands at expand time.
8731         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8732         int" wchar type.
8733         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8734         duplicates.  Provide aliases instead.
8735         * config/m32c/prologue.md (eh_return): Emit a barrier here.
8736         (eh_epilogue): Add a "(return)" here as a hint to other parts of
8737         the compiler.
8738
8739 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
8740
8741         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8742         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8743         (general_or_i64_p, sparc_register_move_cost): New function.
8744
8745 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8746
8747         * doc/install.texi (Configuration, --enable-threads): Remove mach.
8748         Add lynx, mipssde.  Sort table.
8749
8750 2011-04-19  Xinliang David Li  <davidxl@google.com>
8751
8752         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8753         not negative.
8754
8755 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
8756
8757         PR target/48678
8758         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8759         is a SUBREG with non-MODE_INT mode inside of it.
8760
8761 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8762
8763         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8764         also according to actual contants.
8765         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8766         (gimple_fold_call): Use it.
8767         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8768
8769 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8770
8771         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8772         non-pointer assignments.
8773
8774 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8775
8776         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8777         account anc_offset and otr_type from the indirect edge info.
8778         * ipa-prop.c (get_ancestor_addr_info): New function.
8779         (compute_complex_ancestor_jump_func): Assignment analysis moved to
8780         get_ancestor_addr_info, call it.
8781         (ipa_note_param_call): Do not initialize information about polymorphic
8782         calls, return the indirect call graph edge.  Remove the last
8783         parameter, adjust all callers.
8784         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8785         parameters.  Initialize polymorphic information in the indirect edge.
8786
8787 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8788
8789         PR lto/48148
8790         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8791         the types if they have different enumeration identifiers.
8792
8793 2011-04-19  Jan Hubicka  <jh@suse.cz>
8794
8795         * cgraph.h (cgraph_optimize_for_size_p): Declare.
8796         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8797         * predict.c (cgraph_optimize_for_size_p): Break out from ...
8798         (optimize_function_for_size_p) ... here.
8799
8800 2011-04-19  Richard Guenther  <rguenther@suse.de>
8801
8802         PR lto/48207
8803         * tree.c (free_lang_data): Do not reset the decl-assembler-name
8804         langhook.
8805
8806 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8807
8808         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8809         if DECL_NO_INLINE_WARNING_P is set on the function.
8810
8811 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
8812
8813         PR fortran/47976
8814         * reload1.c (inc_for_reload): Return void. All callers changed.
8815         (emit_input_reload_insns): Don't try to delete previous output
8816         reloads to a register, or record spill_reg_store for autoincs.
8817
8818 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
8819
8820         * gengtype.h: Updated copyright year.
8821         (struct input_file_st): Add inpisplugin field.
8822         (type_fileloc): New function.
8823         * gengtype.c
8824         (write_typed_struct_alloc_def): Add gcc_assert.
8825         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8826         (write_typed_alloc_defns): Don't output for plugin files.
8827         (input_file_by_name): Clear inpisplugin field.
8828         (main): Set inpisplugin field for plugin files.
8829
8830 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
8831
8832         * gengtype-state.c (string_eq): New.
8833         (read_state): Use string_eq instead of strcmp when creating the
8834         state_ident_tab.
8835
8836 2011-04-19  Wei Guozhi  <carrot@google.com>
8837
8838         PR target/47855
8839         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8840         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8841         linkage.
8842         * config/arm/constraints.md (Uu): New constraint.
8843         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8844
8845 2011-04-19  Tristan Gingold  <gingold@adacore.com>
8846
8847         * config.gcc (-*-*-*vms): Added.
8848         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8849         definitions moved.
8850         * config/vms/vms-ld.c: New file.
8851         * config/vms/vms-ar.c: New file.
8852         * config/vms/t-vmsnative: New file.
8853
8854 2011-04-18  Xinliang David Li  <davidxl@google.com>
8855
8856         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8857
8858 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
8859
8860         PR middle-end/48661
8861         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8862         if TREE_TYPE (v) is non-NULL.
8863
8864         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8865         gimple_get_virt_mehtod_for_binfo.
8866         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8867         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8868         callers.
8869         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8870
8871 2011-04-18  Michael Matz  <matz@suse.de>
8872             Steve Ellcey  <sje@cup.hp.com>
8873
8874         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8875         use its mode as source mode if it isn't VOIDmode.
8876
8877 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
8878
8879         * doc/passes.texi: Fill crossref nodes.
8880
8881 2011-04-18  Jim Meyering  <meyering@redhat.com>
8882
8883         Fix doubled-word typos in comments and strings
8884         * config/alpha/vms-unwind.h: s/for for/for/
8885         * config/arm/unwind-arm.h: Likewise.
8886         * config/microblaze/microblaze.c: Likewise.
8887         * config/sh/constraints.md: s/in in/in/
8888         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8889
8890 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
8891
8892         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8893         (AVX_FLOAT_MODE_P): Ditto.
8894         (AVX128_VEC_FLOAT_MODE_P): Ditto.
8895         (AVX256_VEC_FLOAT_MODE_P): Ditto.
8896         (AVX_VEC_FLOAT_MODE_P): Ditto.
8897         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8898         (UNSPEC_MASKSTORE): Ditto.
8899         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8900         Merge from <sse>_movmsk<ssemodesuffix> and
8901         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
8902         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
8903         iterator.
8904         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8905         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8906         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8907
8908 2011-04-18  Jan Hubicka  <jh@suse.cz>
8909
8910         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8911
8912         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8913         (want_inline_function_called_once_p): Break out the logic from
8914         ipa_inline.
8915         (edge_badness): Ensure that profile is not misupdated.
8916         (lookup_recursive_calls): Prioritize by call frequencies.
8917         (inline_small_functions): Move program size estimates here;
8918         actually process whole queue even when unit growth has been
8919         met. (to properly compute inline_failed reasons and for the
8920         case unit size decrease.) Revisit comments on recursive inlining.
8921         (ipa_inline): Remove unit summary code; first inline hot calls
8922         of functions called once, cold calls next.
8923         (order, nnodes): Remove unused variables.
8924         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8925         (GTFILES): Remove ipa-inline.c
8926         * sel-sched.c (fill_insns): Silence uninitialized var warning.
8927
8928 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8929
8930         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8931
8932 2011-04-18  Jie Zhang  <jie@codesourcery.com>
8933             Richard Earnshaw  <rearnsha@arm.com>
8934
8935         * arm.c (neon_builtin_type_bits): Remove.
8936         (typedef enum neon_builtin_mode): New.
8937         (T_MAX): Don't define.
8938         (typedef enum neon_builtin_datum): Remove bits, codes[],
8939         num_vars and base_fcode.  Add mode, code and fcode.
8940         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8941         VAR10): Change accordingly.
8942         (neon_builtin_data[]): Change accordingly
8943         (arm_init_neon_builtins): Change accordingly.
8944         (neon_builtin_compare): Remove.
8945         (locate_neon_builtin_icode): Remove.
8946         (arm_expand_neon_builtin): Change accordingly.
8947
8948         * arm.h (enum arm_builtins): Move to ...
8949         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8950
8951         * arm.c (arm_builtin_decl): Declare.
8952         (TARGET_BUILTIN_DECL): Define.
8953         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8954         (arm_builtin_decls[]): New.
8955         (arm_init_neon_builtins): Store builtin declarations in
8956         arm_builtin_decls[].
8957         (arm_init_tls_builtins): Likewise.
8958         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
8959         (arm_builtin_decl): New.
8960
8961 2011-04-18  Richard Guenther  <rguenther@suse.de>
8962
8963         * tree.c (upper_bound_in_type): Build properly canonicalized
8964         INTEGER_CSTs.
8965         (lower_bound_in_type): Likewise.
8966
8967 2011-04-18  Richard Guenther  <rguenther@suse.de>
8968
8969         * gimple.h (gimple_call_addr_fndecl): New function.
8970         (gimple_call_fndecl): Use it.
8971         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8972         for direct calls.
8973         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8974         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8975
8976 2011-04-18  Richard Guenther  <rguenther@suse.de>
8977
8978         PR middle-end/48650
8979         * tree.c (build_string): STRING_CST is now derived from tree_typed.
8980
8981 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8982
8983         PR lto/48492
8984         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8985         DECL_IN_CONSTANT_POOL without RTL.
8986
8987 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
8988             Ira Rosen  <ira.rosen@linaro.org>
8989
8990         PR target/48252
8991         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8992         to match neon_vzip/vuzp/vtrn_internal.
8993         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8994         outputs explicitly dependent on both inputs.
8995         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8996
8997 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
8998
8999         PR tree-optimization/48616
9000         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9001         whether the shift is by scalar or vector based on whether all SLP
9002         scalar stmts have the same rhs.
9003
9004 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
9005
9006         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9007         memory operands.
9008
9009 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
9010
9011         PR target/43700
9012         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9013         registers.
9014
9015 2011-04-17  Jan Hubicka  <jh@suse.cz>
9016
9017         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9018         * cgrpahunit.c (cgraph_finalize_function): Do not set
9019         finalized_by_frontend.
9020         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9021         finalized_by_frontend.
9022
9023 2011-04-17  Jan Hubicka  <jh@suse.cz>
9024
9025         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9026         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9027         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9028         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9029         method.
9030         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9031         gimple-fold.c
9032         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9033
9034 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
9035
9036         PR lto/48538
9037         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9038         is non-null before accessing it.
9039         (input_cgraph): Remove trailing spaces.
9040
9041 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9042
9043         * params.def (sms-min-sc): New param flag.
9044         * modulo-sched.c (sms_schedule): Use it.
9045         * doc/invoke.texi (sms-min-sc): Document it.
9046
9047 2011-04-17  Jan Hubicka  <jh@suse.cz>
9048
9049         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9050         present, also set gimple_call_set_cannot_inline.
9051         * ipa-inline.c: Update toplevel comment.
9052         (MAX_TIME): Remove.
9053         (cgraph_clone_inlined_nodes): Fix linebreaks.
9054         (cgraph_check_inline_limits): Restructure to ...
9055         (caller_growth_limits): ... this one; be more tolerant
9056         on growth in nested inline chains; add explanatory comment;
9057         fix stack accounting thinko introduced by previous patch.
9058         (cgraph_default_inline_p): Remove.
9059         (report_inline_failed_reason): New function.
9060         (can_inline_edge_p): New function.
9061         (can_early_inline_edge_p): New function.
9062         (leaf_node_p): Move upwards in file.
9063         (want_early_inline_function_p): New function.
9064         (want_inline_small_function_p): New function.
9065         (want_inline_self_recursive_call_p): New function.
9066         (cgraph_edge_badness): Rename to ...
9067         (edge_badness) ... this one; fix linebreaks.
9068         (update_edge_key): Update call of edge_baddness; add
9069         detailed dump about queue updates.
9070         (update_caller_keys): Use can_inline_edge_p and
9071         want_inline_small_function_p.
9072         (cgraph_decide_recursive_inlining): Rename to...
9073         (recursive_inlining): Use can_inline_edge_p and
9074         want_inline_self_recursive_call_p; simplify and remove no longer
9075         valid FIXME.
9076         (cgraph_set_inline_failed): Remove.
9077         (add_new_edges_to_heap): Use can_inline_edge_p and
9078         want_inline_small_function_p.
9079         (cgraph_decide_inlining_of_small_functions): Rename to ...
9080         (inline_small_functions): ... this one; cleanup; use
9081         can/want predicates; cleanup debug ouput; work edges till fibheap
9082         is exhausted and do not stop once unit growth is reached; remove
9083         later loop processing remaining edges.
9084         (cgraph_flatten): Rename to ...
9085         (flatten_function): ... this one; use can_inline_edge_p
9086         and can_early_inline_edge_p predicates.
9087         (cgraph_decide_inlining): Rename to ...
9088         (ipa_inline): ... this one; remove unreachable nodes before
9089         inlining functions called once; simplify the pass.
9090         (cgraph_perform_always_inlining): Rename to ...
9091         (inline_always_inline_functions): ... this one; use
9092         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9093         (cgraph_decide_inlining_incrementally): Rename to ...
9094         (early_inline_small_functions): ... this one; simplify
9095         using new predicates; cleanup; make dumps prettier.
9096         (cgraph_early_inlining): Rename to ...
9097         (early_inliner): newer inline regular functions into always-inlines;
9098         fix updating of call stmt summaries.
9099         (pass_early_inline): Update for new names.
9100         (inline_transform): Fix formating.
9101         (gate_cgraph_decide_inlining): Rename to ...
9102         (pass_ipa_inline): ... this one.
9103         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9104         * ipa-inline-analysis.c (dump_inline_summary): Update.
9105         (compute_inline_parameters): Do not compute disregard_inline_limits;
9106         look for mismatching arguments.
9107         (estimate_growth): Fix handlig of non-trivial self recursion.
9108         (inline_read_summary): Do not read info->disregard_inline_limits.
9109         (inline_write_summary): Do not write info->disregard_inline_limits.
9110         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9111         and move all checks into can_inline_edge_p predicate; re-enable code
9112         comparing optimization levels.
9113         (expand_call_inline): Do not test inline_forbidden_into_p.
9114         * Makefile.in (ipa-inline.o): Update arguments.
9115
9116 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9117
9118         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9119
9120 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9121
9122         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9123
9124 2011-04-17  Michael Matz  <matz@suse.de>
9125
9126         PR tree-optimization/48622
9127         PR lto/48645
9128         * ipa-inline-analysis.c (inline_read_summary): Read size/time
9129         in same order as they're written.
9130
9131 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9132
9133         * config/pa/predicates.md: Reorganize and simplify predicates.
9134         Eliminate duplicate code checks.
9135         (arith_operand): Rename to arith14_operand
9136         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9137         * config/pa/pa.md: Use renamed operands.
9138         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9139         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9140         arith11_operand, adddi3_operand, indexed_memory_operand,
9141         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9142         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9143         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9144         move_dest_operand, move_src_operand, prefetch_cc_operand,
9145         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9146         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9147         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9148         div_operand, int5_operand, movb_comparison_operator,
9149         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9150         arith_double_operand, ireg_operand, lhs_lshift_operand,
9151         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9152         integer_store_memory_operand): Likewise.
9153         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9154         (integer_store_memory_operand, read_only_operand,
9155         function_label_operand, borx_reg_operand,
9156         non_hard_reg_operand): Likewise.
9157         (eq_neq_comparison_operator): Delete unused operator.
9158         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9159         function_label_operand.
9160         (emit_move_sequence): Likewise.
9161
9162 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9163
9164         * config/i386/sse.md (sseunpackmode): New mode attribute.
9165         (ssepackmode): Ditto.
9166         (vec_pack_trunc_<mode>): Macroize expander from
9167         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9168         (vec_unpacks_lo_<mode>): Macroize expander from
9169         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9170         (vec_unpacks_hi_<mode>): Macroize expander from
9171         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9172         (vec_unpacku_lo_<mode>): Macroize expander from
9173         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9174         (vec_unpacku_hi_<mode>): Macroize expander from
9175         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9176         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9177         ix86_expand_sse4_unpack.
9178         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9179
9180 2011-04-16  Jan Hubicka  <jh@suse.cz>
9181
9182         * cgraphbuild.c: Include ipa-inline.h.
9183         (reset_inline_failed): Use initialize_inline_failed.
9184         * cgraph.c: Include ipa-inline.h.
9185         (cgraph_create_node_1): Do not initialize estimated_growth.
9186         (initialize_inline_failed): More to ipa-inline-analysis.c
9187         (dump_cgraph_node): Do not dump inline flags.
9188         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9189         and disregard_inline_limits flags.
9190         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9191         time, size, estimated_growth.
9192         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9193         Update.
9194         * cgraphunit.c (cgraph_decide_is_function_needed): Use
9195         DECL_DISREGARD_INLINE_LIMITS.
9196         (cgraph_analyze_function): Do not initialize
9197         node->local.disregard_inline_limits.
9198         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9199         inlinable, versionable and disregard_inline_limits.
9200         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9201         cgraph_check_inline_limits, cgraph_default_inline_p,
9202         cgraph_edge_badness, update_caller_keys, update_callee_keys,
9203         add_new_edges_to_heap): Update.
9204         (cgraph_decide_inlining_of_small_function): Update; set
9205         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9206         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9207         cgraph_decide_inlining_incrementally): Update.
9208         * ipa-inline.h (inline_summary): Add inlinable, versionable,
9209         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9210         time, size and estimated_growth parameters.
9211         (estimate_edge_growth): Update.
9212         (initialize_inline_failed): Declare.
9213         * ipa-split.c: Include ipa-inline.h
9214         (execute_split_functions): Update.
9215         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9216         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9217         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9218         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9219         estimated_growth to INT_MIN.
9220         (inline_node_duplication_hook): Likewise.
9221         (dump_inline_summary): Dump new fields.
9222         (compute_inline_parameters): Update.
9223         (estimate_edge_time, estimate_time_after_inlining,
9224         estimate_size_after_inlining, estimate_growth, inline_read_summary,
9225         inline_write_summary):
9226         (initialize_inline_failed): Move here from cgraph.c.
9227         * tree-sra.c: Include ipa-inline.h.
9228         (ipa_sra_preliminary_function_checks): Update.
9229         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9230         ipa-inline.h.
9231
9232 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9233
9234         * config/i386/sse.md (V16): New mode iterator.
9235         (VI1, VI8): Ditto.
9236         (AVXMODEQI, AVXMODEDI): Remove.
9237         (sse2, sse3): New mode attribute.
9238         (mov<mode>): Use V16 mode iterator.
9239         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9240         (push<mode>1): Use V16 mode iterator.
9241         (movmisalign<mode>): Ditto.
9242         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9243         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9244         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9245         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9246         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9247         avx_movdqu<avxmodesuffix>.
9248         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9249         *avx_movdqu<avxmodesuffix>.
9250         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9251         avx_lddqu<avxmodesuffix>.
9252         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9253         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9254         avx_movnt<AVXMODEDI:mode>.
9255         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9256         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9257
9258 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
9259
9260         PR target/48629
9261         * haifa-sched.c (prune_ready_list, schedule_block): Use
9262         sched_pressure_p rather than flag_sched_pressure.
9263
9264 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
9265
9266         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9267         cgraph_get_node instead of cgraph_get_create_node.
9268
9269 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
9270
9271         * cfgexpand.c (expand_debug_expr): Use
9272         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9273
9274 2011-04-15  Michael Matz  <matz@suse.de>
9275
9276         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9277         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9278         * function.c (gimplify_parameters): Ditto.
9279         * gimplify.c (gimplify_vla_decl): Ditto.
9280
9281         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9282         (gimple_call_set_alloca_for_var): New inline function.
9283         (gimple_call_alloca_for_var_p): Ditto.
9284         * gimple.c (gimple_build_call_from_tree): Remember
9285         CALL_ALLOCA_FOR_VAR_P state.
9286         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9287
9288         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9289         calls if they were for VLA objects.
9290
9291 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9292
9293         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9294         of ADR_EXPRs.
9295
9296 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9297
9298         PR middle-end/48601
9299         * tree-emutls.c (lower_emutls_function_body): Call
9300         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
9301         result is non-NULL.
9302
9303 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
9304
9305         * c-decl.c (detect_field_duplicates): Call
9306         objc_detect_field_duplicates instead of objc_get_interface_ivars.
9307
9308 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
9309
9310         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9311         * gimple.c (gimple_asm_clobbers_memory_p): Define.
9312         * ipa-pure-const.c (check_stmt): Call it.
9313         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9314
9315 2011-04-15  Richard Guenther  <rguenther@suse.de>
9316
9317         PR tree-optimization/48290
9318         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9319         Properly decide inhibiting propagation based on the valueized
9320         operand.  Do loop-closed SSA form preserving here ...
9321         (init_copy_prop): ... not here.
9322
9323 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
9324
9325         PR target/48612
9326         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9327         (*ieee_smax<mode>3): Likewise.
9328
9329 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9330
9331         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9332         Replace match_operand with match_dup for the third operand in
9333         these expanders.
9334
9335 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9336
9337         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9338         to track processing of conditionals.  Update all callers.
9339         (try_combine, simplify_if_then_else): Update.
9340
9341 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9342
9343         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9344         -fsched-pressure.
9345
9346 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
9347
9348         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9349         instead of match_operand for operand 3.
9350
9351 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
9352
9353         * recog.h (insn_operand_data): Add an "allows_mem" field.
9354         * genoutput.c (output_operand_data): Initialize it.
9355         * optabs.c (maybe_legitimize_operand_same_code): New function.
9356         (maybe_legitimize_operand): Use it when matching the original
9357         op->value.
9358
9359 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9360
9361         * gimplify.c: Fix issues in comments throughout.
9362         (voidify_wrapper_expr): Fix long line.
9363         (build_stack_save_restore): Likewise.
9364         (gimplify_loop_expr): Likewise.
9365         (gimplify_compound_lval): Likewise.
9366         (gimplify_init_ctor_eval): Likewise.
9367         (gimplify_modify_expr_rhs): Likewise.
9368         (omp_notice_threadprivate_variable): Likewise.
9369
9370 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9371
9372         * cfgexpand.c (expand_call_stmt): Convert the function type to the
9373         original one if this is not a builtin function.
9374
9375 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
9376
9377         PR target/48605
9378         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9379         offset it as needed based on top 2 bits in operands[3], change
9380         MEM mode to SFmode and mask those 2 bits away from operands[3].
9381
9382 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9383
9384         * c-parser.c (c_parser_objc_protocol_definition): Updated for
9385         change from objc_declare_protocols() to objc_declare_protocol().
9386
9387 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
9388
9389         * config/i386/sse.md (sse4_1): New mode attribute.
9390         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9391         avx_blend<ssemodesuffix><avxmodesuffix> and
9392         sse4_1_blend<ssemodesuffix> using VF mode iterator.
9393         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9394         avx_blendv<ssemodesuffix><avxmodesuffix> and
9395         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9396         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9397         avx_dp<ssemodesuffix><avxmodesuffix> and
9398         sse4_1_dp<ssemodesuffix> using VF mode iterator.
9399         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9400         (sse4_1_packusdw): Merge with *avx_packusdw.
9401         (sse4_1_pblendvb): Merge with *avx_pblendvb.
9402         (sse4_1_pblendw): Merge with *avx_pblendw.
9403         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9404         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9405         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9406         VF mode iterator.
9407         (sse4_1_round<ssescalarmodesuffix>): Merge with
9408         *avx_round<ssescalarmodesuffix>.
9409         (aesenc): Merge with *avx_aesenc.
9410         (aesenclast): Merge with *avx_aesenclast.
9411         (aesdec): Merge with *avx_aesdec.
9412         (aesdeclast): Merge with *avx_aesdeclast.
9413         (pclmulqdq): Merge with *pclmulqdq.
9414         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9415         New predicate.
9416         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9417
9418 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
9419
9420         PR middle-end/48608
9421         * cfgexpand.c (get_decl_align_unit): Renamed to ...
9422         (align_local_variable): This.  Update DECL_ALIGN.
9423         (add_stack_var): Updated.
9424         (expand_one_stack_var): Likewise.
9425
9426 2011-04-14  Richard Guenther  <rguenther@suse.de>
9427
9428         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9429         Remove.
9430         (dse_initialize_block_local_data, dse_leave_block,
9431         record_voperand_set, get_stmt_uid): Likewise.
9432         (dse_possible_dead_store_p): Allow any kind of killing stmt.
9433         (dse_optimize_stmt): Remove voperand set handling code.
9434         Simplify and improve to handle any kind of killing stmt.
9435         (dse_record_phi): Remove.
9436         (dse_enter_block): Simplify.
9437         (tree_ssa_dse): Likewise.
9438         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9439
9440 2011-04-14  Jan Hubicka  <jh@suse.cz>
9441
9442         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9443         * cgraph.h (struct inline_summary): Move to ipa-inline.h
9444         (cgraph_local_info): Remove inline_summary.
9445         * ipa-cp.c: Include ipa-inline.h.
9446         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9447         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9448         accesor.
9449         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9450         (input_overwrite_node): Do not set inline summary.
9451         (input_node): Do not stream inline summary.
9452         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9453         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9454         growth; we do not have inline parameters computed for that anyway.
9455         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9456         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9457         (inline_summary_t): New type and VECtor.
9458         (debug_inline_summary, dump_inline_summaries): Declare.
9459         (inline_summary): Use VOCtor.
9460         (estimate_edge_growth): Kill hack computing call stmt size directly.
9461         * lto-section-in.c (lto_section_name): Add inline section.
9462         * ipa-inline-analysis.c: Include lto-streamer.h
9463         (node_removal_hook_holder, node_duplication_hook_holder): New holders
9464         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9465         (inline_summary_vec): Define.
9466         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9467         dump_inline_summaries): New functions.
9468         (estimate_function_body_sizes): Properly compute size/time of outgoing
9469         calls.
9470         (compute_inline_parameters): Alloc inline_summary; do not compute
9471         size/time of incomming calls.
9472         (estimate_edge_time): Avoid missing time summary hack.
9473         (inline_read_summary): Read inline summary info.
9474         (inline_write_summary): Write inline summary info.
9475         (inline_free_summary): Free all hooks and inline summary vector.
9476         * lto-streamer.h: Add LTO_section_inline_summary section.
9477         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9478         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9479
9480 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9481
9482         * tree-vectorizer.h (vect_strided_store_supported): Add a
9483         HOST_WIDE_INT argument.
9484         (vect_strided_load_supported): Likewise.
9485         (vect_permute_store_chain): Return void.
9486         (vect_transform_strided_load): Likewise.
9487         (vect_permute_load_chain): Delete.
9488         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9489         count argument.  Check that the count is a power of two.
9490         (vect_strided_load_supported): Likewise.
9491         (vect_permute_store_chain): Return void.  Update after above changes.
9492         Assert that the access is supported.
9493         (vect_permute_load_chain): Likewise.
9494         (vect_transform_strided_load): Return void.
9495         * tree-vect-stmts.c (vectorizable_store): Update calls after
9496         above interface changes.
9497         (vectorizable_load): Likewise.
9498         (vect_analyze_stmt): Don't check for strided powers of two here.
9499
9500 2011-04-14  Richard Guenther  <rguenther@suse.de>
9501
9502         PR tree-optimization/48590
9503         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9504         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9505         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9506         BUILT_IN_STACK_SAVE.
9507         * tree-ssa-dce.c (propagate_necessity): Handle
9508         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9509
9510 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9511
9512         * c-parser.c (c_parser_objc_class_declaration): Updated call to
9513         objc_declare_class.
9514
9515 2011-04-14  Richard Guenther  <rguenther@suse.de>
9516
9517         * tree.h (get_object_alignment_1): Declare.
9518         * builtins.c (get_object_alignment_1): Split out worker from ...
9519         (get_object_alignment): ... here.
9520         * fold-const.c (get_pointer_modulus_and_residue): Use
9521         get_object_alignment_1.
9522
9523 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9524
9525         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9526         type parameter.
9527         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9528         parameter.  Generalise code to handle arrays as well as vectors.
9529         (vect_setup_realignment): Update accordingly.
9530         * tree-vect-stmts.c (vectorizable_store): Likewise.
9531         (vectorizable_load): Likewise.
9532
9533 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9534
9535         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9536         within the per-copy loop.
9537
9538 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9539
9540         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9541         in the dump file.
9542
9543 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9544
9545         * doc/options.texi (Negative): Explicitly mention that the
9546         Negative chain must be circular.
9547
9548 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
9549
9550         * function.h (block_chainon): Declare.
9551         * function.c (block_chainon): Define.
9552
9553 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
9554             Eric Weddington  <eric.weddington@atmel.com>
9555             Georg-Johann Lay  <avr@gjlay.de>
9556
9557         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9558         New Includes
9559         (avr_init_builtins, avr_expand_builtin,
9560         avr_expand_delay_cycles, avr_expand_unop_builtin,
9561         avr_expand_binop_builtin ): New functions.
9562         (avr_builtin_id): New enum
9563         (struct avr_builtin_description): New struct
9564         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9565         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9566
9567         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9568         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9569         UNSPECV_DELAY_CYCLES): new enumeration values
9570         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9571         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9572         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9573         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9574         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9575         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9576         "fmulsu"): New insns
9577
9578         * config/avr/avr-c.c: fix line endings
9579         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9580         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9581         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9582         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9583         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9584
9585         * doc/extend.texi (AVR Built-in Functions): New node
9586         (Target Builtins): Add documentation of AVR
9587         built-in functions.
9588
9589 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
9590
9591         PR target/44643
9592         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9593         alone. Error if non-const data has attribute progmem.
9594
9595 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9596
9597         * tree.h (struct tree_constructor): Include tree_typed instead of
9598         tree_common.
9599         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9600         TS_TYPED instead of TS_COMMON.
9601
9602 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9603
9604         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9605         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9606         (sse2_psadbw): Merge with *avx_psadbw.
9607         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9608         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9609         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9610         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9611         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9612         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9613         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9614         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9615         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9616         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9617         (ssse3_palignrti): Merge with *avx_palignrti.
9618
9619 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9620
9621         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9622         * tree-ssanames.c (fini_ssanames): VEC_free it.
9623         (make_ssa_name_fn): Update for VECness of free_ssanames.
9624         (release_ssa_name, release_dead_ssa_names): Likewise.
9625         * tree.h (struct tree_ssa_name): Include tree_typed instead of
9626         tree_common.
9627         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9628         TS_TYPED instead of TS_COMMON.
9629
9630 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9631
9632         * postreload-gcse.c (gcse_after_reload_main): Add calls to
9633         statistics_counter_event.
9634         * tree-ssa-copyrename.c (stats): Define.
9635         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
9636         statistics_counter_event.
9637         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9638         (bswap_stats, widen_mul_stats): Define.
9639         (insert_reciprocals): Increment rdivs_inserted.
9640         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
9641         rfuncs_inserted.  Add calls to statistics_counter_event.
9642         (execute_cse_sincos_1): Increment inserted.
9643         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
9644         statistics_counter_event.
9645         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
9646         of bswap_stats.  Add calls to statistics_counter_event.
9647         (convert_mult_to_widen): Increment widen_mults_inserted.
9648         (convert_plusminus_to_widen): Increment maccs_inserted.
9649         (convert_mult_to_fma): Increment fmas_inserted.
9650         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
9651         calls to statistics_counter_event.
9652
9653 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
9654
9655         PR rtl-optimization/48455
9656         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9657         `temp_costs->mem_cost'.
9658
9659 2011-04-13  Jan Hubicka  <jh@suse.cz>
9660
9661         * ipa-inline.h: New file.
9662         * ipa-inline-analysis.c: New file. Broken out of ...
9663         * ipa-inline.c: ... this file; update toplevel comment;
9664         include ipa-inline.h
9665         (inline_summary): Move to ipa-inline.h
9666         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9667         ipa-inline-analysis.c.
9668         (cgraph_estimate_time_after_inlining): Rename to
9669         estiamte_time_after_inlining; move to ipa-inline-analysis.c
9670         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9671         to estimate_edge_growth.
9672         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9673         rename to estimate_size_after_inlining.
9674         (cgraph_mark_inline_edge): Update for new naming convention.
9675         (cgraph_check_inline_limits): Likewise.
9676         (cgraph_edge_badness): Likewise.
9677         (cgraph_decide_recursive_inlining): Likewise.
9678         (cgraph_decide_inlining_of_small_functions): Likewise.
9679         (cgraph_decide_inlining_incrementally): Likewise.
9680         (cgraph_estimate_growth): Rename to estimate_growth; move to
9681         ipa-inline-analysis.c.
9682         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9683         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9684         (compute_inline_parameters): Likewise.
9685         (compute_inline_parameters_for_current): Likewise.
9686         (pass_inline_parameters): Likewise.
9687         (inline_indirect_intraprocedural_analysis): Likewise.
9688         (analyze_function): Rename to inline_analyze_function; likewise.
9689         (add_new_function): Move to ipa-inline-analysis.c.
9690         (inline_generate_summary): Likewise.
9691         (inline_read_summary): Likewise.
9692         (inline_write_summary): Likewise.
9693         * Makefile.in (ipa-inline-analysis.c): New file.
9694
9695 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9696
9697         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9698         * configure: Regenerate.
9699
9700 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9701
9702         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9703         instead of tree_common.
9704         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9705         Likewise.
9706         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9707         TS_TYPED rather than TS_COMMON.
9708         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9709
9710 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
9711
9712         PR target/45263
9713         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9714         r20 around calls of __tablejump_elpm__
9715
9716 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
9717
9718         PR middle-end/48591
9719         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9720         NULL.
9721         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9722
9723 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
9724
9725         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9726         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9727         (cfi_vec): New typedef.
9728         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9729         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9730         (cie_cfi_vec): New static variable.
9731         (cie_cfi_head): Delete.
9732         (add_cfi): Accept a cfi_vec * as first argument. All callers and
9733         declaration changed. Use vector rather than list operations.
9734         (new_cfi): Don't initialize the dw_cfi_next field.
9735         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9736         rather than list operations.
9737         (lookup_cfa): Use vector rather than list operations.
9738         (output_cfis): New argument upto. Accept a cfi_vec rather than
9739         a dw_cfi_ref list head as argument. All callers changed.
9740         Iterate over the vector using upto as a maximum index.
9741         (output_all_cfis): New static function.
9742         (output_fde): Use vector rather than list operations. Use the
9743         new upto argument for output_cfis rather than manipulating a
9744         list.
9745         (dwarf2out_begin_prologue): Change initializations to match
9746         new struct members.
9747         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9748         from the vector length rather than searching for the end of a list.
9749         Use output_all_cfis.
9750         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9751
9752 2011-04-13  Nick Clifton  <nickc@redhat.com>
9753
9754         * config/rx/rx.md (movmemsi): Do not use this pattern when
9755         volatile pointers are involved.
9756
9757 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9758
9759         * config/i386/sse.md (pinsrbits): Remove.
9760         (sse2_packsswb): Merge with *avx_packsswb.
9761         (sse2_packssdw): Merge with *avx_packssdw.
9762         (sse2_packuswb): Merge with *avx_packuswb.
9763         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9764         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9765         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9766         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9767         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9768         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9769         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9770         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9771         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9772         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9773         (sse2_loadld): Merge with *avx_loadld.
9774         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9775         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9776         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9777         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9778         (vec_concatv2di): Merge with *vec_concatv2di_avx.
9779
9780 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
9781
9782         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9783         calling TREE_CHAIN.
9784         * print-tree.c (print_node): Likewise.
9785         * tree-inline.c (copy_tree_r): Likewise.
9786         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9787         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9788         instead of TS_COMMON.
9789         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9790         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9791         (copy_node_stat): Zero TREE_CHAIN only if necessary.
9792         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9793         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9794         ...and these...
9795         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9796         * tree.h: ...here.
9797         (TREE_CHAIN): Check for a TS_COMMON structure.
9798         (TREE_TYPE): Check for a TS_TYPED structure.
9799
9800 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
9801
9802         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9803         cgraph_get_create_node instead of cgraph_node.
9804
9805 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
9806
9807         * c-parser.c (c_parser_initelt): Updated call to
9808         objc_build_message_expr.
9809         (c_parser_postfix_expression): Likewise.
9810
9811 2011-04-12  Kai Tietz  <ktietz@redhat.com>
9812
9813         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9814         MASK_MS_BITFIELD_LAYOUT bit.
9815
9816 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9817
9818         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9819         assert it is always true.
9820         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9821         moves.
9822
9823 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
9824
9825         * c-parser.c (c_lex_one_token): Rewritten conditional used when
9826         compiling Objective-C to be more efficient.
9827
9828 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
9829
9830         * opts-common.c (decode_cmdline_options_to_array): Remove variable
9831         argv_copied.
9832
9833 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9834
9835         * recog.h, genoutput.c, optabs.c: Revert last patch.
9836
9837 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9838
9839         PR target/48090
9840         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
9841
9842 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9843
9844         * recog.h (insn_operand_data): Add an "allows_mem" field.
9845         * genoutput.c (output_operand_data): Initialize it.
9846         * optabs.c (maybe_legitimize_operand_same_code): New function.
9847         (maybe_legitimize_operand): Use it when matching the original
9848         op->value.
9849
9850 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9851
9852         * genpreds.c (process_define_predicate): Move most processing
9853         to gensupport.c.  Continue to validate the expression.
9854         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9855         (process_define_predicate): Move processing to gensupport.c.
9856         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9857         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9858         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
9859         argument.
9860         (valid_predicate_name_p): New function, split out from old
9861         genpreds.c:process_define_predicate.
9862         (process_define_predicate): New function, combining code from
9863         old genpreds.c and genrecog.c functions.
9864         (process_rtx): Call it for DEFINE_PREDICATE and
9865         DEFINE_SPECIAL_PREDICATE.
9866
9867 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
9868
9869         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9870         size of a '%A' memory reference.
9871         (T_DREG, T_QREG): New neon_builtin_type_bits.
9872         (arm_init_neon_builtins): Assert that the load and store operands
9873         are neon_struct_operands.
9874         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9875         (NEON_ARG_MEMORY): New builtin_arg.
9876         (neon_dereference_pointer): New function.
9877         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9878         Handle NEON_ARG_MEMORY.
9879         (arm_expand_neon_builtin): Update after above interface changes.
9880         Use NEON_ARG_MEMORY for loads and stores.
9881         * config/arm/predicates.md (neon_struct_operand): New predicate.
9882         * config/arm/iterators.md (V_two_elem): Tweak formatting.
9883         (V_three_elem): Use BLKmode for accesses that have no associated mode.
9884         (V_four_elem): Tweak formatting.
9885         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9886         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9887         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9888         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9889         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9890         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9891         (neon_vst4<mode>): Replace pointer operand with a memory operand.
9892         Use %A in the output template.
9893         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9894         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9895         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9896         the width of the memory access.  Remove post-increment.
9897         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9898
9899 2011-04-12  Nick Clifton  <nickc@redhat.com>
9900
9901         * config/v850/v850.c (expand_prologue): Do not use the CALLT
9902         instruction for interrupt handlers if the target is the basic V850
9903         architecture.
9904         (expand_epilogue): Likewise.
9905
9906 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9907
9908         PR rtl-optimization/48549
9909         * combine.c (propagate_for_debug): Also stop after BB_END of
9910         this_basic_block.  Process LAST and just stop processing after it.
9911         (combine_instructions): If last_combined_insn has been deleted,
9912         set last_combined_insn to its PREV_INSN.
9913
9914 2011-04-12  Richard Guenther  <rguenther@suse.de>
9915
9916         PR tree-optimization/46076
9917         * gimple.h (struct gimple_statement_call): Add fntype field.
9918         (gimple_call_fntype): Adjust.
9919         (gimple_call_set_fntype): New function.
9920         * gimple.c (gimple_build_call_1): Set the call function type.
9921         * gimplify.c (gimplify_call_expr): Preserve the function
9922         type the frontend used for the call.
9923         (gimplify_modify_expr): Likewise.
9924         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9925         function type.
9926         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9927         function type.
9928         * tree-ssa.c (useless_type_conversion_p): Function pointer
9929         conversions are useless.
9930
9931 2011-04-12  Martin Jambor  <mjambor@suse.cz>
9932
9933         * cgraph.h (cgraph_node): Remove function declaration.
9934         (cgraph_create_node): Declare.
9935         (cgraph_get_create_node): Likewise.
9936         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9937         Updated all callers.
9938         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9939         the decl does not already exist.  Call cgraph_get_create_node instead
9940         of cgraph_node.
9941         (cgraph_get_create_node): New function.
9942         (cgraph_same_body_alias): Update comment.
9943         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9944         assert it does not return NULL.
9945         (cgraph_update_edges_for_call_stmt): Likewise.
9946         (cgraph_clone_edge): Likewise.
9947         (cgraph_create_virtual_clone): Likewise.
9948         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9949         instead of cgraph_node.
9950         (cgraph_add_new_function): Call cgraph_create_node or
9951         cgraph_get_create_node instead of cgraph_node.
9952         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9953         instead of cgraph_node.
9954         (record_eh_tables): Likewise.
9955         (mark_address): Likewise.
9956         (mark_load): Likewise.
9957         (build_cgraph_edges): Call cgraph_get_create_node instead
9958         of cgraph_node.
9959         (rebuild_cgraph_edges): Likewise.
9960         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9961         instead of cgraph_node.
9962         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9963         cgraph_node.
9964         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9965         cgraph_create_node instead of cgraph_node.
9966         * c-decl.c (finish_function): Call cgraph_get_create_node instead
9967         of cgraph_node.
9968         * lto-cgraph.c (input_node): Likewise.
9969         * lto-streamer-in.c (input_function): Likewise.
9970         * varasm.c (mark_decl_referenced): Likewise.
9971         (assemble_alias): Likewise.
9972
9973 2011-04-12  Martin Jambor  <mjambor@suse.cz>
9974
9975         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9976         instead of cgraph_node and assert it does not return NULL.
9977         * lto-streamer-in.c (lto_read_body): Likewise.
9978         * omp-low.c (new_omp_context): Likewise.
9979         (create_task_copyfn): Likewise.
9980         * tree-emutls.c (lower_emutls_function_body): Likewise.
9981         * matrix-reorg.c (transform_allocation_sites): Likewise.
9982
9983 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9984
9985         PR c/48552
9986         * c-typeck.c (build_asm_expr): Error out on attempts to use
9987         void type outputs or inputs for constraints that allow reg or
9988         don't allow memory.
9989
9990 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
9991             Richard Earnshaw  <rearnsha@arm.com>
9992
9993         PR target/48250
9994         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9995         to use sign-magnitude offsets. Reject unsupported unaligned
9996         cases. Add detailed description in comments.
9997         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9998         condition from TARGET_32BIT to TARGET_ARM.
9999
10000 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
10001
10002         * tree.h (struct typed_tree): New.
10003         (struct tree_common): Include it instead of tree_base.
10004         (TREE_TYPE): Update for new location of type field.
10005         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10006         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10007         (union tree_node): Add typed field.
10008         * treestruct.def (TS_TYPED): New.
10009         * lto-streamer.c (check_handled_ts_structures): Handle it.
10010         * tree.c (MARK_TS_TYPED): New macro.
10011         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10012
10013 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
10014
10015         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10016         (force_nonfallthru): Do not alter the loop nest if no basic block
10017         was created.
10018
10019 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10020
10021         * config/i386/sse.md (VI): New mode iterator.
10022         (SSEMODEI): Remove.
10023         (AVX256MODEI): Ditto.
10024         (AVXMODEF4P): Ditto.
10025         (avxvecpsmode): Ditto.
10026         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
10027         (sse2_andnot<mode>3): New expander.
10028         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10029         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
10030         (<any_logic:code><mode>3): Use VI mode iterator.
10031         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10032         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
10033         (*andnottf3): Handle AVX three-operand constraints.
10034         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10035
10036 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10037             Robert Millan  <rmh@gnu.org>
10038
10039         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10040         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10041         GNU_USER_DYNAMIC_LINKER64): Define.
10042         (REG_NAME): Don't undefine.
10043         (MD_UNWIND_SUPPORT): Undefine.
10044         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10045         (REG_NAME): Don't undefine.
10046         (MD_UNWIND_SUPPORT): Undefine.
10047         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10048
10049 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10050
10051         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10052         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10053
10054 2011-04-11  Xinliang David Li  <davidxl@google.com>
10055
10056         * value-profile.c (check_ic_target): New function.
10057         (gimple_ic_transform): Sanity check indirect call target.
10058         * gimple-low.c (gimple_check_call_args): Interface change.
10059         (gimple_check_call_matching_types): New function.
10060         * tree-inline.c (tree_can_inline_p): Call new function.
10061
10062 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
10063
10064         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10065         tree-pretty-print.h & realmpfr.h.
10066
10067 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
10068
10069         PR middle-end/48464
10070         * ira.c (setup_pressure_classes): Fix typo in loop condition.
10071         (setup_allocno_and_important_classes): Ditto.
10072
10073 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10074
10075         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10076         GNU_USER_DYNAMIC_LINKER.
10077         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10078         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10079         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10080         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10081         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10082         GNU_USER_TARGET_OS_CPP_BUILTINS.
10083         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10084         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10085         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10086         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10087         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10088         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10089         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10090         GNU_USER_TARGET_OS_CPP_BUILTINS.
10091         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10092         GNU_USER_DYNAMIC_LINKER.
10093         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10094         GNU_USER_TARGET_OS_CPP_BUILTINS.
10095         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10096         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10097         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10098         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10099         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10100         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10101         GNU_USER_DYNAMIC_LINKER64): Remove.
10102         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10103         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10104         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10105         GNU_USER_DYNAMIC_LINKER.
10106         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10107         GNU_USER_TARGET_OS_CPP_BUILTINS.
10108         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10109         GNU_USER_TARGET_OS_CPP_BUILTINS.
10110         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10111         to GNU_USER_TARGET_OS_CPP_BUILTINS.
10112         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10113         GNU_USER_TARGET_OS_CPP_BUILTINS.
10114         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10115         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10116         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10117         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10118         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10119         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10120         GNU_USER_DYNAMIC_LINKER.
10121         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10122         GNU_USER_TARGET_OS_CPP_BUILTINS.
10123         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10124         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10125         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10126         GNU_USER_DYNAMIC_LINKER.
10127         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10128         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10129         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10130         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10131         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10132         GNU_USER_DYNAMIC_LINKER.
10133         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10134         GNU_USER_DYNAMIC_LINKERN32.
10135         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10136         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
10137         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
10138         GNU_USER_DYNAMIC_LINKER32.
10139         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10140         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10141         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10142         GNU_USER_DYNAMIC_LINKER.
10143         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10144         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10145         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10146         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10147         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10148         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10149         GNU_USER_DYNAMIC_LINKER32.
10150         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10151         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10152         GNU_USER_DYNAMIC_LINKER.
10153         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10154         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10155         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10156         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
10157         GNU_USER_DYNAMIC_LINKER64.
10158         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10159         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10160         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10161         GNU_USER_DYNAMIC_LINKER.
10162         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10163         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10164         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10165         GNU_USER_DYNAMIC_LINKER.
10166         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10167         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10168         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10169         GNU_USER_DYNAMIC_LINKER32.
10170         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10171         GNU_USER_DYNAMIC_LINKER64.
10172         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10173         GNU_USER_DYNAMIC_LINKER64.
10174         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10175         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10176         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10177         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10178         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10179
10180 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10181
10182         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
10183         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10184         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10185         GNU_USER_DYNAMIC_LINKER.
10186         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10187         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
10188         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10189         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10190         GNU_USER_DYNAMIC_LINKER64.
10191         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10192         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10193         GNU_USER_LINK_EMULATION.
10194         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10195         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10196         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10197         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10198         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10199         CPP_SPEC, CC1_SPEC): Remove.
10200         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10201         (GNU_USER_DYNAMIC_LINKER): Define.
10202         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10203         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10204         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10205         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10206         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10207         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10208         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10209         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10210         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10211         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10212         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10213         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10214         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10215         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10216         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10217         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10218         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10219         GNU_USER_DYNAMIC_LINKER.
10220         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10221         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10222         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10223         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10224         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10225         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10226         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10227         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10228         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10229         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10230
10231 2011-04-11  Kai Tietz  <ktietz@redhat.com>
10232
10233         PR target/9601
10234         PR target/11772
10235         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10236         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10237         comment.
10238         (ix86_is_msabi_thiscall): Removed.
10239         (ix86_is_type_thiscall): Likewise.
10240         (ix86_get_callcvt): New function.
10241         (ix86_comp_type_attributes): Simplify check.
10242         (ix86_function_regparm): Use ix86_get_callcvt for calling
10243         convention attribute checks.
10244         (ix86_return_pops_args): Likewise.
10245         (ix86_static_chain): Likewise.
10246         (x86_this_parameter): Likewise.
10247         (x86_output_mi_thunk): Likewise.
10248         (ix86_function_type_abi): Optimize check for types without attributes.
10249         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10250         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10251         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10252         by flag-values.
10253         (IX86_BASE_CALLCVT): Helper macro.
10254         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10255         Use ix86_get_callcvt for calling convention attribute checks and avoid
10256         symbol-decoration for stdcall in TARGET_RTD case.
10257         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10258         Likewise.
10259         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10260         for declaration.
10261
10262 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10263
10264         * config/i386/sse.md (VI_128): New mode iterator.
10265         (VI12_128): Rename from SSEMODE12.
10266         (VI14_128): Rename from SSEMODE14.
10267         (VI124_128): New mode iterator.
10268         (VI24_128): Rename from SSEMODE248.
10269         (VI248_128): Rename from SSEMODE248.
10270         (SSEMODE124C8): Remove.
10271         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10272         (*sse2_<plusminus_insn><mode>3): Merge with
10273         *avx_<plusminus_insn><mode>3.
10274         (*mulv8hi3): Merge with *avx_mulv8hi3.
10275         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10276         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10277         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10278         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10279         (ashr<mode>3): Merge with *avx_ashr<mode>3.
10280         (lshr<mode>3): Merge with *avx_lshr<mode>3.
10281         (ashl<mode>3): Merge with *avx_ashl<mode>3.
10282         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10283         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10284         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10285         (*<smaxmin:code>v8hi3): Ditto.
10286         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10287         (*<smaxmin:code>v16qi3): Ditto.
10288         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10289         (*sse2_eq<mode>3): Ditto.
10290         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10291         (*sse2_gt<mode>3): Ditto.
10292         (vcondv2di): Split out of vcond<mode>.
10293         (vconduv2di): Split out of vcondu<mode>.
10294
10295 2011-04-11  Richard Guenther  <rguenther@suse.de>
10296
10297         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10298         before calling tree_low_cst.
10299
10300 2011-04-11  Richard Guenther  <rguenther@suse.de>
10301
10302         * stor-layout.c (layout_type): Compute all array index size operations
10303         in the original type.
10304         (initialize_sizetypes): Add comment.
10305         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10306
10307 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10308
10309         * common.opt (Tbss=, Tdata=, Ttext=): New options.
10310
10311 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10312
10313         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10314         of cgraph_node, handle NULL return value.
10315         (cgraph_global_info): Likewise.
10316         (cgraph_rtl_info): Likewise.
10317         * tree-inline.c (estimate_num_insns): Likewise.
10318         * gimplify.c (unshare_body): Likewise.
10319         (unvisit_body): Likewise.
10320         (gimplify_body): Likewise.
10321         * predict.c (optimize_function_for_size_p): Likewise.
10322         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10323         (call_may_clobber_ref_p_1): Likewise.
10324         * varasm.c (function_section_1): Likewise.
10325         (assemble_start_function): Likewise.
10326
10327 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10328
10329         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10330         of cgraph_node.
10331         * final.c (rest_of_clean_state): Likewise.
10332         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10333         * passes.c (pass_init_dump_file): Likewise.
10334         (execute_all_ipa_transforms): Likewise.
10335         (function_called_by_processed_nodes_p): Likewise.
10336         * predict.c (maybe_hot_frequency_p): Likewise.
10337         (probably_never_executed_bb_p): Likewise.
10338         (compute_function_frequency): Likewise.
10339         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10340         (unnest_nesting_tree_1): Likewise.
10341         (lower_nested_functions): Likewise.
10342         * tree-optimize.c (execute_fixup_cfg): Likewise.
10343         (tree_rest_of_compilation): Likewise.
10344         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10345         * tree-sra.c (ipa_early_sra): Likewise.
10346         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10347         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10348         * ipa.c (record_cdtor_fn): Likewise.
10349         * ipa-inline.c (cgraph_early_inlining): Likewise.
10350         (compute_inline_parameters_for_current): Likewise.
10351         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10352         * ipa-pure-const.c (local_pure_const): Likewise.
10353         * ipa-split.c (split_function): Likewise.
10354         (execute_split_functions): Likewise.
10355         * cgraphbuild.c (build_cgraph_edges): Likewise.
10356         (rebuild_cgraph_edges): Likewise.
10357         (cgraph_rebuild_references): Likewise.
10358         (remove_cgraph_callee_edges): Likewise.
10359         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10360         (verify_cgraph_node): Likewise.
10361         (cgraph_analyze_functions): Likewise.
10362         (cgraph_preserve_function_body_p): Likewise.
10363         (save_inline_function_body): Likewise.
10364         (save_inline_function_body): Likewise.
10365         * tree-inline.c (copy_bb): Likewise.
10366         (optimize_inline_calls): Likewise.
10367
10368 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10369
10370         PR tree-optimization/48195
10371         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10372         ipa_check_create_edge_args.
10373         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10374         ipa_check_create_edge_args.
10375         * ipa-inline.c (inline_generate_summary): Do not call
10376         ipa_check_create_node_params and ipa_check_create_edge_args.
10377         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10378         ipa_check_create_edge_args.
10379
10380 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
10381
10382         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10383         instead of loop.
10384         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10385         * function.c (record_hard_reg_sets): Likewise.
10386         * ira.c (compute_regs_asm_clobbered): Likewise.
10387         * sched-deps.c (sched_analyze_1): Likewise.
10388         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10389
10390 2011-04-09  Xinliang David Li  <davidxl@google.com>
10391
10392         PR tree-optimization/PR48484
10393         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10394         has_valid_pred lazily
10395
10396 2011-04-09  Duncan Sands  <baldrick@free.fr>
10397
10398         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10399
10400 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
10401
10402         * combine.c (combine_validate_cost): Adjust comments.  Set registered
10403         cost of I0 to zero at the end, if any.
10404
10405 2011-04-08  Xinliang David Li  <davidxl@google.com>
10406
10407         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10408         to insane profile data.
10409
10410 2011-04-08  Xinliang David Li  <davidxl@google.com>
10411
10412         * ipa-cp.c (ipcp_update_profiling): Correct
10413          negative scale factor due to insane profile data.
10414
10415 2011-04-08  Xinliang David Li  <davidxl@google.com>
10416
10417         * final.c (dump_basic_block_info): New function.
10418         (final): Dump basic block.
10419         (final_scan_insn): Remove old dump.
10420
10421 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
10422
10423         PR target/47829
10424         * config.gcc (i386-*-freebsd): Disable unwind table generation for
10425         crtbegin/crtend.
10426
10427 2011-04-08  Michael Matz  <matz@suse.de>
10428
10429         PR middle-end/48389
10430         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10431         functions.
10432         (rebuild_jump_labels): Call rebuild_jump_labels_1.
10433         * rtl.h (rebuild_jump_labels_chain): Declare.
10434         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10435         insns inserted on edges.
10436
10437 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
10438
10439         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10440         * config/arm/arm-arches.def: New.
10441         * config/arm/arm-opts.h: New.
10442         * config/arm/genopt.sh: New.
10443         * config/arm/arm-tables.opt: New (generated).
10444         * config/arm/arm.c (arm_handle_option, arm_target_help,
10445         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10446         (all_architectures): Get most table contents from arm-arches.def.
10447         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10448         arm_selected_tune here.
10449         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10450         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10451         (march=, mcpu=, mtune=): Use Enum and Var.
10452         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10453         (arm.o): Update dependencies.
10454
10455 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
10456
10457         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10458         of header_file.
10459         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10460         (write_typed_alloc_defns): Likewise.
10461         (main): Calls write_typed_alloc_defns with output_header.
10462
10463 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
10464
10465         PR inline-asm/48435
10466         * ira-color.c (setup_profitable_hard_regs): Add comments.
10467         Don't take prohibited hard regs into account.
10468         (setup_conflict_profitable_regs): Rename to
10469         get_conflict_profitable_regs.
10470         (check_hard_reg_p): Check prohibited hard regs.
10471
10472 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
10473
10474         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10475         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10476         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10477
10478 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10479
10480         PR target/48366
10481         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10482         move from floating point to shift amount register.
10483         (emit_move_sequence): Remove secondary reload support for floating
10484         point to shift amount amount register copies.
10485         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10486         amount register copies.
10487         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10488         register, return false if mode isn't a scalar integer mode.
10489         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10490
10491 2011-04-08  Richard Guenther  <rguenther@suse.de>
10492
10493         * gimple.c (gimple_call_flags): Remove kludge.
10494
10495 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10496
10497         * sel-sched.c (sel_region_init): Move call to
10498         sel_setup_region_sched_flags after setup_current_loop_nest.
10499
10500 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
10501
10502         PR rtl-optimization/48272
10503         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10504         init_insn_reg_pressure_info.  Adjust a caller.
10505         * sched-int.h (init_insn_reg_pressure_info): Declare.
10506         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10507         when sched-pressure is enabled.
10508
10509 2011-04-08  Richard Guenther  <rguenther@suse.de>
10510
10511         * gimple.c (gimple_set_modified): Do not queue calls to
10512         MODIFIED_NORETURN_CALLS here ...
10513         * tree-ssa-operands.c (update_stmt_operands): ... but here.
10514
10515 2011-04-08  Richard Guenther  <rguenther@suse.de>
10516
10517         PR lto/48467
10518         * toplev.c (lang_dependent_init): Do not open asm_out_file
10519         in WPA mode, nor perform debug machinery initialization.
10520         (finalize): Do not unlink asm_out_file in WPA mode.
10521
10522 2011-04-08  Richard Guenther  <rguenther@suse.de>
10523
10524         * gimple.h (gimple_call_fntype): New function.
10525         (gimple_call_return_type): Use it.
10526         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10527         * gimple-low.c (gimple_check_call_args): Likewise.
10528         * gimple.c (gimple_call_flags): Likewise.
10529         (gimple_call_arg_flags): Likewise.
10530         (gimple_call_return_flags): Likewise.
10531         * tree-cfg.c (verify_gimple_call): Likewise.
10532         (do_warn_unused_result): Likewise.
10533         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10534         * value-prof.c (gimple_ic_transform): Fix fndecl check.
10535
10536 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
10537
10538         PR rtl-optimization/48235
10539         * sel-sched.c (code_motion_process_successors): Recompute the last
10540         insn in basic block if control flow changed.
10541         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
10542         Update condition for ilist_remove.
10543
10544 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10545
10546         PR rtl-optimization/48302
10547         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10548         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
10549         it to record added preheader blocks.
10550         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
10551         on to sel_add_loop_preheaders.
10552         (sel_region_init): Move call to setup_current_loop_nest after
10553         sel_init_bbs.
10554
10555 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10556
10557         PR target/48273
10558         * cfgloop.h (loop_has_exit_edges): New helper.
10559         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10560         non-clonable.
10561         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10562         that have no exit edges.
10563
10564 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10565
10566         PR rtl-optimization/48442
10567         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
10568         all callers.  Adjust assert.
10569
10570 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
10571
10572         PR tree-optimization/48377
10573         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10574         is_packed to true even for types with smaller TYPE_ALIGN than
10575         TYPE_SIZE.
10576
10577 2011-04-08  Richard Guenther  <rguenther@suse.de>
10578
10579         PR bootstrap/48513
10580         * doc/tm.texi: Re-generate.
10581
10582 2011-04-08  Wei Guozhi  <carrot@google.com>
10583
10584         PR target/47855
10585         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10586         * config/arm/arm.c (arm_attr_length_push_multi): New function.
10587         * config/arm/arm.md (*push_multi): Change the length computation to
10588         call a C function.
10589
10590 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
10591
10592         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10593         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10594         * doc/tm.texi: Regenerate.
10595         * system.h (ASM_OUTPUT_BSS): Poison.
10596         * varasm.c (asm_output_bss): Remove function.
10597         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10598
10599         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10600         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10601         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10602         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10603         Likewise.
10604         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10605         Likewise.
10606         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10607         Likewise.
10608         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10609
10610 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10611
10612         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10613         EnumValue lines.
10614
10615 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10616
10617         * config/m68k/m68k.c (m68k_handle_option): Don't handle
10618         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10619         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10620         OPT_mcpu32.
10621         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10622         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10623         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10624         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10625         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10626         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10627         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10628         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10629         options.  Don't map other m68k options manually.  Don't handle
10630         old-style options as canonical.
10631         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10632         * doc/install.texi (m68k-*-*): Document binutils version requirement.
10633
10634 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10635
10636         * basic-block.h (force_nonfallthru): Move to...
10637         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10638         (force_nonfallthru): ...here.
10639         * cfghooks.c (force_nonfallthru): New function.
10640         * cfgrtl.c (force_nonfallthru): Rename into...
10641         (rtl_force_nonfallthru): ...this.
10642         (commit_one_edge_insertion): Do not set AUX field.
10643         (commit_edge_insertions): Do not discover new basic blocks.
10644         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10645         (cfg_layout_rtl_cfg_hooks): Likewise.
10646         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10647         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
10648         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10649
10650 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
10651
10652         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10653         Remove macros.
10654
10655 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
10656
10657         * config/i386/sse.md: Update copyright year.
10658         (avxcvtvecmode): Remove.
10659         (sse_movhlps): Merge with *avx_movhlps.
10660         (sse_movlhps): Merge with *avx_movlhps.
10661         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10662         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10663         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10664         (sse_loadhps): Merge with *avx_loadhps.
10665         (sse_storelps): Merge with *avx_storelps.
10666         (sse_loadlps): Merge with *avx_loadlps.
10667         (sse_movss): Merge with *avx_movss.
10668         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10669         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10670         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10671         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10672         (vec_set<mode>_0): Ditto.
10673         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10674         (sse4_1_insertps): Merge with *avx_insertps.
10675         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10676         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10677         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10678         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10679         (sse2_storehpd): Merge with *avx_storehpd.
10680         (sse2_loadhpd): Merge with *avx_loadhpd.
10681         (sse2_loadlpd): Merge with *avx_loadlpd.
10682         (sse2_movsd): Merge with *avx_movsd.
10683         (*vec_concatv2df): Merge with *vec_concatv2df.
10684
10685 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
10686
10687         PR debug/48343
10688         * combine.c (combine_instructions): Add last_combined_insn,
10689         update it if insn is after it, pass it to all try_combine calls.
10690         (try_combine): Add last_combined_insn parameter, pass it instead of
10691         i3 to propagate_for_debug.
10692
10693 2011-04-07  Nick Clifton  <nickc@redhat.com>
10694
10695         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10696         to handle MDR <-> data register transfers.
10697         (movhi_internal): Likewise.
10698
10699 2011-04-07  Alan Modra  <amodra@gmail.com>
10700
10701         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10702         previous stack info.
10703
10704 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10705
10706         PR target/43920
10707         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
10708         flow_find_cross_jump.  Swap variables to implement backward replacement.
10709         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10710
10711 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10712
10713         PR target/43920
10714         * cfgcleanup.c (walk_to_nondebug_insn): New function.
10715         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
10716         and bb2.
10717         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10718         src1 or src2.  Redirect edges to the last basic block.  Update
10719         frequency and count on multiple basic blocks in case of fallthru.
10720
10721 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10722
10723         PR target/43920
10724         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10725         function.
10726         (old_insns_match_p): Change return type.  Replace return false/true
10727         with return dir_none/dir_both.  Use can_replace_by.
10728         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
10729         direction from dir_p.  Register replacement direction in dir, last_dir
10730         and afterlast_dir.  Handle new return type of old_insns_match_p using
10731         merge_dir.  Return replacement direction in dir_p.
10732         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10733         return type of old_insns_match_p.
10734         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10735         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10736         flow_find_cross_jump.
10737         * basic-block.h (enum replace_direction): New type.
10738         (flow_find_cross_jump): Add parameter to declaration.
10739
10740 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
10741
10742         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10743         (AVXMODEDCVTPS2DQ): Ditto.
10744         (VEC_FLOAT_MODE): Ditto.
10745         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
10746         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10747         (<any_logic:code><mode>3): Use VF mode iterator.
10748         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10749         Use VF mode iterator.
10750         (copysign<mode>3): Use VF mode iterator.
10751         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
10752         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10753         (*<any_logic:code><MODEF:mode>3): Merge with
10754         *avx_<any_logic:code><MODEF:mode>3.
10755         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10756         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10757         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10758         (avx_cvtdq2ps<avxmodesuffix>): Remove.
10759         (sse2_cvtdq2ps): Use %v modifier.
10760         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10761         (avx_cvtps2dq<avxmodesuffix>): Remove.
10762         (sse2_cvtps2dq): Use %v modifier.
10763         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10764         (avx_cvttps2dq<avxmodesuffix>): Remove.
10765         (sse2_cvttps2dq): Use %v modifier.
10766         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10767         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10768         (sse2_cvtsd2siq): Fix insn template.
10769         (sse2_cvtsd2siq_2): Ditto.
10770         (sse2_cvttsd2siq): Ditto.
10771         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10772         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10773
10774 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
10775
10776         * gcov-io.c: Use GCC Runtime Library Exception.
10777
10778 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
10779
10780         PR debug/48466
10781         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10782         as base_reg whatever register reg has been eliminated to, instead
10783         of hardcoding STACK_POINTER_REGNUM.
10784
10785 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
10786
10787         * doc/tm.texi.in: Document C target hooks as separate from general
10788         target hooks.
10789         * doc/tm.texi: Regenerate.
10790         * genhooks.c (struct hook_desc): Add docname field.
10791         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
10792         docname field.
10793         (hook_array): Include c-target.def.
10794         (emit_documentation): Use docname field in output.
10795         (emit_init_macros): Take docname argument.  Only emit definitions
10796         for hooks matching docname.
10797         (main): Expect additional arguments in all cases.  Pass argument
10798         to emit_init_macros.
10799         * target.def: Move initial macro definitions and comments to
10800         target-hooks-macros.h.
10801         (gcc_targetcm): Move to c-family/c-target.def.
10802         * target.h (targetcm): Move declaration to c-family/c-target.h.
10803         * targhooks.c (default_handle_c_option): Move to
10804         c-family/c-opts.c.
10805         * targhooks.h (default_handle_c_option): Move declaration to
10806         c-family/c-common.h.
10807         * target-hooks-macros.h: New file.
10808         * config.gcc (target_has_targetcm): Define and use to add to
10809         c_target_objs and cxx_target_objs.
10810         * config/default-c.c: New file.
10811         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10812         of target.h and target-def.h.
10813         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10814         (darwin_objc_construct_string, darwin_cfstring_ref_p,
10815         darwin_check_cfstring_format_arg): Make static.
10816         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10817         TARGET_STRING_OBJECT_REF_TYPE_P,
10818         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10819         * config/darwin-protos.h (darwin_objc_construct_string,
10820         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10821         declare.
10822         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10823         TARGET_STRING_OBJECT_REF_TYPE_P,
10824         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10825         * config/t-darwin (darwin-c.o): Update dependencies.
10826         * system.h (TARGET_HAS_TARGETCM): Poison.
10827         * Makefile.in (TARGET_H): Update.
10828         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10829         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10830         (default-c.o): New target.
10831         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
10832         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
10833         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
10834         c-target.def.
10835         (build/genhooks.o): Update dependencies.
10836
10837 2011-04-06  Richard Guenther  <rguenther@suse.de>
10838
10839         * ipa-inline.c (enum inlining_mode): Remove.
10840         (cgraph_flatten): Use some other token.
10841         (cgraph_edge_early_inlinable_p): New function, split out from ...
10842         (cgraph_perform_always_inlining): New function, split out from ...
10843         (cgraph_decide_inlining_incrementally): ... here.
10844         (cgraph_mark_inline_edge): Adjust.
10845         (cgraph_early_inlining): Re-structure.
10846         (pass_early_inline): Require SSA form.
10847
10848 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
10849             Julian Brown  <julian@codesourcery.com>
10850             Mark Shinwell  <shinwell@codesourcery.com>
10851
10852         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10853         LO_REGS only for Thumb-1.
10854         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10855         be used in short instructions when optimising for size on Thumb-2.
10856
10857 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
10858
10859         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10860         associated with user returns to be preserved.
10861
10862 2011-04-06  Tristan Gingold  <gingold@adacore.com>
10863
10864         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10865         symbol_queue_size, DBXOUT_DECR_NESTING,
10866         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10867         if XCOFF_DEBUGGING_INFO.
10868
10869 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
10870
10871         * config/i386/i386.md (attribute isa): New.
10872         (attribute enabled): New.
10873         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10874         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10875         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10876         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10877         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10878         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10879         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10880         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10881
10882         * config/i386/sse.md (VF): New mode iterator.
10883         (VF1): Ditto.
10884         (VF2): Ditto.
10885         (VF_128): Ditto.
10886         (SSEMODEF4): Remove.
10887         (attribute sse): Handle V8SF and V4DF modes.
10888         (<absneg:code><mode>2): Use VF mode iterator.
10889         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
10890         mode iterator.
10891         (<plusminus_insn><mode>3): Use VF mode iterator.
10892         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10893         Use VF mode iterator.
10894         (<sse>_vm<plusminus_insn><mode>3): Merge with
10895         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
10896         (mul<mode>3): Use VF mode iterator.
10897         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
10898         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
10899         mode iterator.
10900         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10901         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10902         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
10903         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
10904         mode iterator.
10905         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10906         Use VF1 mode iterator.
10907         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10908         (sqrt<VF2:mode>2): New expander.
10909         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10910         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10911         and sqrtv2df2.  Use VF mode iterator.
10912         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
10913         mode iterator.
10914         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10915         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10916         Use VF1 mode iterator.
10917         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10918         (<smaxmin:code><mode>3): Use VF mode iterator.
10919         (*<smaxmin:code><mode>3_finite): Merge with
10920         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
10921         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10922         (<sse>_vm<smaxmin:code><mode>2): Merge with
10923         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
10924         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
10925         mode iterator.
10926         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
10927         mode iterator.
10928         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10929         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10930         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10931         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10932         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
10933         VF mode iterator.
10934         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10935         Use VF_128 mode iterator.
10936         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
10937         mode iterator.
10938         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
10939         VF_128 mode iterator.
10940         (vcond<mode>): Use VF mode iterator.
10941         * config/i386/predicates.md (sse_comparison_operator): Merge with
10942         avx_comparison_float_operator.  Do not declare as special_predicate.
10943         * config/i386/i386.c (struct builtin_description): Update for renamed
10944         compare patterns.
10945         (ix86_expand_args_builtin): Ditto.
10946         (ix86_expand_sse_compare_mask): Ditto.
10947
10948 2011-04-06  Richard Guenther  <rguenther@suse.de>
10949
10950         * tree-inline.c (estimate_num_insns): For calls simply account
10951         for all passed arguments and a used return value.
10952
10953 2011-04-06  Richard Guenther  <rguenther@suse.de>
10954
10955         PR tree-optimization/47663
10956         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10957         call_stmt_time fields.
10958         (cgraph_edge_inlinable_p): Declare.
10959         (cgraph_edge_recursive_p): New inline function.
10960         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10961         (cgraph_clone_edge): Copy it.
10962         * ipa-inline.c (cgraph_estimate_edge_time): New function.
10963         Account for call stmt time.
10964         (cgraph_estimate_time_after_inlining): Take edge argument.
10965         (cgraph_estimate_edge_growth): Account call stmt size.
10966         (cgraph_estimate_size_after_inlining): Take edge argument.
10967         (cgraph_mark_inline_edge): Adjust.
10968         (cgraph_check_inline_limits): Likewise.
10969         (cgraph_recursive_inlining_p): Remove.
10970         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10971         (cgraph_decide_recursive_inlining): Take edge argument and
10972         adjust.
10973         (cgraph_decide_inlining_of_small_functions): Do not avoid
10974         diags for recursive inlining here.
10975         (cgraph_flatten): Adjust.
10976         (cgraph_decide_inlining_incrementally): Likewise.
10977         (estimate_function_body_sizes): Remove call cost handling.
10978         (compute_inline_parameters): Initialize caller edge call costs.
10979         (cgraph_estimate_edge_growth): New function.
10980         (cgraph_estimate_growth): Use it.
10981         (cgraph_edge_badness): Likewise.
10982         (cgraph_check_inline_limits): Take an edge argument.
10983         (cgraph_decide_inlining_of_small_functions): Adjust.
10984         (cgraph_decide_inlining): Likewise.
10985         * tree-inline.c (estimate_num_insns): Only account for call
10986         return value if it is used.
10987         (expand_call_inline): Avoid diagnostics on recursive inline
10988         functions here.
10989         * lto-cgraph.c (lto_output_edge): Output edge call costs.
10990         (input_edge): Input edge call costs.
10991
10992 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10993
10994         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10995
10996 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
10997
10998         * doc/invoke.texi (Spec Files): Fix typo.
10999
11000 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
11001
11002         * profile.c (branch_prob): Move declaration of local variable.  Remove
11003         obsolete ??? comment.  Expand the location explicitly instead of using
11004         the LOCATION_FILE and LOCATION_LINE macros.
11005
11006 2011-04-06  Wei Guozhi  <carrot@google.com>
11007
11008         PR target/47855
11009         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11010         (arm_cond_branch): Likewise.
11011         (arm_cond_branch_reversed): Likewise.
11012         (arm_jump): Likewise.
11013         (push_multi): Likewise.
11014         * config/arm/constraints.md (Py): New constraint.
11015
11016 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11017
11018         PR bootstrap/48471
11019         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11020         Move these...
11021         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11022         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11023         #ifdef DBX_DEBUGGING_INFO.
11024
11025 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
11026
11027         PR bootstrap/48403
11028         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11029         if old and new states differ.
11030
11031 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
11032
11033         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11034         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11035         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11036         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11037         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11038         mcfv4e): Use Alias.
11039         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11040         ColdFire options to -mcpu= options.
11041
11042 2011-04-05  Jeff Law  <law@redhat.com>
11043
11044         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11045         check if BB is a successor of LOOP->header and return
11046         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11047
11048 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
11049
11050         * cprop.c (struct reg_use): Remove.
11051         (reg_use_table): Make an array of RTX.
11052         (find_used_regs, constprop_register, local_cprop_pass,
11053         bypass_block): Simplify users of reg_use_table.
11054         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
11055         on one of the uses found by find_used_regs.
11056
11057 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11058
11059         PR bootstrap/48469
11060         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11061         declaration.
11062
11063 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11064
11065         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11066         as an rtx.
11067         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11068
11069 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
11070
11071         PR middle-end/48441
11072         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11073
11074 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11075
11076         * combine.c: Include obstack.h.
11077         (struct insn_link): Define.
11078         (uid_log_links): Adjust type.
11079         (FOR_EACH_LOG_LINK): New macro.
11080         (insn_link_obstack): Declare.
11081         (alloc_insn_link): Define.
11082         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
11083         type of link variables.
11084         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11085         (try_combine, record_promoted_values, distribute_notes): Likewise.
11086         (distribute_links): Likewise.  Tweak prototype.
11087         (clear_log_links): Delete.
11088         (adjust_for_new_dest): Call alloc_insn_link.
11089         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11090
11091 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11092
11093         * gcse.c (modify_mem_list): Convert to an array of VECs.
11094         (canon_modify_mem_list, compute_transp): Tweak formatting.
11095         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
11096         (load_killed_in_block_p): Likewise.
11097         (record_last_mem_set_info): Likewise.
11098         (clear_modify_mem_tables): Likewise.
11099
11100 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11101
11102         PR middle-end/48461
11103         * function.c (emit_use_return_register_into_block): Only define if
11104         HAVE_return.
11105
11106 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
11107
11108         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11109
11110 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
11111
11112         * config/rx/rx-opts.h: New.
11113         * config/rx/rx.c (rx_cpu_type): Remove.
11114         (rx_handle_option): Don't assert that global structures are in
11115         use.  Access variables via opts pointer.  Defer most handling of
11116         OPT_mint_register_.  Use error_at.
11117         (rx_option_override): Handle deferred OPT_mint_register_ here.
11118         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11119         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11120         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11121         (rx_cpu_types): New Enum and EnumValue entries.
11122         (mint-register=): Use Defer and use Var accordingly.
11123
11124 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11125
11126         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11127         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11128         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11129         Move these...
11130         (debug_free_queue, debug_nesting, symbol_queue_index):
11131         ...and these...
11132         * dbxout.c: ...to here.  Make static.
11133
11134 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11135
11136         * gcse.c (modify_pair): Define.  Define a VEC of it.
11137         (canon_modify_mem_list): Convert to an array of VECs.
11138         (free_insn_expr_list_list): Delete.
11139         (clear_modify_mem_tables): Call VEC_free instead.
11140         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11141         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11142         (canon_list_insert, compute_transp): Likewise.
11143
11144 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11145
11146         PR target/43920
11147         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11148         for size.
11149
11150 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11151
11152         PR target/43920
11153         * function.c (emit_use_return_register_into_block): New function.
11154         (thread_prologue_and_epilogue_insns): Use
11155         emit_use_return_register_into_block.
11156
11157 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11158
11159         PR target/43920
11160         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11161         insn.
11162
11163 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11164
11165         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11166
11167 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
11168
11169         * config/arm/arm.md (define_constants for unspec): Replace with
11170         define_c_enum.
11171         (define_constants for unspecv): Replace with define_c_enum.
11172         * config/arm/neon.md (define_constants for unspec): Replace with
11173         define_c_enum.
11174
11175 2011-04-04  Richard Henderson  <rth@redhat.com>
11176
11177         PR bootstrap/48400
11178         * dwarf2out.c (output_line_info): Always emit line info from
11179         at least one section.
11180         (dwarf2out_init): Create text_section_line_info here ...
11181         (set_cur_line_info_table): ... not here.
11182
11183 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
11184
11185         PR target/48380
11186         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11187         not called.
11188
11189         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11190
11191 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
11192
11193         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11194         (expr_equiv_p): Remove.
11195         (insert_set_in_table): Look at <dest, src> pair instead of expr.
11196         (hash_scan_set): Update call to insert_set_in_table.
11197         (dump_hash_table): Dump <dest, src> pair.
11198         (lookup_set): Simplify.  Lookup <dest, src> pair.
11199         (compute_transp): Remove, fold heavily simplified code into...
11200         (compute_local_properties): ...here.  Expect COMP and TRANSP
11201         unconditionally.
11202         (find_avail_set): Take set directly from struct expr.
11203         (find_bypass-set): Likewise.
11204         (bypass_block): Likewise.
11205         (cprop_insn): Likewise.  Remove redundant INSN_P test.
11206
11207         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11208         checks on form of COND from find_implicit_sets to here.
11209         (find_implicit_sets): Cleanup control flow. Split critical edges
11210         if it exposes implicit sets.  Allocate/resize implicit_sets as
11211         necessary.
11212         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11213         changed something.  Run df_analyze after find_implicit_sets if any
11214         edges were split.  Do not allocate implicit_sets here.
11215
11216         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11217         (gcse_obstack): Renamed to cprop_obstack.
11218         (GNEW, GNEWVEC, GNEWVAR): Remove.
11219         (gmalloc): Remove.
11220         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11221         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11222         (gcse_alloc): Likewise, and rename to cprop_alloc.
11223         (alloc_gcse_men, free_gcse_mem): Remove.
11224         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11225         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11226         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11227
11228         * cprop.c (oprs_not_set_p): Remove.
11229         (mark_set, mark_clobber): Remove.
11230         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11231         (reg_not_set_p): New function.
11232         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11233         (cprop_insn): Likewise.
11234         (cprop_jump): Use FOR_EACH_EDGE.
11235
11236 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
11237
11238         PR bootstrap/48403
11239         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11240         (rank_for_schedule): Use scheduled_insns vector instead of
11241         last_scheduled_insn.
11242         (ok_for_early_queue_removal): Likewise.
11243         (queue_to_ready): Search forward in nonscheduled_insns_begin if
11244         we have a dbg_cnt.
11245         (choose_ready): Likewise.
11246         (commit_schedule): Use VEC_iterate.
11247         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
11248         a dbg_cnt, use it and ensure the first insn is in the ready list.
11249         (haifa_sched_init): Allocate scheduled_insns.
11250         (sched_extend_ready_list): Don't allocate it; reserve space.
11251         (haifa_sched_finish): Free it.
11252
11253 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11254
11255         * optc-gen.awk: Always remove type from Variable entry before
11256         recording in var_seen.
11257
11258 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
11259
11260         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11261         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11262         call to tidy_fallthru_edges.
11263
11264 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11265
11266         * doc/options.texi (ToLower): Document.
11267         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11268         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11269         * opts.h (cl_option): Add cl_tolower field.
11270         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11271         arguments with lowercase strings.
11272         * config/rx/rx.opt (mcpu=): Add ToLower.
11273         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11274         argument.
11275
11276 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11277
11278         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11279
11280 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11281
11282         * config/vax/vax.c: Include reload.h.
11283
11284 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
11285
11286         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11287         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11288         (sparc_preferred_reload_class): New function.
11289
11290 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
11291
11292         PR debug/48401
11293         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11294         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11295
11296 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
11297
11298         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11299         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11300
11301 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
11302
11303         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11304         (ASM_OUTPUT_ALIGNED_BSS): Define.
11305
11306 2011-04-03  Michael Matz  <matz@suse.de>
11307
11308         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11309         and next_slot members.
11310         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11311         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11312         (lto_streamer_cache_append): Declare.
11313         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11314         unsigned index, remove offset parameter, ensure that we append
11315         or update existing entries.
11316         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11317         parameter, update next_slot for append.
11318         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11319         parameter.
11320         (lto_streamer_cache_insert_at): Likewise.
11321         (lto_streamer_cache_append): New function.
11322         (lto_streamer_cache_lookup): Use unsigned index.
11323         (lto_streamer_cache_get): Likewise.
11324         (lto_record_common_node): Don't test tree_node_can_be_shared.
11325         (preload_common_node): Adjust call to lto_streamer_cache_insert.
11326         (lto_streamer_cache_delete): Don't free offsets member.
11327         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11328         (lto_output_string_with_length): Use lto_output_data_stream.
11329         (lto_output_tree_header): Remove ix parameter, don't write it.
11330         (lto_output_builtin_tree): Likewise.
11331         (lto_write_tree): Adjust callers to above, don't track and write
11332         offset, write unsigned index.
11333         (output_unreferenced_globals): Don't emit all global vars.
11334         (write_global_references): Use unsigned indices.
11335         (lto_output_decl_state_refs): Likewise.
11336         (write_symbol): Likewise.
11337         * lto-streamer-in.c (lto_input_chain): Move earlier.
11338         (input_function): Use unsigned index.
11339         (input_alias_pairs): Don't read and then ignore all global vars.
11340         (lto_materialize_tree): Remove ix_p parameter, don't read index,
11341         don't pass it back, use lto_streamer_cache_append.
11342         (lto_register_var_decl_in_symtab): Use unsigned index.
11343         (lto_register_function_decl_in_symtab): Likewise.
11344         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11345         index.
11346         (lto_get_builtin_tree): Don't read index, use
11347         lto_streamer_cache_append.
11348         (lto_read_tree): Adjust call to lto_materialize_tree.
11349
11350         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11351         don't use function calls in arguments to MIN.
11352
11353         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11354         twice.
11355
11356         * gimple.c (gimple_type_leader_entry): Mark deletable.
11357
11358 2011-04-03  Alan Modra  <amodra@gmail.com>
11359
11360         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11361
11362 2011-04-03  Michael Matz  <matz@suse.de>
11363
11364         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11365         an integer.
11366         * tree.h (tree_decl_non_common.vindex): Adjust comment.
11367
11368 2011-04-03  Michael Matz  <matz@suse.de>
11369
11370         * cgraphbuild.c (record_reference): Canonicalize constructor values.
11371         * gimple-fold.c (canonicalize_constructor_val): Accept being called
11372         without function context.
11373         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11374         current_function_decl and cfun.
11375
11376 2011-04-03  Michael Matz  <matz@suse.de>
11377
11378         * tree.c (decl_init_priority_insert): Don't create entry for
11379         default priority.
11380         (decl_fini_priority_insert): Ditto.
11381         (fields_compatible_p, find_compatible_field): Remove.
11382         * tree.h (fields_compatible_p, find_compatible_field): Remove.
11383         * gimple.c (gimple_compare_field_offset): Adjust block comment.
11384
11385 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
11386
11387         * combine.c (try_combine): Remove useless local variable.
11388
11389 2011-04-03  Richard Guenther  <rguenther@suse.de>
11390             Ira Rosen  <ira.rosen@linaro.org>
11391
11392         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11393         non-variable offsets and compare the remaining bases of the two
11394         accesses instead of looking for exact same data-ref.
11395
11396 2011-04-02  Kai Tietz  <ktietz@redhat.com>
11397
11398         PR target/48416
11399         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11400
11401         * i386.c (ix86_is_msabi_thiscall): New helper function.
11402         (ix86_is_type_thiscall): New helper function.
11403         (ix86_comp_type_attributes): Handle thiscall for method-functions
11404         special.
11405         (init_cumulative_args): Likewise.
11406         (find_drap_reg): Likewise.
11407         (ix86_static_chain): Likewise.
11408         (x86_this_parameter): Likewise.
11409         (x86_output_mi_thunk): Likewise.
11410
11411 2011-04-01  Olivier Hainque  <hainque@adacore.com>
11412             Nicolas Setton  <setton@adacore.com>
11413             Eric Botcazou  <ebotcazou@adacore.com>
11414
11415         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11416         (add_gnat_descriptive_type_attribute): New function.
11417         (gen_array_type_die): Call it.
11418         (gen_enumeration_type_die): Likewise.
11419         (gen_struct_or_union_type_die): Likewise.
11420         (modified_type_die): Likewise.
11421         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11422         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11423         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11424
11425 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11426
11427         PR bootstrap/48148
11428         * dwarf2out.c (resolve_addr): Don't call force_decl_die
11429         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11430
11431         Revert:
11432         2011-03-17  Richard Guenther  <rguenther@suse.de>
11433
11434         PR bootstrap/48148
11435         * lto-cgraph.c (input_overwrite_node): Clear the abstract
11436         origin for decls in other ltrans units.
11437         (input_varpool_node): Likewise.
11438
11439 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11440
11441         PR middle-end/48335
11442         * expr.c (expand_assignment): Handle all possibilities
11443         if TO_RTX is CONCAT.
11444         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11445         (store_split_bit_field): If SUBREG_REG (op0) or
11446         op0 itself has smaller mode than word, return it
11447         for offset 0 and const0_rtx for out-of-bounds stores.
11448         If word is const0_rtx, skip it.
11449
11450 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
11451
11452         * config/h8300/h8300.c (print_operand_address): Rename to...
11453         (h8300_print_operand_address): ...this. Make static. Adjust comments.
11454         Call h8300_print_operand and h8300_print_operand_address instead of
11455         print_operand and print_operand_address. Declare.
11456         (print_operand): Renake to...
11457         (h8300_print_operand): ...this. Make static. Adjust comments.
11458         Call h8300_print_operand instead of print_operand. Declare.
11459         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11460         (h8300_register_move_cost): Likewise.
11461         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11462         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11463         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11464         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11465         * config/h8300/h8300-protos.h (print_operand): Delete.
11466         (print_operand_address): Delete.
11467
11468 2011-04-01  Richard Henderson  <rth@redhat.com>
11469
11470         PR 48400
11471         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11472         in strict mode before dwarf4.  Re-order tests to early out
11473         before switching sections.
11474
11475 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
11476
11477         * config/h8300/constraints.md: New file.
11478         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
11479         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11480         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11481         * config/h8300/predicates.md (bit_operand): Likewise.
11482         (incdec_operand): Use satisfies_constraint_M and
11483         satisfies_constraint_O.  Don't use C code block.
11484         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11485         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11486         (compute_mov_length): Use satisfies_constraint_G.
11487         (fix_bit_operand): Use satisfies_constraint_U.
11488         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11489         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11490         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11491         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11492         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11493         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11494         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11495         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11496         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11497         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11498         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11499         (EXTRA_MEMORY_CONSTRAINT): Delete.
11500
11501 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
11502             Michael Meissner  <meissner@linux.vnet.ibm.com>
11503
11504         PR target/48262
11505         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11506         operands, as per the specifications.
11507
11508         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11509         (vec_extract_evenv4sf): Ditto.
11510         (vec_extract_evenv8hi): Ditto.
11511         (vec_extract_evenv16qi): Ditto.
11512         (vec_extract_oddv4si): Ditto.
11513
11514 2011-03-31  Mark Wielaard  <mjw@redhat.com>
11515
11516         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11517         high_pc attribute if the CU has no associated code. Only output
11518         DW_AT_entry_pc for CU if not generating strict dwarf and
11519         dwarf_version < 4.
11520
11521 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
11522
11523         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11524         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11525         out of ...
11526         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11527         * final.c (final_start_function): Call the new function rather
11528         than using a NULL argument for dwarf2out_frame_debug.
11529
11530         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11531         that contains the prologue.
11532
11533         * haifa-sched.c (queue_insn): New arg REASON.  All callers
11534         changed.  Print it in debugging output.
11535
11536         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11537
11538         * sched-ebb.c (begin_schedule_ready): Remove second argument.
11539         Split most of the code into...
11540         (begin_move_insn): ... here.  New function.
11541         (ebb_sched_info): Add a pointer to it.
11542         * haifa-sched.c (scheduled_insns): New static variable.
11543         (sched_extend_ready_list): Allocate it.
11544         (schedule_block): Use it to record the order of scheduled insns.
11545         Perform RTL changes to move insns only after all scheduling
11546         decisions have been made.
11547         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11548         begin_move_insn field.
11549         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11550         * sched-int.h (struct haifa_sched_info): Remove second argument
11551         from begin_schedule_ready hook.  Add new member begin_move_insn.
11552         * sched-rgn.c (begin_schedule_ready): Remove second argument.
11553         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11554
11555         * haifa-sched.c (prune_ready_list): New function, broken out of
11556         schedule_block.
11557         (schedule_block): Use it.
11558
11559 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11560
11561         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11562
11563 2011-04-01  Kai Tietz  <ktietz@redhat.com>
11564
11565         * config.gcc (*-*-mingw*): Allow as option the
11566         posix threading model.
11567         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
11568         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11569         definition.
11570         (CPP_SPEC): Add pthread/no-pthread handling.
11571         (LIB_SPEC): Likewise.
11572         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11573         (LIB_SPEC): Likewise.
11574         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11575         flag to pass -pthread option for shared libgcc build.
11576         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11577         for shared libgcc build.
11578         * config/i386/t-mingw-pthread: New file.
11579         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11580         New define to enable use of library pthread by default.
11581         * config/i386/mingw.opt (pthread): New driver option.
11582         (no-pthread): New driver option.
11583         * config/i386/cygming.opt: Make sure trailing empty line is retained.
11584         * config/i386/mingw-w64.opt: Likewise.
11585
11586 2011-04-01  Gary Funck  <gary@intrepid.com>
11587
11588         * c-decl.c (grokdeclarator): Fix formatting.
11589
11590 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11591
11592         * expr.c (emit_block_move_via_movmem): Use n_generator_args
11593         instead of n_operands.
11594         (set_storage_via_setmem): Likewise.
11595         * optabs.c (maybe_gen_insn): Likewise.
11596         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11597         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11598         (mips_expand_builtin_direct): Likewise.
11599         * config/spu/spu.c (expand_builtin_args): Likewise.
11600
11601 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11602
11603         * recog.h (insn_data_d): Add n_generator_args.
11604         * genoutput.c (data): Likewise.
11605         (output_insn_data): Print it.
11606         (max_opno, num_dups): Delete.
11607         (scan_operands): Just fill in "d->operand[...]".
11608         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11609
11610 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11611
11612         * gensupport.h (pattern_stats): New structure.
11613         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11614         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11615         (max_operand_1, max_operand_vec): Delete.
11616         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11617
11618 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
11619
11620         * emit-rtl.c (emit_pattern_after_setloc): New function.
11621         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11622         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11623         (emit_pattern_after): New function.
11624         (emit_insn_after, emit_jump_insn_after): Call it.
11625         (emit_call_insn_after, emit_debug_insn_after): Likewise.
11626         (emit_pattern_before_setloc): New function.
11627         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11628         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11629         Likewise.
11630         (emit_pattern_before): New function.
11631         (emit_insn_before, emit_jump_insn_before): Call it.
11632         (emit_call_insn_before, emit_debug_insn_before): Likewise.
11633
11634 2011-03-31  Richard Henderson  <rth@redhat.com>
11635
11636         * dwarf2out.c (dw_separate_line_info_ref): Remove.
11637         (dw_separate_line_info_entry): Remove.
11638         (enum dw_line_info_opcode): New.
11639         (dw_line_info_entry): Use it.
11640         (dw_line_info_table, dw_line_info_table_p): New.
11641         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11642         (line_info_table, line_info_label_num): Remove.
11643         (line_info_table_in_use): Remove.
11644         (separate_line_info_table): Remove.
11645         (separate_line_info_table_allocated): Remove.
11646         (separate_line_info_table_in_use): Remove.
11647         (LINE_INFO_TABLE_INCREMENT): Remove.
11648         (line_info_label_num): New.
11649         (cur_line_info_table): New.
11650         (text_section_line_info, cold_text_section_line_info): New.
11651         (separate_line_info): New.
11652         (SEPARATE_LINE_CODE_LABEL): Remove.
11653         (print_dwarf_line_table): Remove.
11654         (debug_dwarf): Don't dump it.
11655         (output_one_line_info_table): New.
11656         (output_line_info): Use it.
11657         (new_line_info_table): New.
11658         (set_cur_line_info_table): New.
11659         (dwarf2out_switch_text_section): Use it.
11660         (dwarf2out_begin_function): Likewise.
11661         (push_dw_line_info_entry): New.
11662         (dwarf2out_source_line): Rewrite for new line info tables.
11663         (dwarf2out_init): Remove dead initailizations.
11664
11665 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11666
11667         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
11668         various flags.
11669         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11670         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11671         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11672         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11673         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11674         * opt-functions.awk (flag_init, switch_bit_fields): New.
11675         (switch_flags): Don't handle flags moved to bit-fields.  Don't
11676         generate CL_MISSING_OK or CL_SAVE.
11677         * optc-gen.awk: Update to generate bit-field output as well as
11678         flags field.
11679         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11680         bit-field instead of CL_REJECT_DRIVER flag.
11681         * opts-common.c (generate_canonical_option,
11682         decode_cmdline_option): Use bit-fields instead of CL_* flags.
11683         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11684         instead of CL_REJECT_NEGATIVE flag.
11685         * toplev.c (print_switch_values): Use cl_report bit-field instead
11686         of CL_REPORT flag.
11687
11688 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11689
11690         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11691         a zero minimum index only if it is redundant.
11692
11693 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
11694
11695         PR rtl-optimization/48381
11696         * ira-color.c (assign_hard_reg): Use hard reg set intersection
11697         instead of ira_class_hard_reg_index for calculating conflicting
11698         hard registers.
11699
11700 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
11701
11702         * cprop.c: Clean up hash table building.
11703         (reg_avail_info): Remove.
11704         (oprs_available_p): Remove.
11705         (record_last_reg_set_info): Remove.
11706         (record_last_set_info): Remove.
11707         (reg_available_p): New function.
11708         (gcse_constant_p): Do not treat unfolded conditions as constants.
11709         (make_set_regs_unavailable): New function.
11710         (hash_scan_set): Simplify with new reg_available_p.
11711         (compute_hash_table_work): Traverse insns stream only once.
11712         Do not compute reg_avail_info. Traverse insns in reverse order.
11713         Record implicit sets after recording explicit sets from the block.
11714
11715 2011-03-31  Michael Matz  <matz@suse.de>
11716
11717         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11718
11719 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
11720
11721         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11722         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11723         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11724         (h8300_mode_dependent_address_p): New function.
11725         (h8300_get_index): Make static.
11726
11727 2011-03-31  Jeff Law  <law@redhat.com>
11728
11729         * reload1.c (elimination_effects): Fix typo in recent change.
11730
11731         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11732         typo potentially leading to null pointer dereference.
11733
11734         * caller-save.c (new_saved_hard_reg): Eliminate return value.
11735         (setup_save_areas): Corresponding changes to avoid useless
11736         assignments.
11737
11738         * jump.c (reversed_comparison_code_parts): Avoid successive return
11739         statements when REVERSE_CONDITION is defined.
11740
11741         * expr.c (expand_assignment): Avoid useless assignments.
11742         (expand_expr_real_1): Likewise.
11743         (expand_expr_real_2): Avoid useless statements.
11744
11745         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11746
11747         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11748
11749         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11750         statements.
11751
11752         * stmt.c (expand_expr_stmt): Avoid useless assignment.
11753
11754 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11755
11756         PR target/47109
11757         * doc/tm.texi.in (TARGET_VERSION): Remove.
11758         * doc/tm.texi: Regenerate.
11759         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11760         * collect2.c (main): Don't use TARGET_VERSION.
11761         * mips-tdump.c (main): Don't use TARGET_VERSION.
11762         * mips-tfile.c (main): Don't use TARGET_VERSION.
11763         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11764         * config/rs6000/vxworksae.h: Remove.
11765         * config/alpha/alpha.h (TARGET_VERSION): Remove.
11766         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11767         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11768         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11769         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11770         * config/arm/arm.h (TARGET_VERSION): Remove.
11771         * config/arm/coff.h (TARGET_VERSION): Remove.
11772         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11773         * config/arm/elf.h (TARGET_VERSION): Remove.
11774         * config/arm/freebsd.h (TARGET_VERSION): Remove.
11775         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11776         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11777         * config/arm/pe.h (TARGET_VERSION): Remove.
11778         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11779         * config/arm/semi.h (TARGET_VERSION): Remove.
11780         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11781         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11782         * config/arm/vxworks.h (TARGET_VERSION): Remove.
11783         * config/avr/avr.h (TARGET_VERSION): Remove.
11784         * config/bfin/bfin.h (TARGET_VERSION): Remove.
11785         * config/fr30/fr30.h (TARGET_VERSION): Remove.
11786         * config/frv/frv.h (TARGET_VERSION): Remove.
11787         * config/h8300/h8300.h (TARGET_VERSION): Remove.
11788         * config/i386/cygwin.h (TARGET_VERSION): Remove.
11789         * config/i386/darwin.h (TARGET_VERSION): Remove.
11790         * config/i386/darwin64.h (TARGET_VERSION): Remove.
11791         * config/i386/djgpp.h (TARGET_VERSION): Remove.
11792         * config/i386/freebsd.h (TARGET_VERSION): Remove.
11793         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11794         * config/i386/gnu.h (TARGET_VERSION): Remove.
11795         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11796         * config/i386/i386elf.h (TARGET_VERSION): Remove.
11797         * config/i386/linux.h (TARGET_VERSION): Remove.
11798         * config/i386/linux64.h (TARGET_VERSION): Remove.
11799         * config/i386/lynx.h (TARGET_VERSION): Remove.
11800         * config/i386/mingw32.h (TARGET_VERSION): Remove.
11801         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11802         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11803         * config/i386/netware.h (TARGET_VERSION): Remove.
11804         * config/i386/nto.h (TARGET_VERSION): Remove.
11805         * config/i386/openbsd.h (TARGET_VERSION): Remove.
11806         * config/i386/vxworks.h (TARGET_VERSION): Remove.
11807         * config/ia64/elf.h (TARGET_VERSION): Remove.
11808         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11809         * config/ia64/hpux.h (TARGET_VERSION): Remove.
11810         * config/ia64/linux.h (TARGET_VERSION): Remove.
11811         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11812         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11813         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11814         * config/lm32/lm32.h (TARGET_VERSION): Remove.
11815         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11816         * config/m32c/m32c.h (TARGET_VERSION): Remove.
11817         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11818         * config/m32r/m32r.h (TARGET_VERSION): Remove.
11819         * config/m68k/linux.h (TARGET_VERSION): Remove.
11820         * config/m68k/m68k.h (TARGET_VERSION): Remove.
11821         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11822         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11823         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11824         * config/mep/mep.h (TARGET_VERSION): Remove.
11825         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11826         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11827         * config/mips/iris6.h (MACHINE_TYPE): Remove.
11828         * config/mips/linux.h (TARGET_VERSION): Remove.
11829         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11830         * config/mips/vxworks.h (TARGET_VERSION): Remove.
11831         * config/mmix/mmix.h (TARGET_VERSION): Remove.
11832         * config/mn10300/linux.h (TARGET_VERSION): Remove.
11833         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11834         * config/pa/pa.h (TARGET_VERSION): Remove.
11835         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11836         * config/picochip/picochip.h (TARGET_VERSION): Remove.
11837         * config/rs6000/aix.h (TARGET_VERSION): Remove.
11838         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11839         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11840         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11841         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11842         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11843         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11844         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11845         * config/rs6000/linux.h (TARGET_VERSION): Remove.
11846         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11847         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11848         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11849         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11850         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11851         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11852         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11853         * config/s390/linux.h (TARGET_VERSION): Remove.
11854         * config/s390/s390.h (TARGET_VERSION): Remove.
11855         * config/s390/tpf.h (TARGET_VERSION): Remove.
11856         * config/score/score.h (TARGET_VERSION): Remove.
11857         * config/sh/linux.h (TARGET_VERSION): Remove.
11858         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11859         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11860         * config/sh/sh.h (TARGET_VERSION): Remove.
11861         * config/sh/sh64.h (TARGET_VERSION): Remove.
11862         * config/sh/superh.h (TARGET_VERSION): Remove.
11863         * config/sh/vxworks.h (TARGET_VERSION): Remove.
11864         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11865         * config/sparc/linux.h (TARGET_VERSION): Remove.
11866         * config/sparc/linux64.h (TARGET_VERSION): Remove.
11867         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11868         TARGET_NAME32, TARGET_NAME): Remove.
11869         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11870         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11871         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11872         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11873         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11874         * config/spu/spu.h (TARGET_VERSION): Remove.
11875         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11876         * config/v850/v850.h (TARGET_VERSION): Remove.
11877         * config/vax/linux.h (TARGET_VERSION): Remove.
11878         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11879         * config/xtensa/elf.h (TARGET_VERSION): Remove.
11880         * config/xtensa/linux.h (TARGET_VERSION): Remove.
11881
11882 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11883
11884         PR target/48142
11885         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11886         frame-related from frame-unrelated adjustments to the stack pointer.
11887
11888 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
11889
11890         * common.opt (fdebug-types-section): Move earlier.
11891         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11892
11893 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
11894
11895         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11896         var.
11897
11898 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
11899
11900         * tree.h (CASE_CHAIN): Define.
11901         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11902         (gimple_redirect_edge_and_branch): Likewise.
11903
11904 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11905
11906         PR middle-end/48367
11907         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11908         calculation.
11909
11910 2011-03-30  Jeff Law  <law@redhat.com>
11911
11912         * PR bootstrap/48371
11913         * reload1.c (reload): Fix botch in last change.
11914
11915         * reload.h (struct reload): Fix typo introduced in last change.
11916
11917 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11918
11919         * config/arm/arm.opt (mhard-float, msoft-float): Mark
11920         Undocumented.  Remove help text.
11921         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11922         -mhard-float.
11923
11924 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
11925
11926         * doc/options.texi (NegativeAlias): Document.
11927         (Alias): Mention NegativeAlias.
11928         * opt-functions.awk: Handle NegativeAlias.
11929         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11930         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11931         * opts.h (CL_NEGATIVE_ALIAS): Define.
11932         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11933         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11934         OPT_mspe_.
11935         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11936         Alias entries.
11937         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11938         mno-spe and mno-isel instead of mspe=no and -misel=no.
11939
11940 2011-03-29  Mark Wielaard  <mjw@redhat.com>
11941
11942         * common.opt (fdebug-types-section): New flag.
11943         * doc/invoke.texi: Document new -fno-debug-types-section flag.
11944         * dwarf2out.c (use_debug_types): New define.
11945         (struct die_struct): Mark die_id with GTY desc use_debug_types.
11946         (print_die): Guard output of type unit signatures using
11947         use_debug_types.
11948         (build_abbrev_table): Replace assert of dwarf_version >= 4
11949         with assert on use_debug_types.
11950         (size_of_die): Likewise.
11951         (unmark_dies): Likewise.
11952         (value_format): Decide AT_ref_external form on use_debug_types.
11953         (output_die): Replace dwarf_version version check guard with
11954         use_debug_types where appropriate.
11955         (modified_type_die): Likewise.
11956         (gen_reference_type_die): Likewise.
11957         (dwarf2out_start_source_file): Likewise.
11958         (dwarf2out_end_source_file): Likewise.
11959         (prune_unused_types_walk_attribs): Likewise.
11960         (dwarf2out_finish): Likewise.
11961
11962 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11963
11964         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11965
11966 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
11967
11968         PR rtl-optimization/48332
11969         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11970         mode of input operand N and modeN to its actual mode.
11971
11972 2011-03-30  Jeff Law  <law@redhat.com>
11973
11974         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11975         define accessor macro.
11976         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11977         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11978         (reg_equiv_init): Likewise.
11979         (reg_equivs_size): New variable.
11980         (reg_equiv_init_size): Remove.
11981         (allocate_initial_values): Move prototype to here from....
11982         * integrate.h (allocate_initial_values): Remove prototype.
11983         * integrate.c: Include reload.h.
11984         (allocate_initial_values): Corresponding changes.
11985         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11986         (fix_reg_equiv_init, no_equiv): Corresponding changes.
11987         (update_equiv_regs): Corresponding changes.
11988         (ira): Corresponding changes.
11989         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11990         (push_secondary_reload): Corresponding changes.
11991         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11992         (make_memloc, find_reloads_address): Corresponding changes.
11993         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11994         (find_reloads_address_1): Corresponding changes.
11995         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11996         (refers_to_regno_for_reload_p): Corresponding changes.
11997         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11998         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11999         * reload1.c: Include ggc.h.
12000         (grow_reg_equivs): New function.
12001         (replace_pseudos_in, reload): Corresponding changes.
12002         (calculate_needs_all_insns, alter_regs): Corresponding changes.
12003         (eliminate_regs_1, elimination_effects): Corresponding changes.
12004         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12005         (delete_output_reload): Likewise.
12006         * caller-save.c (mark_referenced_regs): Corresponding changes.
12007         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12008         * frv/predicates.md (frv_load_operand): Corresponding changes.
12009         * microblaze/microblaze.c (double_memory_operand): Corresponding
12010         changes.
12011         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12012         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12013         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12014         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12015         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12016         changes.
12017         * pa/pa.c (emit_move_sequence): Corresponding changes.
12018         * vax/vax.c (nonindexed_address_p): Corresponding changes.
12019
12020 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12021
12022         PR target/47551
12023         * config/arm/arm.c (coproc_secondary_reload_class): Handle
12024         structure modes.  Don't check neon_vector_mem_operand for
12025         vector or structure modes.
12026
12027 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12028             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12029
12030         PR target/43590
12031         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12032         operand 1 and reshuffle the operands to match.
12033         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12034
12035 2011-03-30  Christian Schüler  <cschueler@gmx.de>
12036
12037         PR driver/48208
12038         * config/c.opt (F): Added 'Driver' to -F option.
12039
12040         PR driver/48260
12041         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12042           handler function.
12043         * config/darwin.opt: Added '-arch' option.
12044
12045 2011-03-30  Nick Clifton  <nickc@redhat.com>
12046
12047         * config/rx/rx.md: Add peepholes and patterns to combine
12048         extending loads and simple arithmetic instructions.
12049         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12050         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12051         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12052         modes to use pre-decrement and post-increment addressing.
12053         (rx_is_restricted_memory_address): Add range checking of REG+INT
12054         addresses.
12055         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
12056         (rx_memory_move_cost): Adjust cost of stores.
12057         (rx_adjust_insn_length): New function.
12058
12059 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
12060
12061         PR c/48305
12062         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12063         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12064         matching arg00/arg01 types.
12065
12066 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
12067
12068         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12069         last_location to UNKNOWN_LOCATION.
12070
12071 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
12072
12073         PR target/48349
12074         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12075         FLOAT_SSE_REGS.
12076
12077 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12078             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12079
12080         PR bootstrap/48337
12081         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12082         Init(PROCESSOR_V7).
12083         (sparc_cpu): Likewise.
12084         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12085         PROCESSOR_V7.
12086
12087 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12088
12089         PR target/48336
12090         PR middle-end/48342
12091         PR rtl-optimization/48345
12092         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12093         hard regs for given mode from profitable regs when doing secondary
12094         allocation.
12095
12096 2011-03-29  Jeff Law  <law@redhat.com>
12097
12098         PR bootstrap/48327
12099         * tree-ssa-threadupdate.c (struct redirection_data): Remove
12100         do_not_duplicate field.
12101         (lookup_redirection_data): Corresponding changes.
12102         (create_duplicates): Always create a template block.
12103         (redirect_edges): Remove code which reused the original block
12104         when it was going to become unreachable code.
12105         (thread_block): Don't set do_not_duplicate field.
12106
12107 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
12108
12109         * lto-opts.c (register_user_option_p, lto_register_user_option):
12110         Make type argument unsigned.
12111         * lto-streamer.h (lto_register_user_option): Make type argument
12112         unsigned.
12113         * opth-gen.awk: Make CL_* macros unsigned.
12114         * opts-common.c (find_opt): Make lang_mask argument unsigned.
12115         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12116         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12117         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12118         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12119         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12120         (find_opt): Make lang_mask argument unsigned.
12121
12122 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12123
12124         PR rtl-optimization/48331
12125         PR rtl-optimization/48334
12126         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12127         for any used algorithm.
12128
12129 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12130
12131         * ira-conflicts.c (build_object_conflicts): Add unused attribute
12132         to parent_max.
12133
12134 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
12135
12136         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12137         (alpha_option_override): Don't set alpha_sr_alias_set.
12138         (emit_frame_store_1): Use gen_frame_mem rather than calling
12139         set_mem_alias_set.
12140         (alpha_expand_epilogue): Ditto.
12141
12142 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
12143
12144         PR tree-optimization/48290
12145         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12146         vectorization, check that relevant phis in the basic block after
12147         the inner loop are really inner loop's exit phis.
12148
12149 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
12150
12151         PR debug/48190
12152         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12153         (cached_dw_loc_list_def): New structure.
12154         (cached_dw_loc_list): New typedef.
12155         (cached_dw_loc_list_table): New variable.
12156         (cached_dw_loc_list_table_hash): New function.
12157         (cached_dw_loc_list_table_eq): Likewise.
12158         (add_location_or_const_value_attribute): Take a bool cache_p.
12159         Cache the list when the parameter is true.
12160         (gen_formal_parameter_die): Update caller.
12161         (gen_variable_die): Likewise.
12162         (dwarf2out_finish): Likewise.
12163         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12164         while generating debug info for the decl.
12165         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12166         (dwarf2out_init): Initialize cached_dw_loc_list_table.
12167         (resolve_addr): Cache the result of resolving a chain of
12168         location lists.
12169
12170 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
12171
12172         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12173         conflict object hard regset nodes have intersecting hard reg sets.
12174
12175         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12176         after regstat_init_n_sets_and_refs.
12177
12178         * ira.c: Add more comments at the top.
12179         (setup_stack_reg_pressure_class, setup_pressure_classes):
12180         Add comments how we compute the register pressure classes.
12181         (setup_allocno_and_important_classes): Add more comments.
12182         (setup_class_translate_array, reorder_important_classes)
12183         (setup_reg_class_relations): Add comments.
12184
12185         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
12186         start of the file.
12187
12188         * ira-color.c: Add 2011 to the Copyright line.
12189         (assign_hard_reg):  Add more comments.
12190         (improve_allocation): Ditto.
12191
12192         * ira-costs.c: Add 2011 to the Copyright line.
12193         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12194         comments.
12195         (setup_regno_cost_classes_by_mode): Ditto.
12196
12197         Initial patches from ira-improv branch:
12198
12199         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12200
12201         * ira-build.c (ira_create_object): Remove initialization of
12202         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
12203         (ira_create_allocno): Remove initialization of
12204         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12205         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12206         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12207         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12208         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12209         Initialize ALLOCNO_ADD_DATA.
12210         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12211         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12212         ALLOCNO_REG.
12213         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
12214         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12215
12216         * ira.c (ira_reallocate): Remove.
12217         (setup_pressure_classes): Call
12218         ira_init_register_move_cost_if_necessary.  Use
12219         ira_register_move_cost instead of ira_get_register_move_cost.
12220         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12221         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12222
12223         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12224         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12225         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12226         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12227         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12228         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12229         Fix formatting.
12230         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12231         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12232         (struct allocno_color_data): New.
12233         (allocno_color_data_t): New typedef.
12234         (allocno_color_data): New definition.
12235         (ALLOCNO_COLOR_DATA): New macro.
12236         (struct object_color_data): New.
12237         (object_color_data_t): New typedef.
12238         (object_color_data): New definition.
12239         (OBJECT_COLOR_DATA): New macro.
12240         (update_copy_costs, calculate_allocno_spill_cost): Call
12241         ira_init_register_move_cost_if_necessary.  Use
12242         ira_register_move_cost instead of ira_get_register_move_cost.
12243         (move_spill_restore, update_curr_costs): Ditto.
12244         (allocno_spill_priority): Make it inline.
12245         (color_pass): Allocate and free allocno_color_dat and object_color_data.
12246         (struct coalesce_data, coalesce_data_t): New.
12247         (allocno_coalesce_data): New definition.
12248         (ALLOCNO_COALESCE_DATA): New macro.
12249         (merge_allocnos, coalesced_allocno_conflict_p): Use
12250         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12251         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12252         (coalesce_allocnos): Ditto.
12253         (setup_coalesced_allocno_costs_and_nums): Ditto.
12254         (collect_spilled_coalesced_allocnos): Ditto.
12255         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12256         (setup_slot_coalesced_allocno_live_ranges): Ditto.
12257         (coalesce_spill_slots): Ditto.
12258         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
12259         free allocno_coalesce_data.
12260
12261         * ira-conflicts.c: Fix formatting.
12262         (process_regs_for_copy): Call
12263         ira_init_register_move_cost_if_necessary.  Use
12264         ira_register_move_cost instead of ira_get_register_move_cost.
12265         (build_object_conflicts): Optimize.
12266
12267         * ira-costs.c (record_reg_classes): Optimize.  Call
12268         ira_init_register_move_cost_if_necessary.  Use
12269         ira_register_move_cost, ira_may_move_in_cost, and
12270         ira_may_move_out_cost instead of ira_get_register_move_cost and
12271         ira_get_may_move_cost.
12272         (record_address_regs): Ditto.
12273         (scan_one_insn): Optimize.
12274         (find_costs_and_classes): Optimize.
12275         (process_bb_node_for_hard_reg_moves): Call
12276         ira_init_register_move_cost_if_necessary.  Use
12277         ira_register_move_cost instead of ira_get_register_move_cost.
12278
12279         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12280         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12281         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12282         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12283         definitions.
12284         (ira_initiate_emit_data, ira_finish_emit_data)
12285         (create_new_allocno): New functions.
12286         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12287         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12288         Use ira_register_move_cost instead of ira_get_register_move_cost.
12289
12290         * ira-int.h: Fix some comments.
12291         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12292         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12293         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12294         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
12295         add_data.
12296         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
12297         bitfield after mode.  Make hard_regno a short int.  Make
12298         hard_regno short.  Remove first_coalesced_allocno and
12299         next_coalesced_allocno.  Move mem_optimized_dest_p,
12300         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12301         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
12302         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12303         temp, colorable_p.  Add new member add_data.
12304         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12305         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12306         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12307         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12308         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12309         (ALLOCNO_ADD_DATA): New macro.
12310         (ira_emit_data_t): New typedef.
12311         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
12312         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12313         from struct ira_allocno.
12314         (ALLOCNO_EMIT_DATA): New macro.
12315         (ira_allocno_emit_data, allocno_emit_reg): New.
12316         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12317         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12318         (OBJECT_ADD_DATA): New macro.
12319         (ira_reallocate): Remove.
12320         (ira_initiate_emit_data, ira_finish_emit_data): New.
12321         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12322         (ira_init_register_move_cost_if_necessary): New.
12323         (ira_object_conflict_iter_next): Merge into
12324         ira_object_conflict_iter_cond.
12325         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12326
12327         * ira-live.c (process_single_reg_class_operands): Call
12328         ira_init_register_move_cost_if_necessary.  Use
12329         ira_register_move_cost instead of ira_get_register_move_cost.
12330
12331         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12332
12333         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12334
12335         * ira-costs.c: Fix formatting.
12336         (cost_classes, cost_classes_num): Remove.
12337         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12338         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12339         (cost_classes_del, cost_classes_htab): New.
12340         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12341         (initiate_regno_cost_classes, setup_cost_classes): New.
12342         (setup_regno_cost_classes_by_aclass): New.
12343         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12344         (record_reg_classes): Use regno_cost_classes instead of
12345         cost_classes.  Move checking opposite operand up.
12346         (record_address_regs): Use regno_cost_classes
12347         instead of cost_classes.
12348         (scan_one_insn): Ditto.  Use always general register.
12349         (print_allocno_costs): Use regno_cost_classes instead of
12350         cost_classes.
12351         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
12352         (find_costs_and_classes): Set up cost classes for each registers.
12353         Use also their mode for this.  Use regno_cost_classes instead of
12354         cost_classes.
12355         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12356         cost_classes.
12357         (free_ira_costs, ira_init_costs): Don't use cost_classes.
12358         (ira_costs, ira_set_pseudo_classes): Call
12359         initiate_regno_cost_classes and finish_regno_cost_classes.
12360
12361         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
12362
12363         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12364
12365         * target.def (ira_cover_classes): Remove.
12366
12367         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12368
12369         * doc/tm.texi.in: Ditto.
12370
12371         * ira-conflicts.c: Remove mentioning cover classes from the file.
12372         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
12373         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
12374
12375         * targhooks.c (default_ira_cover_classes): Remove.
12376
12377         * targhooks.h (default_ira_cover_classes): Ditto.
12378
12379         * haifa-sched.c: Remove mentioning cover classes from the file.
12380         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12381         ira_pressure_classes and ira_pressure_classes_num instead of
12382         ira_reg_class_cover_size and ira_reg_class_cover.  Use
12383         sched_regno_pressure_class instead of sched_regno_cover_class.
12384         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12385         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12386
12387         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
12388         classes from the file.
12389         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12390         (struct object_hard_regs, struct object_hard_regs_node): New.
12391         (struct ira_object): New members profitable_hard_regs,
12392         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12393         (struct ira_allocno): Rename cover_class to aclass.  Rename
12394         cover_class_cost and updated_cover_class_cost to class_cost and
12395         updated_class_cost.  Remove splay_removed_p and
12396         left_conflict_size.  Add new members colorable_p.
12397         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12398         (ALLOCNO_COLORABLE_P): New macro.
12399         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12400         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12401         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12402         (OBJECT_...): Rename parameter C to O.
12403         (OBJECT_PROFITABLE_HARD_REGS): New macro.
12404         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12405         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12406         (struct target_ira_int): New members x_ira_max_memory_move_cost,
12407         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12408         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12409         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12410         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
12411         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
12412         x_ira_reg_class_subunion.
12413         (ira_max_memory_move_cost, ira_max_register_move_cost)
12414         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12415         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12416         (ira_important_class_nums, ira_reg_class_superunion): New macros.
12417         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12418         (ira_reg_class_union): Rename to ira_reg_class_subunion.
12419         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12420         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12421         (ira_tune_allocno_costs_and_cover_classes): Rename to
12422         ira_tune_allocno_costs.
12423         (ira_debug_hard_regs_forest): New.
12424         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12425         (ira_object_conflict_iter_next): Fix comments.
12426         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12427         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12428         cover_class to aclass.
12429         (ira_allocate_and_accumulate_costs): Ditto.
12430         (ira_allocate_and_set_or_copy_costs): Ditto.
12431
12432         * opts.c (decode_options): Remove ira_cover_class check.
12433
12434         * ira-color.c: Remove mentioning cover classes from the file.  Use
12435         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12436         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12437         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12438         (splay-tree.h): Remove include.
12439         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12440         before copy_freq_compare_func.
12441         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12442         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12443         New definitions.
12444         (hard_regs_roots, hard_regs_node_vec): Ditto.
12445         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12446         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12447         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12448         (create_new_object_hard_regs_node): Ditto.
12449         (add_new_object_hard_regs_node_to_forest): Ditto.
12450         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12451         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12452         Ditto.
12453         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12454         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12455         (remove_unused_object_hard_regs_nodes): Ditto.
12456         (enumerate_object_hard_regs_nodes): Ditto.
12457         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12458         (object_hard_regs_subnode_t): Ditto.
12459         (struct object_hard_regs_subnode): Ditto.
12460         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12461         (setup_object_hard_regs_subnode_index): Ditto.
12462         (get_object_hard_regs_subnodes_num): Ditto.
12463         (form_object_hard_regs_nodes_forest): Ditto.
12464         (finish_object_hard_regs_nodes_tree): Ditto.
12465         (finish_object_hard_regs_nodes_forest): Ditto.
12466         (allocnos_have_intersected_live_ranges_p): Rename to
12467         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12468         (pseudos_have_intersected_live_ranges_p): Rename to
12469         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12470         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12471         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12472         (update_copy_costs): Remove assert.  Skip cost update if the hard
12473         reg does not belong the class.
12474         (assign_hard_reg): Process only profitable hard regs.
12475         (uncolorable_allocnos_num): Make it scalar.
12476         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12477         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12478         and ira_reg_class_max_nregs.
12479         (bucket_allocno_compare_func): Check frequency first.
12480         (sort_bucket): Add compare function as a parameter.
12481         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12482         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12483         (push_allocno_to_stack): Rewrite for checking new allocno
12484         colorability.
12485         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
12486         (push_only_colorable): Pass new parameter to sort_bucket.
12487         (push_allocno_to_spill): Remove.
12488         (allocno_spill_priority_compare): Make it inline and rewrite.
12489         (splay_tree_allocate, splay_tree_free): Remove.
12490         (allocno_spill_sort_compare): New function.
12491         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
12492         build and use splay tree.  Choose first allocno in uncolorable
12493         allocno bucket to spill.  Remove setting spill cost.
12494         (all_conflicting_hard_regs): Remove.
12495         (setup_allocno_available_regs_num): Check only profitable hard
12496         regs.  Print info about hard regs nodes.
12497         (setup_allocno_left_conflicts_size): Remove.
12498         (put_allocno_into_bucket): Don't call
12499         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
12500         (improve_allocation): New.
12501         (color_allocnos): Call setup_profitable_hard_regs,
12502         form_object_hard_regs_nodes_forest, improve_allocation,
12503         finish_object_hard_regs_nodes_forest.  Setup spill cost.
12504         (print_loop_title): Use pressure classes.
12505         (color_allocnso): Ditto.
12506         (do_coloring): Remove allocation and freeing splay_tree_node_pool
12507         and allocnos_for_spilling.
12508         (ira_sort_regnos_for_alter_reg): Don't setup members
12509         {first,next}_coalesced_allocno.
12510         (color): Remove allocating and freeing removed_splay_allocno_vec.
12511         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12512         prohibited_class_mode_regs.
12513
12514         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
12515         formatting.
12516         (update_allocno_pressure_excess_length): Use pressure classes.
12517         (inc_register_pressure, dec_register_pressure): Check for pressure
12518         class.
12519         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12520         pressure class.  Use ira_reg_class_nregs instead of
12521         ira_reg_class_max_nregs.
12522         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12523         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12524         (single_reg_class): Use ira_reg_class_nregs instead of
12525         ira_reg_class_max_nregs.
12526         (process_bb_node_lives): Use pressure classes.
12527
12528         * ira-emit.c: Remove mentioning cover classes from the file.  Use
12529         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12530         (change_loop): Use pressure classes.
12531         (modify_move_list): Call ira_set_allocno_class instead of
12532         ira_set_allocno_cover_class.
12533
12534         * ira-build.c: Remove mentioning cover classes from the file.  Use
12535         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12536         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
12537         ALLOCNO_UPDATED_CLASS_COST instead of
12538         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12539         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12540         (ira_create_allocno): Remove initialization of
12541         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
12542         ALLOCNO_COLORABLE_P.
12543         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12544         Update conflict regs for the objects.
12545         (create_cap_allocno): Remove assert.  Don't propagate
12546         ALLOCNO_AVAILABLE_REGS_NUM.
12547         (ira_free_allocno_costs): New function.
12548         (finish_allocno): Change a part of code into call of
12549         ira_free_allocno_costs.
12550         (low_pressure_loop_node_p): Use pressure classes.
12551         (object_range_compare_func): Don't compare classes.
12552         (setup_min_max_conflict_allocno_ids): Ditto.
12553
12554         * loop-invariant.c: Remove mentioning cover classes from the file.
12555         Use ira_pressure_classes and ira_pressure_classes_num instead of
12556         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
12557         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12558         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12559         Use reg_allocno_class instead of reg_cover_class.
12560         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12561         STACK_REG_COVER_CLASS.
12562         (get_regno_cover_class): Rename to get_regno_pressure_class.
12563         (move_loop_invariants): Initialize and finalize regstat.
12564
12565         * ira.c: Remove mentioning cover classes from the file.  Add
12566         comments about coloring without cover classes.  Use ALLOCNO_CLASS
12567         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12568         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12569         setup_class_subset_and_memory_move_costs.
12570         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12571         (setup_cover_and_important_classes): Rename to
12572         setup_allocno_and_important_classes.
12573         (setup_class_translate_array): New.
12574         (setup_class_translate): Call it for allocno and pressure classes.
12575         (cover_class_order): Rename to allocno_class_order.
12576         (comp_reg_classes_func): Use ira_allocno_class_translate instead
12577         of ira_class_translate.
12578         (reorder_important_classes): Set up ira_important_class_nums.
12579         (setup_reg_class_relations): Set up ira_reg_class_superunion.
12580         (print_class_cover): Rename to print_classes.  Add parameter.
12581         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12582         Print pressure classes too.
12583         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
12584         setup_reg_subclasses.
12585         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12586         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12587         (setup_prohibited_class_mode_regs): Use
12588         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12589         (clarify_prohibited_class_mode_regs): New function.
12590         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12591         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12592         (ira_init_once): Initialize them.
12593         (free_register_move_costs): Process them.
12594         (ira_init): Move calls of find_reg_classes and
12595         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12596         Call clarify_prohibited_class_mode_regs.
12597         (ira_no_alloc_reg): Remove.
12598         (too_high_register_pressure_p): Use pressure classes.
12599
12600         * sched-deps.c: Remove mentioning cover classes from the file.
12601         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12602         ira_pressure_classes and ira_pressure_classes_num instead of
12603         ira_reg_class_cover_size and ira_reg_class_cover.
12604         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12605         sched_regno_pressure_class instead of sched_regno_cover_class.
12606         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
12607         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12608
12609         * ira.h: Add 2010 to Copyright.
12610         (ira_no_alloc_reg): Remove external.
12611         (struct target_ira): Rename x_ira_hard_regno_cover_class,
12612         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12613         x_ira_class_translate to x_ira_hard_regno_allocno_class,
12614         x_ira_allocno_classes_num, x_ira_allocno_classes, and
12615         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
12616         x_ira_pressure_classes, x_ira_pressure_class_translate, and
12617         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
12618         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
12619         x_ira_no_alloc_regs.
12620         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12621         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12622         ira_allocno_classes_num and ira_allocno_classes.
12623         (ira_class_translate): Rename to ira_allocno_class_translate.
12624         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12625         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12626         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12627         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12628         (ira_no_alloc_regs): New.
12629
12630         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
12631         classes from the file.  Use ALLOCNO_CLASS instead of
12632         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
12633         ALLOCNO_COVER_CLASS_COST.
12634         (regno_cover_class): Rename to regno_aclass.
12635         (record_reg_classes): Use ira_reg_class_subunion instead of
12636         ira_reg_class_union.
12637         (record_address_regs): Check overflow.
12638         (scan_one_insn): Ditto.
12639         (print_allocno_costs): Print total mem cost fore regional allocation.
12640         (print_pseudo_costs): Use REG_N_REFS.
12641         (find_costs_and_classes): Use classes intersected with them on the
12642         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
12643         ira_reg_class_union.  Use ira_allocno_class_translate and
12644         regno_aclass instead of ira_class_translate and regno_cover_class.
12645         Modify code for finding regno_aclass.  Setup preferred classes for
12646         the next pass.
12647         (setup_allocno_cover_class_and_costs): Rename to
12648         setup_allocno_class_and_costs.  Use regno_aclass instead of
12649         regno_cover_class.  Use ira_set_allocno_class instead of
12650         ira_set_allocno_cover_class.
12651         (init_costs, finish_costs): Use regno_aclass instead of
12652         regno_cover_class.
12653         (ira_costs): Use setup_allocno_class_and_costs instead of
12654         setup_allocno_cover_class_and_costs.
12655         (ira_tune_allocno_costs_and_cover_classes): Rename to
12656         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
12657         by processing objects.  Use ira_reg_class_max_nregs instead of
12658         ira_reg_class_nregs.
12659
12660         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12661
12662         * sched-int.h: Remove mentioning cover classes from the file.
12663         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12664
12665         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
12666         classes from the file.
12667         (struct reg_pref): Rename coverclass into allocnoclass.
12668         (reg_cover_class): Rename to reg_allocno_class.
12669
12670         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12671
12672         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12673
12674         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12675
12676         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12677
12678         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12679
12680         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12681
12682         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12683
12684         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12685
12686         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12687
12688         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12689
12690         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12691         (i386_ira_cover_classes): Ditto.
12692
12693         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12694
12695         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12696
12697         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12698
12699         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12700
12701         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12702
12703         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12704
12705         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12706         (mips_ira_cover_classes): Ditto.
12707
12708         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12709
12710         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12711
12712         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12713
12714         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12715
12716         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12717
12718         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12719         (IRA_COVER_CLASSES_VSX): Ditto.
12720
12721         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12722         (rs6000_ira_cover_classes): Ditto.
12723
12724         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12725
12726         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12727
12728         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12729
12730         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12731
12732         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12733
12734         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12735
12736         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12737
12738         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12739
12740         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12741
12742         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12743
12744 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
12745
12746         PR debug/48253
12747         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12748         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12749         dw_fde_unlikely_section_end_label, cold_in_std_section,
12750         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12751         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12752         fields.
12753         (output_fde): Use dw_fde_second_{begin,end} if second is
12754         true, otherwise dw_fde_{begin,end}.
12755         (output_call_frame_info): Test dw_fde_second_begin != NULL
12756         instead of dw_fde_switched_sections.
12757         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12758         fields, initialize new fields.  Initialize in_std_section
12759         unconditionally from the first partition.
12760         (dwarf2out_end_epilogue): Don't override dw_fde_end when
12761         dw_fde_second_begin is non-NULL.
12762         (dwarf2out_switch_text_section): Stop initializing removed
12763         dw_fde_struct fields, initialize new fields, initialize
12764         also dw_fde_end here.  Set dw_fde_switch_cfi even when
12765         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
12766         (struct var_loc_list_def): Add last_before_switch field.
12767         (arange_table, arange_table_allocated, arange_table_in_use,
12768         ARANGE_TABLE_INCREMENT, add_arange): Removed.
12769         (size_of_aranges): Count !in_std_section and !second_in_std_section
12770         hunks in fdes, instead of looking at arange_table_in_use.
12771         (output_aranges): Add aranges_length argument, don't call
12772         size_of_aranges here.  Instead of using aranges_table*
12773         emit ranges for fdes when !in_std_section resp.
12774         !second_in_std_section.
12775         (dw_loc_list): Break ranges crossing section switch.
12776         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
12777         use dw_fde_second_end instead of dw_fde_end as end of last range.
12778         (gen_subprogram_die): Don't call add_arange.  Use
12779         dw_fde_{begin,end} for first partition and if switched
12780         section dw_fde_second_{begin,end} for the second.
12781         (var_location_switch_text_section_1,
12782         var_location_switch_text_section): New functions.
12783         (dwarf2out_begin_function): Initialize cold_text_section even
12784         when function_section () isn't text_section.
12785         (prune_unused_types): Don't walk arange_table.
12786         (dwarf2out_finish): Don't needlessly test
12787         flag_reorder_blocks_and_partition when testing cold_text_section_used.
12788         If info_section_emitted, call size_of_aranges and if it indicates
12789         non-empty .debug_aranges, call output_aranges with the computed
12790         size.  Stop using removed dw_fde_struct fields, use
12791         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12792         for second.
12793
12794         PR debug/48203
12795         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12796         create ENTRY_VALUE if incoming or address of incoming's MEM
12797         is a hard REG.
12798         * dwarf2out.c (mem_loc_descriptor): Don't emit
12799         DW_OP_GNU_entry_value of DW_OP_fbreg.
12800         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12801         on ENTRY_VALUE is able to find the canonical parameter VALUE.
12802         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12803         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12804         ENTRY_VALUE_EXPs.
12805         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12806         is a REG_P or MEM_P with REG_P address, compute hash directly
12807         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12808         (preserve_only_constants): Don't clear VALUES forwaring
12809         ENTRY_VALUE to some other VALUE.
12810
12811 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
12812
12813         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12814         instead of GEN_INT.
12815
12816 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
12817
12818         * cfgexpand.c (expand_gimple_cond): Always set the source location and
12819         block before expanding the statement.
12820         (expand_gimple_stmt_1): Likewise.  Set them here...
12821         (expand_gimple_stmt): ...and not here.  Tidy.
12822         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12823         unknown.
12824
12825 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
12826
12827         * Makefile.in: New rule for cprop.o.
12828         * gcse.c: Move constant/copy propagation to cprop.c.
12829         (compute_local_properties): Only handle expression tables.
12830         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12831         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12832         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12833         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
12834         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
12835         compute_cprop_data, find_used_regs, try_replace_reg,
12836         find_avail_set, cprop_jump, constprop_register, cprop_insn,
12837         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12838         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12839         find_bypass_set, reg_killed_on_edge, bypass_block,
12840         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12841         execute_rtl_cprop, pass_rtl_cprop): Move to...
12842         * cprop.c: ...here.  New file, constant/copy propagation for RTL
12843         moved from gcse.c to here with minor cleanups in duplicated code.
12844
12845 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
12846
12847         * config/i386/i386.c (flag_opts): Fix a typo in
12848         -mavx256-split-unaligned-store.
12849
12850 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
12851
12852         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12853         LIBCALL_VALUE): Remove macros.
12854         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12855         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12856         (h8300_function_value, h8300_libcall_value,
12857         h8300_function_value_regno_p): New functions.
12858
12859 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
12860
12861         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12862
12863 2011-03-28  Jeff Law  <law@redhat.com>
12864
12865         * tree-ssa-threadupdate.c (redirect_edges): Call
12866         create_edge_and_update_destination_phis as needed.
12867         (create_edge_and_update_destination_phis): Accept new BB argument.
12868         All callers updated.
12869         (thread_block): Do not update the profile when threading around
12870         intermediate blocks.
12871         (thread_single_edge): Likewise.
12872         (determine_bb_domination_status): If BB is not a successor of the
12873         loop header, return NONDOMINATING.
12874         (register_jump_thread): Note when we register a jump thread around
12875         an intermediate block.
12876         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12877         (thread_across_edge): Use it.
12878
12879 2011-03-28  Tristan Gingold  <gingold@adacore.com>
12880
12881         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12882         when for_return is 2.
12883
12884 2011-03-28  Jeff Law  <law@redhat.com>
12885
12886         * var-tracking.c (canonicalize_values_mark): Delete unused
12887         lhs assignment.
12888         (canonicalize_values_star, set_variable_part): Likewise.
12889         (clobber_variable_part, delete_variable_part): Likewise.
12890
12891 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
12892
12893         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12894
12895 2011-03-28  Martin Jambor  <mjambor@suse.cz>
12896
12897         * tree-inline.c (expand_call_inline): Do not check that destination
12898         node is analyzed.
12899         (optimize_inline_calls): Assert that destination node is analyzed.
12900         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12901         not call tree_lowering_passes.
12902         * cgraph.h (cgraph_analyze_function): Declare.
12903         * cgraphunit.c (cgraph_analyze_function): Make public.
12904
12905 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
12906
12907         * config/sparc/sparc-opts.h: New.
12908         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12909         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12910         (sparc_option_override): Store processor_type enumeration rather
12911         than string in cpu_default.  Remove name and enumeration from
12912         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
12913         without using sparc_select.  Use target_flags_explicit instead of
12914         fpu_option_set.
12915         * config/sparc/sparc.h (enum processor_type): Move to
12916         sparc-opts.h.
12917         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12918         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12919         HeaderInclude entry.
12920         (mcpu=, mtune=): Use Var and Enum.
12921         (sparc_processor_type): New Enum and EnumValue entries.
12922
12923 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12924             Iain Sandoe  <iains@gcc.gnu.org>
12925
12926         PR target/48245
12927         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12928
12929 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
12930
12931         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12932         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12933         Insert new statements at it in lieu of STMT.
12934         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12935         * tree-vect-stmts.c (vectorizable_store): Likewise.
12936         (vectorizable_load): Likewise.
12937
12938 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
12939
12940         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12941         (divtf3): Ditto.
12942         (multf3): Ditto.
12943         (subtf3): Ditto.
12944
12945 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12946
12947         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12948         unaligned 256bit load/store.
12949         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12950         (*avx_movdqu<avxmodesuffix>): Likewise.
12951
12952 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12953
12954         PR target/48288
12955         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12956         * config/pa/pa.md (iordi3): Use new predicate in expander.
12957         (iorsi3): Likewise.
12958
12959 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
12960
12961         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12962         FUNCTION_VALUE_REGNO_P): Remove macros.
12963         * config/mips/mips-protos.h (mips_function_value): Remove.
12964         * config/mips/mips.c (mips_function_value): Rename to...
12965         (mips_function_value_1): ... this. Make static.  Handle receiving
12966         the function type in 'fn_decl_or_type' argument.
12967         (mips_function_value, mips_libcall_value,
12968         mips_function_value_regno_p): New function.
12969         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12970         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12971
12972 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12973
12974         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12975         and -mavx256-split-unaligned-store.
12976         (ix86_option_override_internal): Split 32-byte AVX unaligned
12977         load/store by default.
12978         (ix86_avx256_split_vector_move_misalign): New.
12979         (ix86_expand_vector_move_misalign): Use it.
12980
12981         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12982         -mavx256-split-unaligned-store.
12983
12984         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12985         256bit load/store.  Generate unaligned store on misaligned memory
12986         operand.
12987         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12988         256bit load/store.
12989         (*avx_movdqu<avxmodesuffix>): Likewise.
12990
12991         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12992         -mavx256-split-unaligned-store.
12993
12994 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
12995
12996         PR target/38598
12997         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12998         Update commentary.
12999
13000 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
13001
13002         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13003         opno arguments with an expand_operand.  Use create_input_operand.
13004         (mips_prepare_builtin_target): Delete.
13005         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13006         functions.
13007         (mips_expand_builtin_direct): Use create_output_operand and
13008         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
13009         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
13010         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13011
13012 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
13013
13014         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13015         function.
13016         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13017
13018 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
13019
13020         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13021         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
13022         basic blocks and call commit_edge_insertions directly.
13023         (fixup_abnormal_edges): Move from here to...
13024         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
13025         on the edges and return whether some have actually been inserted.
13026         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13027         compensation code.
13028
13029 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
13030
13031         PR rtl-optimization/48144
13032         * sel-sched-ir.c (merge_history_vect): Factor out from ...
13033         (merge_expr_data): ... here.
13034         (av_set_intersect): Rename to av_set_code_motion_filter.
13035         Update all callers.  Call merge_history_vect when an expression
13036         is found in both sets.
13037         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13038
13039 2011-03-26  Alan Modra  <amodra@gmail.com>
13040
13041         * config/rs6000/predicates.md (word_offset_memref_op): Handle
13042         cmodel medium addresses.
13043         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13044         64-bit gpr loads and stores.
13045         (rs6000_secondary_reload_ppc64): New function.
13046         * config/rs6000/rs6000-protos.h: Declare it.
13047         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13048
13049 2011-03-26  Alan Modra  <amodra@gmail.com>
13050
13051         PR target/47487
13052         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13053         GNU Go in traceback table.
13054
13055 2011-03-25  Richard Henderson  <rth@redhat.com>
13056
13057         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13058         if there are exactly 6 operands.
13059         (set_storage_via_setmem): Similarly.
13060
13061 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13062
13063         * collect2.c (write_c_file_stat): Handle backslash
13064         as right-hand directory separator.
13065         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13066         checking just for slash.
13067         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13068         instead of checking for trailing slash.
13069         * gcc.c (record_temp_file): Use filename_cmp instead
13070         of strcmp.
13071         (do_spec_1): Likewise.
13072         (replace_outfile_spec_function): Likewise.
13073         (is_directory): Use filename_ncmp instead of strncmp.
13074         (print_multilib_info): Likewise.
13075         * gcov.c (find_source): Use filename_cmp instead
13076         instead of strcmp.
13077         (make_gcov_file_name): Fix order of slash/backslash
13078         checks.
13079         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13080         (add_standard_paths): Likewise.
13081         * mips-tfile.c (saber_stop): Handle backslash.
13082         * prefix.c (update_path): Use filename_ncmp instead of
13083         strncmp.
13084         * profile.c (output_location): Use filename_cmp instead
13085         of strcmp.
13086         * read-md.c (handle_toplevel_file): Handle backslash.
13087         * tlink.c (frob_extension):  Likewise.
13088         * tree-cfg.c (same_line_p): Use filename_cmp instead of
13089         strcmp.
13090         * tree-dump.c (dequeue_and_dump): Handle backslash.
13091         * tree.c (get_file_function_name): Likewise.
13092         * gengtype.c (read_input_list): Likewise.
13093         (get_file_realbasename): Likewise.
13094         (get_output_file_with_visibility): Use filename_cmp
13095         instead of strcmp.
13096
13097 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
13098
13099         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13100         case to VFPv1.
13101
13102 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13103
13104         * fold-const.c (expr_location_or): New function.
13105         (fold_truth_not_expr): Call it.
13106
13107 2011-03-25  Jeff Law  <law@redhat.com>
13108
13109         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13110         va_end.
13111         * c-family/c-common.c (def_fn_type): Likewise.
13112         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13113         * emit-rtl.c (gen_rtvec): Likewise.
13114         * lto/lto-lang.c (def_fn_type): Likewise.
13115
13116 2011-03-25  Richard Guenther  <rguenther@suse.de>
13117
13118         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13119         also generate copies.
13120         (fini_copy_prop): Handle constant values properly.
13121
13122 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
13123
13124         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13125         mode size instead of bitsize with DWARF2_ADDR_SIZE.
13126         (hash_loc_operands, compare_loc_operands): Handle
13127         DW_OP_GNU_entry_value.
13128
13129 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13130
13131         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13132         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13133         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13134         comment and use macro TARGET_64BIT_MS_ABI instead.
13135         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13136         and change default behavior for 32-bit MS_ABI.
13137         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13138         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13139         32-bit, too.
13140         (ix86_cfun_abi): Likewise.
13141         (ix86_maybe_switch_abi): Adjust comment.
13142         (init_cumulative_args): Check for bit-ness in MS_ABI case.
13143         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13144         instead of checking for SYSV_ABI.
13145         (ix86_nsaved_sseregs): Likewise.
13146         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13147         to 16 bytes.
13148         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13149         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13150         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13151         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13152         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13153
13154 2011-03-25  Richard Guenther  <rguenther@suse.de>
13155
13156         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13157         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13158         (verify_gimple): Remove.
13159         * tree-cfg.c (verify_gimple_call): Merge verification
13160         from verify_stmts.
13161         (verify_gimple_phi): Merge verification from verify_stmts.
13162         (verify_gimple_label): New function.
13163         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13164         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13165         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13166         (verify_stmts): Rename to verify_gimple_in_cfg.
13167         (verify_gimple_in_cfg): New function.
13168         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13169         * tree-ssa.c (verify_ssa): Likewise.
13170         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13171
13172 2011-03-25  Richard Guenther  <rguenther@suse.de>
13173
13174         * passes.c (init_optimization_passes): Add FRE pass after
13175         early SRA.
13176
13177 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
13178             Andrew Stubbs  <ams@codesourcery.com>
13179
13180         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13181         for Cortex-A8.
13182         (arm_movdi_vfp_cortexa8): New pattern.
13183         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13184         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13185         instructions when tuning for Cortex-A8.  Set attribute "arch".
13186         * config/arm/arm.md: Move include arm-tune.md up a bit.
13187         (define_attr "arch"): Add "onlya8" and "nota8" values.
13188         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13189
13190 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13191
13192         PR bootstrap/48282
13193         Revert:
13194         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13195
13196         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13197         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13198         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13199         * passes.c (init_optimization_passes): Move
13200         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13201
13202 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13203
13204         * c-typeck.c (comptypes_internal): Replace target
13205         hook call of comp_type_attributes by version in tree.c file.
13206         * gimple.c (gimple_types_compatible_p_1): Likewise.
13207         * tree-ssa.c (useless_type_conversion_p): Likewise.
13208         * tree.c (build_type_attribute_qual_variant): Likewise.
13209         (attribute_value_equal): New static helper function.
13210         (comp_type_attributes): New function.
13211         (merge_attributes): Use attribute_value_equal for comparison.
13212         (attribute_list_contained): Likewise.
13213         * tree.h (comp_type_attributes): New prototype.
13214
13215 2011-03-25  Richard Guenther  <rguenther@suse.de>
13216
13217         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13218         of complex types at -O0.
13219         (verify_gimple_assign_binary): Likewise.
13220         (verify_gimple_assign_ternary): Likewise.
13221
13222 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13223
13224         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13225         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13226
13227 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13228
13229         PR debug/48041
13230         * dwarf2out.c (output_abbrev_section): Only write table when
13231         abbrev_die_table_in_use > 1.
13232
13233 2011-02-24  Richard Henderson  <rth@redhat.com>
13234
13235         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13236         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13237         (alpha_expand_unaligned_load_words): Use extql.
13238         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13239         (emit_insxl): Handle all modes for consistency.
13240
13241 2011-02-24  Richard Henderson  <rth@redhat.com>
13242
13243         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13244         (alpha_expand_unaligned_load): Likewise.
13245         (alpha_expand_unaligned_store): Likewise.
13246         (alpha_expand_unaligned_load_words): Likewise.
13247         (alpha_expand_unaligned_store_words): Likewise.
13248         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13249         (alpha_split_lock_test_and_set_12): Likewise.
13250         (print_operand, alpha_fold_builtin_extxx): Likewise.
13251         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13252         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13253         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13254         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13255         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13256         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13257         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13258         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13259         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13260         (extwl, extll, extql): Similarly.
13261         (inswh, inslh, insqh): Similarly.
13262         (mskbl, mskwl, mskll, mskql): Similarly.
13263         (mskwh, msklh, mskqh): Similarly.
13264
13265 2011-02-24  Richard Henderson  <rth@redhat.com>
13266
13267         * config/alpha/alpha.md (attribute isa): Add er, ner.
13268         (attribute enabled): Handle them.
13269         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13270
13271 2011-02-24  Richard Henderson  <rth@redhat.com>
13272
13273         * config/alpha/alpha.md (attribute isa): Add vms.
13274         (attribute enabled): Handle it.
13275         (*movsf): Merge *movsf_{nofix,fix,nofp}.
13276         (*movdf): Merge *movdf_{nofix,fix,nofp}.
13277         (*movtf): Rename from *movtf_internal for consistency.
13278         (*movsi): Merge with *movsi_nt_vms.
13279         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13280         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13281         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13282         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13283
13284 2011-02-24  Richard Henderson  <rth@redhat.com>
13285
13286         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13287         (extendqisi2, extendhisi2): Likewise.
13288         (extendqidi2): Simplify BWX/non-BWX expansions.
13289         (extendhidi2): Similarly.
13290
13291 2011-02-24  Richard Henderson  <rth@redhat.com>
13292
13293         * config/alpha/alpha.md (attribute isa): New.
13294         (attribute enabled): New.
13295         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13296         (zero_extendqisi2, zero_extendqidi2): Similarly.
13297         (zero_extendhisi2, zero_extendhidi2): Similarly.
13298         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13299
13300 2011-02-24  Richard Henderson  <rth@redhat.com>
13301
13302         * config/alpha/predicates.md (input_operand): Revert last change;
13303         update comment to mention 32-bit VMS rather than Windows.
13304
13305 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13306
13307         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13308         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13309         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13310         * passes.c (init_optimization_passes): Move
13311         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13312
13313 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13314
13315         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13316
13317 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13318
13319         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13320         correctly.
13321
13322 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
13323
13324         PR debug/48204
13325         * simplify-rtx.c (simplify_const_unary_operation): Call
13326         real_convert when changing mode class with FLOAT_EXTEND.
13327
13328 2011-03-24  Nick Clifton  <nickc@redhat.com>
13329
13330         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13331         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13332         * config/rx/rx.c (rx_option_override): Set align_jumps,
13333         align_loops and align_labels if not set by the user.
13334         (rx_align_for_label): New function.
13335         (rx_max_skip_for_label): New function.
13336         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13337         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13338         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13339         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13340         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13341
13342 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13343
13344         PR rtl-optimization/48263
13345         * optabs.c (expand_binop_directly): Reinstate convert_modes code
13346         and original commutative_p handling.  Use maybe_gen_insn.
13347
13348 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13349
13350         * reload.c (find_reloads_subreg_address): Add address_reloaded
13351         parameter and return true there if the full address has been
13352         reloaded.
13353         (find_reloads_toplev): Pass address_reloaded flag.
13354         (find_reloads_address_1): Don't use address_reloaded parameter.
13355
13356 2011-03-24  Jeff Law  <law@redhat.com>
13357
13358         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13359         unused variable "ann".
13360         (remove_unused_locals): Likewise.
13361
13362         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13363         statement.
13364
13365         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13366         after it is freed.
13367
13368 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13369
13370         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13371         for invalid symbolic addresses.
13372         (s390_secondary_reload): Don't use s390_check_symref_alignment for
13373         larl operands.
13374
13375 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13376
13377         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13378         the argument in calls to fold_truth_not_expr.
13379
13380 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13381
13382         * tree.c (record_node_allocation_statistics): New function.
13383         (make_node_stat, copy_node_stat, build_string): Call it.
13384         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13385         (build1_stat, build_omp_clause): Likewise.
13386
13387 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13388
13389         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13390         last commit.
13391
13392 2011-03-24  Richard Guenther  <rguenther@suse.de>
13393
13394         PR tree-optimization/48271
13395         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13396         blocks that still exist.
13397
13398 2011-03-24  Richard Guenther  <rguenther@suse.de>
13399
13400         PR tree-optimization/48270
13401         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13402         not free datarefs before ddrs.
13403
13404 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13405
13406         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13407         from the address built for a reference with variable offset.
13408
13409 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13410
13411         PR target/48237
13412         * config/i386/i386.md (*movdf_internal_rex64): Do not split
13413         alternatives that can be handled with movq or movabsq insn.
13414         (*movdf_internal): Disable for !TARGET_64BIT.
13415         (*movdf_internal_nointeger): Ditto.
13416         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13417
13418 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13419
13420         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13421         (FUNCTION_ARG_ADVANCE): Likewise.
13422         * tm.texi.in: Change references to them to hook references.
13423         * tm.texi: Regenerate.
13424         * targhooks.c (default_function_arg): Eliminate check for target macro.
13425         (default_function_incoming_arg): Likewise.
13426         (default_function_arg_advance): Likewise.
13427         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13428         (function_arg_advance): Likewise.
13429         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13430
13431 2011-03-24  Richard Guenther  <rguenther@suse.de>
13432
13433         PR middle-end/48269
13434         * tree-object-size.c (addr_object_size): Do not double-account
13435         for MEM_REF offsets.
13436
13437 2011-03-24  Diego Novillo  <dnovillo@google.com>
13438
13439         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13440         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13441         (lto_input_data_block): Move from lto-opts.c.  Make extern.
13442         Update all users.
13443         (lto_input_string): Rename from input_string.  Make extern.
13444         Update all users.
13445         * lto-streamer-out.c (lto_output_string_with_length): Rename from
13446         output_string_with_length.
13447         Output 0 to indicate a non-NULL string.  Update all callers to
13448         not emit 0.
13449         (lto_output_string): Rename from output_string.  Make extern.
13450         Update all users.
13451         (lto_output_decl_state_streams): Make extern.
13452         (lto_output_decl_state_refs): Make extern.
13453         * lto-streamer.h (lto_input_string): Declare.
13454         (lto_input_data_block): Declare.
13455         (lto_output_string): Declare.
13456         (lto_output_string_with_length): Declare.
13457         (lto_output_decl_state_streams): Declare.
13458         (lto_output_decl_state_refs): Declare.
13459
13460 2011-03-24  Richard Guenther  <rguenther@suse.de>
13461
13462         PR tree-optimization/46562
13463         * tree.c (build_invariant_address): New function.
13464         * tree.h (build_invariant_address): Declare.
13465         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13466         a renamed function moved ...
13467         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13468         Take valueization callback parameter.
13469         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13470         * gimple-fold.h: New file.
13471         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13472         (ccp_fold, fold_const_aggregate_ref,
13473         fold_ctor_reference, fold_nonarray_ctor_reference,
13474         fold_array_ctor_reference, fold_string_cst_ctor_reference,
13475         get_base_constructor): Move ...
13476         * gimple-fold.c: ... here.
13477         (gimple_fold_stmt_to_constant_1): New function
13478         split out from ccp_fold.  Take a valueization callback parameter.
13479         Valueize all operands.
13480         (gimple_fold_stmt_to_constant): New wrapper function.
13481         (fold_const_aggregate_ref_1): New function split out from
13482         fold_const_aggregate_ref.  Take a valueization callback parameter.
13483         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13484         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13485         invariant POINTER_PLUS_EXPRs to invariant form.
13486         (vn_valueize): New function.
13487         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13488         * tree-vrp.c (vrp_valueize): New function.
13489         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13490         to fold statements to constants.
13491         * tree-ssa-pre.c (eliminate): Properly guard propagation of
13492         function declarations.
13493         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13494         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13495
13496 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13497
13498         * config/h8300/predicates.md (jump_address_operand): Fix register
13499         mode check.
13500
13501 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
13502
13503         * doc/invoke.texi (max-stores-to-sink): Document.
13504         * params.h (MAX_STORES_TO_SINK): Define.
13505         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13506         if either vectorization or if-conversion is disabled.
13507         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13508         tree-vect-data-refs.c vect_equal_offsets.
13509         (dr_equal_offsets_p): New function.
13510         (find_data_references_in_bb): Remove static.
13511         * tree-data-ref.h (find_data_references_in_bb): Declare.
13512         (dr_equal_offsets_p): Likewise.
13513         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13514         (vect_drs_dependent_in_basic_block): Update calls to
13515         vect_equal_offsets.
13516         (vect_check_interleaving): Likewise.
13517         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13518         (cond_if_else_store_replacement): Rename to...
13519         (cond_if_else_store_replacement_1): ... this.  Change arguments and
13520         documentation.
13521         (cond_if_else_store_replacement): New function.
13522         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13523         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13524
13525 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
13526
13527         PR target/46934
13528         * config/arm/arm.md (casesi): Use the gen_int_mode() function
13529         to subtract lower bound instead of GEN_INT().
13530
13531 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
13532
13533         PR other/48179
13534         PR other/48221
13535         PR other/48234
13536         * doc/extend.texi (Alignment): Move section to match order in TOC.
13537         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13538         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13539
13540 2011-03-23  Jeff Law  <law@redhat.com>
13541
13542         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13543         before removing the edge.
13544
13545         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13546         it may have been freed by redirect_branch_edge or
13547         redirect_edge_succ_nodup.
13548
13549 2011-03-23  Richard Guenther  <rguenther@suse.de>
13550
13551         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13552         (check_va_list_escapes): Likewise.
13553         (check_all_va_list_escapes): Likewise.
13554
13555 2011-03-23  Richard Guenther  <rguenther@suse.de>
13556
13557         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13558         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13559         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13560         (alias.o): Likewise.
13561         (ipa-type-escape.o): Remove.
13562         (ipa-struct-reorg.o): Likewise.
13563         (GTFILES): Remove ipa-struct-reorg.c.
13564         * alias.c: Do not include ipa-type-escape.h.
13565         * tree-ssa-alias.c: Likewise.
13566         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13567         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13568         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13569         and ipa-type-escape passes.
13570         * tree-pass.h (pass_ipa_type_escape): Remove.
13571         (pass_ipa_struct_reorg): Likewise.
13572         * ipa-struct-reorg.h: Remove.
13573         * ipa-struct-reorg.c: Likewise.
13574         * ipa-type-escape.h: Likewise.
13575         * ipa-type-escape.c: Likewise.
13576         * doc/invoke.texi (-fipa-struct-reorg): Remove.
13577         (--param struct-reorg-cold-struct-ratio): Likewise.
13578         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13579         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13580         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13581
13582 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13583
13584         * config/s390/2084.md: Enable all insn reservations also for z9_ec
13585         cpu attribute value.
13586         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13587         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13588         * config/s390/s390.c (processor_flags_table): New constant array.
13589         (s390_handle_arch_option): Remove.
13590         (s390_handle_option): Remove s390_handle_arch_option invocations
13591         and OPT_mwarn_framesize_ handling.
13592         (s390_option_override): Remove s390_handle_arch_option invocation.
13593         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13594         warnings.
13595         * config/s390/s390.md (cpu attribute): Add z9_ec value.
13596         * config/s390/s390.opt (s390_tune, s390_arch)
13597         (march=): Replace s390_arch_option enum and values with
13598         processor_type.  Set variable name to s390_arch.  Set
13599         initialization value.
13600         (mtune=): Replace s390_arch_option with processor_type.  Set
13601         variable name to s390_tune.  Set initialization value.
13602
13603 2011-03-23  Julian Brown  <julian@codesourcery.com>
13604
13605         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13606         accesses which are not naturally aligned.
13607
13608 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13609
13610         PR target/47553
13611         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13612
13613 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13614
13615         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13616         parameter from "int" to "enum insn_code".
13617         (expand_operand_type): New enum.
13618         (expand_operand): New structure.
13619         (create_expand_operand): New function.
13620         (create_fixed_operand, create_output_operand): Likewise
13621         (create_input_operand, create_convert_operand_to): Likewise.
13622         (create_convert_operand_from, create_address_operand): Likewise.
13623         (create_integer_operand): Likewise.
13624         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13625         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13626         (expand_insn, expand_jump_insn): Likewise.
13627         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13628         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13629         (expand_movstr, expand_builtin___clear_cache): Likewise.
13630         (expand_builtin_lock_release): Likewise.
13631         * explow.c (allocate_dynamic_stack_space): Likewise.
13632         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
13633         and use the default handling in that case.
13634         * expmed.c (check_predicate_volatile_ok): Delete.
13635         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13636         (emit_cstore): Likewise.
13637         * expr.c (emit_block_move_via_movmem): Likewise.
13638         (set_storage_via_setmem, expand_assignment): Likewise.
13639         (emit_storent_insn, try_casesi): Likewise.
13640         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
13641         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13642         (expand_vec_shift_expr, expand_binop_directly): Likewise.
13643         (expand_twoval_unop, expand_twoval_binop): Likewise.
13644         (expand_unop_direct, emit_indirect_jump): Likewise.
13645         (emit_conditional_move, vector_compare_rtx): Likewise.
13646         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13647         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13648         (expand_sync_lock_test_and_set): Likewise.
13649         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
13650         (emit_unop_insn): Likewise.
13651         (expand_copysign_absneg): Change icode to an insn_code.
13652         (create_convert_operand_from_type): New function.
13653         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13654         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13655         (expand_insn, expand_jump_insn): Likewise.
13656         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13657         than const_int_operand for operand 2.
13658
13659 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13660
13661         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13662         if possible.
13663
13664 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13665
13666         * emit-rtl.c (emit_pattern_before_noloc): New function.
13667         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13668         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13669         (emit_pattern_after_noloc): New function.
13670         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13671         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13672
13673 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13674
13675         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13676         (__ffsDI2): Likewise.
13677
13678 2011-03-22  Richard Henderson  <rth@redhat.com>
13679
13680         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13681         of !TARGET_ABI_OPEN_VMS.
13682         (alpha_trampoline_init, alpha_start_function): Likewise.
13683         (alpha_expand_epilogue, alpha_file_start): Likewise.
13684         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13685         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13686         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13687         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13688         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13689
13690 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13691
13692         * config/s390/s390-opts.h: New.
13693         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13694         s390_arch_flags, s390_warn_framesize, s390_stack_size,
13695         s390_stack_guard): Remove.
13696         (s390_handle_arch_option): Return void.  Take enum
13697         s390_arch_option value instead of string and searching array.
13698         (s390_handle_option): Don't assert that global structures are in
13699         use.  Access variables via opts pointer.  Use error_at.  Don't use
13700         sscanf for -mstack-guard= or -mstack-size=.  Update call to
13701         s390_handle_arch_option.
13702         (s390_option_override): Update call to s390_handle_arch_option.
13703         (s390_emit_prologue): Use %d format for s390_stack_size in
13704         diagnostic.  Use %wd for HOST_WIDE_INT.
13705         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13706         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13707         * config/s390/s390.opt (config/s390/s390-opts.h): New
13708         HeaderInclude entry.
13709         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13710         s390_arch_flags, s390_warn_framesize): New Variable entries.
13711         (s390_arch_option): New Enum and EnumValue entries.
13712         (march=): Use Enum instead of Var.
13713         (mstack-guard=, mstack-size=): Use UInteger and Var.
13714         (mtune=): Use Enum.
13715
13716 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13717
13718         * config/score/score.c (score_handle_option): Don't assert that
13719         global structures are in use.  Access target_flags via opts
13720         pointer.  Use value of -march= option to determine target_flags
13721         settings.
13722         * config/score/score.opt (march=): Use Enum.
13723         (score_arch): New Enum and EnumValue entries.
13724
13725 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13726
13727         * config/mep/mep.c (option_mtiny_specified): Remove.
13728         (mep_option_override): Move register handling for -mivc2 from
13729         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
13730         instead of option_mtiny_specified.
13731         (mep_handle_option): Access target_flags via opts pointer.  Don't
13732         assert that global structures are in use.  Defer part of -mivc2
13733         handling and move it to mep_option_override.
13734         * config/mep/mep.opt (IVC2): New Mask entry.
13735         (mivc2): Use Var and Defer instead of Mask.
13736
13737 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13738
13739         * config/v850/v850-opts.h: New.
13740         * config/v850/v850.c (small_memory): Replace with
13741         small_memory_physical_max array.  Make that array static const.
13742         (v850_handle_memory_option): Take integer value of argument.  Take
13743         gcc_options pointer, option text and location.  Return void.
13744         Update for changes to small memory structures.
13745         (v850_handle_option): Access target_flags via opts pointer.  Don't
13746         assert that global structures are in use.  Update calls to
13747         v850_handle_memory_option.
13748         (v850_encode_data_area): Update references to small memory settings.
13749         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13750         (enum small_memory_type): Move to v850-opts.h.
13751         * config/v850/v850.opt (config/v850/v850-opts.h): New
13752         HeaderInclude entry.
13753         (small_memory_max): New Variable entry.
13754         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
13755         (mtda, mzda): Likewise.
13756
13757 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13758
13759         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13760         pointer.  Don't assert that global structures are in use.
13761
13762 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13763
13764         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13765         via opts pointer.  Don't assert that global structures are in use.
13766
13767 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13768
13769         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13770         (munix=93): Use Var.
13771         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13772         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13773         * config/pa/pa-opts.h: New.
13774         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13775         (pa_handle_option): Don't assert that global structures are in
13776         use.  Access target_flags via opts pointer.  Don't handle
13777         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13778         OPT_munix_98 here.
13779         (pa_option_override): Handle deferred OPT_mfixed_range_.
13780
13781 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13782
13783         * config/mn10300/mn10300-opts.h: New.
13784         * config/mn10300/mn10300.c (mn10300_processor,
13785         mn10300_tune_string): Remove.
13786         (mn10300_handle_option): Don't assert that global structures are
13787         in use.  Access mn10300_processor via opts pointer.  Don't handle
13788         OPT_mtune_ here.
13789         * config/mn10300/mn10300.h (enum processor_type): Move to
13790         mn10300-opts.h.
13791         (mn10300_processor): Remove.
13792         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13793         HeaderInclude entry.
13794         (mn10300_processor): New Variable entry.
13795         (mtune=): Use Var.
13796
13797 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13798
13799         * config/microblaze/microblaze.c: Don't include opts.h.
13800         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13801         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13802         (mno-clearbss): Use Var and Warn.
13803
13804 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13805
13806         * config/m32r/m32r-opts.h: New.
13807         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13808         (m32r_handle_option): Don't assert that global structures are in
13809         use.  Access target_flags and m32r_cache_flush_func via opts
13810         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
13811         OPT_mno_flush_trap here.
13812         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13813         include of m32r-opts.h.
13814         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13815         HeaderInclude entry.
13816         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13817         (mmodel=): Use Enum and Var.
13818         (m32r_model): New Enum and EnumValue entries.
13819         (mno-flush-trap): Use Var.
13820         (msdata=): Use Enum and Var.
13821         (m32r_sdata): New Enum and EnumValue entries.
13822
13823 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13824
13825         * config/m32c/m32c.c: Don't include opts.h.
13826         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13827         m32c_handle_option): Remove.
13828         (m32c_option_override): Check global_options_set.x_target_memregs
13829         instead of target_memregs_set.
13830         * config/m32c/m32c.h (target_memregs): Remove.
13831         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13832         variable.
13833
13834 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13835
13836         * config/iq2000/iq2000-opts.h: New.
13837         * config/iq2000/iq2000.c: Don't include opts.h.
13838         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
13839         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
13840         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13841         HeaderInclude entry.
13842         (iq2000_tune): New Variable entry.
13843         (march=): Add comment.  Use Enum.
13844         (iq2000_arch): New Enum and EnumValue entries.
13845         (mcpu=): Use Enum and Var.
13846         (iq2000_tune): New Enum and EnumValue entries.
13847
13848 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13849
13850         * config/ia64/ia64-opts.h: New.
13851         * config/ia64/ia64.c (ia64_tune): Remove.
13852         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13853         here.  Use error_at.
13854         (ia64_option_override): Handle deferred OPT_mfixed_range_.
13855         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13856         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13857         HeaderInclude entry.
13858         (ia64_tune): New Variable entry.
13859         (mfixed-range=): Use Defer and Var.
13860         (mtune=): Use Enum and Var.
13861         (ia64_tune): New Enum and EnumValue entries.
13862
13863 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13864
13865         * config/frv/frv-opts.h: New.
13866         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13867         frv-opts.h.
13868         (frv_cpu_type): Remove.
13869         * config/frv/frv.c: Don't include opts.h.
13870         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13871         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13872         (frv_cpu_type): New Variable entry.
13873         (frv_cpu): New Enum and EnumValue entries.
13874
13875 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13876
13877         * config/cris/cris.c (cris_handle_option): Access target_flags via
13878         opts pointer.  Don't assert that global structures are in use.
13879         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13880         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13881
13882 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13883
13884         * config/bfin/bfin-opts.h: New.
13885         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13886         bfin_si_revision, bfin_workarounds): Remove.
13887         (bfin_cpus): Make static const.
13888         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13889         not bfin_lib_id_given.
13890         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
13891         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13892         pointer. Use error_at.  Don't assert that global structures are in use.
13893         * config/bfin/bfin.h: Include bfin-opts.h.
13894         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13895         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13896         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13897         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13898         entries.
13899
13900 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13901
13902         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13903         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13904         or -msoft-float here.
13905         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13906         -msoft-float and -mhard-float.
13907         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13908         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13909         msoft-float.
13910         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13911         -msoft-float.
13912         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13913         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13914         not mhard-float.
13915         (LIBGCC_SPEC): Don't handle -msoft-float.
13916         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13917         -mhard-float.
13918         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13919         msoft-float.
13920         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13921         -mfloat-abi=*, not -msoft-float and -mhard-float.
13922         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13923         -msoft-float.
13924         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13925         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13926         mhard-float and msoft-float.
13927         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13928         mfloat-abi=soft in comments, not mhard-float and msoft-float.
13929         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13930         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13931         mhard-float.
13932         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13933         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13934         msoft-float.
13935         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13936         not mhard-float.
13937         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13938         not msoft-float.
13939
13940 2011-03-22  Richard Henderson  <rth@redhat.com>
13941
13942         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13943         TARGET_ABI_WINDOWS_NT.
13944         (alpha_output_function_end_prologue): Likewise.
13945         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13946         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13947         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13948         (trap, *movsi_nt_vms): Likewise.
13949         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13950         (*tablejump_osf_nt_internal): Remove.
13951         * config/alpha/predicates.md (input_operand): Only test Pmode.
13952
13953 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13954
13955         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13956         via opts pointer.  Use error_at.  Don't assert that global
13957         structures are in use.
13958
13959 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13960
13961         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13962         (ix86_handle_option): Access ix86_isa_flags and
13963         ix86_isa_flags_explicit via opts pointer.  Don't assert that
13964         global structures are in use.
13965         (ix86_function_specific_save, ix86_function_specific_restore):
13966         Update ix86_isa_flags_explicit field name.
13967         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13968         (ix86_isa_flags_explicit): Rename TargetSave entry to
13969         x_ix86_isa_flags_explicit.
13970
13971 2011-03-22  Richard Henderson  <rth@redhat.com>
13972
13973         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13974         (alpha_option_override, direct_return): Likewise.
13975         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13976         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13977         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13978         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13979         (alpha_expand_epilogue, alpha_end_function): Likewise.
13980         (alpha_init_libfuncs): Likewise.
13981         (struct machine_function): Remove unicosmk members.
13982         (print_operand) ['t']: Remove.
13983         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13984         unicosmk_output_module_name, unicosmk_output_common,
13985         current_section_align, unicosmk_output_text_section_asm_op,
13986         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13987         unicosmk_section_type_flags, unicosmk_unique_section,
13988         unicosmk_asm_named_section, unicosmk_insert_attributes,
13989         unicosmk_output_align, unicosmk_defer_case_vector,
13990         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13991         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13992         unicosmk_output_ssib, unicosmk_add_call_info_word,
13993         unicosmk_extern_head, unicosmk_output_default_externs,
13994         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13995         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13996         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13997         * config/alpha/alpha-protos.h: Update.
13998         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13999         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14000         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14001         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14002         (*mulsi_se, mulvsi3): Likewise.
14003         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14004         (*divmodsi_internal, call, call_value, realign): Likewise.
14005         (moddi3, umoddi3): Likewise; remove duplicate expander.
14006         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14007         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14008         (*movdi_nofix): Remove r/U alternative.
14009         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14010         * config/alpha/constraints.md ("U"): Remove.
14011         * config/alpha/predicates.md (call_operand"): Don't test
14012         TARGET_ABI_UNICOSMK.
14013
14014 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14015
14016         * target.def (handle_option): Take gcc_options and
14017         cl_decoded_option pointers and location_t.
14018         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14019         * doc/tm.texi: Regenerate.
14020         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14021         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14022         * lto-opts.c (lto_reissue_options): Generate option structure for
14023         targetm.handle_option call.
14024         * opts.c (target_handle_option): Update call to
14025         targetm.handle_option.  Remove assertions about values now passed
14026         down to hook.
14027         * targhooks.c (default_target_handle_option): New.
14028         * targhooks.h (default_target_handle_option): Declare.
14029         * config/alpha/alpha.c: Include opts.h.
14030         (alpha_handle_option): Update to new hook interface.
14031         * config/arm/arm.c: Include opts.h.
14032         (arm_handle_option): Update to new hook interface.
14033         * config/arm/t-arm (arm.o): Update dependencies.
14034         * config/bfin/bfin.c: Include opts.h.
14035         (bfin_handle_option): Update to new hook interface.
14036         * config/cris/cris.c: Include opts.h.
14037         (cris_handle_option): Update to new hook interface.
14038         * config/frv/frv.c: Include opts.h.
14039         (frv_handle_option): Update to new hook interface.
14040         * config/i386/i386.c: Include opts.h.
14041         (ix86_handle_option): Update to new hook interface.
14042         (ix86_valid_target_attribute_inner_p): Generate option structure
14043         for call to ix86_handle_option.
14044         * config/i386/t-i386 (i386.o): Update dependencies.
14045         * config/ia64/ia64.c: Include opts.h.
14046         (ia64_handle_option): Update to new hook interface.
14047         * config/ia64/t-ia64 (ia64.o): Update dependencies.
14048         * config/iq2000/iq2000.c: Include opts.h.
14049         (iq2000_handle_option): Update to new hook interface.
14050         * config/m32c/m32c.c: Include opts.h.
14051         (m32c_handle_option): Update to new hook interface.
14052         * config/m32r/m32r.c: Include opts.h.
14053         (m32r_handle_option): Update to new hook interface.
14054         * config/m68k/m68k.c: Include opts.h.
14055         (m68k_handle_option): Update to new hook interface.
14056         * config/mep/mep.c: Include opts.h.
14057         (mep_handle_option): Update to new hook interface.
14058         * config/microblaze/microblaze.c: Include opts.h.
14059         (microblaze_handle_option): Update to new hook interface.
14060         * config/mips/mips.c: Include opts.h.
14061         (mips_handle_option): Update to new hook interface.
14062         * config/mn10300/mn10300.c: Include opts.h.
14063         (mn10300_handle_option): Update to new hook interface.
14064         * config/pa/pa.c: Include opts.h.
14065         (pa_handle_option): Update to new hook interface.
14066         * config/pdp11/pdp11.c: Include opts.h.
14067         (pdp11_handle_option): Update to new hook interface.
14068         * config/rs6000/rs6000.c: Include opts.h.
14069         (rs6000_handle_option): Update to new hook interface.
14070         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14071         * config/rx/rx.c: Include opts.h.
14072         (rx_handle_option): Update to new hook interface.
14073         * config/s390/s390.c: Include opts.h.
14074         (s390_handle_option): Update to new hook interface.
14075         * config/score/score.c: Include opts.h.
14076         (score_handle_option): Update to new hook interface.
14077         * config/sh/sh.c: Include opts.h.
14078         (sh_handle_option): Update to new hook interface.
14079         * config/sparc/sparc.c: Include opts.h.
14080         (sparc_handle_option): Update to new hook interface.
14081         * config/v850/v850.c: Include opts.h.
14082         (v850_handle_option): Update to new hook interface.
14083
14084 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14085
14086         * gcc.c (driver_unknown_option_callback): Only permit and save
14087         unknown -Wno- options.
14088         (driver_wrong_lang_callback): Save options directly instead of via
14089         driver_unknown_option_callback.
14090
14091 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14092
14093         * combine.c (simplify_set): Try harder to find the best CC mode when
14094         simplifying a nested COMPARE on the RHS.
14095
14096 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14097
14098         * config/alpha/gnu.h: Remove.
14099         * config/arc: Remove directory.
14100         * config/arm/netbsd.h: Remove.
14101         * config/arm/t-pe: Remove.
14102         * config/crx: Remove directory.
14103         * config/i386/netbsd.h: Remove.
14104         * config/m68hc11: Remove directory.
14105         * config/m68k/uclinux-oldabi.h: Remove.
14106         * config/mcore/mcore-pe.h: Remove.
14107         * config/mcore/t-mcore-pe: Remove.
14108         * config/netbsd-aout.h: Remove.
14109         * config/rs6000/gnu.h: Remove.
14110         * config/sh/sh-symbian.h: Remove.
14111         * config/sh/symbian-base.c: Remove.
14112         * config/sh/symbian-c.c: Remove.
14113         * config/sh/symbian-cxx.c: Remove.
14114         * config/sh/symbian-post.h: Remove.
14115         * config/sh/symbian-pre.h: Remove.
14116         * config/sh/t-symbian: Remove.
14117         * config/svr3.h: Remove.
14118         * config/vax/netbsd.h: Remove.
14119         * config.build: Don't handle i[34567]86-*-pe.
14120         * config.gcc: Remove handling of deprecations for most deprecated
14121         targets.
14122         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14123         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14124         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14125         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14126         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14127         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14128         Remove cases.
14129         * config.host: Don't handle i[34567]86-*-pe.
14130         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14131         (ASM_SPEC32): Don't handle -mcall-gnu.
14132         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14133         -mcall-gnu.
14134         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14135         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14136         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14137         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14138         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14139         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14140         conditional on SYMBIAN.
14141         * configure.ac: Don't handle powerpc*-*-gnu*.
14142         * configure: Regenerate.
14143         * doc/extend.texi (interrupt attribute): Don't mention CRX.
14144         * doc/install-old.texi (m6811, m6812): Don't mention.
14145         * doc/install.texi (arc-*-elf*): Don't document multilib option.
14146         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14147         (m68k-uclinuxoldabi): Don't mention.
14148         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14149         Remove.
14150         (-mcall-gnu): Remove.
14151         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14152         families): Remove constraint documentation.
14153
14154 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
14155
14156         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14157         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14158         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14159
14160 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14161
14162         PR target/48226
14163         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14164         vector when peeking at the next token for vector, don't expand the
14165         keywords.
14166
14167 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
14168
14169         * config/avr/avr-protos.h (expand_epilogue): Change prototype
14170         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14171         * config/avr/avr.c (init_cumulative_args)
14172         (avr_function_arg_advance): Use it.
14173         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14174         sibcall epilogues.
14175         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14176         (avr_function_ok_for_sibcall): ...this new function.
14177         (avr_lookup_function_attribute1): New static Function.
14178         (avr_naked_function_p, interrupt_function_p)
14179         (signal_function_p, avr_OS_task_function_p)
14180         (avr_OS_main_function_p): Use it.
14181         * config/avr/avr.md ("sibcall", "sibcall_value")
14182         ("sibcall_epilogue"): New expander.
14183         ("*call_insn", "*call_value_insn"): New insn.
14184         ("call_insn", "call_value_insn"): Remove
14185         ("call", "call_value", "epilogue"): Change expander to handle
14186         sibling calls.
14187
14188 2011-03-21  Nick Clifton  <nickc@redhat.com>
14189
14190         * doc/invoke.texi (Overall Options): Move closing brace to end of
14191         options list.
14192         (Optimization Options): Add missing @gol.
14193         (Directory Options): Likewise.
14194         (i386 and x86-64 Options): Likewise.
14195         (RS6000 and PowerPC Options): Likewise.
14196         (i386 and x86-64 Windows Options): Likewise.
14197         (V850 Options): Add text missing from descriptions.
14198
14199 2011-03-22  Richard Henderson  <rth@redhat.com>
14200
14201         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14202         (avr_incoming_return_addr_rtx): New.
14203         (emit_push_byte): New.
14204         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
14205         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
14206         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
14207         (emit_pop_byte): New.
14208         (expand_epilogue): Use it.  Pop frame pointer by bytes.
14209         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14210         (INCOMING_RETURN_ADDR_RTX): New.
14211         (INCOMING_FRAME_SP_OFFSET): New.
14212         (ARG_POINTER_CFA_OFFSET): New.
14213         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14214         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14215         (pophi): Remove.
14216
14217         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14218
14219 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14220
14221         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14222         (FUNCTION_ARG_ADVANCE): Likewise.
14223         * tm.texi.in: Change references to them to hook references.
14224         * tm.texi: Regenerate.
14225         * targhooks.c (default_function_arg): Eliminate check for target
14226         macro.
14227         (default_function_incoming_arg): Likewise.
14228         (default_function_arg_advance): Likewise.
14229         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14230         (function_arg_advance): Likewise.
14231         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14232
14233 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14234
14235         * tree.c (build_call_1): New function.
14236         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14237
14238 2011-03-22  Richard Guenther  <rguenther@suse.de>
14239
14240         PR tree-optimization/48228
14241         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14242         for single-arg PHIs.
14243
14244 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
14245
14246         PR rtl-optimization/48143
14247         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14248         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14249         sse2_cvtps2pd): Likewise.
14250
14251 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14252
14253         * recog.c (canonicalize_change_group): Use validate_unshare_change.
14254
14255 2011-03-22  Richard Guenther  <rguenther@suse.de>
14256
14257         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14258         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14259         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14260         and REALIGN_LOAD_EXPR.
14261         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14262         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14263         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14264         DOT_PROD_EXPR case ...
14265         (expand_expr_real_2): ... here.
14266         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14267         and REALIGN_LOAD_EXPR.
14268         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14269         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14270         (vect_create_epilog_for_reduction): Likewise.
14271         (vectorizable_reduction): Likewise.
14272         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14273         * tree-vect-stmts.c (vectorizable_load): Likewise.
14274
14275 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14276
14277         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14278
14279 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14280
14281         * config/s390/s390.c (s390_delegitimize_address): Fix offset
14282         handling for PLTOFF/GOTOFF.
14283
14284 2011-03-22  Nick Clifton  <nickc@redhat.com>
14285
14286         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14287         trailing backslash from the end of the macro definition.
14288
14289 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14290
14291         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14292         and PLT unspecs.
14293
14294 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
14295
14296         * expr.h (prepare_operand): Move to...
14297         * optabs.h (prepare_operand): ...here and change the insn code
14298         parameter from "int" to "enum insn_code".
14299         (insn_operand_matches): Declare.
14300         * expr.c (init_expr_target): Use insn_operand_matches.
14301         (compress_float_constant): Likewise.
14302         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14303         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14304         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14305         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14306         Likewise.
14307         (gen_cond_trap): Likewise.
14308         (prepare_operand): Likewise.  Change icode to an insn_code.
14309         (insn_operand_matches): New function.
14310         * reload.c (find_reloads_address_1): Use insn_operand_matches.
14311         * reload1.c (gen_reload): Likewise.
14312         * targhooks.c (default_secondary_reload): Likewise.
14313
14314 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14315
14316         * config/alpha/alpha.md (unspec): New define_c_enum.
14317         (unspecv): Ditto.
14318
14319 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14320
14321         PR debug/48214
14322         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14323         between a call and its CALL_ARG_LOCATION note.
14324
14325 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
14326
14327         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14328
14329 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14330
14331         PR c/42544
14332         PR c/48197
14333         * c-common.c (shorten_compare): If primopN is first sign-extended
14334         to opN and then zero-extended to result type, set primopN to opN.
14335
14336 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
14337
14338         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14339         for barrier handlers.
14340
14341 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14342
14343         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14344         UNSPEC constants to be in the unspec enumeration, and redefine
14345         all UNSPECV constants to be in the unspecv enumeration, so that
14346         dumps print which unspec/unspec_volatile this is.
14347         * config/rs6000/vector.md (UNSPEC_*): Ditto.
14348         * config/rs6000/paired.md (UNSPEC_*): Ditto.
14349         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14350         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14351         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14352
14353         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14354         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14355         UNSPECV_LWSYNC, since these are used as unspec_volatile.
14356         * config/rs6000/sync.md (isync, lwsync): Ditto.
14357
14358 2011-03-21  Richard Guenther  <rguenther@suse.de>
14359
14360         * params.def (lto-min-partition): Fix typo.
14361
14362 2011-03-21  Richard Guenther  <rguenther@suse.de>
14363
14364         PR c/47939
14365         * c-decl.c (grokdeclarator): Drop to the main variant only
14366         for array types.  Drop flag_gen_aux_info check.
14367
14368 2011-03-21  Richard Guenther  <rguenther@suse.de>
14369
14370         PR translation/47911
14371         * params.def (lto-partitions): Fix typo.
14372         (lto-min-partition): Fix wording.
14373
14374 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
14375
14376         * config/rs6000/t-freebsd: Remove duplication from file.
14377
14378 2011-03-21  Richard Guenther  <rguenther@suse.de>
14379
14380         PR middle-end/47661
14381         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14382
14383 2011-03-21  Richard Guenther  <rguenther@suse.de>
14384
14385         PR lto/48210
14386         * params.def (lto-partitions): Require at least 1 partition.
14387
14388 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14389
14390         * gthr-solaris.h: Remove.
14391         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14392         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14393         (LIB_SPEC): Likewise.
14394         * config/sol2.opt (threads): Remove.
14395         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14396         (sparc*-*-solaris2*): Likewise.
14397         * configure.ac (enable_threads): Enable solaris support.
14398         * configure: Regenerate.
14399         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14400         * doc/install.texi (Configuration, --enable-threads=lib): Remove
14401         solaris.
14402
14403 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14404
14405         * config.gcc: Obsolete *-*-solaris2.8*.
14406         * doc/install.texi (Specific, *-*-solaris2*): Document it.
14407
14408 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14409
14410         PR bootstrap/48135
14411         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14412         reference.  Solaris 8 perl works.
14413
14414 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14415
14416         PR bootstrap/48135
14417         * doc/install.texi (Prerequisites): Move jar etc. up.
14418         Explain support library version requirements.
14419
14420 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14421
14422         PR bootstrap/48135
14423         * doc/install.texi (Prerequisites): Move Perl to build
14424         requirements.  Always necessary on Solaris 2 with Sun ld.
14425
14426 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14427
14428         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14429         binutils 2.21.
14430         (Specific, i?86-*-solaris2.[89]): Likewise.
14431         (Specific, i?86-*-solaris2.10): Likewise.
14432         (Specific, mips-sgi-irix6): Likewise.
14433         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14434         Update for binutils 2.21.
14435
14436 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14437
14438         * configure.ac (gcc_cv_lto_plugin): Fix typo.
14439         Allow -fuse-linker-plugin for non-default plugin linker.
14440         * configure: Regenerate.
14441
14442 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14443
14444         PR bootstrap/48167
14445         * gengtype.c (files_rules): Added rule for cp/parser.h.
14446
14447 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14448
14449         PR target/48213
14450         * config/s390/s390.c (s390_delegitimize_address): Don't call
14451         lowpart_subreg if orig_x has BLKmode.
14452
14453 2011-03-21  Kai Tietz  <ktietz@redhat.com>
14454
14455         PR target/12171
14456         * doc/plugins.texi: Adjust documentation for plugin register_callback.
14457         * tree.h (attribute_spec): Add new member affects_type_identity.
14458         * attribs.c (empty_attribute_table): Adjust attribute_spec
14459         initializers.
14460         * config/alpha/alpha.c: Likewise.
14461         * config/arc/arc.c: Likewise.
14462         * config/arm/arm.c: Likewise.
14463         * config/avr/avr.c: Likewise.
14464         * config/bfin/bfin.c: Likewise.
14465         * config/crx/crx.c: Likewise.
14466         * config/darwin.h: Likewise.
14467         * config/h8300/h8300.c: Likewise.
14468         * config/i386/cygming.h: Likewise.
14469         * config/i386/i386.c: Likewise.
14470         * config/ia64/ia64.c: Likewise.
14471         * config/m32c/m32c.c: Likewise.
14472         * config/m32r/m32r.c: Likewise.
14473         * config/m68hc11/m68hc11.c: Likewise.
14474         * config/m68k/m68k.c: Likewise.
14475         * config/mcore/mcore.c: Likewise.
14476         * config/mep/mep.c: Likewise.
14477         * config/microblaze/microblaze.c: Likewise.
14478         * config/mips/mips.c: Likewise.
14479         * config/rs6000/rs6000.c: Likewise.
14480         * config/rx/rx.c: Likewise.
14481         * config/sh/sh.c: Likewise.
14482         * config/sol2.h: Likewise.
14483         * config/sparc/sparc.c: Likewise.
14484         * config/spu/spu.c: Likewise.
14485         * config/stormy16/stormy16.c: Likewise.
14486         * config/v850/v850.c: Likewise.
14487
14488 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
14489
14490         * simplify-rtx.c (simplify_binary_operation_1): Handle
14491         (xor (and A B) C) case when B and C are both constants.
14492
14493 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
14494
14495         * tree-dfa.c (add_referenced_var): Fix typo in comment.
14496
14497 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14498
14499         PR bootstrap/48168
14500         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14501
14502 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
14503
14504         PR rtl-optimization/48156
14505         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14506         assume df and df_lr are not NULL.
14507
14508 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14509
14510         PR debug/48023
14511         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14512         between a call and its CALL_ARG_LOCATION note.
14513
14514 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
14515
14516         PR debug/48178
14517         * config/sh/sh.c (find_barrier): Don't emit a constant pool
14518         between a call and its corresponding CALL_ARG_LOCATION note.
14519
14520 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
14521
14522         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14523         instead of loop. Use HARD_REGISTER_NUM_P predicate.
14524         * haifa-sched.c (setup_ref_regs): Ditto.
14525         * caller-save.c (add_used_regs_1): Ditto.
14526         * dse.c (look_for_hardregs): Ditto.
14527         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14528         * sched-rgn.c (check_live_1): Ditto.
14529
14530 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14531
14532         * c-decl.c (diagnose_mismatched_decls): Give an error for
14533         redefining a typedef with variably modified type.
14534
14535 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14536
14537         * c-decl.c (grokfield): Don't allow typedefs for structures or
14538         unions with no tag by default.
14539         * doc/extend.texi (Unnamed Fields): Update.
14540
14541 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
14542
14543         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14544         Rewrite using indirect functions.
14545         (lwp_slwpcb): Ditto.
14546         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14547         (avx_vinsertf128<mode>): Ditto.
14548
14549 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14550
14551         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14552         unspecs.
14553
14554 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14555
14556         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14557         splitting between a call and its corresponding CALL_ARG_LOCATION note.
14558
14559 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14560
14561         PR rtl-optimization/48170
14562         * gcse.c (hoist_code): Remove bogus asserts.
14563
14564 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
14565
14566         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14567         computation for prologue/epilogue.
14568
14569 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14570
14571         * Makefile.in (check-consistency): Remove.
14572
14573 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
14574
14575         PR debug/48176
14576         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14577         arange_table_in_use is 0, but either text_section_used or
14578         cold_text_section_used is true.  Don't call it if
14579         !info_section_emitted.
14580
14581 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
14582
14583         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14584         FUNCTION_VALUE_REGNO_P): Remove.
14585         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14586         Remove.
14587         * config/avr/avr.c (avr_ret_register): Make static inline.
14588         (avr_function_value_regno_p): New function.
14589         (avr_libcall_value): Make static. Add 'func' argument.
14590         (avr_function_value): Make static. Rename 'func' argument to
14591         'fn_decl_or_type', forward it to avr_libcall_value. Call
14592         avr_ret_register function instead of RET_REGISTER macro.
14593         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14594
14595 2011-03-18  Jason Merrill  <jason@redhat.com>
14596
14597         PR c++/23372
14598         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14599
14600 2011-03-18  Richard Guenther  <rguenther@suse.de>
14601
14602         * doc/install.texi (--enable-gold): Remove.
14603         (--with-plugin-ld): Document.
14604         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14605
14606 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
14607
14608         PR middle-end/47790
14609         * expr.c (optimize_bitfield_assignment_op): Revamp to work
14610         again after expansion changes.
14611
14612 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
14613
14614         * combine.c (try_combine): Do simplification only call of
14615         subst() on i2 even when i1 is present. Update comments.
14616
14617 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
14618
14619         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14620         and UNSPEC_PCREL_SYMOFF.
14621
14622 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14623
14624         * config/s390/s390.md: Use define_c_enum for the unspec constant
14625         definitions.
14626
14627 2011-03-18  Richard Henderson  <rth@redhat.com>
14628             Jakub Jelinek  <jakub@redhat.com>
14629
14630         PR bootstrap/48161
14631         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14632         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14633
14634 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14635
14636         PR middle-end/47725
14637         * combine.c (cant_combine_insn_p): Don't check zero/sign
14638         extended hard registers.
14639
14640 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14641
14642         PR middle-end/47725
14643         * combine.c (cant_combine_insn_p): Check zero/sign extended
14644         hard registers.
14645
14646 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
14647
14648         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14649         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14650         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14651         Change return type to bool.
14652         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14653
14654 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14655
14656         PR debug/48163
14657         * var-tracking.c (prepare_call_arguments): If CALL target
14658         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14659         pc instead of looking it up using cselib_lookup and use
14660         Pmode for it if x has VOIDmode.
14661         * dwarf2out.c (gen_subprogram_die): If also both first and
14662         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14663
14664         PR debug/48163
14665         * function.c (assign_parms): For data.passed_pointer parms
14666         use MEM of data.entry_parm instead of data.entry_parm itself
14667         as DECL_INCOMING_RTL.
14668         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14669         also when passed and declared mode is the same, DECL_RTL
14670         is a MEM with pseudo as address and DECL_INCOMING_RTL is
14671         a MEM too.
14672
14673 2011-03-16  Jeff Law  <law@redhat.com>
14674
14675         PR rtl-optimization/37273
14676         * ira-costs.c (scan_one_insn): Detect constants living in memory and
14677         handle them like argument loads from stack slots.  Do not double
14678         count memory for memory constants and argument loads from stack slots.
14679
14680 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14681
14682         PR debug/48160
14683         * var-tracking.c (prepare_call_arguments): Check SUBREG.
14684
14685 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14686
14687         PR target/48171
14688         * config/i386/i386.opt: Add Save to -mavx and -mfma.
14689
14690 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14691
14692         PR bootstrap/48153
14693         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14694         if dwarf_strict.
14695         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14696         Clear call_arg_locations and call_arg_loc_last always.
14697
14698         PR middle-end/48152
14699         * var-tracking.c (prepare_call_arguments): If argument needs to be
14700         passed by reference, adjust argtype and mode.
14701
14702 2011-03-17  Richard Guenther  <rguenther@suse.de>
14703
14704         PR middle-end/48134
14705         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14706         a value make sure to fold the statement.
14707
14708 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
14709
14710         PR target/43872
14711         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14712         return condition with !cfun->calls_alloca.
14713
14714 2011-03-17  Richard Guenther  <rguenther@suse.de>
14715
14716         PR bootstrap/48148
14717         * lto-cgraph.c (input_overwrite_node): Clear the abstract
14718         origin for decls in other ltrans units.
14719         (input_varpool_node): Likewise.
14720
14721 2011-03-17  Richard Guenther  <rguenther@suse.de>
14722
14723         PR middle-end/48165
14724         * tree-object-size.c (compute_object_offset): Properly return
14725         the offset operand of MEM_REFs as sizetype.
14726
14727 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14728
14729         PR rtl-optimization/48141
14730         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14731         * dse.c: Include params.h.
14732         (active_local_stores_len): New variable.
14733         (add_wild_read, dse_step1): Clear it when setting active_local_stores
14734         to NULL.
14735         (record_store, check_mem_read_rtx): Decrease it when removing
14736         from the chain.
14737         (scan_insn): Likewise.  Increase it when adding to chain, if it
14738         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14739         set active_local_stores to NULL before the addition.
14740         * Makefile.in (dse.o): Depend on $(PARAMS_H).
14741
14742         PR rtl-optimization/48141
14743         * dse.c (record_store): If no positions are needed in an insn
14744         that cannot be deleted, at least unchain it from active_local_stores.
14745
14746 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
14747
14748         PR debug/47510
14749         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14750         (lookup_type_die_strip_naming_typedef): ... here.
14751         (get_context_die): Use it.
14752         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14753         the anonymous struct named by the naming typedef.
14754
14755 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
14756
14757         PR target/48154
14758         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14759         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14760
14761 2011-03-16  Jeff Law  <law@redhat.com>
14762
14763         * tree-vrp.c (identify_jump_threads): Slightly simplify type
14764         check for operands of conditional.  Allow type to be a pointer.
14765
14766 2011-03-16  Richard Guenther  <rguenther@suse.de>
14767
14768         PR tree-optimization/48149
14769         * fold-const.c (fold_binary_loc): Fold
14770         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14771
14772 2011-03-16  Richard Guenther  <rguenther@suse.de>
14773
14774         PR tree-optimization/26134
14775         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14776         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14777         (non_rewritable_mem_ref_base): Handle complex type component
14778         accesses, constrain offsets for vector and complex extracts
14779         more properly.
14780
14781 2011-03-16  Richard Guenther  <rguenther@suse.de>
14782
14783         PR tree-optimization/48146
14784         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14785         operands avoiding the need for renaming.
14786
14787 2011-03-16  Richard Guenther  <rguenther@suse.de>
14788
14789         * gimple-fold.c (maybe_fold_reference): Open-code relevant
14790         constant folding.  Move MEM_REF canonicalization first.
14791         Rely on fold_const_aggregate_ref for initializer folding.
14792         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14793
14794 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
14795
14796         PR middle-end/48136
14797         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14798         arg0/arg1 or their arguments are always fold converted to matching
14799         types.
14800
14801         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14802         to nargs.
14803
14804 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14805
14806         PR lto/46944
14807         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14808         Handle in-tree gold.
14809         (ld_vers): Extract binutils version for gold.
14810         (gcc_cv_ld_hidden): Handle gold here.
14811         (gcc_cv_lto_plugin): Determine level of linker plugin support.
14812         * configure: Regenerate.
14813         * config.in: Regenerate.
14814         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14815         -fuse-linker-plugin otherwise.
14816         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
14817         (LINK_COMMAND_SPEC): Use it.
14818         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14819
14820 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
14821
14822         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14823         * calls.c: Remove debug.h include.
14824         (emit_call_1): Don't call virtual_call_token debug hook.
14825         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14826         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14827         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14828         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14829         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14830         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14831         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14832         dwarf2out_virtual_call): Remove.
14833         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14834         copy_call_info and virtual_call hooks.
14835         (dwarf2out_init): Don't initialize vcall_insn_table,
14836         debug_dcall_section and debug_vcall_section.
14837         (prune_unused_types): Don't mark nodes from dcall_table.
14838         (dwarf2out_finish): Don't output dcall or vcall tables.
14839         * final.c (final_scan_insn): Don't call direct_call or
14840         virtual_call debug hooks.
14841         * debug.h (struct gcc_debug_hooks): Remove direct_call,
14842         virtual_call_token, copy_call_info and virtual_call hooks.
14843         (debug_nothing_uid): Remove prototype.
14844         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14845         copy_call_info and virtual_call hooks.
14846         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14847         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14848         * debug.c (do_nothing_debug_hooks): Likewise.
14849         (debug_nothing_uid): Remove.
14850         * doc/invoke.texi (-fenable-icf-debug): Remove.
14851         * common.opt (-fenable-icf-debug): Likewise.
14852
14853         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14854         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14855         call's MEM.  Handle functions returning aggregate through a hidden
14856         first pointer.  For virtual calls add clobbered pc to call arguments
14857         chain.
14858         * dwarf2out.c (gen_subprogram_die): Emit
14859         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14860         can't be emitted.
14861
14862         PR debug/45882
14863         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14864         * rtl.h (ENTRY_VALUE_EXP): Define.
14865         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14866         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14867         * print-rtl.c (print_rtx): Likewise.
14868         * gengtype.c (adjust_field_rtx_def): Likewise.
14869         * var-tracking.c (vt_add_function_parameter): Adjust
14870         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14871         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14872         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14873         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14874         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14875
14876         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14877         Call var_location debug hook even on CALL_INSNs.
14878         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14879         * rtl.def (ENTRY_VALUE): New.
14880         * dwarf2out.c: Include cfglayout.h.
14881         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14882         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14883         (struct call_arg_loc_node): New type.
14884         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14885         tail_call_site_count): New variables.
14886         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14887         DW_TAG_GNU_call_site_parameter.
14888         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14889         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14890         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14891         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14892         and DW_AT_GNU_all_source_call_sites.
14893         (mem_loc_descriptor): Handle ENTRY_VALUE.
14894         (add_src_coords_attributes): Don't add enything if
14895         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14896         (dwarf2out_abstract_function): Save and clear call_arg_location,
14897         call_site_count and tail_call_site_count around dwarf2out_decl call.
14898         (gen_call_site_die): New function.
14899         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14900         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14901         (dwarf2out_function_decl): Clear call_arg_locations,
14902         call_arg_loc_last, set call_site_count and tail_call_site_count
14903         to -1 and free block_map.
14904         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14905         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
14906         followed by any real instructions.
14907         (dwarf2out_begin_function): Set call_site_count and
14908         tail_call_site_count to 0.
14909         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14910         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14911         attempt to force a DIE for it and worst case remove the attribute.
14912         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14913         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14914         the decl itself.
14915         * var-tracking.c: Include tm_p.h.
14916         (vt_stack_adjustments): For calls call note_register_arguments.
14917         (argument_reg_set): New variable.
14918         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14919         ensure the VALUE is resolved.
14920         (call_arguments): New variable.
14921         (prepare_call_arguments): New function.
14922         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14923         (struct expand_loc_callback_data): Add ignore_cur_loc field.
14924         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14925         always use the best expression.
14926         (vt_expand_loc): Add ignore_cur_loc argument.
14927         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14928         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14929         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14930         note for all calls.
14931         (vt_add_function_parameter): Use cselib_lookup_from_insn.
14932         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14933         argument.  Don't call cselib_preserve_only_values and
14934         cselib_reset_table.
14935         (note_register_arguments): New function.
14936         (vt_initialize): Compute argument_reg_set.  Call
14937         vt_add_function_parameters before processing basic blocks instead of
14938         afterwards.  For calls call prepare_call_arguments before calling
14939         cselib_process_insn.
14940         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14941         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14942         (var-tracking.o): Depend on $(TM_P_H).
14943         * cfglayout.h (insn_scope): New prototype.
14944         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14945         * cfglayout.c (insn_scope): No longer static.
14946         * insn-notes.def (CALL_ARG_LOCATION): New.
14947         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14948         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14949         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14950         nothing for DECL_EXTERNAL BLOCK_VARS.
14951
14952 2011-03-16  Alan Modra  <amodra@gmail.com>
14953
14954         PR target/45844
14955         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14956         create invalid offset address for vsx splat insn.
14957         * config/rs6000/predicates.md (splat_input_operand): New.
14958         * config/rs6000/vsx.md (vsx_splat_*): Use it.
14959
14960 2011-03-15  Xinliang David Li  <davidxl@google.com>
14961
14962         PR c/47837
14963         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14964         (normalize_preds): New function.
14965         (is_use_properly_guarded): Normalize def predicates.
14966
14967 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14968
14969         PR target/46788
14970         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14971         in the output template.
14972
14973 2011-03-15  Richard Guenther  <rguenther@suse.de>
14974
14975         PR middle-end/47650
14976         * tree-pretty-print.c (dump_function_declaration): Properly
14977         dump unprototyped and varargs function types.
14978
14979 2011-03-15  Richard Guenther  <rguenther@suse.de>
14980
14981         PR tree-optimization/13954
14982         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14983         and friends.
14984
14985 2011-03-15  Richard Guenther  <rguenther@suse.de>
14986
14987         PR tree-optimization/48037
14988         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14989         selects into BIT_FIELD_REFs.
14990         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14991         vector select.
14992
14993 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
14994
14995         PR tree-optimization/48129
14996         * builtins.c (fold_builtin_snprintf): Convert to type of
14997         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14998         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14999
15000 2011-03-15  Richard Guenther  <rguenther@suse.de>
15001
15002         PR tree-optimization/41490
15003         * tree-ssa-dce.c (propagate_necessity): Handle returns without
15004         value but with VUSE.
15005         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15006         return statements.
15007         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15008         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15009         * tree-tailcall.c (find_tail_calls): Ignore returns.
15010
15011 2011-03-15  Richard Guenther  <rguenther@suse.de>
15012
15013         PR middle-end/48031
15014         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15015         or variable-indexed array accesses when in gimple form.
15016
15017 2011-03-15  Richard Guenther  <rguenther@suse.de>
15018
15019         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15020
15021 2011-03-15  Alan Modra  <amodra@gmail.com>
15022
15023         PR target/48032
15024         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15025         presume symbol_refs without a symbol_ref_decl are suitably
15026         aligned, nor other trees we may see here.  Handle anchor symbols.
15027         (legitimate_constant_pool_address_p): Comment.  Add mode param.
15028         Check cmodel=medium addresses.  Adjust all calls.
15029         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15030         creating cmodel=medium optimized access to locals.
15031         * config/rs6000/constraints.md (R): Pass QImode to
15032         legitimate_constant_pool_address_p.
15033         * config/rs6000/predicates.md (input_operand): Pass mode to
15034         legitimate_constant_pool_address_p.
15035         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15036         Update prototype.
15037
15038 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15039
15040         PR target/48053
15041         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15042         64-bit constants being loaded into registers other than GPRs such
15043         as loading 0 into a VSX register.
15044
15045 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15046
15047         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15048
15049 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15050
15051         PR middle-end/47917
15052         * builtins.c (fold_builtin_snprintf): New function.
15053         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15054         (fold_builtin_4): Likewise.
15055
15056         PR middle-end/38878
15057         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15058         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
15059         and C - X == X also strip nops from +/-/p+ operand.
15060         When optimizing -X == C, fold C to arg0's type.
15061
15062         PR debug/47946
15063         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15064         emit it as add_AT_int instead of add_AT_unsigned.
15065
15066 2011-03-14  Tom Tromey  <tromey@redhat.com>
15067
15068         * unwind-dw2.c: Include sys/sdt.h if it exists.
15069         (_Unwind_DebugHook): Use STAP_PROBE2.
15070         * config.in, configure: Rebuild.
15071         * configure.ac: Check for sys/sdt.h.
15072
15073 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
15074
15075         * config/i386/i386.md (ROUND_FLOOR): New constant.
15076         (ROUND_CEIL): Ditto.
15077         (ROUND_TRUNC): Ditto.
15078         (ROUND_MXCSR): Ditto.
15079         (ROUND_NO_EXC): Ditto.
15080         (rint<mode>2): Use new defines instead of numerical constants.
15081         (floor<mode>2): Ditto.
15082         (ceil<mode>2): Ditto.
15083         (btrunc<mode>2): Ditto.
15084         * config/i386/i386-builtin-types.def: Define ROUND function type
15085         aliases.
15086         * config/i386/i386.c (enum ix86_builtins): Add
15087         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15088         (struct builtin_description): Add
15089         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15090         (ix86_expand_sse_round): New static function.
15091         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15092         function types.
15093         (ix86_builtin_vectorized_function): Handle
15094         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15095
15096 2011-03-14  Tom Tromey  <tromey@redhat.com>
15097
15098         * c-parser.c (c_parser_asm_string_literal): Clear
15099         warn_overlength_strings.
15100
15101 2011-03-14  Tom Tromey  <tromey@redhat.com>
15102
15103         * c-parser.c (disable_extension_diagnostics): Save
15104         warn_overlength_strings.
15105         (restore_extension_diagnostics): Restore warn_overlength_strings.
15106
15107 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15108
15109         * BASE-VER: Change to 4.7.0.
15110
15111 2011-03-14  Richard Guenther  <rguenther@suse.de>
15112
15113         PR middle-end/48098
15114         * tree.c (build_vector_from_val): Adjust assert to requirements
15115         and reality.
15116
15117 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15118
15119         PR bootstrap/48102
15120         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15121
15122 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
15123
15124         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15125         terms of target_flags_explicit. Adjust copyright year.
15126
15127         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15128         * config/rs6000/t-freebsd: New file. Add override for
15129         LIB2FUNCS_EXTRA.
15130
15131 2011-03-13  Chris Demetriou  <cgd@google.com>
15132
15133         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15134         (-fno-diagnostics-show-option): this, to reflect current default.
15135         (-Werror=): Update text about -fno-diagnostics-show-option.
15136
15137 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
15138
15139         PR target/48053
15140         * config/rs6000/predicates.md (easy_vector_constant_add_self,
15141         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15142         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15143         mode is not V2DImode or V2DFmode.
15144         (vspltis_constant): Do not handle V2DImode and V2DFmode.
15145         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15146         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15147         registers to 0.
15148         (movdi_internal64): Likewise.
15149
15150 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
15151
15152         PR tree-optimization/47127
15153         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15154         parameter.
15155         (set_cloog_options): Same.
15156         (scop_to_clast): Same.
15157         (print_clast_stmt): Do not call cloog_state_malloc and
15158         cloog_state_free.
15159         (print_generated_program): Same.
15160         (gloog): Same.
15161         * graphite-clast-to-gimple.h (cloog_state): Declared.
15162         (scop_to_clast): Adjust declaration.
15163         * graphite.c (cloog_state): Defined here.
15164         (graphite_initialize): Call cloog_state_malloc.
15165         (graphite_finalize): Call cloog_state_free.
15166
15167 2011-03-11  Jason Merrill  <jason@redhat.com>
15168
15169         * attribs.c (lookup_attribute_spec): Take const_tree.
15170         * tree.h: Adjust.
15171
15172 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
15173
15174         * config/sparc/sparc.c (sparc_option_override): Use
15175         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15176
15177 2011-03-11  Richard Guenther  <rguenther@suse.de>
15178
15179         PR tree-optimization/48067
15180         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15181         multiplication result will be only used once on the target
15182         stmt.
15183
15184 2011-03-11  Richard Guenther  <rguenther@suse.de>
15185
15186         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15187
15188 2011-03-11  Richard Guenther  <rguenther@suse.de>
15189
15190         PR lto/48073
15191         * tree.c (find_decls_types_r): Do not walk types only reachable
15192         from IDENTIFIER_NODEs.
15193
15194 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15195
15196         PR middle-end/48044
15197         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15198         all vnode->force_output nodes as needed.
15199
15200 2011-03-11  Jason Merrill  <jason@redhat.com>
15201
15202         PR c++/48069
15203         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15204         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15205
15206 2011-03-11  Martin Jambor  <mjambor@suse.cz>
15207
15208         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15209         cgraph_node.
15210
15211 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15212
15213         PR tree-optimization/48063
15214         * ipa-inline.c (cgraph_decide_inlining): Don't try to
15215         inline functions called once if !tree_can_inline_p (node->callers).
15216
15217 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
15218
15219         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15220         extra_objs.
15221         * config/score/score3.c: Delete.
15222         * config/score/score3.h: Delete.
15223         * config/score/mul-div.S: Delete.
15224         * config/score/sfp-machine.h: Add new file.
15225         * config/score/constraints.md: Add new file.
15226         * config/score/t-score-softfp: Add new file.
15227         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15228         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15229         (score7_extra_constraint): Delete.
15230         (score7_option_override): Remove unused code.
15231         * config/score/score.c: Remove score3 and score5 define and code.
15232         * config/score/score.h: Remove score3 and score5 define and code.
15233         * config/score/score.md: Remove score3 template and unusual insn.
15234         * config/score/score.opt: Remove score3 and score5 options.
15235
15236 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15237
15238         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15239         when _HPUX_SOURCE is defined.
15240         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15241
15242 2011-03-10  Jason Merrill  <jason@redhat.com>
15243
15244         PR c++/48029
15245         * stor-layout.c (layout_type): Don't set structural equality
15246         on arrays of incomplete type.
15247         * tree.c (type_hash_eq): Handle comparing them properly.
15248
15249 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
15250
15251         PR debug/48043
15252         * config/s390/s390.c (s390_delegitimize_address): Make sure the
15253         result mode matches original rtl mode.
15254
15255 2011-03-10  Nick Clifton  <nickc@redhat.com>
15256
15257         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15258         (andsi3, andsi3_flags): Fix timings for three operand alternative.
15259
15260 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
15261
15262         PR rtl-optimization/47866
15263         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15264         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15265         if target wasn't scalar.
15266         * function.c (assign_stack_temp_for_type): Assert that neither
15267         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15268         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15269         macro.
15270         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15271
15272 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15273
15274         * config/s390/s390-protos.h (s390_label_align): New prototype.
15275         * config/s390/s390.c (s390_label_align): New function.
15276         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15277
15278 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
15279
15280         PR target/47755
15281         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15282         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
15283         (output_vec_const_move): Ditto.
15284
15285 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
15286
15287         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15288         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15289         * config/mips/mips.c (mips_preferred_reload_class): Make static.
15290         Change 'rclass' argument and result type to reg_class_t.
15291         (TARGET_PREFERRED_RELOAD_CLASS): Define.
15292
15293 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
15294
15295         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15296         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15297         (TARGET_MEMORY_MOVE_COST): Define.
15298         (avr_register_move_cost, avr_memory_move_cost): New Functions.
15299
15300 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
15301
15302         PR debug/47881
15303         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15304         removed anything.
15305
15306         PR tree-optimization/48022
15307         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15308         for EQ/NE_EXPR.
15309
15310 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
15311
15312         PR debug/47991
15313         * var-tracking.c (find_use_val): Return NULL for
15314         cui->sets && cui->store_p BLKmode MEMs.
15315
15316 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
15317
15318         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15319         Remove.
15320         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15321         xstormy16_print_operand_address): Remove.
15322         * config/stormy16/stormy16.c (xstormy16_print_operand,
15323         xstormy16_print_operand_address): Make static.
15324         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15325
15326 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
15327
15328         PR target/47862
15329         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15330         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15331         before definition.
15332
15333 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
15334
15335         PR bootstrap/48000
15336         * cfgloopmanip.c (fix_bb_placements): Return immediately
15337         if FROM is BASE_LOOP's header.
15338
15339 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
15340
15341         * gimplify.c (gimplify_function_tree): Fix building calls
15342         to __builtin_return_address.
15343
15344 2011-03-07  Alan Modra  <amodra@gmail.com>
15345
15346         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15347         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15348         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15349         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15350         return_mode args.
15351         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15352         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15353         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15354         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15355         * config/rs6000/rs6000.c
15356         (rs6000_elf_end_indicate_exec_stack): Rename to..
15357         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
15358         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
15359         (rs6000_file_start): ..here.
15360         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15361         file scope variables.
15362         (call_ABI_of_interest): New function.
15363         (init_cumulative_args): Set above vars when function return value
15364         is a float, vector, or small struct.
15365         (rs6000_function_arg_advance_1): Likewise for function args.
15366         (rs6000_va_start): Set rs6000_passes_float if variable arg function
15367         references float args.
15368
15369 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
15370
15371         * doc/cfg.texi: Remove "See" before @ref.
15372         * doc/invoke.texi: Likewise.
15373
15374 2011-03-05  Jason Merrill  <jason@redhat.com>
15375
15376         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15377
15378 2011-03-05  Anthony Green  <green@moxielogic.com>
15379
15380         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15381
15382 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
15383
15384         PR rtl-optimization/47899
15385         * cfgloopmanip.c (fix_bb_placements): Fix first argument
15386         to flow_loop_nested_p when moving the loop upward.
15387
15388 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
15389
15390         PR target/47719
15391         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
15392
15393 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
15394
15395         PR tree-optimization/47967
15396         * ipa-cp.c (build_const_val): Return NULL instead of creating
15397         VIEW_CONVERT_EXPR for mismatching sizes.
15398         (ipcp_create_replace_map): Return NULL if build_const_val failed.
15399         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15400         give up on versioning.
15401
15402 2011-03-05  Alan Modra  <amodra@gmail.com>
15403
15404         PR target/47986
15405         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15406         full cmodel medium/large lo_sum + high addresses.
15407
15408 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15409
15410         * config/s390/s390.c (s390_decompose_address): Reject non-literal
15411         pool references in UNSPEC_LTREL_OFFSET.
15412
15413 2011-03-04  Jan Hubicka  <jh@suse.cz>
15414
15415         PR lto/47497
15416         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15417         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15418         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15419         Add node pointers.
15420         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15421         cgraph_add_thunk): Add node pointers.
15422         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15423         associated to right node.
15424         (input_node): Update use of cgraph_same_body_alias
15425         and cgraph_add_thunk.
15426
15427 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15428
15429         * config/i386/i386.opt (mprefer-avx128): New flag.
15430         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15431         modes when the flag -mprefer-avx128 is on.
15432
15433 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
15434
15435         * dwarf2out.c (compare_loc_operands): Fix address handling.
15436
15437 2011-03-04  Alan Modra  <amodra@gmail.com>
15438
15439         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15440
15441 2011-03-04  Richard Guenther  <rguenther@suse.de>
15442
15443         PR middle-end/47968
15444         * expmed.c (extract_bit_field_1): Prefer vector modes that
15445         vec_extract patterns can handle.
15446
15447 2011-03-04  Richard Guenther  <rguenther@suse.de>
15448
15449         PR middle-end/47975
15450         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15451
15452 2011-03-04  Richard Henderson  <rth@redhat.com>
15453
15454         * explow.c (emit_stack_save): Remove 'after' parameter.
15455         (emit_stack_restore): Likewise.
15456         * expr.h: Update to match.
15457         * builtins.c, calls.c, stmt.c: Likewise.
15458         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15459         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15460         * function.c (expand_function_end): Insert the emit_stack_save
15461         sequence before parm_birth_insn instead of after.
15462
15463 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
15464
15465         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15466         (ssse3_pmaddubsw128): Ditto.
15467         (ssse3_pmaddubsw): Ditto.
15468
15469 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
15470
15471         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15472
15473 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
15474
15475         PR c/47963
15476         * gimplify.c (omp_add_variable): Only call omp_notice_variable
15477         on TYPE_SIZE_UNIT if it is a DECL.
15478
15479         PR debug/47283
15480         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15481         first operand is not is_gimple_mem_ref_addr, try to fold it.
15482         If the operand still isn't is_gimple_mem_ref_addr, clear
15483         MEM_EXPR on op0.
15484
15485 2011-03-03  Richard Guenther  <rguenther@suse.de>
15486
15487         PR middle-end/47283
15488         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15489         match comment.
15490         (refs_may_alias_p_1): For release branches return true if
15491         we are confused by our input.
15492
15493 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15494
15495         * config/s390/s390.c (s390_function_value): Rename to ...
15496         (s390_function_and_libcall_value): ... this.
15497         (s390_function_value): New function.
15498         (s390_libcall_value): New function.
15499         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15500         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15501         target macro definitions.
15502         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15503
15504 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
15505
15506         * config/i386/freebsd64.h (CC1_SPEC): Define.
15507         * config/i386/linux64.h (CC1_SPEC): Define.
15508         * config/i386/x86-64.h (CC1_SPEC): Don't define.
15509
15510 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
15511
15512         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15513         Remove.
15514         * config/stormy16/stormy16.c: Include reload.h.
15515         (xstormy16_memory_move_cost): New function.
15516         (TARGET_MEMORY_MOVE_COST): Define.
15517
15518 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
15519
15520         PR rtl-optimization/47925
15521         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15522         with side effects.  Remove the more-specific check for volatile asms.
15523
15524 2011-03-02  Alan Modra  <amodra@gmail.com>
15525
15526         PR target/47935
15527         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15528         toc relative addresses for valid offsets.
15529
15530 2011-03-01  Richard Guenther  <rguenther@suse.de>
15531
15532         PR tree-optimization/47890
15533         * tree-vect-loop.c (get_initial_def_for_induction): Set
15534         related stmt properly.
15535
15536 2011-03-01  Richard Guenther  <rguenther@suse.de>
15537
15538         PR lto/47924
15539         * lto-streamer.c (lto_record_common_node): Also register
15540         the canonical type.
15541
15542 2011-03-01  Richard Guenther  <rguenther@suse.de>
15543
15544         PR lto/46911
15545         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15546         Do not stream DECL_ABSTRACT_ORIGIN.
15547         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15548         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15549         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15550         Do not stream DECL_ABSTRACT_ORIGIN.
15551         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15552         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15553
15554 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
15555
15556         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15557         FUNCTION_VALUE_REGNO_P): Remove.
15558         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15559         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15560         Add 'outgoing' argument.
15561         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15562         function.
15563         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15564         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15565
15566 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
15567
15568         PR debug/28047
15569         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15570         (lookup_filename): Likewise.
15571         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15572
15573 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
15574             Jakub Jelinek  <jakub@redhat.com>
15575
15576         PR middle-end/47893
15577         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15578         (assign_stack_local_1): Change last argument type to int.
15579         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15580         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
15581         don't record padding space into frame_space_list nor use those areas.
15582         (assign_stack_local): Adjust caller.
15583         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15584         of assign_stack_local, pass 0 as last argument.
15585         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15586         callers.
15587
15588 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
15589
15590         PR debug/47283
15591         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15592         Use target address_mode and pointer_mode hooks instead of hardcoded
15593         Pmode and ptr_mode.  Handle some simple cases of extending if
15594         POINTERS_EXTEND_UNSIGNED < 0.
15595         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15596         Call convert_debug_memory_address.
15597         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15598         convert_debug_memory_address.
15599
15600         PR middle-end/46790
15601         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15602         * configure: Regenerated.
15603         * config.in: Regenerated.
15604         * varasm.c (default_function_section): Return NULL
15605         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15606
15607 2011-02-28  Martin Jambor  <mjambor@suse.cz>
15608
15609         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15610         the description to match the printed values.
15611
15612 2011-02-28  Richard Guenther  <rguenther@suse.de>
15613
15614         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15615         of the copied scope tree.
15616
15617 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15618
15619         * doc/extend.texi (Function Attributes): Avoid deeply (and
15620         wrongly) nested tables.
15621
15622 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
15623
15624         PR middle-end/47903
15625         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15626         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15627         r isn't op0 nor op1.
15628
15629 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15630
15631         * config/avr/avr.md: Remove magic comment for emacs.
15632
15633 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15634
15635         PR target/45261
15636         * config/avr/avr.c (avr_option_override): Use error on bad options.
15637         (avr_help): New function.
15638         (TARGET_HELP): Define.
15639
15640 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
15641
15642         PR target/42240
15643         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15644         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15645
15646 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
15647
15648         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15649         (ARM Options): Ditto.
15650         (i386 and x86-64 Options): Ditto.
15651         (RX Options): Ditto.
15652         (SPARC Options): Ditto.
15653
15654 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
15655
15656         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15657         FreeBSD 6 and later.  Generally use cpu generic.
15658
15659 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
15660
15661         * doc/cpp.texi: Update copyright years.
15662
15663 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
15664
15665         PR target/46898
15666         * config/lm32/lm32.md (ashrsi3): Added needed variable.
15667
15668 2011-02-25  Jon Beniston  <jon@beniston.com>
15669
15670         PR target/46898
15671         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15672         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15673         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15674         (lm32_block_move_inline): Add type cast to remove warning.
15675         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15676         (gen_int_relational): Move declarations to start of function.
15677
15678 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
15679
15680         PR tree-optimization/45470
15681         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15682         can throw internally only.
15683         * tree-vect-stmts.c (vectorizable_call): Likewise.
15684
15685 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
15686
15687         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15688         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15689         * config/stormy16/stormy16-protos.h
15690         (xstormy16_preferred_reload_class): Remove.
15691         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15692         static. Change 'rclass' argument and return type to reg_class_t.
15693         (TARGET_PREFERRED_RELOAD_CLASS,
15694         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15695
15696 2011-02-24  Richard Guenther  <rguenther@suse.de>
15697
15698         * lto-streamer-in.c (input_bb): Do not find referenced vars
15699         in debug statements.
15700
15701 2011-02-23  Jason Merrill  <jason@redhat.com>
15702
15703         * common.opt (fabi-version): Document v5 and v6.
15704
15705 2011-02-23  Richard Guenther  <rguenther@suse.de>
15706
15707         PR tree-optimization/47849
15708         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15709
15710 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15711
15712         * opts-common.c (decode_cmdline_option): Print empty string
15713         argument as "" in decoded->orig_option_with_args_text.
15714         * gcc.c (execute): Print empty string argument as ""
15715         in the verbose output.
15716         (do_spec_1): Keep empty string argument.
15717
15718 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
15719
15720         * config.gcc: Declare score-* and crx-* obsolete.
15721
15722 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15723
15724         PR rtl-optimization/47763
15725         * web.c (web_main): Ignore naked clobber when replacing register.
15726
15727 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
15728
15729         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15730         Remove.
15731
15732 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15733
15734         PR doc/47848
15735         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15736
15737 2011-02-22  Mike Stump  <mikestump@comcast.net>
15738
15739         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15740         assembler.
15741         * configure: Regenerate.
15742
15743 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
15744
15745         PR rtl-optimization/46002
15746         * ira-color.c (update_copy_costs): Change class intersection
15747         test to reg_class_contents[] test of 'hard_regno'.
15748
15749 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
15750
15751         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15752         than Driver option.
15753         * config/hpux11.opt (mt): Likewise.
15754         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15755         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15756         * config/vax/elf.opt (mno-asm-pic): Likewise.
15757         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15758
15759 2011-02-21  Mike Stump  <mikestump@comcast.net>
15760
15761         PR target/47822
15762         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15763         tree so we can get save the type.
15764         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15765         for CFString instead of trying to use past the end of the builtins.
15766         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15767         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15768         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15769         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15770         Rename to darwin_builtin_cfstring.
15771         (darwin_init_cfstring_builtins): Return the built type.
15772
15773 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
15774
15775         PR target/47840
15776         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15777         (_mm256_insert_epi64): Use _mm_insert_epi64.
15778
15779 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
15780
15781         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15782         * config/stormy16/stormy16-protos.h
15783         (xstormy16_mode_dependent_address_p): Remove.
15784         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15785         Make static. Change return type to bool. Change argument type to
15786         const_rtx. Remove dead code.
15787         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15788
15789 2011-02-21  Richard Guenther  <rguenther@suse.de>
15790
15791         PR lto/47820
15792         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15793         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15794         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15795         TUs context.
15796         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15797         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15798
15799 2011-02-20  Richard Guenther  <rguenther@suse.de>
15800
15801         PR lto/47822
15802         * tree.c (free_lang_data_in_decl): Clean builtins from
15803         the TU decl BLOCK_VARS.
15804
15805 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
15806
15807         PR debug/47620
15808         PR debug/47630
15809         * haifa-sched.c (fix_tick_ready): Skip tick computation
15810         for debug insns.
15811
15812 2011-02-19  Richard Guenther  <rguenther@suse.de>
15813
15814         PR lto/47647
15815         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15816         Remove lazy BLOCK_VARS streaming.
15817         (lto_input_ts_block_tree_pointers): Likewise.
15818         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15819
15820 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
15821
15822         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15823
15824 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
15825
15826         * config/i386/biarch32.h, config/i386/mach.h,
15827         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15828
15829 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
15830
15831         PR target/47800
15832         * config/i386/i386.md (peephole2 for shift and plus): Use
15833         operands[1] original mode in the first insn.
15834
15835 2011-02-18  Mike Stump  <mikestump@comcast.net>
15836
15837         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
15838
15839 2011-02-18  Jan Hubicka  <jh@suse.cz>
15840
15841         PR middle-end/47788
15842         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15843         to zero when the function is not inlinable at all.
15844
15845 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15846
15847         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15848         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15849         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15850         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15851         * config/pa/t-pa64: Likewise.
15852         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15853
15854 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
15855
15856         PR driver/47787
15857         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15858
15859 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15860
15861         PR target/47792
15862         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15863
15864 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
15865
15866         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15867         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15868         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15869         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15870         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15871         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15872         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15873         m32r_load_postinc_p, m32r_store_preinc_predec_p,
15874         m32r_legitimate_address_p): New functions.
15875         * config/m32r/constraints.md (constraint "S"): Don't use
15876         STORE_PREINC_PREDEC_P.
15877         (constraint "U"): Don't use LOAD_POSTINC_P.
15878
15879 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
15880
15881         PR rtl-optimization/46178
15882         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15883         compute ira_hard_regno_cover_class[].
15884
15885 2011-02-18  Richard Guenther  <rguenther@suse.de>
15886
15887         PR lto/47798
15888         * lto-streamer.h (lto_global_var_decls): Declare.
15889         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15890         statics for global var processing.
15891
15892 2011-02-18  Richard Guenther  <rguenther@suse.de>
15893
15894         PR tree-optimization/47737
15895         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15896         edge dominance check.
15897
15898 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
15899
15900         PR debug/47780
15901         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15902         avoid invalid rtx sharing.
15903
15904 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
15905
15906         * doc/cpp.texi (Obsolete Features): Add background on the
15907         origin of assertions.
15908
15909 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
15910
15911         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15912         objc_abi == 2.
15913         * config/darwin.c (output_objc_section_asm_op): Added support for
15914         ABI v1 and v2.
15915         (is_objc_metadata): New.
15916         (darwin_objc2_section): New.
15917         (darwin_objc1_section): New.
15918         (machopic_select_section): Added support for ABI v1 and v2.
15919         (darwin_emit_objc_zeroed): New.
15920         (darwin_output_aligned_bss): Detect objc metadata and treat it
15921         appropriately.
15922         (darwin_asm_output_aligned_decl_common): Same.
15923         (darwin_asm_output_aligned_decl_local): Same.
15924         * config/darwin-sections.def: Updated for ABI v1 and v2.
15925         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15926         compiling Objective-C code for the NeXT runtime, default to using
15927         ABI version 0 for 32-bit, and version 2 for 64-bit.
15928
15929 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15930
15931         * common.opt (optimize_fast): New Variable.
15932         * opts.c (default_options_optimization): Use opts->x_optimize_fast
15933         instead of local variable ofast.
15934
15935 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
15936
15937         * doc/invoke.texi (fobjc-abi-version): Documented.
15938         (fobjc-nilcheck): Documented.
15939         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15940         version.
15941
15942 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15943
15944         PR driver/47390
15945         * common.opt (export-dynamic): New Driver option.
15946         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15947
15948 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15949
15950         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15951
15952 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
15953             Jan Hubicka  <jh@suse.cz>
15954
15955         PR debug/47106
15956         PR debug/47402
15957         * cfgexpand.c (account_used_vars_for_block): Remove.
15958         (estimated_stack_frame_size): Use referenced vars.
15959         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15960         that were referenced in the original function.  Test src_fn
15961         rather than cfun.  Drop redundant get_var_ann.
15962         (setup_one_parameter): Drop redundant get_var_ann.
15963         (declare_return_variable): Likewise.
15964         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15965         (copy_arguments_for_versioning): Drop redundant get_var_ann.
15966         * ipa-inline.c (compute_inline_parameters): Do not compute
15967         disregard_inline_limits here.
15968         (compute_inlinable_for_current, pass_inlinable): New.
15969         (pass_inline_parameters): Require PROP_referenced_vars.
15970         * cgraphunit.c (cgraph_process_new_functions): Don't run
15971         compute_inline_parameters explicitly unless function is in SSA form.
15972         (cgraph_analyze_function): Set .disregard_inline_limits.
15973         * tree-sra.c (convert_callers): Compute inliner parameters
15974         only for functions already in SSA form.
15975
15976 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15977
15978         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15979         -mlittle-endian-data.
15980
15981 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
15982
15983         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15984         -mno-fpu, not -fpu and -no-fpu.
15985         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15986         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15987
15988 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
15989
15990         PR target/43653
15991         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15992         input reload with PLUS RTX.
15993
15994 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
15995
15996         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15997         of InverseVar(MDMX).
15998
15999 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16000
16001         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16002         --m4-340.
16003
16004 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16005
16006         * config/mn10300/mn10300.opt (mno-crt0): New.
16007
16008 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16009
16010         * config/m68k/uclinux.opt (static-libc): New Driver option.
16011
16012 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16013
16014         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16015
16016 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16017
16018         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16019         %{muser-extend-enabled}.
16020
16021 2011-02-16  Richard Guenther  <rguenther@suse.de>
16022
16023         PR tree-optimization/47738
16024         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16025         the TODO from tree_predictive_commoning.
16026
16027 2011-02-15  Jeff Law  <law@redhat.com>
16028
16029         Revert
16030         2011-01-25  Jeff Law  <law@redhat.com>
16031
16032         PR rtl-optimization/37273
16033         * ira-costs.c (scan_one_insn): Detect constants living in memory and
16034         handle them like argument loads from stack slots.  Do not double
16035         count memory for memory constants and argument loads from stack slots.
16036
16037 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16038
16039         PR middle-end/47725
16040         * combine.c (cant_combine_insn_p): Revert the last change.
16041
16042 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
16043
16044         PR target/47755
16045         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16046         mode for vector constants.  Remove code that checks for TImode.
16047
16048 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16049
16050         PR debug/47106
16051         PR debug/47402
16052         * cgraph.h (compute_inline_parameters): Return void.
16053         * ipa-inline.c (compute_inline_parameters): Adjust.
16054
16055 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16056
16057         PR debug/47106
16058         PR debug/47402
16059         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16060         rather than decl.
16061         * cfgexpand.c (estimated_stack_frame_size): Likewise.
16062         * ipa-inline.c (compute_inline_parameters): Adjust.
16063
16064 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16065
16066         PR debug/47106
16067         PR debug/47402
16068         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16069         Adjust all users.  Pass FN to...
16070         * tree-flow-inline.h (first_referenced_var): ... this.  Add
16071         fn argument.
16072         * ipa-struct-reorg.c: Adjust.
16073         * tree-dfa.c: Adjust.
16074         * tree-into-ssa.c: Adjust.
16075         * tree-sra.c: Adjust.
16076         * tree-ssa-alias.c: Adjust.
16077         * tree-ssa-live.c: Adjust.
16078         * tree-ssa.c: Adjust.
16079         * tree-ssanames.c: Adjust.
16080         * tree-tailcall.c: Adjust.
16081
16082 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16083
16084         PR debug/47106
16085         PR debug/47402
16086         * tree-flow.h (referenced_var_lookup): Add fn parameter.
16087         Adjust all callers.
16088         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16089         * tree-flow-inline.h: Adjust.
16090         * gimple-pretty-print.c: Adjust.
16091         * tree-into-ssa.c: Adjust.
16092         * tree-ssa.c: Adjust.
16093         * cfgexpand.c: Adjust.
16094
16095 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16096
16097         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16098         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16099         (EXTRA_CONSTRAINT): Delete.
16100         * config/iq2000/constraints.md: New file.
16101         * config/iq2000/iq2000.md: Include it.
16102         (define_insn ""): Delete.
16103         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16104         unsupported constraint letters from patterns.
16105         (call_value, call_value_internal1): Likewise.
16106         (call_value_multiple_internal1): Likewise.
16107
16108 2011-02-15  Nick Clifton  <nickc@redhat.com>
16109
16110         * config/mn10300/mn10300.c: Include tm-constrs.h.
16111         (struct liw_data): New data structure describing an LIW candidate
16112         instruction.
16113         (extract_bundle): Use struct liw_data.  Allow small integer
16114         operands for some instructions.
16115         (check_liw_constraints): Use struct liw_data.  Remove swapped
16116         parameter.  Add comments describing the checks.  Fix bug when
16117         assigning the source of liw1 to the source of liw2.
16118         (liw_candidate): Delete.  Code moved into extract_bundle.
16119         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
16120         before swapping.
16121         * config/mn10300/predicates.md (liw_operand): New predicate.
16122         Allows registers and small integer constants.
16123         * config/mn10300/constraints.md (O): New constraint.  Accetps
16124         integers in the range -8 to +7 inclusive.
16125         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16126         for moving a small integer into a register.  Give this alternative
16127         LIW attributes.
16128         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16129         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16130         using the J,K,L and M constraints,
16131         (liw): Remove SI mode on second operands to allow for HI and QI
16132         mode values.
16133         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
16134         instruction.
16135
16136 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16137
16138         PR middle-end/47725
16139         * combine.c (cant_combine_insn_p): Check zero/sign extended
16140         hard registers.
16141
16142 2011-02-15  Richard Guenther  <rguenther@suse.de>
16143
16144         PR tree-optimization/47743
16145         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16146         for a non-type-compatible VN lookup bail out.
16147
16148 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16149
16150         * config/fr30/constraints.md: New file.
16151         * config/fr30/fr30.md: Include it.
16152         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16153         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16154         (EXTRA_CONSTRAINT): Delete.
16155
16156 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16157
16158         * config/frv/constraints.md: New file.
16159         * config/frv/predicates.md: Include it.
16160         * config/frv/frv.c (reg_class_from_letter): Delete.
16161         (frv_option_override): Don't initialize it.
16162         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16163         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16164         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16165         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16166         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16167         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16168         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16169         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16170         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16171         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16172         (REG_CLASS_FROM_CONSTRAINT): Delete.
16173
16174 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
16175
16176         PR middle-end/47581
16177         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16178         if frame size is 0 in a leaf function.
16179
16180 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16181
16182         PR pch/14940
16183         * config/alpha/host-osf.c: New file.
16184         * config/alpha/x-osf: New file.
16185         * config.host (alpha*-dec-osf*): Use it.
16186
16187 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16188
16189         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16190         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16191         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16192         (rx_mode_dependent_address_p): ...this. Make static. Change argument
16193         type to const_rtx.
16194         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16195
16196 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16197
16198         * config/stormy16/constraints.md: New file.
16199         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16200         Use satisfies_constraint_Q and satisfies_constraint_R.
16201         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16202         Delete.
16203         (xstormy16_legitiamte_address_p): Declare.
16204         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16205         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16206         (EXTRA_CONSTRAINT): Delete.
16207         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16208         Un-staticize.
16209         (xstormy16_extra_constraint_p): Delete.
16210
16211 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
16212
16213         PR tree-optimization/46494
16214         * loop-unroll.c (split_edge_and_insert): Adjust comment.
16215         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16216         (pass_rtl_loop_done): Add TODO_verify_flow.
16217         * fwprop.c (pass_rtl_fwprop): Likewise.
16218         * modulo-sched.c (pass_sms): Likewise.
16219         * tree-ssa-dom.c (pass_dominator): Likewise.
16220         * tree-ssa-loop-ch.c (pass_ch): Likewise.
16221         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16222         (pass_tree_loop_done): Likewise.
16223         * tree-ssa-pre.c (execute_pre): Likewise.
16224         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16225         * tree-ssa-sink.c (pass_sink_code): Likewise.
16226         * tree-vrp.c (pass_vrp): Likewise.
16227
16228 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16229
16230         * config/v850/constraints.md: New file.
16231         * config/v850/v850.md: Include it.
16232         * config/v850/predicates.md (reg_or_0_operand): Use
16233         satisfies_constraint_G.
16234         (special_symbolref_operand): Use satisfies_constraint_K.
16235         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16236         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16237         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16238         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16239         (EXTRA_CONSTRAINT): Delete.
16240         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16241         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16242         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16243
16244 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16245
16246         PR target/47696
16247         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16248         description.
16249
16250 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16251
16252         * config/mcore/constraints.md: New file.
16253         * config/mcore/mcore.md: Include it.
16254         * config/mcore/mcore.c (reg_class_from_letter): Delete.
16255         * config/mcore/mcore.h (reg_class_from_letter): Delete.
16256         (REG_CLASS_FROM_LETTER): Delete.
16257         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16258         insn_const_int_ok_for_constraint.
16259         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16260         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16261         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16262         (EXTRA_CONSTRAINT): Delete.
16263
16264 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16265
16266         PR ada/41929
16267         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16268         (IS_SIGHANDLER): Define.
16269         (sparc64_is_sighandler): New function, split off from
16270         sparc64_fallback_frame_state.
16271         (sparc_is_sighandler): New function, split off from
16272         sparc_fallback_frame_state.
16273         (sparc64_fallback_frame_state): Merge with ...
16274         (sparc_fallback_frame_state): ... this into ...
16275         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16276         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
16277         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
16278         stack instead of hardcoded offsets.
16279
16280 2011-02-14  Andriy Gapon  <avg@freebsd.org>
16281
16282         PR target/45808
16283         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16284
16285 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16286
16287         * configure: Regenerate.
16288
16289 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
16290
16291         PR driver/45731
16292         * gcc.c (asm_options): Correct spec matching --target-help.
16293
16294 2011-02-12  Martin Jambor  <mjambor@suse.cz>
16295
16296         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16297         to gimple call error.
16298
16299 2011-02-12  Mike Stump  <mikestump@comcast.net>
16300
16301         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16302         comments in backslash regions.
16303
16304 2011-02-12  Mike Stump  <mikestump@comcast.net>
16305             Jakub Jelinek  <jakub@redhat.com>
16306             Iain Sandoe  <iains@gcc.gnu.org>
16307
16308         PR target/47324
16309         * dwarf2out.c (output_cfa_loc): When required, apply the
16310         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16311         (output_loc_sequence): Likewise.
16312         (output_loc_operands_raw): Likewise.
16313         (output_loc_sequence_raw): Likewise.
16314         (output_cfa_loc): Likewise.
16315         (output_loc_list): Suppress register number adjustment when
16316         calling output_loc_sequence()
16317         (output_die): Likewise.
16318
16319 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
16320
16321         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16322         Remove macros.
16323         * config/xtensa/xtensa.c (xtensa_register_move_cost,
16324         xtensa_memory_move_cost): New functions.
16325         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16326
16327 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
16328
16329         PR lto/47225
16330         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16331         in the current directory.
16332         * configure: Rebuilt.
16333
16334 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16335
16336         * config/darwin.c (darwin_override_options): Add a hunk missed
16337         from the commit of r168571.  Trim comment line lengths and
16338         correct indents of the preceding block.
16339
16340 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16341
16342         * gcc.c (driver_handle_option): Concatenate the argument to -F with
16343         the switch.
16344
16345 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16346
16347         * common.opt (nostartfiles): New Driver option.
16348
16349 2011-02-11  Xinliang David Li  <davidxl@google.com>
16350
16351         PR tree-optimization/47707
16352         * tree-chrec.c (convert_affine_scev): Keep type precision.
16353
16354 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
16355
16356         PR tree-optimization/47420
16357         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16358
16359 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
16360
16361         PR rtl-optimization/47614
16362         * rtl.h (check_for_inc_dec): Declare.
16363         * dse.c (check_for_inc_dec): Externalize...
16364         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16365         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16366
16367 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16368
16369         PR driver/47678
16370         * gcc.c (main): Do not compile inputs if there were errors in
16371         option handling.
16372         * opts-common.c (read_cmdline_option): Check for wrong language
16373         after other error checks.
16374
16375 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
16376
16377         * cgraph.c: Fix comment typos.
16378         * cgraph.h: Likewise.
16379         * cgraphunit.c: Likewise.
16380         * ipa-cp.c: Likewise.
16381         * ipa-inline.c: Likewise.
16382         * ipa-prop.c: Likewise.
16383         * ipa-pure-const.c: Likewise.
16384         * ipa-ref.c: Likewise.
16385         * ipa-reference.c: Likewise.
16386
16387 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16388
16389         PR debug/47684
16390         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16391
16392 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16393
16394         PR testsuite/47400
16395         * doc/sourcebuild.texi (Require Support): Document
16396         dg-require-ascii-locale.
16397
16398 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
16399
16400         * doc/lto.texi (Write summary): Fix missing parentheses.
16401
16402 2011-02-10  DJ Delorie  <dj@redhat.com>
16403
16404         * config/m32c/m32c.c (m32c_option_override): Disable
16405         -fcombine-stack-adjustments until flag value tracking and compare
16406         optimization can be rewritten.
16407
16408 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
16409
16410         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16411         PROCESSOR_POWER7.
16412         (PROCESSOR_DEFAULT64): Likewise.
16413
16414 2011-02-10  Richard Henderson  <rth@redhat.com>
16415
16416         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16417         change from 2011-02-03.
16418         * config/rx/rx.c (flags_from_code): Likewise.
16419         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16420         is valid, n/pz otherwise.
16421         (rx_select_cc_mode): Return CCmode if Y is not zero.
16422
16423 2011-02-10  Richard Guenther  <rguenther@suse.de>
16424
16425         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16426
16427 2011-02-10  Richard Guenther  <rguenther@suse.de>
16428
16429         PR tree-optimization/47677
16430         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16431
16432 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
16433
16434         PR target/47665
16435         * combine.c (make_compound_operation): Only change shifts into
16436         multiplication for SCALAR_INT_MODE_P.
16437
16438 2011-02-10  Jie Zhang  <jie@codesourcery.com>
16439
16440         PR testsuite/47622
16441         Revert
16442         2011-02-05  Jie Zhang  <jie@codesourcery.com>
16443         PR debug/42631
16444         * web.c (entry_register): Don't clobber the number of the
16445         first uninitialized reference in used[].
16446
16447 2011-02-09  Richard Guenther  <rguenther@suse.de>
16448
16449         PR tree-optimization/47664
16450         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16451         all edges again.
16452
16453 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
16454
16455         PR target/46481
16456         PR target/47032
16457         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16458         PROCESSOR_POWER7.
16459         (PROCESSOR_DEFAULT64): Same.
16460         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16461
16462 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16463
16464         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16465
16466 2011-02-09  Martin Jambor  <mjambor@suse.cz>
16467
16468         PR middle-end/45505
16469         * tree-sra.c (struct access): New flags grp_scalar_read and
16470         grp_scalar_write.  Changed description of assignment read and write
16471         flags.
16472         (dump_access): Dump new flags, reorder all of them.
16473         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16474         to detect multiple scalar reads.
16475         (analyze_access_subtree): Use the new scalar read write flags instead
16476         of the old flags.  Adjusted comments.
16477
16478 2011-02-08  DJ Delorie  <dj@redhat.com>
16479
16480         PR target/47548
16481         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16482         patterns.
16483
16484 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16485
16486         * config/m68k/uclinux.opt: New.
16487         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16488
16489 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16490
16491         * config/cris/elf.opt (sim): New Driver option.
16492
16493 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16494
16495         * config/xtensa/elf.opt: New.
16496         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16497
16498 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16499
16500         * config/vax/elf.opt: New.
16501         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16502
16503 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16504
16505         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16506
16507 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16508
16509         * config/gnu-user.opt: New.
16510         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16511         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16512         *-*-uclinux*): Use gnu-user.opt.
16513
16514 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
16515
16516         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16517         * config/i386/gnu.h (CPP_SPEC): Likewise.
16518
16519 2011-02-08  Ian Lance Taylor  <iant@google.com>
16520
16521         * common.opt (fcx-limited-range): Add SetByCombined flag.
16522         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16523         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16524         (fassociative-math, freciprocal-math): Likewise.
16525         (funsafe-math-optimizations): Likewise.
16526         * opth-gen.awk: Handle SetByCombined.
16527         * optc-gen.awk: Likewise.
16528         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16529         (set_unsafe_math_optimizations_flags): Likewise.
16530         * doc/options.texi (Option properties): Document SetByCombined.
16531
16532 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16533
16534         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16535         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16536         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16537         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16538         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16539
16540 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
16541
16542         PR tree-optimization/46834
16543         PR tree-optimization/46994
16544         PR tree-optimization/46995
16545         * graphite-sese-to-poly.c (used_outside_reduction): New.
16546         (detect_commutative_reduction): Call used_outside_reduction.
16547         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16548         translate_scalar_reduction_to_array only when at least one
16549         loop-phi/close-phi tuple has been detected.
16550
16551 2011-02-08  Richard Guenther  <rguenther@suse.de>
16552
16553         PR middle-end/47639
16554         * tree-vect-generic.c (expand_vector_operations_1): Update
16555         stmts here ...
16556         (expand_vector_operations): ... not here.  Cleanup EH info
16557         and the CFG if required.
16558
16559 2011-02-08  Richard Guenther  <rguenther@suse.de>
16560
16561         PR tree-optimization/47641
16562         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16563         require type compatibility.
16564
16565 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16566
16567         * gimple-low.c (lower_function_body): Don't remove the location of
16568         the return statement here.
16569         (lower_gimple_return): Do it here instead but only if the return
16570         statement is actually used twice.
16571
16572 2011-02-08  Richard Guenther  <rguenther@suse.de>
16573
16574         PR tree-optimization/47632
16575         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16576         unused up_to_stmt parameter, return whether cfg-cleanup is
16577         necessary, remove EH info properly.
16578         (forward_propagate_into_gimple_cond): Adjust caller.
16579         (forward_propagate_into_cond): Likewise.
16580         (forward_propagate_comparison): Likewise.
16581         (tree_ssa_forward_propagate_single_use_vars): Make
16582         forward_propagate_comparison case similar to the two others.
16583
16584 2011-02-08  Nick Clifton  <nickc@redhat.com>
16585
16586         * config/mn10300/mn10300.opt (mliw): New command line option.
16587         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16588         (liw_bundling): New automaton.
16589         (liw): New attribute.
16590         (liw_op): New attribute.
16591         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16592         (movsi_internal): Add LIW attributes.
16593         (andsi3): Likewise.
16594         (iorsi3): Likewise.
16595         (xorsi3): Likewise.
16596         (addsi3): Separate register and immediate alternatives.
16597         Add LIW attributes.
16598         (subsi3): Likewise.
16599         (cmpsi): Likewise.
16600         (aslsi3): Likewise.
16601         (lshrsi3): Likewise.
16602         (ashrsi3): Likewise.
16603         (liw): New pattern.
16604         * config/mn10300/mn10300.c (liw_op_names): New
16605         (mn10300_print_operand): Handle 'W' operand descriptor.
16606         (extract_bundle): New function.
16607         (check_liw_constraints): New function.
16608         (liw_candidate): New function.
16609         (mn10300_bundle_liw): New function.
16610         (mn10300_reorg): New function.
16611         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16612         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16613         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16614         __LIW__ or __NO_LIW__.
16615         * doc/invoke.texi: Describe the -mliw command line option.
16616
16617 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16618
16619         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16620         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16621         pthread_mutex_unlock): Remove.
16622         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16623         * config/pa/t-pa64: Likewise.
16624         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16625         shared libc if not linking against libpthread.
16626         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16627
16628 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
16629
16630         PR target/47558
16631         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16632         on 10.6 and later to ensure that we always use the unwinder from
16633         the system.  Only add -no_compact_unwind when tarteting darwin
16634         10.6 or later.
16635
16636 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
16637
16638         PR target/46997
16639         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16640         (vec_interleave_lowv2sf): Ditto.
16641         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16642         (vec_extract_oddv2sf): Ditto.
16643
16644 2011-02-07  Mike Stump  <mikestump@comcast.net>
16645
16646         PR target/42333
16647         Add __ieee_divdc3 entry point.
16648         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16649         entry point.
16650         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16651         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16652         * config/darwin.c (darwin_rename_builtins): Add.
16653         * config/darwin-protos.h (darwin_rename_builtins): Add.
16654
16655 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
16656
16657         PR target/47636
16658         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16659         for the condition.
16660
16661 2011-02-07  Mike Stump  <mikestump@comcast.net>
16662
16663         * config/darwin.opt (mmacosx-version-min): Update default OS version.
16664
16665 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
16666
16667         PR target/47534
16668         * config/avr/libgcc.S (exit): Move .endfunc
16669
16670 2011-02-07  Richard Guenther  <rguenther@suse.de>
16671
16672         PR tree-optimization/47615
16673         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16674         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16675         (run_scc_vn): Initialize it.
16676         (visit_reference_op_load): Use it.
16677         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16678
16679 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16680
16681         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16682         DImode trapping arithmetic libfuncs.
16683
16684 2011-02-07  Richard Guenther  <rguenther@suse.de>
16685
16686         PR tree-optimization/47621
16687         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16688         two duplicates ...
16689         (execute_update_addresses_taken): ... here.  Make it more
16690         conservative in what we accept.
16691
16692 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16693
16694         * config/sparc/freebsd.h (ASM_SPEC): Define.
16695         * config/sparc/vxworks.h (ASM_SPEC): Define.
16696
16697 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16698
16699         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16700
16701 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
16702
16703         * doc/invoke.texi: Remove reference to compiler internals from
16704         user documentation.
16705
16706         * reg-notes.def: Remove REG_VALUE_PROFILE.
16707         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16708
16709 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
16710
16711         PR middle-end/47610
16712         * varasm.c (default_section_type_flags): If decl is NULL,
16713         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16714
16715 2011-02-05  Jie Zhang  <jie@codesourcery.com>
16716
16717         PR debug/42631
16718         * web.c (entry_register): Don't clobber the number of the
16719         first uninitialized reference in used[].
16720
16721 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
16722
16723         PR tree-optimization/46194
16724         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16725         (build_classic_dist_vector_1): Do not represent classic distance
16726         vectors when the access functions are variating in different loops.
16727
16728 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16729
16730         * config/mips/iris6.opt: New.
16731         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16732
16733 2011-02-04  Richard Henderson  <rth@redhat.com>
16734             Steve Ellcey  <sje@cup.hp.com>
16735
16736         PR target/46997
16737         * config/ia64/predicates.md (mux1_brcst_element): New.
16738         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16739         * config/ia64/ia64.c (ia64_unpack_assemble): New.
16740         (ia64_unpack_sign): New.
16741         (ia64_expand_unpack): Rewrite using new routines.
16742         (ia64_expand_widen_sum): Ditto.
16743         (ia64_expand_dot_prod_v8qi): Ditto.
16744         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16745         routines, add endian check.
16746         (pmpy2_even): Rename from pmpy2_r, add endian check.
16747         (pmpy2_odd): Rename from pmpy2_l, add endian check.
16748         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16749         (vec_widen_smult_hi_v4hi): Ditto.
16750         (vec_widen_umult_lo_v4hi): Ditto.
16751         (vec_widen_umult_hi_v4hi): Ditto.
16752         (mulv2si3): Change endian checks.
16753         (sdot_prodv4hi): Rewrite with new calls.
16754         (udot_prodv4hi): New.
16755         (vec_pack_ssat_v4hi): Add endian check.
16756         (vec_pack_usat_v4hi): Ditto.
16757         (vec_pack_ssat_v2si): Ditto.
16758         (max1_even): Rename from max1_r, add endian check.
16759         (max1_odd): Rename from max1_l, add endian check.
16760         (*mux1_rev): Format change.
16761         (*mux1_mix): Ditto.
16762         (*mux1_shuf): Ditto.
16763         (*mux1_alt): Ditto.
16764         (*mux1_brcst_v8qi): Use new predicate.
16765         (vec_extract_evenv8qi): Remove endian check.
16766         (vec_extract_oddv8qi): Ditto.
16767         (vec_interleave_lowv4hi): Format change.
16768         (vec_interleave_highv4hi): Ditto.
16769         (mix2_even): Rename from mix2_r, add endian check.
16770         (mix2_odd): Rename from mux2_l, add endian check.
16771         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16772         (vec_extract_evenodd_helper): Format change.
16773         (vec_extract_evenv4hi): Remove endian check.
16774         (vec_extract_oddv4hi): Remove endian check.
16775         (vec_interleave_lowv2si): Format change.
16776         (vec_interleave_highv2si): Format change.
16777         (vec_initv2si): Remove endian check.
16778         (vecinit_v2si): Add endian check.
16779         (reduc_splus_v2sf): Add endian check.
16780         (reduc_smax_v2sf): Ditto.
16781         (reduc_smin_v2sf): Ditto.
16782         (vec_initv2sf): Remove endian check.
16783         (fpack): Add endian check.
16784         (fswap): Add endian check.
16785         (vec_interleave_highv2sf): Add endian check.
16786         (vec_interleave_lowv2sf): Add endian check.
16787         (fmix_lr): Add endian check.
16788         (vec_setv2sf): Format change.
16789         (*vec_extractv2sf_0_be): Use shift to extract operand.
16790         (*vec_extractv2sf_1_be): New.
16791         (vec_pack_trunc_v4hi): Add endian check.
16792         (vec_pack_trunc_v2si): Format change.
16793
16794 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
16795
16796         PR inline-asm/23200
16797         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
16798         do bb, locus and block comparison and disallow loads if it is not set.
16799         (stmt_is_replaceable_p): New function.
16800         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16801         callers.
16802         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16803         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16804         SSA_NAME_DEF_STMT.
16805         * tree-flow.h (stmt_is_replaceable_p): New prototype.
16806
16807 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16808
16809         * config/rs6000/xilinx.opt: New.
16810         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16811
16812 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16813
16814         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16815
16816 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
16817
16818         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16819         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16820         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16821         secondary_reload_info, xtensa_secondary_reload): Remove.
16822         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16823         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16824         (xtensa_preferred_reload_class): Make static. Change return and
16825         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16826         Use CONST_DOUBLE_P predicate.
16827         (xtensa_preferred_output_reload_class): New function.
16828         (xtensa_secondary_reload): Make static.
16829
16830 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
16831
16832         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16833         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16834         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16835
16836 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
16837
16838         PR middle-end/31490
16839         * output.h (SECTION_RELRO): Define.
16840         (SECTION_MACH_DEP): Adjust.
16841         (get_variable_section): New prototype.
16842         * varpool.c (varpool_finalize_named_section_flags): New function.
16843         (varpool_assemble_pending_decls): Call it.
16844         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16845         * cgraphunit.c (cgraph_output_in_order): Call
16846         varpool_finalize_named_section_flags.
16847         * varasm.c (get_section): Allow section flags conflicts between
16848         relro and read-only sections if the section hasn't been declared yet.
16849         Set SECTION_OVERRIDE after diagnosing section type conflict.
16850         (get_variable_section): No longer static.
16851         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16852         readonly sections that need relocations.
16853         (decl_readonly_section_1): New function.
16854         (decl_readonly_section): Use it.
16855
16856         Revert:
16857         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
16858                     Steve Ellcey  <sje@cup.hp.com>
16859
16860         PR middle-end/31490
16861         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16862         if section attribute used.
16863
16864 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
16865
16866         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16867         * config/darwin.c (SECTION_NO_ANCHOR): Define.
16868         (darwin_init_sections): Remove assertion.
16869
16870 2011-02-03  Nick Clifton  <nickc@redhat.com>
16871
16872         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16873         lt and ge.
16874         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16875         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16876         instead of "n" and "pz".
16877         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16878         CC_FLAG_S.
16879
16880 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
16881
16882         PR target/47312
16883         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16884         fma, expand FMA_EXPR as fma{,f,l} call.
16885
16886         PR lto/47274
16887         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16888         copy them into a unsigned char variable and pass address of it to
16889         lto_output_data_stream.
16890
16891         PR target/47564
16892         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16893         around backend_init_target and lang_dependent_init_target calls.
16894         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16895         (verify_cgraph_node): Don't call set_cfun here.  Use
16896         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16897         Set error_found for incorrectly represented calls to thunks.
16898
16899 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
16900
16901         PR debug/43092
16902         PR rtl-optimization/43494
16903         * rtl.h (for_each_inc_dec_fn): New type.
16904         (for_each_inc_dec): Declare.
16905         * rtlanal.c (struct for_each_inc_dec_ops): New type.
16906         (for_each_inc_dec_find_inc_dec): New fn.
16907         (for_each_inc_dec_find_mem): New fn.
16908         (for_each_inc_dec): New fn.
16909         * dse.c (struct insn_size): Remove.
16910         (replace_inc_dec, replace_inc_dec_mem): Remove.
16911         (emit_inc_dec_insn_before): New fn.
16912         (check_for_inc_dec): Use it, along with for_each_inc_dec.
16913         (canon_address): Pass mem modes to cselib_lookup.
16914         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
16915         (cselib_lookup_from_insn): Likewise.
16916         (cselib_subst_to_values): Likewise.
16917         * cselib.c (find_slot_memmode): New var.
16918         (cselib_find_slot): New fn.  Use it instead of
16919         htab_find_slot_with_hash everywhere.
16920         (entry_and_rtx_equal_p): Use find_slot_memmode.
16921         (autoinc_split): New fn.
16922         (rtx_equal_for_cselib_p): Rename and implement in terms of...
16923         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
16924         Deal with autoinc.  Special-case recursion into MEMs.
16925         (cselib_hash_rtx): Likewise.
16926         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
16927         address and MEM modes.
16928         (cselib_subst_to_values): Add memmode, pass it on.
16929         Deal with autoinc.
16930         (cselib_lookup): Add memmode argument, pass it on.
16931         (cselib_lookup_from_insn): Add memmode.
16932         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16933         (struct cselib_record_autoinc_data): New.
16934         (cselib_record_autoinc_cb): New fn.
16935         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
16936         mode to cselib_lookup.  Reset autoinced REGs here instead of...
16937         (cselib_process_insn): ... here.
16938         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16939         to cselib_lookup.
16940         (add_uses): Likewise, also to cselib_subst_to_values.
16941         (add_stores): Likewise.
16942         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
16943         cselib_subst_to_values.
16944         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
16945         * gcse.c (do_local_cprop): Adjusted.
16946         * postreload.c (reload_cse_simplify_set): Adjusted.
16947         (reload_cse_simplify_operands): Adjusted.
16948         * sel-sched-dump (debug_mem_addr_value): Pass mode.
16949
16950 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
16951
16952         PR tree-optimization/45122
16953         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16954         unsafe assumptions when there's more than one loop exit.
16955
16956 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16957
16958         PR target/47272
16959         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16960         Document using vector double with the load/store builtins, and
16961         that the load/store builtins always use Altivec instructions.
16962
16963         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16964         to use altivec memory instructions, even on VSX.
16965         (vector_altivec_store_<mode>): Ditto.
16966
16967         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16968         function.
16969
16970         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16971         V2DF, V2DI support to load/store overloaded builtins.
16972
16973         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16974         altivec load/store builtins for V2DF/V2DI types.
16975
16976         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16977         set avoid indexed addresses on power6 if -maltivec.
16978         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16979         vector_altivec_load/vector_altivec_store builtins.
16980         (altivec_expand_st_builtin): Ditto.
16981         (altivec_expand_builtin): Add VSX memory builtins.
16982         (rs6000_init_builtins): Add V2DI types to internal types.
16983         (altivec_init_builtins): Add support for V2DF/V2DI altivec
16984         load/store builtins.
16985         (rs6000_address_for_altivec): Insure memory address is appropriate
16986         for Altivec.
16987
16988         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16989         vec_vsx_ld and vec_vsx_st.
16990         (vsx_store_<mode>): Ditto.
16991
16992         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16993         variables to hold long long types for VSX vector memory builtins.
16994         (RS6000_BTI_unsigned_long_long): Ditto.
16995         (long_long_integer_type_internal_node): Ditti.
16996         (long_long_unsigned_type_internal_node): Ditti.
16997
16998         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16999         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17000         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17001
17002         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17003         short cuts.
17004         (vec_vsx_st): Ditto.
17005
17006 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17007
17008         * config/pa/pa-hpux10.opt: New.
17009         * config/hpux11.opt (pthread): New Driver option.
17010         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17011         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17012
17013 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17014
17015         * config/ia64/vms.opt: New.
17016         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17017
17018 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
17019
17020         PR target/47580
17021         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17022         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17023         generator functions.
17024         (vsx_floatuns<VSi><mode>2): Ditto.
17025         (vsx_fix_trunc<mode><VSi>2): Ditto.
17026         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17027
17028 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17029
17030         * config/i386/djgpp.opt (posix): New Driver option.
17031
17032 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
17033
17034         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17035         Move to the unsupported targets list.
17036
17037 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
17038
17039         PR rtl-optimization/47525
17040         * df-scan.c: Update copyright years.
17041         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17042         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17043
17044 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17045
17046         * config/i386/sysv4.h (TARGET_VERSION): Remove.
17047         (SUBTARGET_RETURN_IN_MEMORY): Remove.
17048         (ASM_OUTPUT_ASCII): Remove.
17049         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17050
17051 2011-02-02  Jeff Law  <law@redhat.com>
17052
17053         PR middle-end/47543
17054         * reload.c (find_reloads_address): Handle reg+d address where both
17055         components are invalid by reloading the entire address.
17056
17057 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
17058             Richard Guenther  <rguenther@suse.de>
17059
17060         PR tree-optimization/40979
17061         PR bootstrap/47044
17062         * passes.c (init_optimization_passes): After LIM call copy_prop
17063         and DCE to clean up.
17064         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17065
17066 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
17067
17068         PR tree-optimization/47576
17069         PR tree-optimization/47555
17070         * doc/invoke.texi (scev-max-expr-complexity): Documented.
17071         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17072         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17073         * tree-scalar-evolution.c (follow_ssa_edge): Use
17074         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17075
17076 2011-02-02  Richard Guenther  <rguenther@suse.de>
17077
17078         PR tree-optimization/47566
17079         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17080
17081 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17082
17083         PR debug/47106
17084         PR debug/47402
17085         * tree-inline.c (declare_return_variable): Remove unused caller
17086         variable.
17087
17088         PR debug/47106
17089         PR debug/47402
17090         * tree-flow-inline.h (clear_is_used, is_used_p): New.
17091         * cfgexpand.c (account_used_vars_for_block): Use them.
17092         * tree-nrv.c (tree_nrv): Likewise.
17093         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17094         (dump_scope_block): Likewise.
17095         (remove_unused_locals): Likewise.
17096
17097         PR debug/47106
17098         PR debug/47402
17099         * tree-inline.c (declare_return_variable): Add result decl to
17100         local decls only once.
17101         * gimple-low.c (record_vars_into): Mark newly-created variables
17102         as referenced.
17103
17104 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17105
17106         PR debug/47498
17107         PR debug/47501
17108         PR debug/45136
17109         PR debug/45130
17110         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17111         debug insns.
17112         (no_real_insns_p, schedule_block, set_priorities): Drop special
17113         treatment of boundary debug insns.
17114         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17115         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17116         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17117         (BOUNDARY_DEBUG_INSN_P): Likewise.
17118         (SCHEDULE_DEBUG_INSN_P): Likewise.
17119         * sched-rgn.c (init_ready_list): Drop special treatment of
17120         boundary debug insns.
17121         * final.c (rest_of_clean_state): Clear notes' BB.
17122
17123 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17124
17125         * config/openbsd.opt (assert=): New Driver option.
17126
17127 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17128
17129         * config/i386/nto.opt: New.
17130         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17131
17132 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17133
17134         * config/i386/netware.opt: New.
17135         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17136
17137 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17138
17139         * config/interix.opt (posix): New Driver option.
17140
17141 2011-02-01  DJ Delorie  <dj@redhat.com>
17142
17143         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17144
17145         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17146         class for A0/A1.
17147
17148 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
17149
17150         PR tree-optimization/47561
17151         * toplev.c (process_options): Print the Graphite flags.  Add
17152         flag_loop_flatten to the list of options requiring Graphite.
17153
17154 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17155
17156         * config/i386/cygming.opt (posix): New Driver option.
17157
17158 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17159
17160         * config/arm/vxworks.opt: New.
17161         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17162
17163 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17164
17165         * config/alpha/elf.opt: New.
17166         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17167         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17168
17169 2011-02-01  Richard Guenther  <rguenther@suse.de>
17170
17171         PR tree-optimization/47559
17172         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17173         store-motion on references that can throw.
17174
17175 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
17176
17177         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17178         * tree-pass.h (TDF_CSELIB): New macro.
17179         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17180         cselib_lookup): Check for it rather than for TDF_DETAILS.
17181
17182 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
17183
17184         PR driver/47547
17185         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17186         is HOST_BIT_BUCKET.
17187
17188         * opts.c (finish_options): Don't add x_aux_base_name if it is
17189         HOST_BIT_BUCKET.
17190
17191 2011-02-01  Richard Guenther  <rguenther@suse.de>
17192
17193         PR tree-optimization/47555
17194         Revert
17195         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
17196
17197         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17198
17199 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
17200
17201         PR gcc/46692
17202         * config/lm32/t-lm32: Add multilib for all CPU options.
17203
17204 2011-02-01  Richard Guenther  <rguenther@suse.de>
17205
17206         PR tree-optimization/47541
17207         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17208         sure to have a field at offset zero.
17209
17210 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17211
17212         * config/arc/arc.opt (EB, EL): New Driver options.
17213
17214 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17215
17216         * config/alpha/osf5.opt: New.
17217         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17218
17219 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17220
17221         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17222
17223 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
17224
17225         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17226         -floop-interchange.
17227         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17228         is an alias of -floop-interchange and that it requires the
17229         Graphite infrastructure.
17230         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17231         flag_loop_interchange based on the value of flag_tree_loop_linear.
17232
17233 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
17234             Richard Guenther  <rguenther@suse.de>
17235
17236         PR tree-optimization/47538
17237         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17238         type instead of r1type, except for comparisons.  For right
17239         shifts and comparisons punt if there are mismatches in
17240         sizetype vs. non-sizetype types.
17241
17242 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17243
17244         * doc/sourcebuild.texi (Effective-Target Keywords): Document
17245         avx_runtime.
17246
17247 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17248
17249         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17250         version number.
17251         * configure: Regenerate.
17252
17253 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17254
17255         * configure.ac (gcc_cv_ld_static_option): Define.
17256         (gcc_cv_ld_dynamic_option): Define.
17257         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17258         instead.
17259         (HAVE_LD_STATIC_DYNAMIC): Update message.
17260         (LD_STATIC_OPTION): Define.
17261         (LD_DYNAMIC_OPTION): Define.
17262         * configure: Regenerate.
17263         * config.in: Regenerate.
17264         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17265         HAVE_LD_STATIC_DYNAMIC]: Use them.
17266
17267 2011-01-31  Nick Clifton  <nickc@redhat.com>
17268
17269         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17270         registers inside interrupt handlers if the handler is not a leaf
17271         function.
17272
17273 2011-01-31  Nick Clifton  <nickc@redhat.com>
17274
17275         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17276         reg_renumber returning an INVALID_REGNUM.
17277
17278 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17279
17280         PR libgcj/44341
17281         * doc/install.texi: Document host options discarded when cross
17282         configuring target libraries.
17283
17284 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17285
17286         Reverted:
17287         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17288         PR debug/45136
17289         PR debug/45130
17290         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17291         debug insns.
17292         (no_real_insns_p, schedule_block, set_priorities): Drop special
17293         treatment of boundary debug insns.
17294         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17295         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17296         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17297         (BOUNDARY_DEBUG_INSN_P): Likewise.
17298         (SCHEDULE_DEBUG_INSN_P): Likewise.
17299         * sched-rgn.c (init_ready_list): Drop special treatment of
17300         boundary debug insns.
17301         * final.c (rest_of_clean-state): Clear notes' BB.
17302
17303 2011-01-31  Alan Modra  <amodra@gmail.com>
17304
17305         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17306         toc relative expressions as we do in print_operand_address.
17307
17308 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
17309
17310         * doc/extend.texi: Follow spelling conventions.
17311         * doc/invoke.texi: Fix a typo.
17312
17313 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
17314
17315         * config/hpux11.opt: New.
17316         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17317         ia64*-*-hpux*): Use hpux11.opt.
17318
17319 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
17320
17321         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17322         to tmake_file.
17323
17324 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17325
17326         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17327         support sites.
17328
17329 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17330
17331         * doc/install.texi (Binaries): Remove outdated reference for
17332         Motorola 68HC11/68HC12 downloads.
17333
17334 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17335
17336         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17337         Drepper's paper.
17338
17339 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
17340
17341         PR bootstrap/47147
17342         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17343         used by NetBSD.
17344
17345 2011-01-28  Ahmad Sharif  <asharif@google.com>
17346
17347         * value-prof.c (check_counter): Corrected error message.
17348
17349 2011-01-29  Jie Zhang  <jie@codesourcery.com>
17350
17351         * config/arm/arm.c (arm_legitimize_reload_address): New.
17352         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17353         arm_legitimize_reload_address.
17354         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17355
17356 2011-01-28  Ian Lance Taylor  <iant@google.com>
17357
17358         * godump.c (go_define): Ignore macros whose definitions include
17359         two adjacent operands.
17360
17361 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
17362
17363         PR target/42894
17364         * varasm.c (force_const_mem): Store copy of x in desc->constant
17365         instead of x itself.
17366         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17367         itself into REG_EQUAL note.
17368
17369 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
17370
17371         * config/freebsd.opt (posix, rdynamic): New Driver options.
17372
17373 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17374
17375         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17376         -Bstatic/-Bdynamic.
17377         * configure: Regenerate.
17378
17379 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
17380
17381         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17382         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17383
17384 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
17385
17386         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17387         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17388         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17389         (s390_preferred_reload_class): Make static. Change return and
17390         'rclass' argument type to reg_class_t.
17391
17392 2011-01-27  Jan Hubicka  <jh@suse.cz>
17393
17394         PR middle-end/46949
17395         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17396         (process_function_and_variable_attributes): Check defined weakrefs.
17397
17398 2011-01-27  Martin Jambor  <mjambor@suse.cz>
17399
17400         PR tree-optimization/47228
17401         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17402         build_ref_for_offset.
17403
17404 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17405
17406         * config/spu/spu-elf.h (ASM_SPEC): Remove.
17407
17408 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
17409
17410         PR rtl-optimization/46856
17411         * postreload.c (reload_combine_recognize_const_pattern): Do not
17412         separate cc0 setter and user on cc0 targets.
17413
17414 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
17415
17416         PR c/43082
17417         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17418         passed a VOID_TYPE expression, immediately emit an error and
17419         return error_mark_node.
17420
17421 2011-01-26  Jeff Law  <law@redhat.com>
17422
17423         PR rtl-optimization/47464
17424         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17425         rather than may_trap_p as needed.
17426
17427 2011-01-26  DJ Delorie  <dj@redhat.com>
17428
17429         PR rtl-optimization/46878
17430         * combine.c (insn_a_feeds_b): Check for the implicit cc0
17431         setter/user dependency as well.
17432
17433 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
17434
17435         PR rtl-optimization/44469
17436         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17437         after removing trivially dead basic blocks.
17438
17439 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17440
17441         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17442         * config/frv/frv.h (LINK_SPEC): Likewise.
17443         * config/i386/netware.h (LINK_SPEC): Likewise.
17444         * config/m68k/linux.h (ASM_SPEC): Likewise.
17445         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17446         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17447         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17448         * config/sparc/linux.h (ASM_SPEC): Likewise.
17449         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17450         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17451
17452 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17453
17454         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17455         * config/frv/frv.h (ASM_SPEC): Likewise.
17456         * config/m68k/linux.h (ASM_SPEC): Likewise.
17457         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17458         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17459         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17460         * config/sparc/linux.h (ASM_SPEC): Likewise.
17461         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17462         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17463
17464 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17465
17466         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17467         * config/frv/frv.h (LINK_SPEC): Likewise.
17468         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17469
17470 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17471
17472         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17473         * config/frv/frv.h (ASM_SPEC): Likewise.
17474         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17475         * config/m68k/linux.h (ASM_SPEC): Likewise.
17476         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17477         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17478         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17479         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17480         * config/sparc/linux.h (ASM_SPEC): Likewise.
17481         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17482         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17483         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17484
17485 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
17486
17487         PR target/46997
17488         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17489         (*mux2): Ditto.
17490         (vec_extract_evenodd_help): Ditto.
17491         (vec_extract_evenv4hi): Ditto.
17492         (vec_extract_oddv4hi): Ditto.
17493         (vec_interleave_lowv2si): Ditto.
17494         (vec_interleave_highv2si): Ditto.
17495         (vec_extract_evenv2si): Ditto.
17496         (vec_extract_oddv2si: Ditto.
17497         (vec_pack_trunc_v2si): Ditto.
17498
17499 2011-01-22  Jan Hubicka  <jh@suse.cz>
17500
17501         PR target/47237
17502         * cgraph.h (cgraph_local_info): New field can_change_signature.
17503         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17504         signature can change.
17505         (ipcp_estimate_growth): Call sequence simplify only if calle signature
17506         can change.
17507         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17508         (cgraph_function_versioning): We can not change signature of functions
17509         that don't allow that.
17510         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17511         (lto_input_node): Likewise.
17512         * ipa-inline.c (compute_inline_parameters): Compute
17513         local.can_change_signature.
17514         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17515         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17516         functions that can not change signature.
17517         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17518         init_cumulative_args): Do not use local calling conventions
17519         for functions that can not change signature.
17520
17521 2011-01-22  Jan Hubicka  <jh@suse.cz>
17522
17523         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17524
17525 2011-01-26  Richard Guenther  <rguenther@suse.de>
17526
17527         PR tree-optimization/47190
17528         * cgraphunit.c (process_common_attributes): New function.
17529         (process_function_and_variable_attributes): Use it.
17530
17531 2011-01-26  Richard Guenther  <rguenther@suse.de>
17532
17533         PR lto/47423
17534         * cgraphbuild.c (record_eh_tables): Record reference to personality
17535         function.
17536
17537 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
17538
17539         PR debug/45454
17540         * sel-sched.c (moveup_expr): Don't let debug insns prevent
17541         non-debug insns from moving up.
17542
17543 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17544
17545         PR target/40125
17546         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17547         t-dlldir{,-x} fragment for build and add it to tmake_file.
17548         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17549         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17550         * config/i386/t-dlldir: New file.
17551         (SHLIB_DLLDIR): Define.
17552         * config/i386/t-dlldir-x: New file.
17553         (SHLIB_DLLDIR): Define.
17554         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17555         (SHLIB_INSTALL): Use it.
17556
17557 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
17558
17559         PR target/47246
17560         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17561         lower bound of the allowed Thumb-2 coprocessor load/store
17562         index range to -256. Add explaining comment.
17563
17564 2011-01-25  Ian Lance Taylor  <iant@google.com>
17565
17566         * godump.c (go_define): Improve lexing of macro expansion to only
17567         accept expressions which match Go spec.
17568
17569 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17570
17571         PR c++/43601
17572         * tree.c (handle_dll_attribute): Handle it.
17573         * doc/extend.texi (@item dllexport): Mention it.
17574         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17575
17576 2011-01-25  Ian Lance Taylor  <iant@google.com>
17577
17578         PR tree-optimization/26854
17579         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17580         (decl_jump_unsafe): Move higher in file, with no other change.
17581         (bind): Set has_jump_unsafe_decl if appropriate.
17582         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17583         (check_earlier_gotos): Likewise.
17584         (c_check_switch_jump_warnings): Likewise.
17585
17586 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
17587
17588         * doc/invoke.texi (Warning Options): Add missing hyphen.
17589         (-fprofile-dir): Minor grammatical fixes.
17590         (-fbranch-probabilities): Likewise.
17591
17592 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17593
17594         PR debug/45136
17595         PR debug/45130
17596         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17597         debug insns.
17598         (no_real_insns_p, schedule_block, set_priorities): Drop special
17599         treatment of boundary debug insns.
17600         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17601         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17602         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17603         (BOUNDARY_DEBUG_INSN_P): Likewise.
17604         (SCHEDULE_DEBUG_INSN_P): Likewise.
17605         * sched-rgn.c (init_ready_list): Drop special treatment of
17606         boundary debug insns.
17607         * final.c (rest_of_clean-state): Clear notes' BB.
17608
17609 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17610
17611         * Makefile.in (LAMBDA_H): Removed.
17612         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17613         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17614         lambda-trans.o, and tree-loop-linear.o.
17615         (lto-symtab.o): Remove dependence on LAMBDA_H.
17616         (tree-loop-linear.o): Remove rule.
17617         (lambda-mat.o): Same.
17618         (lambda-trans.o): Same.
17619         (lambda-code.o): Same.
17620         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17621         (tree-vect-slp.o): Same.
17622         * hwint.h (gcd): Moved here.
17623         (least_common_multiple): Same.
17624         * lambda-code.c: Removed.
17625         * lambda-mat.c: Removed.
17626         * lambda-trans.c: Removed.
17627         * lambda.h: Removed.
17628         * tree-loop-linear.c: Removed.
17629         * lto-symtab.c: Do not include lambda.h.
17630         * omega.c (gcd): Removed.
17631         * passes.c (init_optimization_passes): Remove pass_linear_transform.
17632         * tree-data-ref.c (print_lambda_vector): Moved here.
17633         (lambda_vector_copy): Same.
17634         (lambda_matrix_copy): Same.
17635         (lambda_matrix_id): Same.
17636         (lambda_vector_first_nz): Same.
17637         (lambda_matrix_row_add): Same.
17638         (lambda_matrix_row_exchange): Same.
17639         (lambda_vector_mult_const): Same.
17640         (lambda_vector_negate): Same.
17641         (lambda_matrix_row_negate): Same.
17642         (lambda_vector_equal): Same.
17643         (lambda_matrix_right_hermite): Same.
17644         * tree-data-ref.h: Do not include lambda.h.
17645         (lambda_vector): Moved here.
17646         (lambda_matrix): Same.
17647         (dependence_level): Same.
17648         (lambda_transform_legal_p): Removed declaration.
17649         (lambda_collect_parameters): Same.
17650         (lambda_compute_access_matrices): Same.
17651         (lambda_vector_gcd): Same.
17652         (lambda_vector_new): Same.
17653         (lambda_vector_clear): Same.
17654         (lambda_vector_lexico_pos): Same.
17655         (lambda_vector_zerop): Same.
17656         (lambda_matrix_new): Same.
17657         * tree-flow.h (least_common_multiple): Removed declaration.
17658         * tree-parloops.c (lambda_trans_matrix): Moved here.
17659         (LTM_MATRIX): Same.
17660         (LTM_ROWSIZE): Same.
17661         (LTM_COLSIZE): Same.
17662         (LTM_DENOMINATOR): Same.
17663         (lambda_trans_matrix_new): Same.
17664         (lambda_matrix_vector_mult): Same.
17665         (lambda_transform_legal_p): Same.
17666         * tree-pass.h (pass_linear_transform): Removed declaration.
17667         * tree-ssa-loop.c (tree_linear_transform): Removed.
17668         (gate_tree_linear_transform): Removed.
17669         (pass_linear_transform): Removed.
17670         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17671         flag_loop_interchange.
17672
17673 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17674
17675         PR tree-optimization/47265
17676         PR tree-optimization/47443
17677         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17678         if name still has some uses.
17679
17680 2011-01-25  Martin Jambor  <mjambor@suse.cz>
17681
17682         PR tree-optimization/47382
17683         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17684         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17685
17686 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
17687
17688         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17689         sjlj_except_unwind_info.
17690
17691 2011-01-25  Richard Guenther  <rguenther@suse.de>
17692
17693         PR tree-optimization/47426
17694         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17695         visible functions results escape.
17696
17697 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17698
17699         PR target/45701
17700         * config/arm/arm.c (any_sibcall_uses_r3): New function.
17701         (arm_get_frame_offsets): Use it.
17702
17703 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17704             Jakub Jelinek  <jakub@redhat.com>
17705
17706         PR tree-optimization/47271
17707         * tree-if-conv.c (bb_postdominates_preds): New.
17708         (if_convertible_bb_p): Call bb_postdominates_preds.
17709         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17710         (predicate_scalar_phi): Call bb_postdominates_preds.
17711
17712 2011-01-25  Nick Clifton  <nickc@redhat.com>
17713
17714         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17715         * config/rx/rx.c (rx_function_value): Likewise.
17716         (rx_promote_function_mode): Likewise.
17717         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17718         in order to make it legitimate.
17719         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17720         make sure that the first operand is the same as the result register.
17721         (addsi3_unspec): Delete.
17722         (subdi3): Do not accept immediate operands.
17723         (subdi3_internal): Likewise.
17724
17725 2011-01-25  Jeff Law  <law@redhat.com>
17726
17727         PR rtl-optimization/37273
17728         * ira-costs.c (scan_one_insn): Detect constants living in memory and
17729         handle them like argument loads from stack slots.  Do not double
17730         count memory for memory constants and argument loads from stack slots.
17731
17732 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17733
17734         PR tree-optimization/47427
17735         PR tree-optimization/47428
17736         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17737         coalesce if the new root var would be TREE_READONLY.
17738
17739 2011-01-25  Richard Guenther  <rguenther@suse.de>
17740
17741         PR middle-end/47414
17742         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17743         correct type for TBAA.
17744
17745 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17746
17747         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17748         (close_phi_written_to_memory): Call for_each_index with
17749         dr_indices_valid_in_loop.
17750
17751 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17752
17753         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17754         when it is initialized.
17755
17756 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17757
17758         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17759         call to graphite_find_data_references_in_stmt.
17760         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17761         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
17762         call to graphite_find_data_references_in_stmt.
17763         (analyze_drs_in_stmts): Same.
17764         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17765         in which the scalar analysis of indices is performed.
17766         (create_data_ref): Same.  Update call to dr_analyze_indices.
17767         (find_data_references_in_stmt): Update call to create_data_ref.
17768         (graphite_find_data_references_in_stmt): Same.
17769         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17770         declaration.
17771         (create_data_ref): Same.
17772         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17773         call to create_data_ref.
17774
17775 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17776
17777         * graphite-sese-to-poly.c (build_poly_scop): Move
17778         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17779
17780 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17781
17782         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17783         VAR_DECL, PARM_DECL, and RESULT_DECL.
17784
17785 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17786
17787         * graphite-dependences.c (reduction_dr_1): Allow several reductions
17788         in a reduction PBB.
17789         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17790         that have already been marked as PBB_IS_REDUCTION.
17791
17792 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17793
17794         * graphite-scop-detection.c (same_close_phi_node): New.
17795         (remove_duplicate_close_phi): New.
17796         (make_close_phi_nodes_unique): New.
17797         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17798
17799 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17800
17801         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17802         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17803         of both data references to be the same.
17804
17805 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17806
17807         * graphite-dependences.c (build_lexicographical_constraint): Remove
17808         the gdim parameter.
17809         (build_lexicographical_constraint): Adjust call to
17810         ppl_powerset_is_empty.
17811         (dependence_polyhedron): Same.
17812         (graphite_legal_transform_dr): Same.
17813         (graphite_carried_dependence_level_k): Same.
17814         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17815         parameter.
17816         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17817
17818 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17819
17820         * graphite-sese-to-poly.c
17821         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17822         (close_phi_written_to_memory): New.
17823         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17824         and unshare_expr.
17825
17826 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17827
17828         * doc/install.texi: Update the expected version number of PPL to 0.11.
17829         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17830         #if PPL_VERSION_MINOR < 11.
17831
17832 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17833
17834         * graphite-dependences.c: Include graphite-cloog-util.h.
17835         (new_poly_ddr): Inlined into dependence_polyhedron.
17836         (free_poly_ddr): Moved close by new_poly_ddr.
17837         (dependence_polyhedron_1): Renamed dependence_polyhedron.
17838         Early return NULL when ppl_powerset_is_empty returns true.
17839         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
17840         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
17841         (graphite_legal_transform_dr): Call new_poly_ddr.
17842         (graphite_carried_dependence_level_k): Same.
17843         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
17844         (dot_transformed_deps_stmt_1): Removed.
17845         (dot_deps_stmt_1): Call dot_deps_stmt_2.
17846         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
17847         (dot_deps_1): Call dot_deps_2.
17848         * Makefile.in (graphite-dependences.o): Add missing dependence on
17849         graphite-cloog-util.h.
17850
17851 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17852
17853         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17854         (build_lexicographical_constraint): Same.
17855         (dependence_polyhedron_1): Same.
17856         (graphite_legal_transform_dr): Same.
17857         (graphite_carried_dependence_level_k): Same.
17858         * graphite-ppl.c (ppl_powerset_is_empty): New.
17859         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17860         * tree-data-ref.c (dump_data_reference): Print the basic block index.
17861
17862 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17863
17864         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17865         the "a followed by b" relation and document it.
17866
17867 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17868
17869         * graphite-dependences.c (build_lexicographical_constraint): Stop the
17870         iteration when the bag of constraints is empty.
17871
17872 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17873
17874         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17875
17876 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17877
17878         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17879         nest and two loop depths as parameters.
17880         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17881         lst_perfect_nestify.
17882
17883 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17884
17885         * graphite-dependences.c (print_pddr): Call
17886         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17887
17888 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17889
17890         * graphite-ppl.c (debug_gmp_value): New.
17891         * graphite-ppl.h (debug_gmp_value): Declared.
17892
17893 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
17894
17895         * doc/install.texi: Document availability of cloog-0.16.
17896
17897 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
17898
17899         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17900         invalid postdominance info.
17901
17902 2011-01-24  Jan Hubicka  <jh@suse.cz>
17903
17904         PR c/21659
17905         * doc/extend.texi (weak pragma): Drop claim that it must
17906         appear before definition.
17907         * varasm.c (merge_weak, declare_weak): Only sanity check
17908         that DECL is not output at a time it is declared weak.
17909
17910 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
17911
17912         * machmode.def: Fixed comments.
17913
17914 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
17915
17916         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17917
17918 2011-01-24  Paul Koning  <ni1d@arrl.net>
17919
17920         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17921         WORDS_BIG_ENDIAN.
17922
17923 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
17924
17925         PR target/46519
17926         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17927         (block_info): Add scanned and prev.
17928         (move_or_delete_vzeroupper_2): Return if the basic block
17929         has been scanned and the upper 128bit state is unchanged
17930         from the last scan.
17931         (move_or_delete_vzeroupper_1): Return true if the exit
17932         state is changed.
17933         (move_or_delete_vzeroupper): Visit basic blocks using the
17934         work-list based algorithm based on vt_find_locations in
17935         var-tracking.c.
17936
17937         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17938
17939 2011-01-24  Nick Clifton  <nickc@redhat.com>
17940
17941         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17942         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17943         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
17944         then define __v850e1__.
17945         * doc/invoke.texi: Document -mv850es.
17946
17947 2011-01-24  Richard Henderson  <rth@redhat.com>
17948
17949         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17950         compound unordered comparisons.
17951         * config/rx/rx.c (rx_split_fp_compare): Remove.
17952         * config/rx/rx-protos.h: Update.
17953         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17954         (cbranchsf4): Don't call rx_split_fp_compare.
17955         (*cbranchsf4): Use rx_split_cbranch.
17956         (*cmpsf): Don't accept "i" constraint.
17957         (*conditional_branch): Only valid after reload.
17958         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
17959
17960 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17961
17962         PR target/47385
17963         * config/rs6000/altivec.md (vector constant splitters): Add
17964         support for creating vector single precision constants if -mvsx is
17965         used and we would create the constant using Altivec primitives.
17966
17967 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
17968             Richard Sandiford  <rdsandiford@googlemail.com>
17969
17970         PR rtl-optimization/47166
17971         * reload1.c (emit_reload_insns): Disable the spill_reg_store
17972         mechanism for PRE_MODIFY and POST_MODIFY.
17973         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17974         reloadreg.
17975
17976 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
17977
17978         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17979
17980 2011-01-22  Jan Hubicka  <jh@suse.cz>
17981
17982         PR lto/47333
17983         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17984
17985 2011-01-22  Jan Hubicka  <jh@suse.cz>
17986
17987         PR tree-optimization/43884
17988         PR lto/44334
17989         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17990         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17991
17992 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
17993
17994         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17995         * config/s390/s390.c (s390_register_move_cost,
17996         s390_memory_move_cost): New.
17997         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17998
17999 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18000
18001         PR middle-end/47401
18002         * except.c (sjlj_assign_call_site_values): Move setting the
18003         crtl->uses_eh_lsda flag to ...
18004         (sjlj_mark_call_sites): ... here.
18005         (sjlj_emit_function_enter): Support NULL dispatch label.
18006         (sjlj_build_landing_pads): In a function with no landing pads
18007         that still has must-not-throw regions, generate code to register
18008         a personality function with empty LSDA.
18009
18010 2011-01-21  Richard Henderson  <rth@redhat.com>
18011
18012         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18013
18014         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18015
18016         * compare-elim.c: New file.
18017         * Makefile.in (OBJS-common): Add it.
18018         (compare-elim.o): New.
18019         * common.opt (fcompare-elim): New.
18020         * opts.c (default_options_table): Add OPT_fcompare_elim.
18021         * tree-pass.h (pass_compare_elim_after_reload): New.
18022         * passes.c (init_optimization_passes): Add it.
18023         * recog.h: Protect against re-inclusion.
18024         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18025         * doc/invoke.texi (-fcompare-elim): Document it.
18026         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18027         * doc/tm.texi: Rebuild.
18028
18029 2011-01-22  Nick Clifton  <nickc@redhat.com>
18030
18031         * config/rx/rx.md (cstoresf4): Pass comparison operator to
18032         rx_split_fp_compare.
18033
18034 2011-01-22  Nick Clifton  <nickc@redhat.com>
18035
18036         * config/rx/rx.md (UNSPEC_CONST): New.
18037         (deallocate_and_return): Wrap the amount popped off the stack in
18038         an UNSPEC_CONST in order to stop it being rejected by
18039         -mmax-constant-size.
18040         (pop_and_return): Add a "(return)" rtx.
18041         (call): Drop the immediate operand.
18042         (call_internal): Likewise.
18043         (call_value): Likewise.
18044         (call_value_internal): Likewise.
18045         (sibcall_internal): Likewise.
18046         (sibcall_value_internal): Likewise.
18047         (sibcall): Likewise.  Generate an explicit call using
18048         sibcall_internal.
18049         (sibcall_value): Likewise.
18050         (mov<>): FAIL if a constant operand is not legitimate.
18051         (addsi3_unpsec): New pattern.
18052
18053         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18054         (ok_for_max_constant): New function.
18055         (gen_safe_add): New function.
18056         (rx_expand_prologue): Use gen_safe_add.
18057         (rx_expand_epilogue): Likewise.
18058         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
18059         UNSPEC CONSTs.
18060
18061 2011-01-21  Jeff Law  <law@redhat.com>
18062
18063         PR tree-optimization/47053
18064         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18065         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18066         statements are deleted.
18067         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
18068         is nonempty, then purge dead edges and cleanup the CFG.
18069
18070 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18071
18072         PR debug/47402
18073         Temporarily revert:
18074         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18075         PR debug/47106
18076         * tree-dfa.c (create_var_ann): Mark variable as used.
18077
18078 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18079
18080         PR middle-end/45566
18081         * except.c (convert_to_eh_region_ranges): Emit queued no-region
18082         notes from other section in hot/cold partitioning even if
18083         last_action is -3.  Increment call_site_base.
18084
18085         PR rtl-optimization/47366
18086         * fwprop.c (forward_propagate_into): Return bool.  If
18087         any changes are made, -fnon-call-exceptions is used and
18088         REG_EH_REGION note is present, call purge_dead_edges
18089         and return true if it purged anything.
18090         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18091         any EH edges were purged.
18092
18093 2011-01-21  Jeff Law  <law@redhat.com>
18094
18095         PR rtl-optimization/41619
18096         * caller-save.c (setup_save_areas): Break out code to determine
18097         which hard regs are live across calls by examining the reload chains
18098         so that it is always used.
18099         Eliminate code which checked REG_N_CALLS_CROSSED.
18100
18101 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18102
18103         PR tree-optimization/47355
18104         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18105         NOP has non-debug uses beyond PHIs in new_bb.
18106
18107 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18108
18109         PR debug/47106
18110         * cfgexpand.c (account_used_vars_for_block): Only account vars
18111         that are annotated as used.
18112         (estimated_stack_frame_size): Don't set TREE_USED.
18113         * tree-dfa.c (create_var_ann): Mark variable as used.
18114
18115 2011-01-21  Richard Guenther  <rguenther@suse.de>
18116
18117         PR middle-end/47395
18118         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18119
18120 2011-01-21  Richard Guenther  <rguenther@suse.de>
18121
18122         PR tree-optimization/47365
18123         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18124         (vn_reference_lookup_pieces): Adjust.
18125         (vn_reference_lookup): Likewise.
18126         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18127         (vn_reference_lookup_3): Only look through kills if in
18128         VN_WALKREWRITE mode.
18129         (vn_reference_lookup_pieces): Adjust.
18130         (vn_reference_lookup): Likewise.
18131         (visit_reference_op_load): Likewise.
18132         (visit_reference_op_store): Likewise.
18133         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18134         (compute_avail): Likewise.
18135         (eliminate): Likewise.
18136
18137 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18138
18139         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18140         DECL_IGNORED_P non-reg vars if they are used.
18141
18142         PR tree-optimization/47391
18143         * varpool.c (const_value_known_p): Return false if
18144         decl is volatile.
18145
18146 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
18147
18148         PR bootstrap/47215
18149         * config/i386/i386.c (ix86_local_alignment): Handle
18150         case for va_list_type_node is nil.
18151         (ix86_canonical_va_list_type): Likewise.
18152
18153 2011-01-21  Alan Modra  <amodra@gmail.com>
18154
18155         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18156         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18157
18158 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18159
18160         * config/arm/arm.md (define_attr type): Rename f_load
18161         and f_store to f_fpa_load and f_fpa_store. Update.
18162         (write_conflict): Deal with rename fallout.
18163         (*push_fp_multi): Likewise.
18164         * config/arm/fpa.md (f_load): Use f_fpa_load.
18165         (f_store): Use f_fpa_store.
18166         (*movsf_fpa): Likewise.
18167         (*movdf_fpa): Likewise.
18168         (*movxf_fpa): Likewise.
18169         (*thumb2_movsf_fpa): Likewise.
18170         (*thumb2_movdf_fpa): Likewise.
18171         (*thumb2_movxf_fpa): Likewise.
18172         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18173         f_loadd and f_stored.
18174         (*thumb2_movdi_vfp): Likewise.
18175         (*thumb2_movsf_vfp): Fix attribute to f_loads.
18176         (*thumb2_movsi_vfp): Likewise.
18177         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18178         Use f_loads instead of f_load.
18179         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18180
18181 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
18182
18183         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18184         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18185         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18186         (xtensa_mode_dependent_address_p): New function.
18187         (constantpool_address_p): Make static. Change return type to bool.
18188         Change argument type to const_rtx. Use CONST_INT_P predicate.
18189
18190 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
18191
18192         PR debug/46583
18193         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18194
18195 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18196
18197         PR debug/47283
18198         * cfgexpand.c (expand_debug_expr): Instead of generating
18199         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18200         etc. handling.
18201
18202 2011-01-20  Richard Guenther  <rguenther@suse.de>
18203
18204         PR middle-end/47370
18205         * tree-inline.c (remap_gimple_op_r): Recurse manually for
18206         the pointer operand of MEM_REFs.
18207
18208 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18209
18210         PR tree-optimization/46130
18211         * ipa-split.c (consider_split): If return_bb contains non-virtual
18212         PHIs other than for retval or if split_function would not adjust it,
18213         refuse to split.
18214
18215 2011-01-20  Richard Guenther  <rguenther@suse.de>
18216
18217         PR tree-optimization/47167
18218         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18219         Revert previous change, only avoid enumeral type changes.
18220
18221 2011-01-19  Mike Stump  <mikestump@comcast.net>
18222
18223         * doc/tm.texi.in (BRANCH_COST): Englishify.
18224         * doc/tm.texi (BRANCH_COST): Likewise.
18225
18226 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
18227
18228         PR c++/47291
18229         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18230         (gen_scheduled_generic_parms_dies): New functions.
18231         (gen_struct_or_union_type_die): Schedule template parameters DIEs
18232         generation for the end of CU compilation.
18233         (dwarf2out_finish): Generate template parameters DIEs here.
18234
18235 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18236
18237         PR debug/46240
18238         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18239         debug bind stmt on merge edges.
18240
18241 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18242
18243         PR debug/47079
18244         PR debug/46724
18245         * function.c (instantiate_expr): Instantiate incoming rtl of
18246         implicit arguments, and recurse on VALUE_EXPRs.
18247         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18248         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18249
18250 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18251
18252         * c-parser.c (c_parser_for_statement): Initialize
18253         collection_expression.
18254
18255 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18256
18257         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18258
18259 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18260
18261         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18262         (LINK_SHLIB_SPEC): Don't use %(link_path).
18263         (SUBTARGET_EXTRA_SPECS): Remove link_path.
18264
18265 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18266
18267         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18268         (NO_SHARED_LIB_SUPPORT): Remove.
18269         (LINK_SHLIB_SPEC): Remove one conditional definition.
18270
18271 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18272
18273         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18274         %{call_shared}.
18275         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18276         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18277         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18278         %{call_shared} and conditionals on these options not being passed.
18279         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18280         %{call_shared}.
18281
18282 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18283
18284         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18285         simplify.
18286
18287         * ipa-split.c: Spelling fixes.
18288
18289 2011-01-19  Richard Henderson  <rth@redhat.com>
18290
18291         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18292         (*mulsi3): Likewise.
18293
18294         * longlong.h [__mn10300__] (count_leading_zeros): New.
18295         [__mn10300__] (umul_ppmm, smul_ppmm): New.
18296         [__mn10300__] (add_ssaaaa, subddmmss): New.
18297         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18298         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18299
18300 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18301
18302         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18303
18304 2011-01-19  Richard Henderson  <rth@redhat.com>
18305
18306         * config/mn10300/mn10300.md (addsi3_flags): New.
18307         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18308         (subsi3_flags, subc_internal, subdi3): New.
18309         (subdi3_internal, *subdi3_degenerate): New.
18310         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18311
18312         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18313         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18314         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
18315         * config/mn10300/mn10300-protos.h: Update.
18316         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18317         (return_ret): Likewise.  Rename from return_internal_regs.
18318         (return_internal): Remove.
18319
18320         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18321         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18322         (mn10300_legitimate_constant_p): Likewise.
18323         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18324         (mn10300_frame_size): New.
18325         (mn10300_expand_prologue): Use it.
18326         (mn10300_expand_epilogue): Likewise.
18327         (mn10300_initial_offset): Likewise.
18328         * config/mn10300/mn10300-protos.h: Update.
18329         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18330         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18331         (prologue, epilogue, return_internal): Tidy output code.
18332         (mn10300_store_multiple_operation, return): Likewise.
18333         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18334         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18335         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18336         (load_pic, am33_load_pic): New.
18337         (mn10300_load_pic0, mn10300_load_pic1): New.
18338
18339         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18340         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18341         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18342         (cc_flags_for_mode, cc_flags_for_code): New.
18343         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18344         overflow flag is not valid.  Validate that the flags we need
18345         for the comparison are valid.
18346         (mn10300_output_cmp): Remove.
18347         (mn10300_output_add): New.
18348         (mn10300_select_cc_mode): Use cc_flags_for_code.
18349         (mn10300_split_cbranch): New.
18350         (mn10300_match_ccmode): New.
18351         (mn10300_split_and_operand_count): New.
18352         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18353         to the function.
18354         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18355         (addsi3): ... here.  Use mn10300_output_add.
18356         (*addsi3_flags): New.
18357         (*am33_subsi3, *mn10300_subsi3): Merge...
18358         (subsi3): ... here.  Use attribute isa.
18359         (*subsi3_flags): New.
18360         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
18361         when possible.
18362         (*am33_andsi3, *mn10300_andsi3): Merge...
18363         (andsi3): ... here.
18364         (*andsi3_flags): New.
18365         (andsi3 splitters): New.
18366         (*am33_iorsi3, *mn10300_iorsi3): Merge...
18367         (iorsi3): ... here.
18368         (*iorsi3_flags): New.
18369         (*am33_xorsi3, *mn10300_xorsi3): Merge...
18370         (xorsi3): ... here.
18371         (*xorsi3_flags): New.
18372         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18373         (one_cmplsi2): ... here.
18374         (*one_cmplsi2_flags): New.
18375         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
18376         instead of "dax" in constraints.  Use mn10300_split_cbranch.
18377         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
18378         use matching constraints to eliminate a self-comparison.
18379         (*integer_conditional_branch): Rename from integer_conditional_branch.
18380         Use int_mode_flags to match CC_REG.
18381         (*cbranchsi4_btst, *btstsi): New.
18382         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
18383         mn10300_split_cbranch.
18384         (*am33_cmpsf): Rename from am33_cmpsf.
18385         (*float_conditional_branch): Rename from float_conditional_branch.
18386         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18387         (zero_extendqisi2): ... here.
18388         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18389         (zero_extendhisi2): ... here.
18390         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18391         (extendqisi2): ... here.
18392         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18393         (extendhisi2): ... here.
18394         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18395         (ashlsi3): ... here.
18396         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18397         (lshrsi3): ... here.
18398         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18399         (ashrsi3): ... here.
18400         (consecutive add peephole): Remove.
18401         * config/mn10300/predicates.md (label_ref_operand): New.
18402         (int_mode_flags): New.
18403         (CCZN_comparison_operator): New.
18404
18405         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18406         (throughput_42_latency_43): New reservation.
18407         (mulsidi3, umulsidi3): New expanders.
18408         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
18409         the MDR register to allocation; separately allocate the low and
18410         high parts of the DImode result.
18411         (umulsidi3_internal): Similarly.
18412         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18413         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
18414         (udivsi3, umodsi3): Remove.
18415         (udivmodsi4, divmodsi4): New expanders.
18416         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
18417         (*divmodsi4): Simiarly.
18418         (ext_internal): New.
18419
18420         * config/mn10300/constraints.md ("z"): New constraint.
18421         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18422         (FIXED_REGISTERS): Don't fix MDR.
18423         (CALL_USED_REGSITERS): Reformat nicely.
18424         (REG_ALLOC_ORDER): Add MDR.
18425         (enum regclass): Add MDR_REGS.
18426         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18427         (IRA_COVER_CLASSES): Add MDR_REGS.
18428         (REGNO_REG_CLASS): Handle MDR_REG.
18429         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18430         (mn10300_register_move_cost): Likewise.
18431         * config/mn10300/mn10300.md (MDR_REG): New.
18432         (*movsi_internal): Handle moves to/from MDR_REGS.
18433
18434         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18435         POST_MODIFY.
18436         (mn10300_secondary_reload): Tidy combination reload classes.
18437         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18438         addresses for AM33.  Allow symbolic offsets for reg+imm.
18439         (mn10300_regno_in_class_p): New.
18440         (mn10300_legitimize_reload_address): New.
18441         * config/mn10300/mn10300.h (enum reg_class): Remove
18442         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18443         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
18444         SP_OR_GENERAL_REGS.
18445         (REG_CLASS_NAMES): Update to match.
18446         (REG_CLASS_CONTENTS): Likewise.
18447         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18448         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18449         (REGNO_IN_RANGE_P): Remove.
18450         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18451         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18452         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18453         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18454         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18455         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18456         (REGNO_GENERAL_P): New.
18457         (HAVE_POST_MODIFY_DISP): New.
18458         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18459         (LEGITIMIZE_RELOAD_ADDRESS): New.
18460         * config/mn10300/mn10300-protos.h: Update.
18461
18462         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18463         DATA_REGS for AM33 stack-pointer destination.
18464         (mn10300_preferred_output_reload_class): Likewise.
18465         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18466         into a form appropriate for ...
18467         (TARGET_SECONDARY_RELOAD): New.
18468         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18469         * config/mn10300/mn10300-protos.h: Update.
18470         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18471         reload_insi; use the "A" constraint for the scratch; handle AM33
18472         moves of sp to non-address registers.
18473
18474         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18475         (*movqi_internal): ... here.
18476         (*am33_movhi, *mn10300_movhi): Merge into...
18477         (*movhi_internal): ... here.
18478         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
18479         as the source/destination of moves from/to SP.
18480         (movsf): Only allow for AM33-2.
18481         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18482         any integer constant constraint.  Only allow for AM33-2.  Tidy
18483         all of the alternative outputs.
18484         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18485         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
18486         for MN103.
18487         (udivsi3, umodsi3): New patterns for MN103 only.
18488
18489 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
18490
18491         * doc/tm.texi.in: Spell out that a lack of register class unions
18492         can lead to ICEs.
18493         * doc/tm.texi: Regenerate.
18494
18495 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18496
18497         PR rtl-optimization/47337
18498         * dce.c (check_argument_store): New function.
18499         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
18500
18501         PR tree-optimization/47290
18502         * tree-eh.c (infinite_empty_loop_p): New function.
18503         (cleanup_empty_eh): Use it.
18504
18505 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
18506
18507         PR target/46997
18508         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18509         (a64_expand_widen_sum): Ditto.
18510         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18511         (vec_extract_evenodd_help): Ditto.
18512         (vec_extract_evenv4hi): Ditto.
18513         (vec_extract_oddv4hi): Ditto.
18514         (vec_extract_evenv2si): Ditto.
18515         (vec_extract_oddv2si): Ditto.
18516         (vec_extract_evenv2sf): Ditto.
18517         (vec_extract_oddv2sf): Ditto.
18518         (vec_pack_trunc_v4hi: Ditto.
18519         (vec_pack_trunc_v2si): Ditto.
18520         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18521         (vec_interleave_highv8qi): Ditto.
18522         (mix1_r): Ditto.
18523         (vec_extract_oddv8qi): Ditto.
18524         (vec_interleave_lowv4hi): Ditto.
18525         (vec_interleave_highv4hi): Ditto.
18526         (vec_interleave_lowv2si): Ditto.
18527         (vec_interleave_highv2si): Ditto.
18528
18529 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18530
18531         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18532         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18533         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
18534         (pa_c_mode_for_suffix): New.
18535         (TARGET_EXPAND_BUILTIN): Define.
18536         (TARGET_C_MODE_FOR_SUFFIX): Define.
18537         (pa_builtins): Define.
18538         (pa_init_builtins): Register __float128 type and init new support
18539         builtins.
18540         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18541         * config/pa/quadlib.c (_U_Qfcopysign): New.
18542
18543 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
18544
18545         PR middle-end/46894
18546         * explow.c (allocate_dynamic_stack_space): Do not assume more than
18547         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18548         are defined.
18549
18550 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18551
18552         PR tree-optimization/47179
18553         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18554         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18555
18556 2011-01-18  Richard Guenther  <rguenther@suse.de>
18557
18558         PR rtl-optimization/47216
18559         * emit-rtl.c: Include tree-flow.h.
18560         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18561         of replicating it with different semantics.
18562         * Makefile.in (emit-rtl.o): Adjust.
18563
18564 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18565
18566         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18567         (cortex_a9_dp): Handle neon types correctly.
18568
18569 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
18570
18571         PR rtl-optimization/47299
18572         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18573         subtarget.  Use normal multiplication if both operands are constants.
18574         * expmed.c (expand_widening_mult): Don't try to optimize constant
18575         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
18576         before using it.
18577
18578 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18579
18580         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
18581         spacing after 'e.g.', typos, comma, hyphenation.
18582
18583 2011-01-17  Richard Henderson  <rth@redhat.com>
18584
18585         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18586         (rx_restricted_mem_operand): New.
18587         (rx_shift_operand): Use register_operand.
18588         (rx_source_operand, rx_compare_operand): Likewise.
18589         * config/rx/rx.md (addsi3_flags): New expander.
18590         (adddi3): Rewrite as expander.
18591         (adc_internal, *adc_flags, adddi3_internal): New patterns.
18592         (subsi3_flags): New expander.
18593         (subdi3): Rewrite as expander.
18594         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18595
18596         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18597         (rx_init_builtins): Remove sat builtin.
18598         (rx_expand_builtin): Likewise.
18599         * config/rx/rx.md (ssaddsi3): New.
18600         (*sat): Rename from sat.  Represent the CC_REG input.
18601
18602         * config/rx/predicates.md (rshift_operator): New.
18603         * config/rx/rx.c (rx_expand_insv): Remove.
18604         * config/rx/rx-protos.h: Update.
18605         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
18606         operand to the canonical position.
18607         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18608         (*bitclr, *bitclr_in_memory): Similarly.
18609         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18610         (insv): Retain the zero_extract in the expansion.
18611
18612         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18613         (bswaphi2, bitinvert, revw): Likewise.
18614
18615         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18616         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18617         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18618         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18619         (bitset, bitset_in_memory): Likewise.
18620         (bitinvert, bitinvert_in_memory): Likewise.
18621         (bitclr, bitclr_in_memory): Likewise.
18622         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18623         (rx_strend, rx_cmpstrn): Likewise.
18624         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
18625         (bitop peep2 patterns): Remove.
18626
18627         * config/rx/rx.c (rx_match_ccmode): New.
18628         * config/rx/rx-protos.h: Update.
18629         * config/rx/rx.md (abssi2): Clobber, don't set flags.
18630         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18631         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18632         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18633         (fix_truncsfsi2, floatsisf2): Likewise.
18634         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18635         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18636         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18637         (*subsi3_flags, *xorsi3_flags): New.
18638
18639         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18640
18641         * config/rx/rx.c (rx_print_operand): Remove workaround for
18642         unsplit comparison operations.
18643
18644         * config/rx/rx.md (movsicc): Split after reload.
18645         (*movsicc): Merge *movsieq and *movsine via match_operator.
18646         (*stcc): New pattern.
18647
18648         * config/rx/rx.c (rx_float_compare_mode): Remove.
18649         * config/rx/rx.h (rx_float_compare_mode): Remove.
18650         * config/rx/rx.md (cstoresi4): Split after reload.
18651         (*sccc): New pattern.
18652
18653         * config/rx/predicates.md (label_ref_operand): New.
18654         (rx_z_comparison_operator): New.
18655         (rx_zs_comparison_operator): New.
18656         (rx_fp_comparison_operator): New.
18657         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18658         Validate that the flags are set properly for the comparison.
18659         (rx_gen_cond_branch_template): Remove.
18660         (rx_cc_modes_compatible): Remove.
18661         (mode_from_flags): New.
18662         (flags_from_code): Rename from flags_needed_for_conditional.
18663         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18664         (rx_select_cc_mode): Likewise.
18665         (rx_split_fp_compare): New.
18666         (rx_split_cbranch): New.
18667         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18668         (*cbranchsi4): Use match_operator and rx_split_cbranch.
18669         (*cbranchsf4): Similarly.
18670         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
18671         match_operator and rx_split_cbranch.
18672         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18673         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
18674         (*cmpsi): Rename from cmpsi.
18675         (*tstsi): Rename from tstsi.
18676         (*cmpsf): Rename from cmpsf; use CC_Fmode.
18677         (*conditional_branch): Rename from conditional_branch.
18678         (*reveresed_conditional_branch): Remove.
18679         (b<code>): Remove expander.
18680         * config/rx/rx-protos.h: Update.
18681
18682         * config/rx/rx.c (rx_compare_redundant): Remove.
18683         * config/rx/rx.md (cmpsi): Don't use it.
18684         * config/rx/rx-protos.h: Update.
18685
18686         * config/rx/rx-modes.def (CC_F): New mode.
18687         * config/rx/rx.c (rx_select_cc_mode): New.
18688         * config/rx/rx.h (SELECT_CC_MODE): Use it.
18689         * config/rx/rx-protos.h: Update.
18690
18691 2011-01-17  Richard Henderson  <rth@redhat.com>
18692
18693         * except.c (dump_eh_tree): Fix stray ; after for statement.
18694
18695 2011-01-17  Richard Guenther  <rguenther@suse.de>
18696
18697         PR tree-optimization/47313
18698         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18699         handling before copying the body.  Properly deal with
18700         by-reference result in SSA form.
18701
18702 2011-01-17  Ian Lance Taylor  <iant@google.com>
18703
18704         PR target/47219
18705         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18706         (struct_value_alias_set): Don't define.
18707         (sparc_option_override): Don't set sparc_sr_alias_set and
18708         struct_value_alias_set.
18709         (save_or_restore_regs): Use gen_frame_mem rather than calling
18710         set_mem_alias_set.
18711         (sparc_struct_value_rtx): Likewise.
18712
18713 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18714
18715         PR target/47318
18716         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18717         (_mm_maskstore_pd): Likewise.
18718         (_mm_maskload_ps): Likewise.
18719         (_mm_maskstore_ps): Likewise.
18720         (_mm256_maskload_pd): Change mask to __m256i.
18721         (_mm256_maskstore_pd): Likewise.
18722         (_mm256_maskload_ps): Likewise.
18723         (_mm256_maskstore_ps): Likewise.
18724
18725         * config/i386/i386-builtin-types.def: Updated.
18726         (ix86_expand_special_args_builtin): Likewise.
18727
18728         * config/i386/i386.c (bdesc_special_args): Update
18729         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18730         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18731         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18732         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18733
18734         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18735         Use <avxpermvecmode> on mask register.
18736         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18737
18738 2011-01-17  Olivier Hainque  <hainque@adacore.com>
18739             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18740             Eric Botcazou  <ebotcazou@adacore.com>
18741
18742         PR target/46655
18743         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18744         if <= USHRT_MAX in 32-bit mode.
18745
18746 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18747
18748         * doc/install.texi (Configuration, Specific): Wrap long
18749         lines in examples.  Allow line wrapping in long options
18750         and URLs where beneficial for PDF output.
18751
18752 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
18753
18754         * config/mips/mips.c (mips_classify_symbol): Don't return
18755         SYMBOL_PC_RELATIVE for nonlocal labels.
18756
18757 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
18758
18759         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18760
18761 2011-01-15  Jan Hubicka  <jh@suse.cz>
18762
18763         PR tree-optimization/47276
18764         * ipa.c (function_and_variable_visibility): Do not try to mark alias
18765         declarations as needed.
18766
18767 2011-01-15  Martin Jambor  <mjambor@suse.cz>
18768
18769         * common.opt (fdevirtualize): New flag.
18770         * doc/invoke.texi (Option Summary): Document it.
18771         * opts.c (default_options_table): Add devirtualize flag.
18772         * ipa-prop.c (detect_type_change): Return immediately if
18773         devirtualize flag is not set.
18774         (detect_type_change_ssa): Likewise.
18775         (compute_known_type_jump_func): Likewise.
18776         (ipa_analyze_virtual_call_uses): Likewise.
18777
18778 2011-01-14  Martin Jambor  <mjambor@suse.cz>
18779
18780         PR tree-optimization/45934
18781         PR tree-optimization/46302
18782         * ipa-prop.c (type_change_info): New type.
18783         (stmt_may_be_vtbl_ptr_store): New function.
18784         (check_stmt_for_type_change): Likewise.
18785         (detect_type_change): Likewise.
18786         (detect_type_change_ssa): Likewise.
18787         (compute_complex_assign_jump_func): Check for dynamic type change.
18788         (compute_complex_ancestor_jump_func): Likewise.
18789         (compute_known_type_jump_func): Likewise.
18790         (compute_scalar_jump_functions): Likewise.
18791         (ipa_analyze_virtual_call_uses): Likewise.
18792         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18793
18794 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18795
18796         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18797         * config/i386/i386.opt (msse5): New Alias.
18798
18799 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18800
18801         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18802         * config/sparc/linux64.h (CC1_SPEC): Likewise.
18803         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18804         * config/sparc/sparc.h (CC1_SPEC): Likewise.
18805
18806 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18807
18808         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18809         -mcpu options.
18810         * config/sparc/linux64.h (CC1_SPEC): Likewise.
18811         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18812         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18813         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18814         Likewise.
18815         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18816
18817 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18818
18819         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18820
18821 2011-01-14  Mike Stump  <mikestump@comcast.net>
18822
18823         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18824         * config/fr30/fr30.md: Likweise
18825         (movsi_push): Likewise.
18826         (movsi_pop): Likewise.
18827         (enter_func): Likewise.
18828         * config/moxie/moxie.md (movsi_push): Likewise.
18829         (movsi_pop): Likewise.
18830
18831 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18832
18833         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18834         %{no_archive} %{exact_version}.
18835         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18836         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18837         %{no_archive} %{exact_version}.
18838         * config/mips/openbsd.h (LINK_SPEC): Likewise.
18839         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18840         * config/mips/vxworks.h: Likewise.
18841
18842 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18843
18844         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
18845
18846 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18847
18848         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18849         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18850
18851 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18852
18853         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18854         -nodefaultlib.
18855
18856 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18857
18858         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18859         for mcpu not cpu.
18860         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18861         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18862         not cpu.
18863         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18864         Don't handle -shlib.
18865
18866 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18867
18868         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18869         (CC1_SPEC): Don't handle -profile.
18870
18871 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18872
18873         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18874         * config/mips/mips.h (CC1_SPEC): Likewise.
18875
18876 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18877
18878         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18879         * config/mips/mips.h (CC1_SPEC): Likewise.
18880
18881 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18882
18883         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18884         * config/m32r/linux.h (LINK_SPEC): Likewise.
18885         * config/mips/linux.h (LINK_SPEC): Likewise.
18886         * config/mips/linux64.h (LINK_SPEC): Likewise.
18887         * config/sparc/linux.h (LINK_SPEC): Likewise.
18888         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18889         LINK_SPEC): Likewise.
18890         * config/xtensa/linux.h (LINK_SPEC): Likewise.
18891
18892 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18893
18894         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18895         %{version:-v}.
18896         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18897
18898 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18899
18900         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18901         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18902
18903 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18904
18905         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18906
18907 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18908
18909         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18910         supports -Bstatic/-Bdynamic.
18911         * configure: Regenerate.
18912
18913 2011-01-14  Jan Hubicka  <jh@suse.cz>
18914             Jack Howarth  <howarth@bromo.med.uc.edu>
18915
18916         PR target/46037
18917         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18918         when checking debug_info_level. Test write_symbols instead of
18919         debug_hooks->var_location when setting flag_var_tracking_uninit.
18920
18921 2011-01-14  Richard Guenther  <rguenther@suse.de>
18922
18923         PR tree-optimization/47179
18924         * target.def (ref_may_alias_errno): New target hook.
18925         * targhooks.h (default_ref_may_alias_errno): Declare.
18926         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18927         (default_ref_may_alias_errno): New function.
18928         * target.h (struct ao_ref_s): Declare.
18929         * tree-ssa-alias.c: Include target.h.
18930         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18931         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18932         (targhooks.o): Likewise.
18933         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18934         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18935
18936 2011-01-14  Richard Guenther  <rguenther@suse.de>
18937
18938         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
18939
18940 2011-01-14  Richard Guenther  <rguenther@suse.de>
18941
18942         PR tree-optimization/47280
18943         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18944         return CFG changes.
18945         (tree_ssa_forward_propagate_single_use_vars): Deal with
18946         CFG changes from associate_plusminus.
18947
18948 2011-01-14  Richard Guenther  <rguenther@suse.de>
18949
18950         PR middle-end/47281
18951         Revert
18952         2011-01-11  Richard Guenther  <rguenther@suse.de>
18953
18954         PR tree-optimization/46076
18955         * tree-ssa.c (useless_type_conversion_p): Conversions from
18956         unprototyped to empty argument list function types are useless.
18957
18958 2011-01-14  Richard Guenther  <rguenther@suse.de>
18959
18960         PR tree-optimization/47286
18961         * tree-ssa-structalias.c (new_var_info): Register variables are global.
18962
18963 2011-01-14  Martin Jambor  <mjambor@suse.cz>
18964
18965         PR middle-end/46823
18966         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18967
18968 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
18969
18970         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18971         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18972         * config/xtensa/xtensa.c (xtensa_libcall_value,
18973         xtensa_function_value_regno_p): New functions.
18974         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18975
18976 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
18977
18978         PR c++/47213
18979         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18980         PE specific hook.
18981         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18982         New function prototype.
18983         * config/i386/winnt.c (i386_pe_assemble_visibility):
18984         Warn only if attribute was specified by user.
18985
18986 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18987
18988         PR target/47251
18989         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18990         floating point.
18991         (floatunsdidf2_fcfidu): Ditto.
18992
18993 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18994
18995         * config/s390/s390.c (print_operand_address): Replace 'error' with
18996         'output_operand_lossage'.
18997         (print_operand): Likewise.
18998
18999 2011-01-13  Jeff Law  <law@redhat.com>
19000
19001         PR rtl-optimization/39077
19002         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19003         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19004         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19005         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19006         * gcse.c (prune_insertions_deletions): New function.
19007         (compute_pre_data): Use it.
19008
19009 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
19010
19011         PR debug/PR46973
19012         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19013         static function.
19014         (prune_unused_types_mark): Use it.
19015
19016 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
19017
19018         PR rtl-optimization/45352
19019         * sel-sched.c: Update copyright years.
19020         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19021         in the advancing loop when we have issued issue_rate insns.
19022
19023 2011-01-12  Richard Henderson  <rth@redhat.com>
19024
19025         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19026         (TARGET_MD_ASM_CLOBBERS): New.
19027
19028         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19029         (TARGET_DELEGITIMIZE_ADDRESS): New.
19030
19031         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19032         (clzsi2, *bsch): New patterns.
19033
19034         * config/mn10300/mn10300.md (INT): New mode iterator.
19035         (*mov<INT>_clr): New pattern, and peep2 to generate it.
19036
19037         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19038         flag_split_wide_types.
19039
19040         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19041         (mn10300_trampoline_init): Rewrite without a template, an immediate
19042         load and a direct branch.
19043         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19044
19045 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
19046
19047         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19048         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19049         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19050         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19051
19052 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
19053
19054         PR debug/47209
19055         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19056         of type.
19057
19058 2011-01-12  Jan Hubicka  <jh@suse.cz>
19059
19060         PR driver/47244
19061         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19062         (PLUGIN_COND_CLOSE): New macro.
19063         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19064
19065 2011-01-12  Richard Guenther  <rguenther@suse.de>
19066
19067         PR lto/47259
19068         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19069         register variables in a MEM_REF.
19070
19071 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
19072
19073         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19074         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19075         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19076         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19077         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19078         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19079         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19080         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19081         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19082         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19083         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19084         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19085         * config/gnu-user.h: New.  Copied from linux.h.
19086         (LINUX_TARGET_STARTFILE_SPEC): Rename to
19087         GNU_USER_TARGET_STARTFILE_SPEC.
19088         (LINUX_TARGET_ENDFILE_SPEC): Rename to
19089         GNU_USER_TARGET_ENDFILE_SPEC.
19090         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19091         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19092         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19093         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19094         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19095         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19096         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19097         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19098         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19099         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19100         * config/arm/linux-eabi.h (CC1_SPEC): Use
19101         GNU_USER_TARGET_CC1_SPEC.
19102         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19103         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19104         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19105         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19106         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19107         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19108         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19109         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19110
19111 2011-01-12  Richard Guenther  <rguenther@suse.de>
19112
19113         PR other/46946
19114         * doc/invoke.texi (ffast-math): Document it is turned on
19115         with -Ofast.
19116
19117 2011-01-12  Jan Hubicka  <jh@suse.cz>
19118
19119         PR tree-optimization/47233
19120         * opts.c (common_handle_option): Disable ipa-reference with profile
19121         feedback.
19122
19123 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19124
19125         * c-parser.c (c_parser_objc_at_property_declaration): Improved
19126         error message.
19127
19128 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19129
19130         * c-parser.c (c_lex_one_token): Updated and reindented some
19131         comments.  No changes in code.
19132
19133 2011-01-11  Ian Lance Taylor  <iant@google.com>
19134
19135         * godump.c (go_output_var): Don't output the variable if there is
19136         already a type with the same name.
19137
19138 2011-01-11  Ian Lance Taylor  <iant@google.com>
19139
19140         * godump.c (go_format_type): Don't generate float80.
19141
19142 2011-01-11  Richard Henderson  <rth@redhat.com>
19143
19144         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19145         declaration.  Rewrite for both speed and size.
19146         (mn10300_address_cost_1): Remove.
19147         (mn10300_register_move_cost): New.
19148         (mn10300_memory_move_cost): New.
19149         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
19150         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
19151         extensions, shifts, BSWAP, CLZ.
19152         (mn10300_wide_const_load_uses_clr): Remove.
19153         (TARGET_REGISTER_MOVE_COST): New.
19154         (TARGET_MEMORY_MOVE_COST): New.
19155         * config/mn10300/mn10300-protos.h: Update.
19156         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19157
19158         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19159         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19160         * config/mn10300/mn10300-protos.h: Update.
19161         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19162         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19163         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19164         (*test_int_bitfield, *test_byte_bitfield): Remove.
19165         (*bit_test, *subreg_bit_test): Remove.
19166         * config/mn10300/predicates.md (const_8bit_operand): Remove.
19167
19168         * config/mn10300/constraints.md ("c"): Rename from "A".
19169         ("A", "D"): New constraint letters.
19170         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19171         (fmssf4, fnmasf4, fnmssf4): Likewise.
19172
19173         * config/mn10300/mn10300.md (isa): New attribute.
19174         (enabled): New attribute.
19175
19176         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19177         (abssf2, negsf2): Define only for hardware fp.
19178         (sqrtsf2): Reformat.
19179         (addsf3, subsf3, mulsf3): Merge expander and insn.
19180
19181         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19182         (DEBUGGER_AUTO_OFFSET): Remove.
19183         (DEBUGGER_ARG_OFFSET): Remove.
19184
19185         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19186         Emit register stores with the same offsets as the hardware.
19187         (mn10300_store_multiple_operation): Don't check that the register
19188         save offsets are monotonic.
19189         * config/mn10300/mn10300-protos.h: Update.
19190
19191         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19192
19193         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19194         in terms of the value on the stack, not the MDR register.
19195
19196 2011-01-11  Jan Hubicka  <jh@suse.cz>
19197
19198         PR lto/45721
19199         PR lto/45375
19200         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19201         (symbol_alias_set_destroy, symbol_alias_set_contains,
19202         propagate_aliases_backward): Declare.
19203         * lto-streamer-out.c (struct sets): New sturcture.
19204         (trivally_defined_alias): New function.
19205         (output_alias_pair_p): Rewrite.
19206         (output_unreferenced_globals): Fix output of alias pairs.
19207         (produce_symtab): Likewise.
19208         * ipa.c (function_and_variable_visibility): Set weak alias destination
19209         as needed in lto.
19210         * varasm.c (symbol_alias_set_t): Remove.
19211         (symbol_alias_set_destroy): Export.
19212         (propagate_aliases_forward, propagate_aliases_backward): New functions
19213         based on ...
19214         (compute_visible_aliases): ... this one; remove.
19215         (trivially_visible_alias): New
19216         (trivially_defined_alias): New.
19217         (remove_unreachable_alias_pairs): Rewrite.
19218         (finish_aliases_1): Reorganize code checking if alias is defined.
19219         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19220         in LTO mode.
19221
19222 2011-01-11  Richard Guenther  <rguenther@suse.de>
19223
19224         PR tree-optimization/46076
19225         * tree-ssa.c (useless_type_conversion_p): Conversions from
19226         unprototyped to empty argument list function types are useless.
19227
19228 2011-01-11  Richard Guenther  <rguenther@suse.de>
19229
19230         PR middle-end/45235
19231         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19232         volatile MEMs as MEM_READONLY_P.
19233
19234 2011-01-11  Richard Guenther  <rguenther@suse.de>
19235
19236         PR tree-optimization/47239
19237         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19238
19239 2011-01-11  Jeff Law  <law@redhat.com>
19240
19241         PR tree-optimization/47086
19242         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19243         IVs from statements that might throw.
19244
19245 2011-01-10  Jan Hubicka  <jh@suse.cz>
19246
19247         PR lto/45375
19248         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19249
19250 2011-01-10  Jan Hubicka  <jh@suse.cz>
19251
19252         PR lto/45375
19253         * profile.c (read_profile_edge_counts): Ignore profile inconistency
19254         when correcting profile.
19255
19256 2011-01-10  Jan Hubicka  <jh@suse.cz>
19257
19258         PR lto/46083
19259         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19260         DECL_FINI_PRIORITY.
19261         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19262         Restore DECL_FINI_PRIORITY.
19263
19264 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19265
19266         * doc/gimple.texi: Fix quoting of multi-word return values in
19267         @deftypefn statements.  Ensure presence of return value.  Wrap
19268         overlong @deftypefn lines.
19269         (is_gimple_operand, is_gimple_min_invariant_address): Remove
19270         descriptions of removed functions.
19271         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19272         of multi-word return value in @deftypefn statement.
19273
19274 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19275
19276         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19277         (Conditional Expressions, Logical Operators)
19278         (Statement and operand traversals): Do not indent smallexample
19279         code.  Fix duplicate function argument in example.
19280
19281 2011-01-10  Jeff Law  <law@redhat.com>
19282
19283         PR tree-optimization/47141
19284         * ipa-split.c (split_function): Handle case where we are
19285         returning a value and the return block has a virtual operand phi.
19286
19287 2011-01-10  Jan Hubicka  <jh@suse.cz>
19288
19289         PR tree-optimization/47234
19290         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19291         (pass_feedback_split_functions): Declare.
19292         * passes.c (init_optimization_passes): Add ipa-split as subpass of
19293         tree-profile.
19294         * ipa-split.c (gate_split_functions): Update comments; disable
19295         split-functions for profile_arc_flag and branch_probabilities.
19296         (gate_feedback_split_functions): New function.
19297         (execute_feedback_split_functions): New function.
19298         (pass_feedback_split_functions): New global var.
19299
19300 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
19301
19302         PR lto/46760
19303         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19304         calling gimple_call_set_cannot_inline.
19305
19306 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
19307
19308         * config/darwin-sections.def: Remove unused section.
19309
19310 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
19311
19312         PR c++/47218
19313         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19314
19315 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
19316
19317         PR objc/47232
19318         * c-parser.c (c_parser_declaration_or_fndef): Improved
19319         error message.
19320
19321 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
19322
19323         * config/i386/winnt.c (i386_pe_start_function): Make sure
19324         to switch back to function's section.
19325
19326 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
19327
19328         PR gcc/46902
19329         PR testsuite/46912
19330         * plugin.c: Move include of dlfcn.h from here...
19331         * system.h: ... to here.
19332
19333 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19334
19335         * doc/cpp.texi (C++ Named Operators): Fix markup for header
19336         file name.
19337         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19338         two extra empty pages in PDF output.
19339
19340 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
19341
19342         PR objc/47078
19343         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19344         for error recovery purposes behave as if it was not specified so
19345         that the default type is usd.
19346
19347 2011-01-07  Jan Hubicka  <jh@suse.cz>
19348
19349         PR tree-optmization/46469
19350         * ipa.c (function_and_variable_visibility): Clear needed flags on
19351         nodes with external decls; handle weakrefs merging correctly.
19352
19353 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
19354
19355         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19356         not false.
19357
19358 2011-01-07  Jan Hubicka  <jh@suse.cz>
19359
19360         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19361         and no longer claim that gold is required for linker plugin.
19362         * configure: Regenerate.
19363         * gcc.c (PLUGIN_COND): New macro.
19364         (LINK_COMMAND_SPEC): Use it.
19365         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19366         * config.in (HAVE_LTO_PLUGIN): New.
19367         * configure.ac (--with-lto-plugin): New parameter; autodetect
19368         HAVE_LTO_PLUGIN.
19369
19370 2011-01-07  Jan Hubicka  <jh@suse.cz>
19371
19372         PR tree-optimization/46367
19373         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19374         when we can update original.
19375         (cgraph_mark_inline_edge): Sanity check.
19376         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19377
19378 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19379
19380         * config/spu/spu.h (ASM_COMMENT_START): Define.
19381
19382 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19383
19384         PR driver/42445
19385         * gcc.c (%>S): New.
19386         (SWITCH_KEEP_FOR_GCC): Likewise.
19387         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19388         (do_spec_1): Handle "%>".
19389
19390         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19391
19392 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
19393
19394         PR target/47201
19395         * config/i386/i386.c (ix86_delegitimize_address): If
19396         simplify_gen_subreg fails, return orig_x.
19397
19398         PR bootstrap/47187
19399         * value-prof.c (gimple_stringop_fixed_value): Handle
19400         lhs of the call properly.
19401
19402 2011-01-07  Jan Hubicka  <jh@suse.cz>
19403
19404         PR lto/45375
19405         * lto-opt.c (lto_reissue_options): Set flag_shlib.
19406
19407 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19408
19409         * target.def (function_switched_text_sections): New hook.
19410         * doc/tm.texi: Regenerated.
19411         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19412         * final.c (default_function_switched_text_sections): New.
19413         (final_scan_insn): Call function_switched_text_sections when a
19414         mid-function section change occurs.
19415         * output.h (default_function_switched_text_sections): Declare.
19416         * config/darwin-protos.h (darwin_function_switched_text_sections):
19417         Likewise.
19418         * config/darwin.c (darwin_function_switched_text_sections): New.
19419         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19420
19421 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19422
19423         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
19424         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
19425         the secondary code fragment when outputting for DWARF == 2.
19426
19427 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
19428
19429         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19430         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19431         Remove.
19432         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19433         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19434
19435 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
19436
19437         PR debug/46704
19438         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19439         when it is not empty.
19440
19441 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
19442
19443         Bobcat Enablement
19444         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19445         (case ${target}): Add btver1.
19446         * config/i386/driver-i386.c (host_detect_local_cpu): Let
19447         -march=native recognize btver1 processors.
19448         * config/i386/i386-c.c (ix86_target_macros_internal): Add
19449         btver1 def_and_undef
19450         * config/i386/i386.c (struct processor_costs btver1_cost): New
19451         btver1 cost table.
19452         (m_BTVER1): New definition.
19453         (m_AMD_MULTIPLE): Includes m_BTVER1.
19454         (initial_ix86_tune_features): Add btver1 tune.
19455         (processor_target_table): Add btver1 entry.
19456         (static const char *const cpu_names): Add btver1 entry.
19457         (software_prefetching_beneficial_p): Add btver1.
19458         (ix86_option_override_internal): Add btver1 instruction sets.
19459         (ix86_issue_rate): Add btver1.
19460         (ix86_adjust_cost): Add btver1.
19461         * config/i386/i386.h (TARGET_BTVER1): New definition.
19462         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19463         (enum processor_type): Add PROCESSOR_BTVER1.
19464         * config/i386/i386.md (define_attr "cpu"): Add btver1.
19465
19466 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19467
19468         PR target/43309
19469         * config/i386/i386.c (legitimize_tls_address)
19470         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19471         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19472         (tls_initial_exec_64_sun): New pattern.
19473
19474 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
19475
19476         * doc/invoke.texi (Overall Options): Improve wording and markup
19477         of the description of -wrapper.
19478
19479 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19480
19481         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19482         rdynamic, threads): New Driver options.
19483
19484 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19485
19486         PR target/38118
19487         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19488         if coming from .tdata.
19489         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19490
19491 2011-01-06  Jan Hubicka  <jh@suse.cz>
19492
19493         PR lto/47188
19494         * collect2.c (main): Do not enable LTOmode when plugin is active.
19495
19496 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19497
19498         PR other/45915
19499         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19500         --version output if supported.
19501         * configure: Regenerate.
19502
19503 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19504
19505         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19506         Driver options.
19507
19508 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
19509
19510         PR c/47150
19511         * c-convert.c (convert): When converting a complex expression
19512         other than COMPLEX_EXPR to a different complex type, ensure
19513         c_save_expr is called instead of save_expr, unless in_late_binary_op.
19514         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19515         when converting COMPLEX_TYPE.
19516
19517 2011-01-06  Ira Rosen  <irar@il.ibm.com>
19518
19519         PR tree-optimization/47139
19520         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19521         only the last reduction value is used outside the loop.  Update
19522         documentation.
19523
19524 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
19525
19526         * config/rtems.opt: New.
19527         * config.gcc (*-*-rtems*): Use rtems.opt.
19528
19529 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
19530
19531         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19532         processors do not support 3DNow instructions.
19533
19534 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19535
19536         * config/spu/spu.c (spu_option_override): Set parameter
19537         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19538
19539 2011-01-05  Jan Hubicka  <jh@suse.cz>
19540
19541         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19542         at the command line.
19543
19544 2011-01-05  Martin Jambor  <mjambor@suse.cz>
19545
19546         PR lto/47162
19547         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19548         deltas on streamed outgoing edges.
19549         (output_node_opt_summary): Output info for outgoing edges only when
19550         the node is in new parameter set.
19551         (output_cgraph_opt_summary): New parameter set, passed to the two
19552         aforementioned functions.  Update its forward declaration and its
19553         callee too.
19554
19555 2011-01-05  Tom Tromey  <tromey@redhat.com>
19556
19557         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19558         operator to c_finish_omp_atomic.
19559         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19560         (build_unary_op): Update.
19561         (build_modify_expr): Update.
19562         (build_asm_expr): Update.
19563
19564 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19565
19566         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19567         newly inserted insns.
19568         (pad_bb): Likewise.
19569         (spu_emit_branch_hint): Likewise.
19570         (insert_hbrp_for_ilb_runout): Likewise.
19571         (spu_machine_dependent_reorg): Call df_finish_pass after
19572         schedule_insns returns.
19573
19574 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19575
19576         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19577
19578 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
19579
19580         PR tree-optimization/47005
19581         * tree-sra.c (struct access): Add 'non_addressable' bit.
19582         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19583         (decide_one_param_reduction): Return 0 if the parameter is passed by
19584         reference and one of the accesses in the group is non_addressable.
19585
19586 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19587
19588         PR tree-optimization/47056
19589         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19590         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
19591         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
19592
19593 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19594
19595         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19596         initializer.  Skip view conversions from aggregate types.
19597
19598 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
19599
19600         PR bootstrap/47055
19601         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19602
19603 2011-01-04  Philipp Thomas  <pth@suse.de>
19604
19605         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19606         obvious typo.
19607
19608 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19609
19610         * function.c (thread_prologue_and_epilogue_insns): Do not crash
19611         on empty epilogue sequences.
19612
19613 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
19614
19615         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19616         non-static): New Driver options.
19617
19618 2011-01-04  Jie Zhang  <jie@codesourcery.com>
19619
19620         PR driver/47137
19621         * gcc.c (default_compilers[]): Set combinable field to 0
19622         for all assembly languages.
19623
19624 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
19625
19626         * config/mips/loongson3a.md: New file.
19627         * config/mips/mips.md: Include loongson3a.md.
19628         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19629         TUNE_LOONGSON_3A.
19630
19631 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
19632
19633         PR middle-end/47017
19634         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19635         instead of convert_memory_address_addr_space on the base expression.
19636
19637 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19638
19639         * config/spu/spu.c (spu_option_override): Update error text
19640         for bad -march= / -mtune= values.
19641
19642 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19643
19644         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19645         if branch-hint optimization will be performed.
19646
19647 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19648
19649         PR tree-optimization/47148
19650         * ipa-split.c (split_function): Convert arguments to
19651         DECL_ARG_TYPE if possible.
19652
19653         PR tree-optimization/47155
19654         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19655         when computing uns.
19656
19657         PR rtl-optimization/47157
19658         * combine.c (try_combine): If undobuf.other_insn becomes
19659         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19660         and set *new_direct_jump_p too.
19661
19662 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
19663
19664         PR tree-optimization/47021
19665         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19666
19667 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19668
19669         * gcc.c (process_command): Update copyright notice dates.
19670         * gcov.c (print_version): Likewise.
19671         * gcov-dump.c (print_version): Likewise.
19672         * mips-tfile.c (main): Likewise.
19673         * mips-tdump.c (main): Likewise.
19674
19675 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19676
19677         PR tree-optimization/46801
19678         * tree-sra.c (type_internals_preclude_sra_p): Check whether
19679         aggregate fields start at byte boundary instead of the bit-field flag.
19680
19681 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19682
19683         PR driver/47137
19684         * gcc.c (main): Revert revision 168407.
19685
19686 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19687
19688         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19689
19690 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19691
19692         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19693         vector optab to expand vector/scalar shift, update gimple to vector.
19694
19695 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19696
19697         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19698         a thunk.
19699
19700 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19701
19702         PR tree-optimization/46984
19703         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19704         HOST_WIDE_INT.
19705         (cgraph_create_indirect_edge): Fixed line length.
19706         (cgraph_indirect_call_info): Declare.
19707         (cgraph_make_edge_direct) Update declaration.
19708         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19709         (cgraph_create_indirect_edge): Use it.
19710         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
19711         callees.
19712         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19713         the new thunk_delta representation.
19714         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19715         HOST_WIDE_INT.
19716         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19717         (ipa_read_indirect_edge_info): Likewise.
19718         * lto-cgraph.c (output_edge_opt_summary): New function.
19719         (output_node_opt_summary): Call it on all outgoing edges.
19720         (input_edge_opt_summary): New function.
19721         (input_node_opt_summary): Call it on all outgoing edges.
19722
19723 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
19724
19725         PR driver/47137
19726         * gcc.c (main): Don't check have_o when settting combine_inputs.
19727
19728 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
19729
19730         * regrename.c: Add general comment describing the pass.
19731         (struct du_head): Remove 'length' field.
19732         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19733         (regrename_optimize): Do not sort chains.  Rework comments, add others.
19734         Force renaming to the preferred class (if any) in the first pass and do
19735         not consider registers that belong to it in the second pass.
19736         (create_new_chain): Do not set 'length' field.
19737         (scan_rtx_reg): Likewise.
19738
19739 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
19740
19741         PR tree-optimization/47140
19742         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19743         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19744         to bit_value_binop.
19745
19746         PR rtl-optimization/47028
19747         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19748         parm_birth_insn instead of at the beginning of first bb.
19749
19750 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
19751
19752         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19753         Remove the word "see" before "@pxref".
19754         * doc/rtl.texi: Remove the word "see" before "@pxref".
19755
19756 2011-01-01  Jan Hubicka  <jh@suse.cz>
19757
19758         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19759         memory.
19760
19761 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
19762
19763         PR target/38662
19764         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19765
19766 \f
19767 Copyright (C) 2011 Free Software Foundation, Inc.
19768
19769 Copying and distribution of this file, with or without modification,
19770 are permitted in any medium without royalty provided the copyright
19771 notice and this notice are preserved.