tree.c (build_zero_cst): New.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2010-09-13  Jan Hubicka  <jh@suse.cz>
2
3         * tree.c (build_zero_cst): New.
4         * tree.h (build_zero_cst): Declare.
5         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
6         (get_base_constructor): Break out from ...
7         (fold_const_aggregate_ref): Here; handle empty constructors.
8
9 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10
11         * config/arm/arm.md: (define_attr "conds"): Update comment.
12         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change 
13         conds attribute to clob.
14         (arm_sync_compare_and_swapsi): Likewise.
15         (arm_sync_compare_and_swap<mode>): Likewise.
16         (arm_sync_lock_test_and_setsi): Likewise.
17         (arm_sync_lock_test_and_set<mode>): Likewise.
18         (arm_sync_new_<sync_optab>si): Likewise.
19         (arm_sync_new_nandsi): Likewise.
20         (arm_sync_new_<sync_optab><mode>): Likewise.
21         (arm_sync_new_nand<mode>): Likewise.
22         (arm_sync_old_<sync_optab>si): Likewise.
23         (arm_sync_old_nandsi): Likewise.
24         (arm_sync_old_<sync_optab><mode>): Likewise.
25         (arm_sync_old_nand<mode>): Likewise.
26
27 2010-09-13  Olivier Hainque  <hainque@adacore.com>
28
29         * fwprop.c (forward_propagate_and_simplify): Only attach a
30         REG_EQUAL note to an insn if the destination is a register.
31         * gcse.c (try_replace_reg): Likewise.
32
33 2010-09-13  Richard Guenther  <rguenther@suse.de>
34
35         PR tree-optimization/45611
36         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
37         (copy_ref_info): Likewise.
38
39 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
40
41         PR debug/45604
42         PR debug/45419
43         PR debug/45408
44         * tree-pretty-print.c (dump_generic_node): Disregard top-level
45         types of MEM_REF pointer types to the same type.
46
47 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
48
49         PR rtl-optimization/41087
50         * ifcvt.c (noce_get_condition): Don't allow conditions with
51         side-effects.
52
53 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
54
55         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
56         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
57         * config/frv/frv.c (frv_register_move_cost): Make static. Change
58         arguments type to reg_class_t. Add mode argument.
59         (frv_memory_move_cost): New.
60         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
61
62 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
63
64         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
65         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
66
67 2010-09-10  Jan Hubicka  <jh@suse.cz>
68
69         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
70
71 2010-09-10  Richard Guenther  <rguenther@suse.de>
72
73         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
74         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
75         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
76         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
77         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
78
79 2010-09-10  Richard Guenther  <rguenther@suse.de>
80
81         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
82         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
83         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
84         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
85
86 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
87
88         PR middle-end/45634
89         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
90         of string folding is of integral type.
91
92 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
93
94         * doc/invoke.texi (-x): Fix typo.
95
96 2010-09-10  Richard Guenther  <rguenther@suse.de>
97
98         PR debug/44115
99         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
100         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
101         Output DECL_DEBUG_EXPR.
102         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
103         Input DECL_DEBUG_EXPR.
104
105 2010-09-10  Richard Guenther  <rguenther@suse.de>
106
107         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare
108         TYPE_SIZE.
109         (build_index_type): Implement in terms of build_range_type.
110         (build_range_type): Do not allow NULL_TREE type, improve
111         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
112         if we didn't hash.
113         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
114         create a distinct copy of the type.
115
116 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
117
118         * configure: Regenerated.
119         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
120
121 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
122
123         * config/arm/neon-schedgen.ml (allCores): Add support for
124         Cortex-A9.
125         * config/arm/cortex-a9-neon.md: New and partially generated.
126         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
127
128 2010-09-10  Richard Guenther  <rguenther@suse.de>
129
130         * tree.h (build_index_2_type): Remove.
131         * tree.c (build_index_2_type): Remove.
132
133 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
134
135         PR bootstrap/45630
136         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
137         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
138         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
139
140 2010-09-10  Martin Jambor  <mjambor@suse.cz>
141
142         PR tree-optimization/44972
143         * tree-sra.c: Include toplev.h.
144         (build_ref_for_offset): Entirely reimplemented.
145         (build_ref_for_model): New function.
146         (build_user_friendly_ref_for_offset): New function.
147         (analyze_access_subtree): Removed build_ref_for_offset check.
148         (propagate_subaccesses_across_link): Likewise.
149         (create_artificial_child_access): Use
150         build_user_friendly_ref_for_offset.
151         (propagate_subaccesses_across_link): Likewise.
152         (ref_expr_for_all_replacements_p): Removed.
153         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
154         (sra_modify_expr): Use build_ref_for_model.
155         (load_assign_lhs_subreplacements): Likewise.
156         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
157         checks for return values of build_ref_for_offset.
158         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
159         build_ref_for_offset.
160         * ipa-prop.h: Include gimple.h
161         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
162         (ipa_analyze_indirect_call_uses): Update comment.
163         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
164         (IPA_PROP_H): Likewise.
165
166 2010-09-10  Martin Jambor  <mjambor@suse.cz>
167
168         PR tree-optimization/44972
169         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
170         calling build_ref_for_offset.
171
172 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
173
174         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
175         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
176         * config/arm/arm-tune.md: Regenerate.
177         * doc/invoke.texi (ARM Options): Document it.
178
179 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
180
181         * config/i386/i386.c: Include sched-int.h.
182         (TARGET_SCHED_DISPATCH): Defined.
183         (TARGET_SCHED_DISPATCH_DO): Defined.
184         (DISPATCH_WINDOW_SIZE): Defined.
185         (MAX_DISPATCH_WINDOWS): Defined.
186         (MAX_INSN): Defined.
187         (MAX_IMM): Defined.
188         (MAX_IMM_SIZE): Defined.
189         (MAX_IMM_32): Defined.
190         (MAX_IMM_64): Defined.
191         (MAX_LOAD): Defined.
192         (MAX_STORE): Defined.
193         (BIG): Defined.
194         (dispatch_group): New.
195         (num_allowable_groups): New.
196         (group_name): New.
197         (sched_insn_info_s): New.
198         (dispatch_windows_s): New.
199         (imm_info_s): New.
200         (dispatch_window_list): New.
201         (dispatch_window_list1): New.
202         (get_mem_group): New.
203         (is_cmp): New.
204         (dispatch_violation): New.
205         (is_branch): New.
206         (is_prefetch): New.
207         (init_window): New.
208         (allocate_window): New.
209         (init_dispatch_sched): New.
210         (is_end_basic_block): New.
211         (process_end_window): New.
212         (allocate_next_window): New.
213         (find_constant_1): New.
214         (find_constant): New.
215         (get_num_immediates): New.
216         (has_immediate): New.
217         (get_insn_path): New.
218         (get_insn_group): New.
219         (count_num_restricted): New.
220         (fits_dispatch_window): New.
221         (add_insn_window): New.
222         (add_to_dispatch_window): New.
223         (debug_dispatch_window_file): New.
224         (debug_dispatch_window): New.
225         (debug_insn_dispatch_info_file): New.
226         (debug_ready_dispatch): New.
227         (do_dispatch): New.
228         (has_dispatch): New.
229         * config/i386/i386.h (debug_ready_dispatch): Declared.
230         (debug_dispatch_window): Declared.
231         * config/i386/i386.opt (mdispatch-scheduler): New flag.
232         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
233         (TARGET_SCHED_DISPATCH_DO): New.
234         * doc/tm.texi: Regererated.
235         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
236         ready_remove_first_dispatch
237         (schedule_block): Call targetm.sched.dispatch and
238         targetm.sched.dispatch_do.
239         (sched_init): Call targetm.sched.dispatch and
240         targetm.sched.dispatch_do.
241         (ready_remove_first_dispatch): New.
242         (number_in_ready): New.
243         (get_ready_element): New.
244         * hooks.c (hook_bool_rtx_int_false): New.
245         (hook_void_rtx_int): New.
246         * hooks.h (hook_bool_rtx_int_false): Declared.
247         (hook_void_rtx_int): Declared.
248         * sched-int.h (IS_DISPATCH_ON): Defined.
249         (IS_CMP): Defined.
250         (DISPATCH_VIOLATION): Defined.
251         (FITS_DISPATCH_WINDOW): Defined.
252         (DISPATCH_INIT): Defined.
253         (ADD_TO_DISPATCH_WINDOW): Defined.
254         (get_ready_element): Declared.
255         (number_in_ready): Declared.
256         * target.def (dispatch): Defined.
257         (dispatch_do): Defined.
258
259 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
260
261         PR middle-end/45312
262         * reload1.c (merge_assigned_reloads): Remove.
263         (reload_as_needed): Don't call it.
264
265 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
266
267         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
268         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
269         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
270
271 2010-09-09  Matthias Klose  <doko@ubuntu.com>
272
273         PR bootstrap/43847
274         * configure.ac (--enable-plugin): Enhance for cross builds.
275         * configure: Regenerate.
276
277 2010-09-09  Jan Hubicka  <jh@suse.cz>
278
279         PR tree-optimization/45598
280         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
281         string folding is of integral type.
282
283 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
284
285         * configure.ac (gnu_indirect_function): New test.
286         * configure: Rebuilt.
287         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
288         * defaults.h (IFUNC_ASM_TYPE): Provide default.
289
290         * doc/extend.texi (Function Attributes): Document ifunc.
291         * varasm.c (do_assemble_alias): Deal with ifuncs too.
292
293 2010-09-09  Hariharan Sandanagobalane <hariharan@picochip.com>
294
295         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
296         epilogue instruction move.
297
298 2010-09-09  Jan Hubicka  <jh@suse.cz>
299
300         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
301         command line to allow more partitions than input files.
302
303 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
304
305         PR middle-end/44554
306         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
307
308 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
309
310         PR middle-end/40386
311         * ira.c (pseudo_for_reload_consideration_p): Don't use
312         flag_ira_share_spill_slots.
313
314 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
315
316         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
317         point zero operands that fit into a single GPR.
318         (s390_preferred_reload_class): Ensure we only return general-purpose
319         register classes.
320         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
321         floating-point zero operands into GPRs.
322         ("*mov<mode>_64"): Likewise.
323         ("mov<mode>"): Likewise using lhi.
324
325 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
326
327         * config/s390/s390.c (s390_symref_operand_p): Return false for
328         literal pool references.
329         (s390_check_qrst_address): Update caller.
330
331 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
332
333         * config/i386/predicates.md (ext_register_operand): Check that
334         SUBREG_REG is really a register before looking for REGNO.
335         (reg_not_xmm0_operand): Handle SUBREGs correctly.
336         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
337
338 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
339
340         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
341         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
342         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
343         * print-rtl.c (print_rtx): Likewise.
344         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
345         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
346         for ADDR_EXPR with non-addressable object.
347         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
348         (struct dw_val_struct): Add v.val_decl_ref.
349         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
350         Handle DW_OP_GNU_implicit_pointer.
351         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
352         (get_ref_die_offset_label): New function.
353         (implicit_ptr_descriptor): New function.
354         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
355         (loc_descriptor): Likewise.
356         (gen_variable_die): Put even definitions into decl_die_table.
357         (resolve_addr_in_expr): Resolve still unresolved
358         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
359         return false.
360         (dwarf2out_finish): Call output_location_lists after outputting
361         .debug_info and .debug_abbrev instead of before.
362
363 2010-09-09  Roland McGrath  <roland@redhat.com>
364
365         * dwarf2out.c (DWARF_REF_SIZE): Define.
366         (size_of_loc_descr): Use it for DW_OP_call_ref.
367
368 2010-09-09  Alan Modra  <amodra@gmail.com>
369
370         * doc/invoke.text: Reinstate mcmodel=medium.
371         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
372         CMODEL_MEDIUM as default.
373         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
374         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
375         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
376         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
377
378 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
379
380         PR target/45250
381         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
382         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
383         (builtin_longjmp): Likewise.
384         (allocate_stack): Use hard_frame_pointer_rtx instead of
385         frame_pointer_rtx.
386         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
387         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
388         (pa_can_eliminate): Likewise.
389         (TARGET_INTERNAL_ARG_POINTER): Define.
390         (TARGET_CAN_ELIMINATE): Define.
391         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
392         pointer.
393         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
394         (pa_internal_arg_pointer, pa_can_eliminate,
395         pa_initial_elimination_offset): New.
396         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
397         (HARD_FRAME_POINTER_REGNUM): Set to register three.
398         (INITIAL_FRAME_POINTER_OFFSET): Delete.
399         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
400         Define.
401         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
402         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
403         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
404         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
405         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
406         new soft frame pointer.
407         * config/pa/pa64-regs.h: Likewise.
408
409 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
410
411         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
412         numerical constant.
413         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
414
415 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
416
417         PR debug/45531
418         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
419
420 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
421
422         PR debug/45419
423         PR debug/45408
424         * tree-pretty-print.c (dump_generic_node): Disregard top-level
425         qualifiers in otherwise equal MEM_REF pointer types.
426         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
427         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
428
429 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
430
431         PR target/44392
432         * config/arm/arm.md (bswapsi2): Handle condition correctly
433         for armv6 and optimize_size.
434
435 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
436
437         PR other/18555
438         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
439
440 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
441
442         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
443         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
444         ix86_expand_strlen, legitimate_pic_address_disp_p,
445         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
446         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
447         ix86_check_movabs, ix86_secondary_memory_needed): Change function
448         prototype to bool.
449         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
450         return_in_memory_ms_64, ix86_check_movabs,
451         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
452         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
453         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
454         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
455         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
456         ix86_secondary_memory_needed): Change to bool.  Return
457         "true" and "false" values.
458         * config/i386/i386.md: Return "true" and "false" values.
459
460 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
461
462         * doc/sourcebuild.texi (Effective-Target Keywords): Document
463         run_expensive_tests.
464
465 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
466
467         * toplev.c (output_stack_usage): Use lbasename instead of basename.
468
469 2010-09-08  Martin Jambor  <mjambor@suse.cz>
470
471         PR other/45443
472         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
473         at -O3.
474
475 2010-09-08  Richard Guenther  <rguenther@suse.de>
476
477         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
478         (visit): Adjust.
479         (iterative_hash_gimple_type): Likewise.
480         (gimple_type_hash): Likewise.
481         (gimple_register_type): Likewise.
482         (print_gimple_types_stats): Likewise.
483         (free_gimple_type_tables): Likewise.
484
485 2010-09-08  Michael Matz  <matz@suse.de>
486
487         PR tree-optimization/43430
488         * tree-vect-stmts.c (vectorizable_condition): Support multiple
489         copies for conditional statements if it's not part of a reduction.
490
491 2010-09-08  Michael Matz  <matz@suse.de>
492
493         PR tree-optimization/33244
494         * tree-ssa-sink.c (statement_sink_location): Don't sink into
495         empty loop latches.
496
497 2010-09-08  Richard Guenther  <rguenther@suse.de>
498
499         PR tree-optimization/45578
500         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
501         Be more careful when transfering alignment information to
502         the new induction variable.
503         (copy_ref_info): Likewise.
504
505 2010-09-08  Richard Guenther  <rguenther@suse.de>
506
507         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
508         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
509
510 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
511
512         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
513         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
514
515 2010-09-08  Kenneth Zadeck <zadeck@naturalbridge.com>
516
517         PR doc/45587
518         * doc/md.texi: Fixed modes on several standard pattern names.
519
520 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
521
522         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
523         (ashl<mode>3): ...this.
524         (loongson_psra<V_suffix>): Rename to...
525         (ashr<mode>3): ...this.
526         (loongson_psrl<V_suffix>): Rename to...
527         (lshr<mode>3): ...this.
528         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
529         (CODE_FOR_loongson_psllw): Define.
530         (CODE_FOR_loongson_psrlh): Define.
531         (CODE_FOR_loongson_psrlw): Define.
532         (CODE_FOR_loongson_psrah): Define.
533         (CODE_FOR_loongson_psraw): Define.
534
535 2010-09-07  Richard Henderson  <rth@redhat.com>
536
537         * tree-vect-data-refs.c: Include tm_p.h.
538         * Makefile.in (tree-vect-data-refs.o): Update deps.
539         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
540         Move delarations outside #ifdef RTX_CODE.
541
542 2010-09-07  Richard Henderson  <rth@redhat.com>
543
544         * final.c (rest_of_handle_final): Unconditionally do
545         output_function_exception_table before assemble_end_function.
546
547 2010-09-07  Jan Hubicka  <jh@suse.cz>
548
549         * tree-inline.c (tree_inlinable_function_p): Do not test
550         DECL_REPLACEABLE_P.
551         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
552         update_callee_keys, cgraph_decide_inlining): Test function availability.
553         * cif-code.def (OVERWRITABLE): New code.
554
555 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
556             Jack Howarth <howarth@bromo.med.uc.edu>
557
558         PR target/36502
559         PR target/42313
560         PR target/44651
561         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
562         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
563         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
564         MAX macro.
565
566 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
567
568         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
569         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
570
571 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
572
573         * config.gcc: Don't append t-android for Android targets.
574
575         * config/t-android: Removed.
576
577 2010-09-07  Richard Henderson  <rth@redhat.com>
578
579         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
580         * doc/tm.texi.in: Add doc marker.
581         * doc/tm.texi: Rebuild.
582         * except.c (switch_to_exception_section): Always build.
583         (output_one_function_exception_table): Move section switch,
584         personality output, and label output ...
585         (output_function_exception_table): ... here.  Use the new
586         personality hook.
587
588         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
589         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
590         TARGET_ASM_INIT_SECTIONS): New.
591         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
592         make static.
593         (TARGET_ASM_UNWIND_EMIT): Update to match.
594         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
595
596         * config/arm/arm.c (arm_asm_emit_except_personality): New.
597         (arm_asm_init_sections): New.
598         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
599
600 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
601
602         * config/arm/arm.md: Remove unused variable.
603
604 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
605
606         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
607         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
608         (m32r_memory_move_cost): New function.
609
610 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
611
612         * config.gcc: Append t-android for Android targets.
613
614         * config/t-android: New.
615
616 2010-09-07  Richard Henderson  <rth@redhat.com>
617
618         * target.def (unwind_emit_before_insn): New hook.
619         * doc/tm.texi.in: Add @hook marker for it.
620         * doc/tm.texi: Rebuild.
621         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
622
623 2010-09-07  Martin Jambor  <mjambor@suse.cz>
624
625         PR fortran/43665
626         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
627         are any type attributes.
628
629 2010-09-07  Jan Hubicka  <jh@suse.cz>
630
631         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
632         array_ref_low_bound in string access folding.
633
634 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
635
636         PR target/45206
637         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
638         eh_return fixup sequence.
639
640 2010-09-07  Jan Hubicka  <jh@suse.cz>
641
642         * gimple-fold.c (maybe_fold_reference): Verify that operand is
643         gimple_min_invariant.
644
645 2010-09-07  Richard Guenther  <rguenther@suse.de>
646
647         PR middle-end/45569
648         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
649         nor CONSTRUCTOR can trap.
650         * tree-complex.c (update_complex_assignment): Update EH info.
651
652 2010-09-07  Richard Guenther  <rguenther@suse.de>
653
654         PR middle-end/45569
655         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
656         * passes.c (execute_function_todo): Do not verify anything if
657         we saw errors.
658
659 2010-09-07  Richard Guenther  <rguenther@suse.de>
660
661         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
662
663 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
664
665         PR target/43137
666         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
667         New define_mode_attrs.
668         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
669         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
670         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
671         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
672         Remove pool_range attribute.
673         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
674         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
675         pool_range and neg_pool_range attributes.
676         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
677         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
678         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
679
680 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
681
682         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
683         check glibc.
684
685 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
686
687         PR target/22152
688         * config/i386/mmx.md (*mov<mode>_internal_rex64,
689         *mov<mode>_internal_avx, *mov<mode>_internal,
690         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
691         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
692
693 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
694
695         * c-typeck.c (do_warn_double_promotion): Remove.
696         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
697         Objective-C++ too.
698
699 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
700
701         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
702         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
703         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
704         argument type to reg_class_t. Change result type to bool.
705         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
706
707 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
708
709         PR libobjc/19850
710         * gthr-posix.h (__gthread_objc_thread_detach): Use
711         _objc_thread_attribs when detaching a thread.
712         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
713
714 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
715
716         PR target/45524
717         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
718         * configure: Regenerated.
719
720 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
721
722         * combine.c (try_combine): Set subst_low_luid to i0.
723
724 2010-09-06  Richard Guenther  <rguenther@suse.de>
725
726         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
727         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
728         (build_aligned_type): Declare.
729         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
730         (check_aligned_type): New function.
731         (build_aligned_type): Likewise.
732         * expr.c (expand_assignment): Handle misaligned stores via
733         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
734         (expand_expr_real_1): Likewise.
735         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
736         * tree-vect-stmts.c (vectorizable_store): Do not build
737         MISALIGNED_INDIRECT_REF but initialize alignment information.
738         (vectorizable_load): Likewise.
739         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
740         handling.
741         * cfgexpand.c (expand_debug_expr): Likewise.
742         * dwarf2out.c (loc_list_from_tree): Likewise.
743         * fold-const.c (maybe_lvalue_p): Likewise.
744         (operand_equal_p): Likewise.
745         (build_fold_addr_expr_with_type_loc): Likewise.
746         * gimplify.c (gimplify_addr_expr): Likewise.
747         (gimplify_expr): Likewise.
748         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
749         (verify_gimple_assign_single): Likewise.
750         * tree-dump.c (dequeue_and_dump): Likewise.
751         (tree_could_trap_p): Likewise.
752         * tree-predcom.c (ref_at_iteration): Likewise.
753         * tree-pretty-print.c (dump_generic_node): Likewise.
754         (op_code_prio): Likewise.
755         (op_symbol_code): Likewise.
756         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
757         * tree-ssa-loop-im.c (for_each_index): Likewise.
758         (gen_lsm_tmp_name): Likewise.
759         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
760         (find_interesting_uses_address): Likewise.
761         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
762         * tree-ssa-operands.c (get_expr_operands): Likewise.
763         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
764         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
765         (ao_ref_init_from_vn_reference): Likewise.
766         * tree.c (staticp): Likewise.
767         (build1_stat): Likewise.
768         (reference_alias_ptr_type): Likewise.
769         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
770         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
771         MISALIGNED_INDIRECT_REF handling.
772
773 2010-09-06  Richard Guenther  <rguenther@suse.de>
774
775         PR tree-optimization/45534
776         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
777         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
778         on the target.
779         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
780         valid on the target.
781
782 2010-09-06  Andreas Schwab  <schwab@redhat.com>
783
784         * configure.ac: Quote argument of AC_MSG_WARN.
785         * configure: Regenerate.
786
787 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
788
789         * sel-sched.c (move_cond_jump): Correct arguments to
790         maybe_tidy_empty_bb.
791         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
792
793 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
794
795         PR rtl-optimization/44919
796         * sel-sched.c (move_cond_jump): Remove assert, check that
797         the several blocks case can only happen with mutually exclusive
798         insns instead.  Rewrite the movement code to support moving through
799         several basic blocks.
800
801 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
802
803         * config/i386/i386.md (iptrsize): New mode attribute.
804         (tp_seg): Ditto.
805         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
806         mode iterator.
807         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
808         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
809         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
810         (stack_tls_protect_set_<mode>): Ditto from
811         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
812         of thread base pointer load.
813         (stack_tls_protect_test_<mode>): Ditto from
814         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
815         of thread base pointer load.
816         (stack_protect_set): Rewrite using indirect functions.
817         (stack_protect_test): Ditto.
818         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
819         (ix86_print_operand): Handle '@'.
820
821 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
822
823         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
824         MINUS_EXPR.
825
826 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
827
828         * doc/invoke.texi: Document -Wdouble-promotion.
829         * c-typeck.c (convert_arguments): Check for implicit conversions
830         from float to double.
831         (do_warn_double_promotion): New function.
832         (build_conditional_expr): Use it.
833         (build_binary_op): Likewise.
834
835 2010-09-05  Richard Guenther  <rguenther@suse.de>
836
837         PR tree-optimization/45535
838         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
839         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
840         dereferencing it.
841         (indirect_refs_may_alias_p): Likewise.
842
843 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
844
845         * config/sh/sh.c (sh_option_override): Make static.
846         Adjust comments.  Declare.
847         (sh_function_value_regno_p): Likewise.
848         (sh_register_move_cost): Modify the arguments, make static.
849         Adjust comments.  Declare.
850         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
851         TARGET_FUNCTION_VALUE_REGNO_P): Define.
852         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
853         REGISTER_MOVE_COST): Delete.
854         * config/sh/sh-protos.h (sh_override_options): Delete.
855         (sh_register_move_cost): Delete.
856         (sh_function_value_regno_p): Delete.
857
858 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
859
860         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
861         m32r_function_value_regno_p): New functions.
862         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
863         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
864         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
865         FUNCTION_VALUE_REGNO_P): Remove.
866
867 2010-09-04  Jan Hubicka  <jh@suse.cz>
868
869         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
870         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
871         fold_read_from_constant_string.
872
873         * gimple.h (canonicalize_constructor_val): Declare.
874         * gimple-fold.c (canonicalize_constructor_val): New function.
875         (get_symbol_constant_value):Use it.
876         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
877
878 2010-09-04  Jan Hubicka  <jh@suse.cz>
879
880         * tree-switch-conversion.c (build_one_array): Set constructor to be
881         static.
882         * varpool.c (varpool_finalize_decl): Compute const_value_known.
883
884 2010-09-04  Richard Guenther  <rguenther@suse.de>
885
886         PR bootstrap/45519
887         * tree-flow.h (force_gimple_operand_1): Declare.
888         (force_gimple_operand_gsi_1): Likewise.
889         * gimplify.c (force_gimple_operand_1): New worker taking a
890         gimple predicate for ...
891         (force_gimple_operand): ... which now wraps it.
892         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
893         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
894         last change.
895         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
896         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
897         (create_mem_ref): Likewise.
898
899 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
900
901         * config/i386/predicates.md (sse_reg_operand): New predicate.
902         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
903         predicate for operand 1.
904         (XFmode push splitter): Use fp_register_operand predicate
905         for operand 1.
906         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
907         (SF-DF float_extend push splitter): Add reload_completed insn
908         predicate.
909         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
910         MODEF mode macro.  Add reload_completed insn predicate.
911
912 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
913
914         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
915         (struct df_extract_ref): Remove.
916         (union df_ref_d): Remove extract_ref member.
917         (df_ref_create): Remove last three arguments.
918         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
919         * df-scan.c (df_ref_record): Remove last three arguments, do not
920         pass them to df_ref_create_structure.
921         (df_uses_record): Remove first and last three arguments.  Replace
922         first argument with DF_REF_REGULAR, adjust calls to remove the
923         width, offset and mode.  Always call recursively on the second
924         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
925         (df_ref_create_structure): Remove first argument.
926         (struct df_scan_problem_data): Remove ref_extract_pool.
927         (df_scan_free_internal): Do not free it.
928         (df_scan_alloc): Do not allocate it.
929         (df_ref_create): Remove last three arguments, do not pass them to
930         df_ref_create_structure.
931         (df_free_ref): Remove DF_REF_EXTRACT case.
932         (df_notes_rescan): Adjust call to df_uses_record.
933         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
934         Remove DF_REF_EXTRACT case.
935         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
936         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
937         and SUBREG definitions.
938         (df_get_conditional_uses): Remove references to width/offset/mode,
939         adjust call to df_ref_create_structure.
940         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
941         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
942         calls to df_uses_record and df_ref_record.
943         * fwprop.c (update_df): Remove references to width/offset/mode,
944         adjust call to df_ref_create.
945
946 2010-09-03  Jan Hubicka  <jh@suse.cz>
947
948         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
949         (build_cdtor_fns): Update use of build_cdtor.
950
951 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
952
953         * doc/options.texi (SeparateAlias): Document.
954         * opt-functions.awk (switch_flags): Handle SeparateAlias.
955         * opth-gen.awk: Generate enumeration names for options marked
956         SeparateAlias, but not for those marked Ignore.
957         * opts-common.c (generate_canonical_option): Don't output separate
958         argument for options marked CL_SEPARATE_ALIAS.
959         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
960         * opts.h (CL_SEPARATE_ALIAS): New.
961         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
962         CL_COMMON): Adjust definitions.
963         * config/i386/darwin.opt, config/mips/sde.opt: New.
964         * common.opt (fdump-final-insns): New.
965         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
966         i386/darwin.opt.
967         (mips*-sde-elf*): Add mips/sde.opt.
968         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
969         -mno-data-in-code and -mcode-xonly here.
970         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
971         * gcc.c (option_map): Add "j" to --dump entry.
972         (translate_options): Don't translate -d to -foutput-class-dir= here.
973
974 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
975
976         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
977         DR_IS_WRITE.
978         (compute_all_dependences): Same.
979         (create_rdg_edge_for_ddr): Same.
980         * tree-data-ref.h (DR_IS_WRITE): New.
981         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
982         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
983         (write_memrefs_written_at_least_once): Same.
984         * tree-predcom.c (suitable_component_p): Same.
985         (determine_roots_comp): Same.
986         (execute_load_motion): Same.
987         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
988         (vect_enhance_data_refs_alignment): Same.
989         (vect_analyze_group_access): Same.
990
991 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
992
993         PR testsuite/42843
994         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
995         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
996
997 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
998
999         * dwarf2out.c (file scope): Remove #if0'd code.
1000         (gen_subprogram_die): Same.
1001
1002 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
1003
1004         PR middle-end/45484
1005         * dwarf2out.c (flush_queued_reg_saves): Rename to...
1006         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
1007         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
1008         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
1009         * config/i386/i386.c (output_set_got): Call it.
1010
1011 2010-09-03  Michael Matz  <matz@suse.de>
1012
1013         PR middle-end/45415
1014         * tree-sra.c (sra_modify_assign): If we modify the statement,
1015         say so.
1016
1017         * tree-ssa.c (verify_ssa): Check number of operands and links
1018         per statement to agree.
1019
1020 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
1021             Iain Sandoe  <iains@gcc.gnu.org>
1022
1023         PR target/45476
1024         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
1025         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
1026         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
1027
1028 2010-09-03  Richard Guenther  <rguenther@suse.de>
1029
1030         * lto-streamer-out.c (output_function): Output function
1031         start and end loci.
1032         * lto-streamer-in.c (input_function): Input function start
1033         and end loci.
1034
1035 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1036
1037         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
1038         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
1039         * configure: Regenerate.
1040         * aclocal.m4: Regenerate.
1041
1042 2010-09-03  Jan Hubicka  <jh@suse.cz>
1043
1044         PR lto/44812
1045         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
1046         on functions/variables in other partition.
1047
1048 2010-09-03  Jan Hubicka  <jh@suse.cz>
1049
1050         * cgraph.h (struct varpool_node): Add const_value_known.
1051         (varpool_decide_const_value_known): Declare.
1052         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
1053         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
1054         (input_varpool_node): Restore const_value_known.
1055         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
1056         initializer folding.
1057         * ipa.c (ipa_discover_readonly_nonaddressable_var,
1058         function_and_variable_visibility): Compute const_value_known.
1059         * gimple-fold.c (get_symbol_constant_value): Use varpool for
1060         initializer folding.
1061         * varpool.c (varpool_decide_const_value_known): New function.
1062
1063 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
1064
1065         * config/i386/i386.md: Remove empty preparation statements
1066         from splitters.
1067
1068 2010-09-03  Jan Hubicka  <jh@suse.cz>
1069
1070         * passes.c (rest_of_decl_compilation): Do not add local vars into
1071         varpool.
1072         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
1073         static or extern vars are in varpool.
1074         (varpool_finalize_decl): Sanity check that only static vars are
1075         finalized.
1076
1077 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
1078
1079         PR debug/45500
1080         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
1081         not just generic vectors with BLKmode.
1082
1083 2010-09-03  Richard Guenther  <rguenther@suse.de>
1084
1085         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
1086         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
1087         * tree.h (TMR_SYMBOL): Remove.
1088         (TMR_BASE, TMR_OFFSET): Adjust.
1089         (TMR_INDEX2): New.
1090         * alias.c (ao_ref_from_mem): Use TMR_BASE.
1091         * builtins.c (get_object_alignment): Merge TMR_BASE and
1092         TMR_SYMBOL handling.
1093         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
1094         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
1095         handling.  Also allow TARGET_MEM_REF as base address.
1096         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
1097         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
1098         base.  Gimplify TMR_INDEX2.
1099         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
1100         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1101         (get_addr_base_and_unit_offset): Likewise.
1102         * tree-eh.c (tree_could_trap_p): Likewise.
1103         * tree-pretty-print.c (dump_generic_node): Likewise.
1104         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
1105         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
1106         base to index2.
1107         (get_address_description): Reconstruct addres description
1108         from merged TMR_BASE and TMR_INDEX2.
1109         (maybe_fold_tmr): Fold propagated addresses.
1110         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
1111         MEM_REF and TARGET_MEM_REF paths.
1112         (indirect_refs_may_alias_p): Likewise.
1113         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
1114         instead of TMR_SYMBOL.
1115         * tree-ssa-operands.c (get_tmr_operands): Simplify.
1116         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
1117         according to changes ...
1118         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
1119         Split TARGET_MEM_REF into two fields plus the base.
1120         * tree.c (mem_ref_offset): Simplify.
1121         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
1122         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
1123         Strip NOPs when folding MEM_REF addresses.
1124         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
1125         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
1126         (fold_gimple_assign): ... not here.
1127
1128 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
1129
1130         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
1131         * config/mips/mips.c (mips_shift_truncation_mask): New function.
1132         (TARGET_SHIFT_TRUNCATION_MASK): Define.
1133
1134 2010-09-02  Richard Henderson  <rth@redhat.com>
1135
1136         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
1137         instead of readelf in the test.
1138         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
1139         in the .debug_frame section for coff targets.
1140         * configure: Rebuild.
1141
1142 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
1143
1144         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
1145         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
1146         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1147         (m32c_class_likely_spilled_p): Make static. Change argument type to
1148         reg_class_t. Change result type to bool.
1149
1150 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
1151
1152         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
1153         to convert (double)(long) into a single FRIZ instruction or not
1154         when -ffast-math is used.
1155
1156         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
1157         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
1158         or FRIZ instruction if -ffast-math.
1159         * config/rs6000/rs6000.md (friz): Ditto.
1160
1161         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
1162
1163 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1164
1165         * opth-gen.awk (quote, comma): Remove unused variables.
1166
1167 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
1168
1169         * arm.c (arm_override_options): Correct fall-back code to use
1170         SUBTARGET_CPU_DEFAULT.
1171
1172 2010-09-02  Julian Brown  <julian@codesourcery.com>
1173
1174         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
1175         unspecs.
1176         (vcond<mode>, vcondu<mode>): New expanders.
1177         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
1178         comparisons with zero.
1179         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
1180         * config/arm/constraints.md (Dz): New constraint.
1181
1182 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
1183
1184         * target.def (class_likely_spilled_p): New hook.
1185         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
1186         * doc/tm.texi: Regenerate.
1187         * targhooks.c (default_class_likely_spilled_p): New function.
1188         * targhooks.h (default_class_likely_spilled_p): Declare.
1189         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
1190         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
1191         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
1192         Use fixed_reg_set instead of fixed_regs.
1193         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
1194         * calls.c (avoid_likely_spilled_reg): Ditto.
1195         * ira-conflicts.c (ira_build_conflicts): Ditto.
1196         * ira.c (update_equiv_regs): Ditto.
1197         * mode-switching.c (create_pre_exit): Ditto.
1198         * regmove.c (find_matches): Ditto.
1199         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
1200         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
1201         (small_register_class_p): New inline function.
1202         (push_secondary_reload, find_reusable_reload, find_reloads): Use
1203         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
1204
1205         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
1206         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
1207         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1208
1209 2010-09-02  Richard Guenther  <rguenther@suse.de>
1210
1211         PR tree-optimization/44937
1212         PR tree-optimization/45412
1213         * ipa-split.c (split_function): Properly remove PHI nodes.
1214
1215 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1216
1217         * opts.h (struct cl_option): Add warn_message field.
1218         (struct cl_decoded_option): Add warn_message field.
1219         * doc/options.texi (Ignore, Warn): Document.
1220         * opt-functions.awk (needs_state_p): Don't consider aliases or
1221         ignored options to need state saved.
1222         * optc-gen.awk: Handle Warn and Ignore.
1223         * opth-gen.awk: Output OPT_SPECIAL_ignore.
1224         * opts-common.c (decode_cmdline_option): Set warn_message field.
1225         Handle ignored options.
1226         (decode_cmdline_options_to_array, generate_option,
1227         generate_option_input_file): Set warn_message field.
1228         (read_cmdline_option): Generate warnings from warn_message field.
1229         Handle ignored options.
1230         * common.opt (Wunreachable-code, fargument-alias,
1231         fargument-noalias, fargument-noalias-global,
1232         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
1233         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
1234         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
1235         ftree-salias): Mark Ignore.
1236         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
1237         -mintel-syntax and -mno-intel-syntax here.
1238         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
1239         using Warn.
1240         * opts.c (common_handle_option): Don't handle options marked as
1241         ignored.
1242         (enable_warning_as_error): Handle ignored options.
1243
1244 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1245
1246         PR driver/44076
1247         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
1248         alias_target fields.
1249         * opt-functions.awk (opt_sanitized_name): Don't handle
1250         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
1251         * optc-gen.awk: Generate alias fields.
1252         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
1253         Don't generate such constants for aliases.
1254         * opts-common.c (generate_canonical_option): New.
1255         (decode_cmdline_option): Handle aliases.  Use
1256         generate_canonical_option for known options instead of copying the
1257         input option text.
1258         * doc/options.texi (Alias): Document.
1259         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
1260         fstack-check, specs): Mark as aliases.
1261         * gcc.c (driver_handle_option): Canonicalize -L options to joined
1262         arguments.
1263         (driver_handle_option): Don't handle OPT_specs.
1264         * opts.c (common_handle_option): Don't handle options marked as
1265         aliases.
1266         (enable_warning_as_error): Handle aliases.
1267         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
1268         OPT_Wlarger_than_eq.
1269         * tree-optimize.c (tree_rest_of_compilation): Use
1270         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
1271
1272 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
1273
1274         * config/i386/i386.md (nonmemory_operand): New mode attribute.
1275         (push memory peephole2): Macroize peepholes using SWI mode iterator.
1276         (move immediate to memory peephole2): Macroize peepholes using
1277         SWI124 mode iterator.
1278         (non-pairable NOT peephole2): Macroize peepholes using SWI124
1279         mode iterator.
1280         (simple lea add peephole2): Macroize peepholes using SWI48
1281         mode iterator.
1282         (simple lea mult peephole2): Ditto.
1283         (imul by 3,5,9 to lea peephole2): Ditto.
1284         (mov $-1, reg peephole2): Macroize peepholes using SWI248
1285         mode iterator.
1286         (imul $32bit_imm,mem,reg peephole2): Ditto.
1287         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
1288
1289 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
1290
1291         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
1292
1293 2010-09-02  Olivier Hainque  <hainque@adacore.com>
1294
1295         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
1296         (allocno_priority_compare_func): Use it instead of a straight
1297         difference computation over priorities.
1298
1299 2010-09-02  Andi Kleen  <ak@linux.intel.com>
1300
1301         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
1302
1303 2010-09-02  Ira Rosen  <irar@il.ibm.com>
1304
1305         * tree-vectorizer.h (get_later_stmt): New function.
1306         (vect_analyze_data_ref_dependences): Add argument.
1307         * tree-vect-loop.c (vect_analyze_loop): Update call to
1308         vect_analyze_data_ref_dependences.
1309         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
1310         New function.
1311         (vect_analyze_data_ref_dependence): Add argument for basic block
1312         dependencies. Check dependencies in basic block vectorization.
1313         (vect_analyze_data_ref_dependences): Add argument and update call to
1314         vect_analyze_data_ref_dependences.
1315         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
1316         (vect_bb_vectorizable_with_dependencies): New.
1317         (vect_slp_analyze_bb): Check dependencies in basic block.
1318         (vect_schedule_slp_instance): Insert stores before the last store in
1319         SLP instance.
1320
1321 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
1322
1323         PR target/45476
1324         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
1325         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
1326
1327 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
1328
1329         PR middle-end/45458
1330         * bb-reorder.c (add_labels_and_missing_jumps): Treat
1331         bbs ending with throwing insns like blocks ending with a call.
1332         (fix_up_fall_thru_edges): Likewise.
1333
1334 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
1335
1336         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
1337         (m32c_function_arg_advance): Delete.
1338         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1339         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
1340         comments.  Take a const_tree and a bool.  Declare.
1341         (m32c_function_arg_advance): Likewise.
1342         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1343
1344 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
1345
1346         PR target/45476
1347         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
1348         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
1349         * config/i386/mingw32.h: ... here.
1350
1351 2010-09-01  Andi Kleen  <ak@linux.intel.com>
1352
1353         PR lto/45475
1354         * lto-streamer-in.c (lto_input_ts_target_option): Add.
1355         (lto_input_tree_pointers): Call lto_input_ts_target_option.
1356         * lto-streamer-out (lto_output_ts_target_option): Add.
1357         (lto_output_tree_pointers): Call lto_output_ts_target_option.
1358
1359 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
1360
1361         PR/target 45452
1362         * config/i386/cygwin.h: Change order of specified import libraries.
1363         * config/i386/mingw32.h: Likewise.
1364         * config/i386/t-cygwin: Likewise.
1365         * config/i386/t-mingw32: Likewise.
1366         * config/i386/t-mingw-w32: Likewise.
1367         * config/i386/t-mingw-w64: Likewise.
1368
1369 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1370
1371         * config/arm/neon-schedgen.ml (core): New type.
1372         (allCores): List of supported cores.
1373         (availability_table): Add supported cores.
1374         (collate_bypasses): Accept core as a parameter.
1375         (worst_case_latencies_and_bypasses): Accept core as a parameter.
1376         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
1377         and coreStr to get tune attribute and prefix for functional units.
1378         (emit_bypasses): Accept core name and use it.
1379         (calculate_per_core_availability_table): New.
1380         (filter_core): New.
1381         (calculate_core_availability_table): New.
1382         (main): Use calculate_core_availablity_table.
1383         * config/arm/cortex-a8-neon.md: Update copyright year.
1384         Regenerated from ml file and merged in.
1385         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
1386         cortex_a8_neon_mrc.
1387
1388 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
1389
1390         * Makefile.in (tree-switch-conversion.o): Update dependencies.
1391
1392 2010-09-01  Richard Guenther  <rguenther@suse.de>
1393
1394         * alias.c (ao_ref_from_mem): Adjust.
1395         * builtins.c (get_object_alignment): Likewise.
1396         * cfgexpand.c (expand_debug_expr): Likewise.
1397         * gimple.c (get_base_address): Likewise.
1398         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1399         (get_addr_base_and_unit_offset): Likewise.  Fix for
1400         both TMR_SYMBOL and TMR_BASE being set.
1401         * tree-eh.c (tree_could_trap_p): Likewise.
1402         * gimplify.c (gimplify_expr): Do not attempt to gimplify
1403         TMR_SYMBOL.  Always gimplify TMR_BASE.
1404         * tree-cfg.c (verify_types_in_gimple_reference): Verify
1405         TMR_BASE if there is a TMR_SYMBOL.
1406         * tree-pretty-print.c (dump_generic_node): Adjust.
1407         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
1408         (tree_mem_ref_addr): Likewise.
1409         (create_mem_ref_raw): Likewise.
1410         (move_fixed_address_to_symbol): Likewise.
1411         (create_mem_ref): Likewise.
1412         (dump_mem_address): Likewise.
1413         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
1414         Fix for both TMR_SYMBOL and TMR_BASE being set.
1415         (indirect_refs_may_alias_p): Likewise.
1416         * tree-ssa-operands.c (get_tmr_operands): Adjust.
1417         * tree.def (TARGET_MEM_REF): Adjust documentation.
1418
1419 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
1420
1421         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
1422         Rename from X86_TUNE_ADD_ESP_4.
1423         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
1424         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
1425         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
1426         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
1427         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
1428         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
1429         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
1430         * config/i386/i386.c (initial_ix86_tune_features)
1431         <X86_TUNE_SINGLE_POP>: Invert members.
1432         <X86_TUNE_DOUBLE_POP>: Ditto.
1433         <X86_TUNE_SINGLE_PUSH>: Ditto.
1434         <X86_TUNE_DOUBLE_PUSH>: Ditto.
1435         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
1436         No longer exported.
1437         (push peephole2 patterns): Macroize peepholes using P mode iterator.
1438         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
1439         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
1440         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
1441
1442 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
1443
1444         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
1445         a volatile LHS if the constructor has only one element.
1446
1447 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
1448
1449         PR bootstrap/45321
1450         * tree.c (stdarg_p): Make fntype parameter const.
1451         * tree.h (stdarg_p): Likewise.
1452         (function_args_iterator): Remove unused fntype field.
1453         (function_args_iter_init): Do not initialize fntype
1454         field.  Make fntype parameter const.
1455
1456 2010-09-01  Richard Guenther  <rguenther@suse.de>
1457
1458         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
1459         estimate.
1460         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
1461         (execute_vrp): Compute number of iteration estimates.
1462         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
1463         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
1464         * tree-data-ref.c (estimated_loop_iterations): Adjust.
1465         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
1466         Infer loop bounds from undefined behavior based on a new parameter.
1467         (estimate_numbers_of_iterations): Likewise.
1468         (scev_probably_wraps_p): Adjust.
1469         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
1470
1471 2010-09-01  Nick Clifton  <nickc@redhat.com>
1472
1473         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
1474         where appropriate.
1475         (xstormy16_legitimate_address_p): Use true and false instead of 1
1476         and 0.
1477         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
1478         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
1479         magic constant 2.
1480         (xstormy16_expand_call): Fix comment at start of function.
1481
1482 2010-09-01  Nick Clifton  <nickc@redhat.com>
1483
1484         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
1485         when pushing accumulator register.
1486         (rx_get_stack_layout): Always save call clobbered registers inside
1487         interrupt handlers.
1488         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
1489
1490 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
1491
1492         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
1493         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
1494
1495         * libgcc-std.ver (GCC_4.6.0): Define version.
1496
1497 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
1498
1499         * tree-nested.c (convert_all_function_calls): Iterate until after the
1500         sum of static chains in the nest doesn't change.
1501
1502 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
1503
1504         * config/m32c/m32c.c (classes_intersect): Remove.
1505         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
1506         reg_classes_intersect_p instead of classes_intersect.
1507         (class_can_hold_mode): Change arguments type from enum reg_class to
1508         reg_class_t.  Use reg_class_contents instead of class_contents.
1509         (m32c_register_move_cost): Make static. Change arguments type from
1510         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
1511         classes_intersect. Use reg_class_contents instead of class_contents.
1512         (m32c_memory_move_cost): Make static. Change arguments type from
1513         enum reg_class to reg_class_t.
1514         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1515         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1516         * config/m32c/m32c-protos.h (m32c_register_move_cost,
1517         m32c_memory_move_cost): Remove.
1518
1519 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1520
1521         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
1522         (arm_function_arg): Delete.
1523         (arm_needs_doubleword_align): Take a const_tree.
1524         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1525         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
1526         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
1527         (arm_function_arg): Make static.  Take a const_tree and a bool.
1528         (arm_function_arg_advance): Likewise.
1529         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1530
1531 2010-08-31  Andi Kleen  <ak@linux.intel.com>
1532
1533         * common.opt (fwhopr=): Update for -fwhopr=jobserver
1534         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
1535         * lto-wrapper.c (run_gcc): Add jobserver mode.
1536         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
1537         argument.
1538
1539 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
1540
1541         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
1542         (popsi1): Ditto.
1543         (*popdi1_epilogue): Ditto.
1544         (*popsi1_epilogue): Ditto.
1545         (popsi, popdi peephole2 patterns): Update peepholes for changed
1546         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
1547
1548         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
1549         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
1550
1551         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
1552         (override_options): Do not initialize removed ix86_gen_pop1.
1553         (gen_pop): New static function.
1554         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
1555         (release_scratch_register_on_entry): Ditto.
1556         (ix86_restore_reg_using_pop): Ditto.
1557         (ix86_expand_epilogue): Ditto.
1558
1559 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
1560
1561         PR middle-end/45461
1562         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
1563
1564 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1565
1566         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
1567         semicolons.
1568
1569 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1570
1571         * doc/extend.texi: Fix documentation of the return value of
1572         __builtin_choose_expr.
1573
1574 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1575
1576         * config/v850/v850-protos.h (function_arg): Delete.
1577         * config/v850/v850.h (FUNCTION_ARG): Delete.
1578         (FUNCTION_ARG_ADVANCE): Move code to...
1579         * config/v850/v850.c (v850_function_arg_advance): ...here.
1580         (v850_function_arg): Make static.  Take a const_tree and a bool.
1581         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1582
1583 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1584
1585         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
1586         these...
1587         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
1588         ...and these...
1589         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
1590         ..to here..
1591         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
1592         ...and here.
1593         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1594
1595 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1596
1597         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
1598         Delete.
1599         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1600         * config/rx/rx.c (rx_function_arg_size): Make static.
1601         (rx_function_arg): Likewise.
1602         (rx_function_arg_advance): New function.
1603         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1604
1605 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
1606
1607         * config/arm/arm.c (arm_override_options): Remove superfluous test.
1608         Fix indentation.
1609
1610 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
1611
1612         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
1613         (dwarf2out_decl) <CONST_DECL>: Likewise.
1614
1615 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
1616
1617         Stack usage support
1618         * common.opt (-fstack-usage): New option.
1619         * doc/invoke.texi (Debugging options): Document it.
1620         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
1621         allocate_dynamic_stack_space.
1622         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
1623         and propagate it to allocate_dynamic_stack_space.
1624         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
1625         * calls.c (initialize_argument_information): Pass TRUE as 4th
1626         argument to allocate_dynamic_stack_space.
1627         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
1628         to 1 when pushing a variable-sized argument onto the stack.  Pass
1629         TRUE as 4th argument to allocate_dynamic_stack_space.
1630         Update current_function_pushed_stack_size.
1631         (emit_library_call_value_1): Likewise.
1632         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
1633         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
1634         attempt to find an upper bound.  Remove redundant code for the
1635         SETJMP_VIA_SAVE_AREA case.
1636         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
1637         * function.h (struct stack_usage): New structure.
1638         (current_function_static_stack_size): New macro.
1639         (current_function_dynamic_stack_size): Likewise.
1640         (current_function_pushed_stack_size): Likewise.
1641         (current_function_dynamic_alloc_count): Likewise.
1642         (current_function_has_unbounded_dynamic_stack_size): Likewise.
1643         (current_function_allocates_dynamic_stack_space): Likewise.
1644         (struct function): Add new field 'su'.
1645         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
1646         add the value of the dynamic offset to the dynamic stack usage.
1647         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
1648         for variable-sized objects.
1649         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
1650         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
1651         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
1652         BUILT_IN_ALLOCA for variable-sized objects.
1653         * output.h (output_stack_usage): Declare.
1654         * toplev.c (stack_usage_file): New file pointer.
1655         (output_stack_usage): New function.
1656         (open_auxiliary_file): Likewise.
1657         (lang_dependent_init): Open file if flag_stack_usage is set.
1658         (finalize): Close file if stack_usage_file is not null.
1659         * tree.h (ALLOCA_FOR_VAR_P): New macro.
1660         * config/alpha/alpha.c (compute_frame_size): New function.
1661         (alpha_expand_prologue): Use it.
1662         (alpha_start_function): Likewise.
1663         (alpha_expand_epilogue): Likewise.  Set stack usage info.
1664         * config/i386/i386.c (ix86_expand_prologue): Likewise.
1665         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1666         * config/mips/mips.c (mips_expand_prologue): Likewise.
1667         * config/pa/pa.c (hppa_expand_prologue): Likewise.
1668         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1669         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1670
1671 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
1672
1673         PR tree-optimization/45427
1674         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
1675         Handle the case that the exit is never taken correctly.
1676         (number_of_iterations_ne): Pass exit_must_be_taken to
1677         number_of_iterations_ne_max.
1678
1679 2010-08-30  Catherine Moore  <clm@codesourcery.com>
1680
1681         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
1682         Infer -mdspr2 for the the 74K.
1683
1684 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
1685
1686         PR debug/45419
1687         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
1688
1689         PR middle-end/45423
1690         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
1691         and TRUTH_{AND,OR,XOR}_EXPR.
1692         * c-parser.c (c_parser_omp_atomic): Handle boolean
1693         {PRE,POST}_{INC,DEC}REMENT.
1694
1695 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
1696
1697         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
1698         (function_arg): Delete.
1699         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1700         (FUNCTION_INCOMING_ARG): Delete.
1701         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
1702         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
1703         and a bool.
1704         (function_arg): Rename to...
1705         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
1706         a bool.
1707         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
1708         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1709         (TARGET_FUNCTION_INCOMING_ARG): Define.
1710
1711 2010-08-30  Richard Guenther  <rguenther@suse.de>
1712
1713         PR tree-optimization/21602
1714         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
1715         using points-to information.
1716
1717 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
1718
1719         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
1720
1721 2010-08-30  Richard Guenther  <rguenther@suse.de>
1722
1723         PR tree-optimization/45449
1724         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
1725         variables.
1726
1727 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
1728
1729         * opts.h (CL_ERR_NEGATIVE): Define.
1730         * opts.c (unknown_option_callback): Don't postpone warnings for
1731         options marked with CL_ERR_NEGATIVE.
1732         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
1733         for negative versions of CL_REJECT_NEGATIVE options.
1734
1735 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
1736
1737         * config/i386/i386.md (zero_extendsidi2_1): Rename from
1738         zero_extendsidi2_32.
1739         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
1740         using SWI12 mode iterator.
1741         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
1742         to define_insn_and_split pattern.
1743         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
1744         using SWI24 mode iterator.
1745         (*zero_extendqi<mode>2_and): Macroize insn from
1746         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
1747         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
1748         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
1749         SWI24 mode iterator.
1750         (*zero_extendqi<mode>2_movzbl): Ditto from
1751         *zero_extendqi{hi,si}2_movzbl.
1752         (extendsidi2_1): Rename from extendsidi2_32.
1753         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
1754         SWI12 mode iterator.
1755
1756 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
1757
1758         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
1759         general purpose registers.
1760         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
1761         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
1762         with general purpose registers and memory operands.  Add associated
1763         CCImode post-reload splitter.
1764         * config/ia64/div.md: Change BImode to CCImode throughout.
1765
1766 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
1767
1768         * config/ia64/ia64.md (cstorebi4): Fix thinko.
1769
1770 2010-08-28  Hariharan Sandanagobalane <hariharan@picochip.com>
1771
1772         * config/picochip/picochip.c (reorder_var_tracking_notes): This
1773         function was dropping debug insns which caused PR45299.
1774
1775 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
1776
1777         * config/i386/sse.md (extsuffix): New code attribute.
1778         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
1779         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
1780         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
1781         and sse4_1_zero_extendv4qiv4si2.
1782         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
1783         and sse4_1_zero_extendv2qiv2di2.
1784         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
1785         and sse4_1_zero_extendv4hiv4si2.
1786         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
1787         and sse4_1_zero_extendv2hiv2di2.
1788         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
1789         and sse4_1_zero_extendv2siv2di2
1790
1791         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
1792         using any_extend code iterator.
1793         (*avx_<s>mulv8hi3_highpart): Macroize insn from
1794         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
1795         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
1796
1797         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
1798         gen_sse4_1_sign_extend* functions.
1799         (struct builtin_description bdesc_args): Ditto.
1800
1801 2010-08-27  Xinliang David Li  <davidxl@google.com>
1802
1803         PR/45422
1804         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
1805         (iv_ca_set_no_cp): Update used inv expr count.
1806         (iv_ca_set_cp): Ditto.
1807         (iv_ca_new): Initialize new member.
1808         (iv_ca_free): Free memory.
1809
1810 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
1811
1812         * config/sh/sh-protos.h (sh_function_arg): Delete.
1813         (sh_function_arg_advance): Delete.
1814         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1815         (PASS_IN_REG_P): Eliminate cast.
1816         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
1817         const_tree and a bool.
1818         (sh_function_arg): Likewise.
1819         (sh_output_mi_thunk): Call sh_function_arg_advance) and
1820         sh_function_arg.
1821         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1822
1823 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
1824             Kaz Kojima  <kkojima@gcc.gnu.org>
1825
1826         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
1827         when possible.
1828         (sh_expand_epilogue): Likewise.
1829         * config/sh/sh.md (movml_push_banked): New insn.
1830         (movml_pop_banked): Likewise.
1831
1832 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
1833
1834         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
1835         gen_regexp_oneof, gen_regexp_sequence): Use the string found
1836         in vector element 0 rather than the original string when there's
1837         only one element.
1838         (gen_regexp): Remove extra semicolon.
1839
1840         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
1841         thumb2_movsf_vfp): Set attribute "insn".
1842         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
1843         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
1844         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
1845         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
1846         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
1847         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
1848         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
1849         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
1850         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
1851         if_not_arith, if_arith_not, cond_move_not): Likewise.
1852
1853 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1854
1855         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
1856         New declaration.
1857         (rs6000_allocate_stack_temp): Ditto.
1858         (rs6000_expand_convert_si_to_sfdf): Ditto.
1859
1860         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
1861         line.  Update the options set if power6 or power7 server/embedded
1862         type options are used.  If we give a warning for no vsx under
1863         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
1864         (rs6000_allocate_stack_temp): New function to allocate a stack
1865         tempoary and adjust the address so it meets either REG+OFFSET or
1866         REG+REG addressing requirements.
1867         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
1868         that they can be used with the LFIWAX/LFIWZX instrucitons.
1869         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
1870         converting signed/unsigned SImode to either SFmode/DFmode.
1871
1872         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
1873         whether certain instructions can be generated.
1874         (TARGET_FCTIDZ): Ditto.
1875         (TARGET_STFIWX): Ditto.
1876         (TARGET_LFIWAX): Ditto.
1877         (TARGET_LFIWZX): Ditto.
1878         (TARGET_FCFIDS): Ditto.
1879         (TARGET_FCFIDU): Ditto.
1880         (TARGET_FCFIDUS): Ditto.
1881         (TARGET_FCTIDUZ): Ditto.
1882         (TARGET_FCTIWUZ): Ditto.
1883
1884         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
1885         (UNSPEC_FCTID): Ditto.
1886         (UNSPEC_LFIWAX): Ditto.
1887         (UNSPEC_LFIWZX): Ditto.
1888         (UNSPEC_FCTIWUZ): Ditto.
1889         (rreg): Use correct constraints.
1890         (SI_CONVERT_FP): New mode attribute for floating point conversion
1891         tests.
1892         (E500_CONVERT): Ditto.
1893         (lfiwax): New insns for converting from integer to floating point
1894         utilizing newer instructions.  Attempt to optimize conversions
1895         that come from memory so that we don't load the value into a GPR,
1896         spill it to the stack and reload it into a FPR.
1897         (floatsi<mode>2_lfiwax): Ditto.
1898         (floatsi<mode>2_lfiwax_mem): Ditto.
1899         (floatsi<mode>2_lfiwax_mem2): Ditto.
1900         (lfiwzx): Ditto.
1901         (floatunssi<mode>2_lfiwzx): Ditto.
1902         (floatunssi<mode>2_lfiwzx_mem): Ditto.
1903         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
1904         (floatdidf2_mem): Ditto.
1905         (floatunsdidf2_fcfidu): Ditto.
1906         (floatunsdidf2_mem): Ditto.
1907         (floatunsdisf2): Ditto.
1908         (floatunsdisf2_fcfidus): Ditto.
1909         (floatunsdisf2_mem): Ditto.
1910         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
1911         Use FCFID on 32-bit hosts that support it.
1912         (floatsidf2_internal): Ditto.
1913         (floatunssisf2): Ditto.
1914         (floatunssidf2): Ditto.
1915         (floatunssidf2_internal): Ditto.
1916         (floatsisf2): Ditto.
1917         (floatdidf2): Ditto.
1918         (floatdidf2_fpr): Ditto.
1919         (floatunsdidf2): Ditto.
1920         (floatdisf2): Ditto.
1921         (floatdisf2_fcfids): Ditto.
1922         (floatdisf2_internal1): Ditto.
1923         (fixuns_truncsfsi2): Delete, merge into common pattern for both
1924         SF/DF.  Add power7 support.
1925         (fix_truncsfsi2): Ditto.
1926         (fixuns_truncdfsi2): Ditto.
1927         (fixuns_truncdfdi2): Ditto.
1928         (fix_truncdfsi2): Ditto.
1929         (fix_truncdfsi2_internal): Ditto.
1930         (fix_truncdfsi2_internal_gfxopt): Ditto.
1931         (fix_truncdfsi2_mfpgpr): Ditto.
1932         (fctiwz): Ditto.
1933         (btruncdf2): Ditto.
1934         (btruncdf2_fpr): Ditto.
1935         (btructsf2): Ditto.
1936         (ceildf2): Ditto.
1937         (ceildf2_fpr): Ditto.
1938         (ceilsf2): Ditto.
1939         (floordf2): Ditto.
1940         (floordf2_fpr): Ditto.
1941         (floorsf2): Ditto.
1942         (rounddf2): Ditto.
1943         (rounddf2_fpr): Ditto.
1944         (roundsf2): Ditto.
1945         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
1946         (fix_trunc<mode>di2): Ditto.
1947         (fixuns_trunc<mode>si2): Ditto.
1948         (fixuns_trunc<mode>di2): Ditto.
1949         (fctiwz_<mode>): Ditto.
1950         (btrunc<mode>2): Ditto.
1951         (btrunc<mode>2_fpr): Ditto.
1952         (ceil<mode>2): Ditto.
1953         (ceil<mode>2_fpr): Ditto.
1954         (floor<mode>2): Ditto.
1955         (float<mode>2_fpr): Ditto.
1956         (round<mode>2): Ditto.
1957         (round<mode>2_fpr): Ditto.
1958         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
1959         (fixuns_trunc<mode>si2_stfiwx): Ditto.
1960         (fix_truncdfsi2_internal): Ditto.
1961         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
1962         converted value on stack, loaded into GPR, and then stored into
1963         the final destination.
1964         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
1965         FCTIDZ.
1966         (lrint<mode>di2): New insn, provide the lrint builtin functions.
1967         (ftruncdf2): Delete, unused.
1968         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
1969
1970         * config/rs6000/vsx.md (toplevel): Update copyright year.
1971         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
1972         (VSr3): Ditto.
1973
1974 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
1975             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1976
1977         * gengtype.c (output_type_enum): Test the right union member.
1978
1979 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
1980
1981         PR target/41484
1982         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
1983         operands for operand 1.
1984         (sse4_1_extendv4qiv4si2): Ditto.
1985         (sse4_1_extendv2qiv2di2): Ditto.
1986         (sse4_1_extendv4hiv4si2): Ditto.
1987         (sse4_1_extendv2hiv2di2): Ditto.
1988         (sse4_1_extendv2siv2di2): Ditto.
1989         (sse4_1_zero_extendv8qiv8hi2): Ditto.
1990         (sse4_1_zero_extendv4qiv4si2): Ditto.
1991         (sse4_1_zero_extendv2qiv2di2): Ditto.
1992         (sse4_1_zero_extendv4hiv4si2): Ditto.
1993         (sse4_1_zero_extendv2hiv2di2): Ditto.
1994         (sse4_1_zero_extendv2siv2di2): Ditto.
1995         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
1996         (*sse4_1_extendv4qiv4si2): Ditto.
1997         (*sse4_1_extendv2qiv2di2): Ditto.
1998         (*sse4_1_extendv4hiv4si2): Ditto.
1999         (*sse4_1_extendv2hiv2di2): Ditto.
2000         (*sse4_1_extendv2siv2di2): Ditto.
2001         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
2002         (*sse4_1_zero_extendv4qiv4si2): Ditto.
2003         (*sse4_1_zero_extendv2qiv2di2): Ditto.
2004         (*sse4_1_zero_extendv4hiv4si2): Ditto.
2005         (*sse4_1_zero_extendv2hiv2di2): Ditto.
2006         (*sse4_1_zero_extendv2siv2di2): Ditto.
2007
2008 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
2009
2010         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
2011         (mips_function_arg): Delete.
2012         (mips_function_arg_boundary): Take a const_tree.
2013         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
2014         (mips_arg_info): Likewise.
2015         (mips_setup_incoming_varargs): Call mips_function_arg_advance
2016         instead of FUNCTION_ARG_ADVANCE.
2017         (mips_function_arg_advance): Adjust prototype.  Make static.
2018         (mips_function_arg): Likewise.
2019         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2020         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
2021
2022 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
2023
2024         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2025         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
2026         (function_arg): Delete.
2027         (function_arg_boundary): Take a const_tree.
2028         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
2029         (rs6000_spe_function_arg): Likewise.
2030         (rs6000_parm_start): Likewise.
2031         (rs6000_arg_size): Likewise.
2032         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
2033         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
2034         (rs6000_mixed_function_arg): Likewise.
2035         (function_arg): Rename to...
2036         (rs6000_function_arg): ...this.
2037         (function_arg_advance): Rename to...
2038         (rs6000_function_arg_advance_1): ...this
2039         (rs6000_function_arg_advance): New function.  Call it.
2040         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
2041         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
2042         (rs6000_function_value): Likewise.
2043         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2044
2045 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2046
2047         * config/arm/arm.md (enabled): Test the value of arch_enabled
2048         rather than just using it.
2049
2050 2010-08-27  Olivier Hainque  <hainque@adacore.com>
2051             Eric Botcazou  <ebotcazou@adacore.com>
2052
2053         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
2054         cover all the possible offsets from this base.
2055         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
2056
2057 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
2058
2059         PR tree-optimization/44485
2060         * calls.c (flags_from_decl_or_type): For const or pure
2061         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
2062         together with ECF_CONST resp. ECF_PURE.
2063         * builtins.c (expand_builtin): Use flags_from_decl_or_type
2064         instead of querying flags directly.
2065         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
2066         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
2067
2068 2010-08-26  Richard Guenther  <rguenther@suse.de>
2069
2070         PR tree-optimization/45255
2071         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
2072         and externals are also invariant.
2073
2074 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
2075
2076         PR rtl-optimization/44858
2077         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
2078         newi2pat, make sure they don't affect newpat.
2079
2080         PR rtl-optimization/45400
2081         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
2082         SUBREG_REG if both modes are of MODE_INT class.
2083
2084 2010-08-25  Julian Brown  <julian@codesourcery.com>
2085
2086         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
2087         * config/arm/arm.md (generic_sched): No for Cortex-A5.
2088         (generic_vfp): Likewise.
2089         (cortex-a5.md): Include.
2090         * config/arm/cortex-a5.md: New.
2091
2092 2010-08-25  Richard Guenther  <rguenther@suse.de>
2093
2094         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
2095         * gimple.c (gimple_get_alias_set): Remove special handling
2096         for pointers.
2097
2098 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2099
2100         PR middle-end/45355
2101         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
2102         dead_or_set_p when computing i0_feeds_i2_n.
2103
2104         * combine.c (find_split_point): Undo canonicalization of multiply-add
2105         to (minus x (mult)) when it seems likely that this will increase the
2106         chances of a split.
2107
2108 2010-08-25  Richard Guenther  <rguenther@suse.de>
2109
2110         PR lto/44562
2111         * lto-streamer.c (lto_record_common_node): Do not mess with
2112         TYPE_CANONICAL when not in lto.
2113         * gimple.c (gimple_register_type): Likewise.
2114
2115 2010-08-25  Richard Guenther  <rguenther@suse.de>
2116
2117         PR tree-optimization/45316
2118         * tree-ssa-pre.c (eliminate): Properly clean EH info.
2119
2120 2010-08-25  Richard Guenther  <rguenther@suse.de>
2121
2122         PR tree-optimization/45393
2123         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
2124         and clean EH info.  Avoid SSA update.
2125         (execute_cse_sincos): Cleanup the CFG if it has changed.
2126
2127 2010-08-25  Richard Guenther  <rguenther@suse.de>
2128
2129         PR middle-end/45379
2130         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
2131         TARGET_MEM_REF in alignment computation.
2132
2133 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
2134
2135         PR tree-optimization/45059
2136         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
2137         type conversions from newop{1,2}.  Assert t is a comparison and
2138         newop{1,2} after the stripping are gimple vals.
2139
2140 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
2141
2142         * config/arm/iterators.md (VU, SE, V_widen_l): New.
2143         (V_unpack, US): New.
2144         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
2145         (vec_unpack<US>_lo_<mode>): Likewise.
2146         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
2147         (neon_vec_unpack<US>_lo_<mode>): Likewise.
2148         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
2149         (vec_widen_<US>mult_hi_<mode>): Likewise.
2150         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
2151         (neon_vec_<US>mult_hi_<mode>"): Likewise.
2152         (neon_unpack<US>_<mode>): Widening move intermediate step for
2153         vectorizing without -mvectorize-with-neon-quad.
2154         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
2155         for vectorizing without -mvectorize-with-neon-quad.
2156         * config/arm/predicates.md (vect_par_constant_high): Check for
2157         high-half lanes of a vector.
2158         (vect_par_constant_low): Check for low-half lanes of a vector.
2159
2160 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
2161
2162         * tree-if-conv.c (struct ifc_dr): New.
2163         (IFC_DR): New.
2164         (DR_WRITTEN_AT_LEAST_ONCE): New.
2165         (DR_RW_UNCONDITIONALLY): New.
2166         (memref_read_or_written_unconditionally): Use the cached values
2167         when possible.
2168         (write_memref_written_at_least_once): Same.
2169         (if_convertible_loop_p): Initialize and free DR->aux fields.
2170
2171 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
2172
2173         * gimple.c (gimple_could_trap_p_1): Not static anymore.
2174         Pass an extra bool parameter include_mem.
2175         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
2176         (gimple_assign_rhs_could_trap_p): Same.
2177         * gimple.h (gimple_could_trap_p_1): Declared.
2178         * tree-data-ref.h (same_data_refs_base_objects): New.
2179         (same_data_refs): New.
2180         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
2181         (write_memrefs_written_at_least_once): New.
2182         (ifcvt_memrefs_wont_trap): New.
2183         (operations_could_trap): New.
2184         (ifcvt_could_trap_p): New.
2185         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
2186         Gets a vector of data refs.
2187         (if_convertible_stmt_p): Same.
2188         (if_convertible_loop_p_1): New.
2189         (if_convertible_loop_p): Call if_convertible_loop_p_1.
2190
2191 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
2192
2193         * common.opt (ftree-loop-if-convert-stores): New flag.
2194         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
2195         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
2196         the created statement before GSI.
2197         (if_convertible_phi_p): Allow virtual phi nodes when
2198         flag_loop_if_convert_stores is set.
2199         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
2200         Do not handle types that do not match is_gimple_reg_type.
2201         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
2202         when flag_loop_if_convert_stores is set, as LHS can contain
2203         memory refs.
2204         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
2205         to if_convertible_gimple_assign_stmt_p.
2206         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
2207         (replace_phi_with_cond_gimple_assign_stmt): Renamed
2208         predicate_scalar_phi.  Do not handle virtual phi nodes.
2209         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
2210         Call predicate_scalar_phi.
2211         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
2212         just after the labels for flag_loop_if_convert_stores, otherwise
2213         insert the predicate in the end of the BB.
2214         (predicate_mem_writes): New.
2215         (combine_blocks): Call predicate_all_scalar_phis.  When
2216         flag_loop_if_convert_stores is set, call predicate_mem_writes.
2217         (tree_if_conversion): Call mark_sym_for_renaming when
2218         flag_loop_if_convert_stores is set.
2219         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
2220         flag_loop_if_convert_stores is set.
2221
2222 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
2223
2224         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
2225         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
2226         (pa_function_value): Make static.
2227         (override_options): Rename to...
2228         (pa_option_override): ...this. Make static.
2229         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
2230         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
2231         TARGET_OPTION_OVERRIDE): Define.
2232         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
2233         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
2234         Remove.
2235         * config/pa/pa-protos.h (override_options): Remove.
2236
2237 2010-08-24  Richard Guenther  <rguenther@suse.de>
2238
2239         PR middle-end/45379
2240         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
2241         if addr->index is NULL or zero.
2242         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
2243         TARGET_MEM_REF more properly.
2244         (indirect_ref_may_alias_decl_p): Likewise.
2245         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
2246         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
2247
2248 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
2249
2250         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
2251         (m32c_override_options): Rename to...
2252         (m32c_option_override): ...this. Make static.
2253         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
2254         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
2255         Remove.
2256         * config/m32c/m32c-protos.h (m32c_override_options,
2257         m32c_function_value_regno_p): Remove.
2258
2259 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
2260
2261         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
2262         Fix a typo in a previous commit.
2263
2264 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
2265
2266         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
2267         Pre-initialize innerloop_iters to one.
2268
2269 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
2270
2271         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
2272         existing static function global.
2273
2274         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
2275         is changed to global.
2276
2277         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
2278         may_be_nonaddressable_p on base, and don't collect this reference
2279         if the address of the base could not be taken.
2280
2281 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2282
2283         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
2284         enable the compiler to autovectorize mathmetical functions for
2285         power7 using the Mathematical Acceleration Subsystem library.
2286
2287         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
2288         handle which vector math library we have.
2289         (rs6000_override_options): Add -mveclibabi=mass support.
2290         (rs6000_builtin_vectorized_libmass): New function to handle auto
2291         vectorizing math functions that are in the MASS library.
2292         (rs6000_builtin_vectorized_function): Call it.
2293
2294         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2295         -mveclibabi=mass.
2296
2297 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2298
2299         PR boehm-gc/34544
2300         * gthr-posix.h (__gthread_active_init): Delete.
2301         (__gthread_active_p): Do activity check here.
2302         Don't include errno.h on hppa-hpux.  Update comment.
2303         * gthr-posix95.h (__gthread_active_init): Delete.
2304         (__gthread_active_p): Do activity check here.
2305         Don't include errno.h on hppa-hpux.  Update comment.
2306         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
2307         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
2308         add -lpthread when -mt or -pthread is specified.
2309         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
2310         (LINK_GCC_C_SEQUENCE_SPEC): Define.
2311         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
2312         (stublib.c, pthread_default_stacksize_np-stub.o,
2313         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
2314         $(T)libgcc_stub.a): Add methods.
2315         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
2316         (stublib.c, pthread_default_stacksize_np-stub.o,
2317         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
2318         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
2319         pthread_mutex_unlock): New stubs.
2320
2321 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
2322
2323         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
2324         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
2325         options.
2326         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
2327         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
2328         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
2329         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
2330         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
2331         "-l".
2332         * cppspec.c: Include opts.h.
2333         (lang_specific_driver): Use cl_decoded_option structures.
2334         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
2335         * doc/tm.texi: Regenerate.
2336         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
2337         (driver_handle_option): Allow driver options needing no special
2338         processing.
2339         (process_command): Decode options before call to
2340         lang_specific_driver.  Pass decoded options to
2341         lang_specific_driver.
2342         * gcc.h (lang_specific_driver): Update prototype.
2343         * gccspec.c: Include opts.h.
2344         (lang_specific_driver): Use cl_decoded_option structures.
2345         * opts-common.c (option_ok_for_language, generate_option,
2346         generate_option_input_file): New.
2347         (decode_cmdline_option): Use option_ok_for_language.
2348         (decode_cmdline_options_to_array): Use generate_option_input_file.
2349         (handle_generated_option): Use generate_option.
2350         * opts.h (generate_option, generate_option_input_file): Declare.
2351
2352 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
2353
2354         * config/mips/mips.c (mips_override_options): Rename to...
2355         (mips_option_override): ...this. Make static.
2356         (TARGET_OPTION_OVERRIDE): Define.
2357         (mips_in_small_data_p): Update comment.
2358         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
2359         (FIXED_REGISTERS): Update comment.
2360         * config/mips/mips-protos.h (mips_override_options): Remove.
2361
2362 2010-08-21  Olivier Hainque  <hainque@adacore.com>
2363
2364         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
2365
2366 2010-08-21  Olivier Hainque  <hainque@adacore.com>
2367
2368         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
2369         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
2370
2371 2010-08-20  Jan Hubicka  <jh@suse.cz>
2372
2373         * tree-pass.h (pass_ipa_cdtor_merge): New function.
2374         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
2375         heap allocated.
2376         (record_cdtor_fn): Move to ipa.c; do not test for
2377         have_ctors_dtors.
2378         (build_cdtor): Move to ipa.c; add code avoiding construction
2379         when target have ctors/dtors and there is only one ctor/dtor at given
2380         priority.
2381         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
2382         sort; reverse order of constructors.
2383         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
2384         (cgraph_finalize_function): Do not call record_cdtor_fn.
2385         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
2386         (cgraph_build_static_cdtor): Move to ipa.c.
2387         * ipa.c: Include target.h and tree-iterator.h.
2388         (cgraph_build_static_cdtor, static_ctors, static_dtors,
2389         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
2390         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
2391         pass_ipa_cdtor_merge): New.
2392         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
2393         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
2394         bounds access.
2395
2396 2010-08-20  Jan Hubicka  <jh@suse.cz>
2397
2398         PR c++/45307
2399         PR c++/17736
2400         * cgraph.h (cgraph_only_called_directly_p,
2401         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
2402         static cdtors.
2403         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
2404         are not needed.
2405         (cgraph_finalize_function): Static cdtors are reachable.
2406         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
2407
2408 2010-08-20  Jan Hubicka  <jh@suse.cz>
2409
2410         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
2411         flag_wpa.
2412         * lto-streamer-out.c (lto_output): Likewise.
2413         * passes.c (ipa_write_optimization_summaries): Initialize statement
2414         uids.
2415
2416 2010-08-20  Olivier Hainque  <hainque@adacore.com>
2417
2418         * tree.h (alias_diag_flags): New enum.
2419         (alias_pair): Add an 'emitted_diags' field.
2420         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
2421         (assemble_alias): Initialize emitted_diags of new pairs.
2422
2423 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
2424
2425         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2426         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2427         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2428         (STACK_CHECK_PROTECT): Define.
2429         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
2430         (output_probe_stack_range): Likewise.
2431         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
2432         builtin stack checking is enabled.
2433         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
2434         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2435         (probe_stack_range): New insn.
2436
2437 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
2438
2439         PR target/45336
2440         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
2441         short first.
2442
2443         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
2444         char first.
2445
2446 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2447
2448         PR target/45336
2449         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
2450         to cover zero extension into 64-bit register.
2451         (*sse2_pextrw): Likewise.
2452         (*sse4_1_pextrd_zext): New insn.
2453
2454 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
2455
2456         revert r163410, partially revert r163267.
2457         * config/rs6000/darwin.h (LIB_SPEC): Remove.
2458         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
2459         Darwin versions.
2460
2461 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2462
2463         PR middle-end/44974
2464         * builtins.c (expand_builtin): Don't optimize away
2465         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
2466
2467 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
2468
2469         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
2470         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
2471         alternative 1 of operand 2.
2472
2473 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2474             Paolo Bonzini  <bonzini@gnu.org>
2475
2476         * simplify-rtx.c (simplify_unary_operation_1): Optimize
2477         (sign_extend (zero_extend (...)) and
2478         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
2479
2480 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2481
2482         PR rtl-optimization/45353
2483         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
2484         after bb_note is a BARRIER.
2485
2486 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
2487
2488         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
2489         linking libgcc.a.
2490
2491 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2492             Michael Matz  <matz@suse.de>
2493
2494         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
2495
2496 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
2497
2498         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
2499         (ggc_mark_roots): ...here.
2500
2501 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
2502
2503         * vec.h (FOR_EACH_VEC_ELT): Define.
2504         * c-decl.c: Use it.
2505         * cfgloop.c: Likewise.
2506         * cfgloopmanip.c: Likewise.
2507         * cgraph.c: Likewise.
2508         * cgraphunit.c: Likewise.
2509         * combine.c: Likewise.
2510         * config/bfin/bfin.c: Likewise.
2511         * config/mips/mips.c: Likewise.
2512         * config/rs6000/rs6000.c: Likewise.
2513         * dbxout.c: Likewise.
2514         * df-scan.c: Likewise.
2515         * dominance.c: Likewise.
2516         * dse.c: Likewise.
2517         * dwarf2out.c: Likewise.
2518         * except.c: Likewise.
2519         * expr.c: Likewise.
2520         * function.c: Likewise.
2521         * gcse.c: Likewise.
2522         * genattr.c: Likewise.
2523         * ggc-common.c: Likewise.
2524         * gimplify.c: Likewise.
2525         * graphite-blocking.c: Likewise.
2526         * graphite-clast-to-gimple.c: Likewise.
2527         * graphite-dependences.c: Likewise.
2528         * graphite-interchange.c: Likewise.
2529         * graphite-poly.c: Likewise.
2530         * graphite-scop-detection.c: Likewise.
2531         * graphite-sese-to-poly.c: Likewise.
2532         * graphite.c: Likewise.
2533         * haifa-sched.c: Likewise.
2534         * ifcvt.c: Likewise.
2535         * implicit-zee.c: Likewise.
2536         * ipa-prop.c: Likewise.
2537         * ipa-struct-reorg.c: Likewise.
2538         * ipa.c: Likewise.
2539         * ira-build.c: Likewise.
2540         * ira-color.c: Likewise.
2541         * ira-emit.c: Likewise.
2542         * lambda-code.c: Likewise.
2543         * loop-invariant.c: Likewise.
2544         * loop-unroll.c: Likewise.
2545         * lower-subreg.c: Likewise.
2546         * lto-cgraph.c: Likewise.
2547         * lto-opts.c: Likewise.
2548         * lto-streamer-in.c: Likewise.
2549         * lto-streamer-out.c: Likewise.
2550         * lto-streamer.c: Likewise.
2551         * lto-symtab.c: Likewise.
2552         * matrix-reorg.c: Likewise.
2553         * opts.c: Likewise.
2554         * predict.c: Likewise.
2555         * print-tree.c: Likewise.
2556         * sdbout.c: Likewise.
2557         * sel-sched-dump.c: Likewise.
2558         * sel-sched-ir.c: Likewise.
2559         * sel-sched.c: Likewise.
2560         * sese.c: Likewise.
2561         * stor-layout.c: Likewise.
2562         * tree-cfg.c: Likewise.
2563         * tree-cfgcleanup.c: Likewise.
2564         * tree-chrec.c: Likewise.
2565         * tree-data-ref.c: Likewise.
2566         * tree-emutls.c: Likewise.
2567         * tree-inline.c: Likewise.
2568         * tree-into-ssa.c: Likewise.
2569         * tree-loop-distribution.c: Likewise.
2570         * tree-loop-linear.c: Likewise.
2571         * tree-mudflap.c: Likewise.
2572         * tree-outof-ssa.c: Likewise.
2573         * tree-parloops.c: Likewise.
2574         * tree-predcom.c: Likewise.
2575         * tree-pretty-print.c: Likewise.
2576         * tree-scalar-evolution.c: Likewise.
2577         * tree-ssa-live.c: Likewise.
2578         * tree-ssa-loop-im.c: Likewise.
2579         * tree-ssa-loop-ivcanon.c: Likewise.
2580         * tree-ssa-loop-ivopts.c: Likewise.
2581         * tree-ssa-loop-manip.c: Likewise.
2582         * tree-ssa-loop-niter.c: Likewise.
2583         * tree-ssa-loop-prefetch.c: Likewise.
2584         * tree-ssa-phiprop.c: Likewise.
2585         * tree-ssa-pre.c: Likewise.
2586         * tree-ssa-reassoc.c: Likewise.
2587         * tree-ssa-sccvn.c: Likewise.
2588         * tree-ssa-structalias.c: Likewise.
2589         * tree-ssa.c: Likewise.
2590         * tree-vect-data-refs.c: Likewise.
2591         * tree-vect-loop-manip.c: Likewise.
2592         * tree-vect-loop.c: Likewise.
2593         * tree-vect-patterns.c: Likewise.
2594         * tree-vect-slp.c: Likewise.
2595         * tree-vect-stmts.c: Likewise.
2596         * tree-vrp.c: Likewise.
2597         * tree.c: Likewise.
2598         * value-prof.c: Likewise.
2599         * var-tracking.c: Likewise.
2600         * varasm.c: Likewise.
2601         * vmsdbgout.c: Likewise.
2602
2603 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
2604             Richard Guenther  <richard.guenther@gmail.com>
2605
2606         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
2607         copy the src value and return a copy.
2608         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
2609         (C++ Volatiles): Adjust to describe C++ semantics only.
2610
2611 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
2612
2613         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
2614         be zero or nonzero.
2615         * doc/tm.texi: Regenerate.
2616         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
2617         * df-scan.c (df_get_exit_block_use_set), reginfo.c
2618         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
2619         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
2620         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
2621         to 1.
2622
2623 2010-08-20  Olivier Hainque  <hainque@adacore.com>
2624
2625         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
2626         an extra nop past a sibling call at the very end.
2627
2628 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
2629
2630         PR bootstrap/45350
2631         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
2632         a comment.
2633
2634 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
2635
2636         * target.def (function_arg, function_incoming_arg): Remove const
2637         qualifier on CUMULATIVE_ARGS parameter.
2638         * targhooks.h (default_function_arg, default_function_incoming_arg):
2639         Likewise.
2640         * targhooks.c (default_function_arg, default_function_incoming_arg):
2641         Likewise.
2642         * config/i386/i386.c (ix86_function_arg): Likewise.
2643
2644 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
2645
2646         PR target/45336
2647         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
2648         SIGN_EXTENDs or ZERO_EXTENDs.
2649
2650 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
2651
2652         PR target/42172
2653         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
2654         Take its cost into account if nonnull.
2655         (insn_a_feeds_b): New static function.
2656         (combine_instructions): Look for four-insn combinations.
2657         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
2658         them into account when computing all_adjacent and looking for other
2659         uses.
2660         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
2661         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
2662         (try_combine): New arg I0.  Handle four-insn combinations.
2663         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
2664         like ELIM_I1.
2665
2666 2010-08-19  Jason Merrill  <jason@redhat.com>
2667
2668         PR c++/45307
2669         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
2670         if ctor is empty.
2671         (gimplify_modify_expr_rhs): Adjust.
2672
2673 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
2674
2675         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
2676         bitmap_bit_p.
2677         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
2678         * dominance.c (iterate_fix_dominators): Likewise.
2679         * dse.c (set_usage_bits): Likewise.
2680         (set_position_unneeded, record_store): Likewise.
2681         * gimple-fold.c (get_maxval_strlen): Likewise.
2682         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
2683         * ipa-inline.c (update_caller_keys): Likewise.
2684         * ipa-split.c (verify_non_ssa_vars): Likewise.
2685         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
2686         (close_type_exposed_parameter, close_type_full_escape): Likewise.
2687         (close_addressof_down): Likewise.
2688         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
2689         (setup_allocno_left_conflicts_size): Likewise.
2690         (ira_reassign_conflict_allocnos): Likewise.
2691         (ira_reassign_pseudos): Likewise.
2692         * ira-emit.c (change_loop): Likewise.
2693         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
2694         * lto-streamer-out.c (write_symbol): Likewise.
2695         * predict.c (expr_expected_value_1): Likewise.
2696         * regstat.c (regstat_bb_compute_ri): Likewise.
2697         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2698         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
2699         * stmt.c (expand_case): Likewise.
2700         * tree-eh.c (emit_eh_dispatch): Likewise.
2701         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
2702         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
2703         Likewise.
2704         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
2705         (rdg_build_components): Likewise.
2706         * tree-object-size.c (collect_object_sizes_for): Likewise.
2707         * tree-sra.c (convert_callers): Likewise.
2708         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
2709         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
2710         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
2711
2712 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
2713
2714         * config/i386/i386.md (*lea_1): Use P mode iterator.
2715         (lea add splitter): Also handle DImode operands.
2716         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
2717         predicate.  Do not use ix86_lea_for_add_ok.
2718         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
2719         (lea ashift splitter): Also handle DImode operands.
2720         (DImode lea ashift splitter): Remove splitter.
2721
2722 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
2723
2724         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
2725         ix86_binary_operator_ok.
2726
2727 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
2728
2729         PR rtl-optimization/44691
2730         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
2731         is not a register.
2732
2733 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
2734
2735         PR target/45070
2736         * config/arm/arm.c (arm_output_epilogue): Ensure that return
2737          value of size 1-3 is handled correctly.
2738
2739 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
2740
2741         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
2742         type for the conditional has wide enough range.
2743
2744 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
2745
2746         PR target/45327
2747         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
2748         ix86_binary_operator_ok.
2749
2750 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
2751
2752         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
2753         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
2754         code to output insn mnemonic.  Fix comment.
2755         (*addsi_1_zext): Add r-r-0 alternative 1.
2756         <TYPE_LEA>: Split insn to lea.
2757         <default>: Handle alternative 1.
2758         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
2759         multi-level if_then_else RTX to set "type" attribute.
2760         <default>: Handle alternative 2.
2761         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
2762         Use cond RTX instead of multi-level if_then_else RTX to set
2763         "type" attribute.
2764         <default>: Handle alternatives 2 and 4.
2765         (lea splitters): Update calls to ix86_lea_for_add_ok.
2766
2767         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
2768         argument.
2769         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
2770
2771 2010-08-18  Richard Guenther  <rguenther@suse.de>
2772
2773         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
2774         use operand helpers.
2775
2776 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
2777
2778         PR middle-end/45292
2779         * optabs.c (expand_bool_compare_and_swap): Expand pending
2780         pops before trying the optab.
2781
2782 2010-08-18  Yao Qi  <yao@codesourcery.com>
2783
2784         PR target/45094
2785         * config/arm/arm.c (output_move_double): Fix typo generating
2786         instructions ('ldr'->'str').
2787
2788 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2789
2790         PR rtl-optimization/42575
2791         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
2792         live ranges.
2793
2794 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2795
2796         * config/arm/arm-protos.h (arm_expand_sync): New.
2797         (arm_output_memory_barrier, arm_output_sync_insn): New.
2798         (arm_sync_loop_insns): New.
2799         * config/arm/arm.c (FL_ARCH7): New.
2800         (FL_FOR_ARCH7): Include FL_ARCH7.
2801         (arm_arch7): New.
2802         (arm_print_operand): Support %C markup.
2803         (arm_legitimize_sync_memory): New.
2804         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
2805         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
2806         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
2807         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
2808         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
2809         (arm_process_output_sync_insn, arm_output_sync_insn): New.
2810         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
2811         * config/arm/arm.h (struct arm_sync_generator): New.
2812         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
2813         (TARGET_HAVE_MEMORY_BARRIER): New.
2814         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
2815         * config/arm/arm.md: Include sync.md.
2816         (UNSPEC_MEMORY_BARRIER): New.
2817         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
2818         (VUNSPEC_SYNC_OP):New.
2819         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
2820         (sync_result, sync_memory, sync_required_value): New attributes.
2821         (sync_new_value, sync_t1, sync_t2): Likewise.
2822         (sync_release_barrier, sync_op): Likewise.
2823         (length): Add logic to length attribute defintion to call
2824         arm_sync_loop_insns when appropriate.
2825         * config/arm/sync.md: New file.
2826
2827 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
2828
2829         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
2830         ENABLE_TREE_CHECKING.
2831         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
2832         and GCC >= 4.3.
2833
2834 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
2835
2836         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
2837         or optimizing for size, always avoid lea if possible.
2838
2839         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
2840
2841 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
2842
2843         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
2844         Dunmmy function with NULL return unless the target is
2845         OSX >= 10.6 (Darwin10).
2846
2847 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
2848
2849         * gcc.c (spec_function): Add remove-outfile.
2850         (remove_outfile_spec_function): New function.
2851         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
2852         * invoke.texi (replace-outfile): Document.
2853
2854 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
2855
2856         PR target/45296
2857         * reginfo.c (globalize_reg): Reject stack registers.
2858
2859 2010-08-17  Richard Guenther  <rguenther@suse.de>
2860
2861         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
2862         list of conditional equivalences.
2863         (free_all_edge_infos): Adjust.
2864         (record_equivalences_from_incoming_edge): Likewise.
2865         (record_cond): Likewise.
2866         (build_and_record_new_cond): Likewise.
2867         (record_conditions): Likewise.
2868         (dom_opt_leave_block): Likewise.
2869
2870 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
2871
2872         * doc/invoke.texi (ms-extension): Add documentation.
2873
2874 2010-08-17  Richard Guenther  <rguenther@suse.de>
2875
2876         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
2877
2878 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
2879
2880         PR c/40563
2881         * c-decl.c (diagnose_uninitialized_cst_member): New function.
2882         (finish_decl): Use it to issue a -Wc++-compat warning about
2883         uninitialized const field in struct or union.
2884
2885         (finish_struct): Use strip_array_types.
2886
2887 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
2888
2889         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
2890         functions.
2891         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
2892         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
2893         call block_nreverse here.
2894         (blocks_nreverse): Rename decl temporary to block.
2895
2896 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
2897
2898         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
2899         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
2900         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
2901         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
2902         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
2903         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
2904         thumb2_iorsi3): Delete.
2905         (orsi_notsi_si): No longer a named pattern.
2906         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
2907         * config/arm/predicates.md (shift_amount_operand): New.
2908         (mult_operator): New.
2909         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
2910         attr enabled): New.
2911         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
2912         arch matches t2.
2913         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
2914         (not_shiftsi_compare0): Likewise, renamed from
2915         arm_notsi_shiftsi_compare0.
2916         (not_shiftsi_compare0_scratch): Likweise, renamed from
2917         arm_notsi_shiftsi_compare0_scratch.
2918         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
2919         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
2920         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
2921         so that the register alternative is disabled when the shift_operator
2922         is MULT.  Use "M" as the constraint for constants.
2923         (arith_shiftsi splitter): Enable for TARGET_32BIT.
2924         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
2925         constraint for constants.
2926         (arith_shiftsi_compare0_scratch): Likewise.
2927         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
2928         Handle Thumb2 alternative.
2929
2930 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
2931
2932         * doc/options.texi (NoDriverArg): Document.
2933         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
2934         -MDX and -MMDX.
2935         * opt-functions.awk (switch_flags): Handle NoDriverArg.
2936         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
2937         marking for CL_NO_DRIVER_ARG options when in the driver.
2938         * opts.h (CL_NO_DRIVER_ARG): Define.
2939         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
2940         CL_COMMON): Update values.
2941
2942 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
2943
2944         * common.opt: Add driver options.
2945         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
2946         * doc/options.texi (Driver, RejectDriver): Document.
2947         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
2948         print_prog_name, print_multi_directory, print_sysroot,
2949         print_multi_os_directory, print_multi_lib,
2950         print_sysroot_headers_suffix, report_times, combine_flag,
2951         use_pipes, wrapper_string): Remove.
2952         (save_switch, driver_unknown_option_callback,
2953         driver_wrong_lang_callback, driver_post_handling_callback,
2954         driver_handle_option): New.
2955         (spec_lang, last_language_n_infiles): Make file-scope static
2956         instead of local to process_command.
2957         (process_command): Use decode_cmdline_options_to_array and
2958         read_cmdline_option for option processing.  Compute have_c in
2959         prescan of decoded options.
2960         * opt-functions.awk (switch_flags): Handle Driver and
2961         RejectDriver.
2962         (var_type, var_type_struct): Handle Separate options as generating
2963         const char * variables.
2964         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
2965         CL_TARGET to be passed by caller if required.
2966         (decode_cmdline_options_to_array): Update comment.
2967         * opts.c (complain_wrong_lang): Handle options only valid for the
2968         driver.
2969         (decode_options): Update call to decode_cmdline_options_to_array.
2970         (print_filtered_help): Ignore driver-only options.
2971         (print_specific_help): Ignore CL_DRIVER.
2972         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
2973         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
2974         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
2975         Update values.
2976
2977 2010-08-16  Richard Guenther  <rguenther@suse.de>
2978
2979         * tree-cfg.c (verify_types_in_gimple_reference): Verify
2980         TARGET_MEM_REF a bit.
2981         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
2982         (create_mem_ref_raw): Always create TMR_OFFSET, store the
2983         alias pointer type via it.
2984         (copy_mem_ref_info): Adjust.
2985         (maybe_fold_tmr): Likewise.
2986         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
2987         (reference_alias_ptr_type): Likewise.
2988         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
2989         adjust documentation of TMR_OFFSET operand.
2990         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
2991         use the alias pointer type.
2992         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
2993         initialize mem attrs but the TMR itself.
2994         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
2995         similar to MEM_REF.
2996         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
2997         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
2998         (unshare_and_remove_ssa_names): Likewise.
2999         (copy_ref_info): Adjust.
3000         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
3001         TARGET_MEM_REF case.
3002         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
3003         at TMR_ORIGINAL.
3004         * tree.h (TMR_ORIGINAL): Remove.
3005         * gimple.c (get_base_address): For TARGET_MEM_REF with a
3006         symbol return that.
3007         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
3008         with a symbol.
3009         (get_addr_base_and_unit_offset): Likewise.
3010         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
3011         TARGET_MEM_REFs.
3012         (indirect_ref_may_alias_decl_p): Likewise.
3013         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
3014
3015 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
3016
3017         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
3018         with GCC version 4.6, the default setting (when not optimizing
3019         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
3020         been changed to -fomit-frame-pointer.
3021
3022 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
3023
3024         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
3025         Darwin10.  Do not link libgcc.a for Darwin >= 9.
3026
3027 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
3028
3029         * doc/invoke.texi (Warning Options): Fix terminology and markup
3030         in the description of how unknown warning options are handled.
3031
3032 2010-08-15  Ira Rosen  <irar@il.ibm.com>
3033
3034         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
3035         in basic blocks.
3036         (vect_supportable_dr_alignment): Check alignment for basic blocks.
3037         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
3038         data references.
3039         (vect_bb_vectorization_profitable_p): New function.
3040         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
3041         check if it's worthwhile to vectorize the basic block.
3042
3043 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
3044
3045         * reload.h (register_move_cost, memory_move_secondary_cost,
3046         secondary_reload_class): Adjust prototype.
3047         * rtl.h (reg_class_subset_p): Adjust prototype.
3048         * reload.c (secondary_reload_class): Change arguments type from
3049         enum reg_class to reg_class_t. Change result type to reg_class_t.
3050         * reginfo.c (register_move_cost, reg_class_subset_p): Change
3051         arguments type from enum reg_class to reg_class_t.
3052         (memory_move_secondary_cost): Change arguments type from
3053         enum reg_class to reg_class_t. Change type of saved_flags to
3054         reg_class_t.
3055
3056         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3057         Remove macros.
3058         (mips_cost): Remove.
3059         (struct mips_rtx_cost_data): Moved to mips.c.
3060         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
3061         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
3062         (mips_cost): Make static.
3063         (mips_canonicalize_move_class): Change argument type to reg_class_t.
3064         Change result type to reg_class_t.
3065         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
3066         type from enum reg_class to reg_class_t.
3067         (mips_register_move_cost): Make static. Change arguments
3068         type from enum reg_class to reg_class_t.
3069         (mips_memory_move_cost): New function.
3070         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3071
3072 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
3073
3074         PR rtl-optimization/43358
3075         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
3076         of a single hard register, using simplify_subreg_regno to decide
3077         what that register should be.
3078
3079 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
3080
3081         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
3082         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
3083         (loongson_pmull<V_suffix>): Rename to...
3084         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
3085
3086 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
3087
3088         * configure.ac: Enable -fomit-frame-pointer on darwin
3089         which support dwarf2.
3090         * config/i386/i386.c (override_options): Same.
3091
3092 2010-08-13  Jie Zhang  <jie@codesourcery.com>
3093
3094         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
3095
3096 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
3097
3098         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
3099         -MMD.
3100
3101 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
3102
3103         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
3104         up dot_prod pattern searching if a stmt is outside the loop.
3105
3106 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
3107             Uros Bizjak  <ubizjak@gmail.com>
3108
3109         * config.gcc: Handle --enable-frame-pointer.
3110
3111         * configure.ac: Add --enable-frame-pointer.
3112         * configure: Regenerated.
3113
3114         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
3115         (override_options): If not configured with --enable-frame-pointer,
3116         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
3117         optimizing for size), -fasynchronous-unwind-tables and
3118         -maccumulate-outgoing-args by default.
3119
3120 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
3121
3122         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
3123
3124         PR middle-end/45262
3125         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
3126         -a overflows.  Normalize the range.
3127
3128 2010-08-12  Richard Guenther  <rguenther@suse.de>
3129
3130         PR tree-optimization/45232
3131         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
3132         for types with undefined overflow.
3133         (reassociate_bb): Allow re-associating of bit and min/max
3134         operations for types with undefined overflow.
3135         * tree-ssa-forwprop.c (associate_plusminus): New function.
3136         (tree_ssa_forward_propagate_single_use_vars): Call it.
3137
3138 2010-08-12  Richard Guenther  <rguenther@suse.de>
3139
3140         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
3141         * tree-ssa-alias.c (get_ptr_info): Move ...
3142         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
3143         align and misalign fields conservatively.
3144         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
3145         derive alignment information.
3146         (evaluate_stmt): Derive alignment information from memory
3147         allocation functions.
3148         * tree.h (get_pointer_alignment): Make unsigned.
3149         * builtins.c (get_object_alignment): Use alignment information we
3150         have computed for pointers.
3151         (get_pointer_alignment): Likewise.  Make conservative, return
3152         and unsigned value.
3153         (expand_builtin_strlen): Adjust.
3154         (expand_builtin_memcmp): Likewise.
3155         (expand_builtin_strcmp): Likewise.
3156         (expand_builtin_strncmp): Likewise.
3157         (get_builtin_sync_mem): Use at least mode alignment.
3158         (fold_builtin_memset): Adjust.
3159         (fold_builtin_memory_op): Likewise.
3160         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
3161         information also dump pointer alignment knowledge.
3162         (dump_gimple_stmt): Likewise.
3163
3164 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
3165
3166         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
3167         (EMPTY_FIELD_BOUNDARY): Remove.
3168         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
3169
3170 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
3171
3172         PR debug/45259
3173         * caller-save.c (save_call_clobbered_regs): Only swap notes with
3174         DEBUG_INSNs if n_regs_saved.
3175
3176 2010-08-12  Wei Guozhi  <carrot@google.com>
3177
3178         PR target/44999
3179         * config/arm/arm.md (andsi3): Change to zero extension if possible.
3180         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
3181
3182 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
3183
3184         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
3185
3186         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
3187
3188 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3189
3190         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
3191         the case removed in the previous patch, when the only phi argument
3192         is defined in the same loop as the phi node itself.  Handle it
3193         separately from the invariant case by both propagating it outside
3194         the region and replacing the phi node with an assign.
3195
3196 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3197
3198         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
3199         constant phi nodes with one argument are is_gimple_min_invariant
3200         and SSA_NAME_IS_DEFAULT_DEF.
3201
3202 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3203
3204         * graphite-cloog-util.c (oppose_constraint):
3205         Extend loop counter's value range (CLOOG_ORG).
3206         (cloog_matrix_to_ppl_constraint): Same.
3207         (new_Constraint_System_from_Cloog_matrix): Same.
3208         * graphite-cloog-compat.h (matrix_num_type): New.
3209
3210 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3211
3212         * graphite.c (graphite_initialize): Do not initialize
3213         CLooG and initialize the Parma Polyhedra Library
3214         manually when using CLOOG_ORG.
3215         (graphite_finalize): Do not finalize CLooG and finalize
3216         the Parma Polyhedra Library manually when using CLOOG_ORG.
3217         * graphite-cloog-compat.h (cloog_initialize): Hide function
3218         when using CLOOG_ORG.
3219         (cloog_finalize): Same.
3220
3221 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3222
3223         * graphite-clast-to-gimple.c (free_scattering): Change
3224         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
3225         (CLOOG_ORG).
3226         (build_cloog_prog): Same.
3227         * graphite-cloog-compat.h (cloog_domain): Removed.
3228         (cloog_scattering): New.
3229         (cloog_set_domain): Removed.
3230         (cloog_set_scattering): New.
3231         (cloog_next_domain): Removed.
3232         (cloog_next_scattering): New.
3233         (cloog_set_next_domain): Removed.
3234         (cloog_set_next_scattering): New.
3235         (CloogScatteringList): New.
3236         (CloogScattering): New.
3237         (cloog_scattering_free): New.
3238         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
3239         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
3240         New.
3241
3242 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3243
3244         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
3245         CloogState.
3246         (set_cloog_options): Same.
3247         (print_clast_stmt): Same.
3248         (scop_to_clast): Same.
3249         (print_generated_program): Same.
3250         (gloog): Same.
3251         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
3252         (scop_to_clast): Extend with CloogState.
3253         * graphite-cloog-util.c: Include graphite-cloog-compat.h
3254         (new_Cloog_Domain_from_ppl_Polyhedron):
3255         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
3256         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
3257         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3258         * graphite-cloog-util.h (build_cloog_prog): Same.
3259         * graphite-cloog-copat.h (build_cloog_prog): New.
3260         (CloogState): New.
3261         (cloog_state_malloc): New.
3262         (cloog_state_free): New.
3263         (cloog_loop_malloc): New.
3264         (cloog_options_malloc): New.
3265         (cloog_statement_alloc): New.
3266         (cloog_domain_from_cloog_matrix): New.
3267         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
3268         (new_Cloog_Domain_from_ppl_Polyhedron): New.
3269
3270 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3271
3272         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
3273         type of NAME now depends on used CLooG version.
3274         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
3275         (gcc_type_for_clast_expr): Same.
3276         (print_clast_stmt): Replace pprint with clast_pprint.
3277         * graphite-cloog-compat.h: Provide compatibility macros for
3278         CLooG Legacy.
3279         (clast_name_p): New.
3280         (clast_expr_term): New.
3281         (clast_expr_red): New.
3282         (clast_expr_bin): New.
3283         (clast_pprint): New.
3284
3285 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3286
3287         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
3288         compatible to newer CLooG releases (CLOOG_ORG).
3289         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
3290         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
3291         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
3292         (build_cloog_prog) : New.
3293         (cloog_program_extract_scalars): New.
3294         (cloog_program_scatter): New.
3295
3296 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3297
3298         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
3299         conditionally (CLOOG_ORG).
3300         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
3301         (cloog_statement_usr): New.
3302         (cloog_domain): Same.
3303         (cloog_set_domain): Same.
3304         (cloog_next_domain): Same.
3305         (cloog_set_next_domain): Same.
3306         (cloog_program_nb_scattdims): Same.
3307         (cloog_program_set_nb_scattdims): Same.
3308         (cloog_program_names): Same.
3309         (cloog_program_set_names): Same.
3310         (cloog_program_set_context): Same.
3311         (cloog_program_set_loop): Same.
3312         (cloog_program_blocklist): Same.
3313         (cloog_program_set_blocklist): Same.
3314         (cloog_program_scaldims): Same.
3315         (cloog_program_set_scaldims): Same.
3316         (cloog_names_nb_parameters): Same.
3317         (cloog_names_set_nb_parameters): Same.
3318         (cloog_names_parameters): Same.
3319         (cloog_names_set_parameters): Same.
3320         (cloog_names_set_nb_iterators): Same.
3321         (cloog_names_set_iterators): Same.
3322         (cloog_names_set_nb_scattering): Same.
3323         (cloog_names_set_scattering): Same.
3324         (cloog_statement_set_usr): Same.
3325         (cloog_loop_set_next): Same.
3326         (cloog_loop_set_domain): Same.
3327         (cloog_loop_set_block): Same.
3328         (cloog_block_list_next): Same.
3329         (cloog_block_list_set_next):
3330         (cloog_block_list_set_block): Same.
3331
3332 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3333
3334         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
3335         a bool.
3336         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
3337         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
3338         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
3339         when something has been changed.
3340         (rewrite_commutative_reductions_out_of_ssa): Same.
3341
3342 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3343
3344         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
3345         handle the case when def is in the sese region.
3346         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
3347         for invariant expressions.
3348         (rewrite_cross_bb_phi_deps): Removed.
3349         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
3350         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
3351         rewrite_cross_bb_phi_deps.
3352
3353 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3354
3355         * graphite-sese-to-poly.c
3356         (rewrite_commutative_reductions_out_of_ssa_loop): Call
3357         scev_analyzable_p only on is_gimple_reg
3358
3359 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3360
3361         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
3362         (rewrite_close_phi_out_of_ssa): Propagate constant values or
3363         parametric expressions outside the scop region.
3364         (rewrite_cross_bb_scalar_deps): Same.
3365         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
3366
3367 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3368
3369         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
3370         SSA_NAME_DEF_STMT only on SSA_NAMEs.
3371
3372 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3373
3374         * tree-scalar-evolution.c (instantiate_scev_name): Do not
3375         instantiate default definitions.
3376
3377 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
3378             Sebastian Pop  <sebastian.pop@amd.com>
3379
3380         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
3381         (loop_exits_from_bb_p): New.
3382         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
3383         (loop_exits_from_bb_p): Declared.
3384         * graphite-scop-detection.c (scopdet_basic_block_info): Call
3385         loop_exits_to_bb_p.
3386
3387 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3388
3389         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
3390         extra parameter for the region.  Call scev_analyzable_p.
3391         (rewrite_reductions_out_of_ssa): Update call to
3392         rewrite_close_phi_out_of_ssa.
3393         (rewrite_cross_bb_phi_deps): Same.
3394         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
3395         parameter for the region.  Call scev_analyzable_p.
3396         (rewrite_commutative_reductions_out_of_ssa): Update call to
3397         rewrite_commutative_reductions_out_of_ssa_loop.
3398
3399 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3400
3401         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
3402
3403 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3404
3405         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
3406         SSA scalar phi nodes that can be scev_analyzable_p.
3407
3408 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3409
3410         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
3411         handle SSA_NAME_IS_DEFAULT_DEF.
3412
3413 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3414
3415         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
3416
3417 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3418
3419         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
3420         case non close-phi nodes with one argument.
3421
3422 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3423
3424         * sese.h (scev_analyzable_p): Scevs could be expressions without
3425         chrecs and still be scev_analyzable_p.
3426
3427 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3428
3429         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
3430
3431 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3432
3433         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
3434         * cfgloop.h (struct loop): Remove single_iv field.
3435         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
3436         (scop_canonicalize_loops): Removed.
3437         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
3438         over all the loop phi nodes in loop->header.
3439         (build_poly_scop): Remove use of scop_canonicalize_loops.
3440
3441 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3442
3443         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
3444         handle GIMPLE_CALL.
3445
3446 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3447
3448         * tree-chrec.c (chrec_apply): Should only apply to the specified
3449         variable.  Also handle multivariate chains of recurrences that
3450         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
3451
3452 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3453
3454         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
3455         (debug_clast_name_indexes_1): Removed.
3456         (debug_clast_name_indexes): Removed.
3457         (pbb_to_depth_to_oldiv): Removed.
3458         (build_iv_mapping): Replace the use of rename_map with iv_map.
3459         (translate_clast_user): Remove uses of rename_map.  Allocate and
3460         free iv_map.
3461         (translate_clast_for_loop): Remove uses of rename_map.
3462         (translate_clast_for): Same.
3463         (translate_clast_guard): Same.
3464         (translate_clast): Same.
3465         (gloog): Same.
3466         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
3467         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
3468         * sese.c (set_rename): Now static.
3469         (rename_variables_in_stmt): Removed.
3470         (rename_uses): New.
3471         (is_parameter): Removed.
3472         (is_iv): Removed.
3473         (expand_scalar_variables_call): Removed.
3474         (expand_scalar_variables_ssa_name): Removed.
3475         (expand_scalar_variables_expr): Removed.
3476         (expand_scalar_variables_stmt): Removed.
3477         (expand_scalar_variables): Removed.
3478         (rename_variables): Removed.
3479         (remove_condition): Removed.
3480         (get_true_edge_from_guard_bb): Removed.
3481         (get_false_edge_from_guard_bb): Removed.
3482         (struct igp): Removed.
3483         (default_before_guard): Removed.
3484         (convert_for_phi_arg): Removed.
3485         (add_guard_exit_phis): Removed.
3486         (insert_guard_phis): Removed.
3487         (graphite_copy_stmts_from_block): Now also uses iv_map and a
3488         region.  Do not copy conditions.  Do not copy induction variables.
3489         Call rename_uses.
3490         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
3491         the translated statement.  Use the iv_map for the induction
3492         variable renaming.
3493         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
3494         (set_rename): Removed declaration.
3495         (scev_analyzable_p): ...here.
3496         * tree-chrec.c (chrec_apply_map): New.
3497         * tree-chrec.h (chrec_apply_map): Declared.
3498
3499 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3500
3501         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
3502         insert_loop_close_phis.
3503         * sese.c (name_defined_in_loop_p): Removed.
3504         (expr_defined_in_loop_p): Removed.
3505         (alive_after_loop): Removed.
3506         (close_phi_not_yet_inserted_p): Removed.
3507         (struct alep): Removed.
3508         (add_loop_exit_phis): Removed.
3509         (insert_loop_close_phis): Removed.
3510
3511 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3512
3513         * graphite-cloog-util.c
3514         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
3515         * graphite-poly.c
3516         (psct_scattering_dim_for_loop_depth): Same.
3517
3518 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3519
3520         * graphite-cloog-util.h: Added cloog.h.
3521         * graphite-blocking.c: Removed cloog.h.
3522         * graphite-dependences.c: Same.
3523         * graphite-interchange.c: Same.
3524         * graphite-poly.c: Same.
3525         * graphite-ppl.c: Same.
3526         * graphite-scop-detection.c: Same.
3527         * graphite-sese-to-poly.c:
3528         Removed cloog.h.
3529         Removed graphite-clast-to-gimple.h.
3530         (check_poly_representation): Removed (unused).
3531         * graphite-sese-to-poly.h
3532         (check_poly_representation): Removed (unused).
3533
3534 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3535
3536         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
3537         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
3538         (graphite-cloog-util.o): New.
3539         (graphite-ppl.o): Added graphite-cloog-util.h.
3540         * graphite-clast-to-gimple.c:
3541         Added graphite-cloog-util.h to include statements.
3542         * graphite-cloog-util.c: New.
3543         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
3544         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3545         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3546         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3547         (insert_constraint_into_matrix): Same.
3548         (ppl_Constrain_System_number_of_constraints): Same.
3549         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
3550         (oppose_constraint): Same.
3551         (cloog_matrix_to_ppl_constraint): Same.
3552         (new_Constraint_System_from_Cloog_Matrix): Same.
3553         * graphite-cloog-util.h: New.
3554         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
3555         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3556         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3557         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3558         (insert_constraint_into_matrix): Same.
3559         * graphite-ppl.c:
3560         Added graphite-cloog-util.h to include statements.
3561         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
3562         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3563         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3564         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3565         (insert_constraint_into_matrix): Same.
3566         (ppl_Constrain_System_number_of_constraints): Same.
3567         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
3568         (oppose_constraint): Same.
3569         (cloog_matrix_to_ppl_constraint): Same.
3570         (new_Constraint_System_from_Cloog_Matrix): Same.
3571         * graphite-ppl.h:
3572         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
3573         graphite-cloog-util.h.
3574         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3575         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3576         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3577         (insert_constraint_into_matrix): Same.
3578
3579 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3580
3581         * graphite-clast-to-gimple.c
3582         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
3583         (precision_for_interval): Same.
3584         (gcc_type_for_interval): Same.
3585         (compute_type_for_level): Same.
3586         * graphite-interchange.c
3587         (lst_interchange_profitable_p): Same.
3588         * graphite-poly.c
3589         (psct_scattering_dim_for_loop_depth): Same.
3590         * graphite-ppl.c
3591         (ppl_max_for_le_pointset): Same.
3592         (ppl_min_for_le_pointset): Same.
3593
3594 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3595
3596         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
3597         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
3598
3599 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3600
3601         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
3602         rewrite_close_phi_out_of_ssa.
3603
3604 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3605
3606         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
3607
3608 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3609
3610         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
3611         rename_map.
3612         * sese.c (debug_rename_map): Same.
3613         (get_rename): Same.
3614         (set_rename): Same.
3615         (rename_variables_in_stmt): Same.
3616         (expand_scalar_variables_call): Same.
3617         (expand_scalar_variables_ssa_name): Same.
3618         (expand_scalar_variables_expr): Same.
3619         (expand_scalar_variables_stmt): Same.
3620         (expand_scalar_variables): Same.
3621         (rename_variables): Same.
3622         (graphite_copy_stmts_from_block): Same.
3623         (copy_bb_and_scalar_dependences): Same.
3624
3625 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3626
3627         * graphite-clast-to-gimple.c (copy_renames): Removed.
3628         (translate_clast_for): Do not call copy_renames.
3629         (translate_clast_guard): Same.
3630
3631 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3632
3633         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
3634         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
3635         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
3636         before rewrite_cross_bb_scalar_deps.
3637
3638 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3639
3640         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
3641         Early return in when flag_associative_math is not set.
3642
3643 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3644
3645         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
3646         of SSA copies on edges except for loop->latch.
3647
3648 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3649
3650         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
3651         Split out of rewrite_reductions_out_of_ssa.
3652         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
3653         Declared.
3654         * graphite.c (graphite_transform_loops): Call it.
3655
3656 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3657
3658         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
3659
3660 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
3661
3662         * dbgcnt.def (graphite_scop): New counter.
3663         * graphite.c: Include dbgcnt.h.
3664         (graphite_transform_loops): Use new counter to limit transformations.
3665         * Makefile.in (graphite.o): Depend on DBGCNT_H.
3666
3667 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3668
3669         * passes.c (init_optimization_passes): Add pass_graphite.
3670         Schedule a pass_copy_prop before pass_graphite_transforms.
3671         * timevar.def (TV_GRAPHITE): Declared.
3672         * tree-pass.h (pass_graphite): Declared.
3673         * tree-ssa-loop.c (pass_graphite): New.
3674
3675 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3676
3677         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
3678         Remove calls to rename_nb_iterations and rename_sese_parameters.
3679         * graphite-clast-to-gimple.h (gloog): Update declaration.
3680         * graphite.c (graphite_transform_loops): Update call to gloog.
3681         * sese.c (rename_variables_in_expr): Removed.
3682         (rename_nb_iterations): Removed.
3683         (rename_sese_parameters): Removed.
3684         * sese.h (rename_nb_iterations): Removed.
3685         (rename_sese_parameters): Removed.
3686
3687 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3688
3689         * graphite-clast-to-gimple.c (gloog): Remove call to
3690         sese_adjust_liveout_phis.
3691         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
3692         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
3693         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
3694         rewrite_phi_out_of_ssa.
3695         * sese.c (get_vdef_before_sese): Removed.
3696         (sese_adjust_vphi): Removed.
3697         (sese_adjust_liveout_phis): Removed.
3698         * sese.h (sese_adjust_liveout_phis): Removed.
3699
3700 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3701
3702         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
3703         argument for the place after which to insert the out of SSA copy.
3704         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
3705         (rewrite_phi_out_of_ssa): Same.
3706         (rewrite_cross_bb_scalar_deps): Same.
3707         (insert_copyout): Removed.
3708         (insert_copyin): Removed.
3709         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
3710         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
3711         insert_copyin.
3712
3713 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3714
3715         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
3716         (rewrite_reductions_out_of_ssa): Same.
3717         (rewrite_commutative_reductions_out_of_ssa): Same.
3718         (build_poly_scop): Do not call these functions.
3719         * graphite-sese-to-poly.h (build_poly_scop): Declared.
3720         (rewrite_reductions_out_of_ssa): Declared.
3721         (rewrite_commutative_reductions_out_of_ssa): Declared.
3722         * graphite.c (graphite_transform_loops): Call on every scop
3723         rewrite_commutative_reductions_out_of_ssa before calling
3724         rewrite_reductions_out_of_ssa and build_scop_bbs.
3725
3726 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3727
3728         * graphite-dependences.c (dot_deps): Make system call to dotty run
3729         in background.
3730         (dot_deps_stmt): Same.
3731         * graphite-poly.c (dot_lst): Same.
3732
3733 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3734
3735         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
3736         phi_arg_in_outermost_loop.
3737         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
3738         (remove_invariant_phi): Same.
3739
3740 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
3741
3742         * target.def (output_addr_const_extra): New hook.
3743         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
3744         * doc/tm.texi: Regenerate.
3745         * targhooks.c (default_asm_output_addr_const_extra): New function.
3746         * targhooks.h (default_asm_output_addr_const_extra): Declare.
3747         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
3748         target hook.
3749
3750         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3751         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
3752         * config/i386/i386.h (output_addr_const_extra): Rename to...
3753         (i386_asm_output_addr_const_extra): ...this. Make static.
3754         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3755
3756 2010-08-11  Richard Henderson  <rth@redhat.com>
3757
3758         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
3759
3760 2010-08-11  Nick Clifton  <nickc@redhat.com>
3761
3762         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
3763         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
3764         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
3765         stormy16-lib2-cmpsi.c.
3766
3767         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
3768         -O2.
3769
3770 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
3771
3772         * opts.h (struct cl_option_handler_func): Make handler take
3773         cl_decoded_option structure as parameter, not individual elements.
3774         (struct cl_option_handlers): Make callbacks take cl_decoded_option
3775         structure as parameter, not individual elements.
3776         (handle_option): Take cl_decoded_option structure as parameter,
3777         not individual elements.
3778         (handle_generated_option): Declare.
3779         * opts-common.c (handle_option): Take cl_decoded_option structure
3780         as parameter, not individual elements.  Update calls to callback
3781         and handler functions.
3782         (handle_generated_option): New.
3783         (read_cmdline_option): Update calls to callback functions and
3784         handle_option.
3785         * opts.c (common_handle_option, complain_wrong_lang,
3786         unknown_option_callback, post_handling_callback,
3787         lang_handle_option, target_handle_option): Take cl_decoded_option
3788         structure as parameter, not individual elements.
3789         (lang_handle_option, target_handle_option, common_handle_option):
3790         Assert option has at most one argument.
3791         (enable_warning_as_error): Call handle_generated_option instead of
3792         handle_option.  Do not pass -Werror argument as argument of
3793         generated option.
3794
3795 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3796
3797         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
3798         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
3799         (SUBWORD_BOOL_CAS): Likewise.
3800         (SUBWORD_SYNC_OP): Likewise.
3801         (SUBWORD_TEST_AND_SET): Likewise.
3802         (FETCH_AND_OP_WORD): Parenthesise INF_OP
3803         (SUBWORD_SYNC_OP): Likewise.
3804         (OP_AND_FETCH_WORD): Likewise.
3805
3806 2010-08-10  Xinliang David Li  <davidxl@google.com>
3807
3808         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
3809         compute max/min offset in address.
3810
3811 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
3812
3813         * ira-live.c: Include sbitmap.h.
3814         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
3815         Compress live ranges even more.
3816
3817 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3818
3819         * coverage.c (ctr_labels): Delete.
3820
3821 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
3822
3823         PR bootstrap/45177
3824         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
3825         test here from arm_gen_load_multiple_1.
3826         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
3827         multiple_operation_profitable_p.
3828
3829 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3830
3831         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
3832         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
3833
3834 2010-08-10  Richard Henderson  <rth@redhat.com>
3835
3836         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
3837         after saving registers.  Assert that SSE registers are only saved
3838         with a sufficiently aligned frame.
3839         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
3840         remove stack_realign_fp handling.
3841         (ix86_expand_prologue): Save int registers before stack_realign_fp,
3842         and do not mark the stack alignment as frame related.
3843         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
3844
3845         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
3846         saves when re-aligning the stack.
3847
3848 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3849
3850         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
3851         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
3852         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
3853
3854 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3855
3856         * dwarf2out.c (struct die_struct): Move die_tag to the end.
3857
3858 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
3859
3860         * config/arm/iterators.md: New file.
3861         * config/arm/arm.md: Include iterators.md.
3862         (QHSI): Move to new file.
3863         (LTUGEU, cnb, optab, ior_xor): Likewise.
3864         * config/arm/iwmmxt.md (VMMX): Move to new file.
3865         (VSHFT, MMX_char): Likewise.
3866         * config/arm/neon.md (VD): Move to new file.
3867         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
3868         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
3869         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
3870         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
3871         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
3872         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
3873         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
3874         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
3875         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
3876         (Is_d_reg, V_mode_nunits): Likewise.
3877         * config/arm/vec-common.md (VALL): Move to new file.
3878         (VALLW, VINT, VINTW): Likewise.
3879
3880 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
3881
3882         PR middle-end/45182
3883         * combine.c (make_compound_operation): Don't try to convert
3884         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
3885
3886 2010-08-10  Richard Guenther  <rguenther@suse.de>
3887
3888         * tree.h (get_object_alignment): Adjust prototype.
3889         * builtins.c (get_object_alignment): Return unsigned int,
3890         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
3891         and TARGET_MEM_REF properly.
3892         (get_pointer_alignment): Adjust.
3893         * emit-rtl.c (get_mem_align_offset): Adjust comment.
3894         (set_mem_attributes_minus_bitpos): Adjust.
3895         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
3896
3897 2010-08-10  Richard Guenther  <rguenther@suse.de>
3898
3899         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
3900         (copy_prop_visit_assignment): Simplify.
3901         (copy_prop_visit_stmt): Also visit assignments from
3902         constants.
3903         (copy_prop_visit_phi_node): Use operand_equal_p.
3904
3905 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3906
3907         * ipa-split.c (find_split_points): Free stack.
3908
3909 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3910
3911         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
3912         * tree.c (tree_node_kind): Delete corresponding entries.
3913
3914 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3915
3916         * alias.c (may_alias_p): Remove unused ret.
3917
3918 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
3919
3920         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
3921         alias_sets_conflict_p.
3922         (walk_mems_1): Moved from alias.c.
3923         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
3924         in alias.c.
3925         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
3926         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
3927         * alias.c (walk_mems_2): Moved to ddg.c.
3928         (walk_mems_1): Ditto.
3929         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
3930         to ddg.c.
3931         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
3932         disambiguation.
3933         *(may_alias_p): New function to check whether two memory expression
3934         may alias or not. Currently used in buidling inter-iteration memory
3935         dependence.
3936         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
3937         (insn_alias_sets_conflict_p): Removed
3938         *rtl.h (may_alias_p): New function prototype.
3939
3940 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3941
3942         * tree.c (nreverse): Assert that we don't have a BLOCK.
3943
3944 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3945
3946         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
3947         * config/arm/arm.c (arm_get_pcs_model): Likewise.
3948         * config/avr/avr.c (init_cumulative_args): Likewise.
3949         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
3950         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
3951         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
3952         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
3953         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3954         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3955         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
3956         * dwarf2out.c (gen_subprogram_die): Likewise.
3957         * function.c (allocate_struct_function): Likewise.
3958         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
3959         (deserves_ellipsis): Delete.
3960
3961 2010-08-09  Richard Guenther  <rguenther@suse.de>
3962
3963         * tree-ssa-copy.c (cached_last_copy_of): Remove.
3964         (valueize_val): New function.
3965         (get_last_copy_of): Remove.
3966         (set_copy_of_val): Simplify.
3967         (dump_copy_of): Likewise.
3968         (copy_prop_visit_cond_stmt): Use valueize_val.
3969         (copy_prop_visit_phi_node): Properly handle unvisited names.
3970         Drop code managing copy-of chains.
3971         (init_copy_prop): Adjust.
3972         (fini_copy_prop): Likewise.
3973         (execute_copy_prop): Remove obsolete comment.
3974
3975 2010-08-09  Richard Guenther  <rguenther@suse.de>
3976
3977         PR middle-end/44632
3978         * function.c (gimplify_parameters): Do not clear addressable
3979         bit of the original parameter.
3980
3981 2010-08-09  Richard Guenther  <rguenther@suse.de>
3982
3983         PR middle-end/45212
3984         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
3985         alignment from MEM_REF offset only if we took it from the
3986         base object.
3987
3988 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
3989
3990         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
3991
3992 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3993
3994         * c-tree.h (build_arg_info): Declare.
3995         * c-decl.c (build_arg_info): Define.
3996         (get_parm_info): Call it.  Delete initialization code.
3997         * c-parser.c (c_parser_parms_declarator): Likewise.
3998         (c_parser_parms_list_declaractor): Likewise.
3999
4000 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4001
4002         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
4003         (struct c_arg_info): Change type of tags field.
4004         * c-decl.c (grokdeclarator): Update for changed type of tags field.
4005         (get_parm_info): Likewise.
4006         (store_parm_decls_newstyle): Likewise.
4007
4008 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4009
4010         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
4011         (branch_island_list): Delete.
4012         (branch_islands): Declare.
4013         (add_compiler_branch_island): Adjust for branch_islands instead of
4014         branch_island_list.
4015         (macho_branch_islands): Likewise.
4016         (no_previous_def): Likewise.
4017         (get_prev_label): Likewise.
4018
4019 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4020
4021         PR boehm-gc/34544
4022         * gthr-posix.h (__gthread_start): Delete.
4023         (__gthread_active_init): Use pthread_default_stacksize_np instead of
4024         pthread_create to determine if hpux pthreads are active.
4025         * gthr-posix95.h (__gthread_start): Delete.
4026         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
4027
4028 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
4029
4030         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
4031         _WIN64 not expanded.
4032
4033 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
4034             H.J. Lu  <hongjiu.lu@intel.com>
4035
4036         PR target/45213
4037         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
4038         to output 32bit SFmode immediate as 8 byte sign extended value.
4039
4040 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4041
4042         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
4043         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
4044         (SUBWORD_BOOL_CAS): Likewise.
4045         (SUBWORD_SYNC_OP): Likewise.
4046         (SUBWORD_TEST_AND_SET): Likewise.
4047         (FETCH_AND_OP_WORD): Parenthesise INF_OP
4048         (SUBWORD_SYNC_OP): Likewise.
4049         (OP_AND_FETCH_WORD): Likewise.
4050
4051 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4052
4053         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
4054         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
4055         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
4056         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
4057         generic part.
4058         (cortex_a9_sched_adjust_cost): New function.
4059         (xscale_sched_adjust_cost): New function.
4060         * config/arm/arm-protos.h (struct tune_params): New field
4061         sched_adjust_cost.
4062         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
4063
4064 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
4065
4066         PR target/44942
4067         * config/sparc/sparc.c (function_arg_advance): Always take into account
4068         the padding, if any.
4069
4070 2010-08-06  Richard Guenther  <rguenther@suse.de>
4071
4072         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
4073         (dump_lattice_value): Dump it.
4074         (get_default_value): Adjust.
4075         (get_constant_value): Likewise.
4076         (set_value_varying): Likewise.
4077         (set_lattice_value): Make sure to not go up the lattice
4078         with bitwise constant values.
4079         (get_value_for_expr): Handle ADDR_EXPRs.
4080         (value_to_double_int): New function.
4081         (get_value_from_alignment): Likewise.
4082         (do_dbg_cnt): Adjust.
4083         (ccp_lattice_meet): Handle partially constant values.
4084         (bit_value_unop_1): New function.
4085         (bit_value_binop_1): Likewise.
4086         (bit_value_unop): Likewise.
4087         (bit_value_binop): Likewise.
4088         (evaluate_stmt): Track partially constant values if
4089         flag_tree_bit_ccp is set.
4090         (ccp_fold_stmt): Dump if we folded a predicate.
4091         (ccp_visit_stmt): Adjust.
4092         * common.opt (ftree-bit-ccp): New flag.
4093         * doc/invoke.texi (ftree-bit-ccp): Document.
4094         * opts.c (decode_options): Enable bit-CCP at -O1.
4095
4096 2010-08-06  Alan Modra  <amodra@gmail.com>
4097
4098         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
4099         and -mrelocatable-lib description.
4100
4101 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
4102
4103         From Martin Thuresson  <martint@google.com>
4104         * postreload.c (reload_cse_simplify_operands): Use
4105         SET_REGNO_RAW instead of SET_REGNO.
4106         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
4107         SET_REGNO.
4108         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
4109         instead of SET_REGNO.
4110         * rtl.h (SET_REGNO_RAW): New macro.
4111
4112 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
4113
4114         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
4115         computations.  Fix formatting issues.
4116         (num_sign_bit_copies1): Likewise.
4117         (canonicalize_condition): Likewise.
4118
4119 2010-08-05  Richard Henderson  <rth@redhat.com>
4120
4121         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
4122         (floor_log2): Use clz_hwi.
4123         (exact_log2): Use ctz_hwi.
4124         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
4125         * builtins.c (fold_builtin_bitop): Use them.
4126         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4127         * combine.c (get_pos_from_mask): Use ctz_hwi.
4128         * double-int.c (double_int_ctz): Likewise.
4129         * explow.c (force_reg): Likewise.
4130         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
4131
4132 2010-08-05  Richard Henderson  <rth@redhat.com>
4133
4134         PR target/45189
4135         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
4136         the alignment constant is properly sign-extended.
4137
4138 2010-08-05  Richard Guenther  <rguenther@suse.de>
4139
4140         * expr.c (store_expr): Use emit_block_move only if both
4141         source and target are MEMs.  Use store_bit_field if only
4142         the target is a MEM.
4143
4144 2010-08-05  Richard Henderson  <rth@redhat.com>
4145
4146         PR debug/45188
4147         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
4148         (INCOMING_RETURN_ADDR_RTX): Likewise.
4149         (dwarf2out_do_frame): Remove conditional compilation.
4150         (dwarf2out_frame_init): Likewise.
4151
4152 2010-08-05  Nicolas Setton  <setton@adacore.com>
4153
4154         * gcov.c (flag_display_progress): New static variable.
4155         (main): Display progress info on standard output if requested.
4156         (options): Add -d/--display-progress.
4157         (print_usage): Print them.
4158         (process_args): Handle them.
4159         * doc/gcov.texi: Document them.
4160
4161 2010-08-05  Martin Jambor  <mjambor@suse.cz>
4162
4163         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
4164         (ipcp_insert_stage): Redirect only edges not flagged with
4165         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
4166         discovered constants.
4167
4168 2010-08-05  Martin Jambor  <mjambor@suse.cz>
4169
4170         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
4171         (struct ipa_param_descriptor): New fields types and
4172         cannot_devirtualize.
4173         (ipa_param_cannot_devirtualize_p): New function.
4174         (ipa_param_types_vec_empty): Likewise.
4175         (ipa_make_edge_direct_to_target): Declare.
4176         * ipa-cp.c: Fixed first stage driver name in initial comment,
4177         described devirtualization there too.
4178         (ipcp_analyze_node): Call ipa_analyze_params_uses.
4179         (ipcp_print_all_lattices): Print devirtualization info.
4180         (ipa_set_param_cannot_devirtualize): New function.
4181         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
4182         lattice to BOTTOM.
4183         (ipcp_init_stage): Merged into...
4184         (ipcp_generate_summary): ...its caller.
4185         (ipcp_change_tops_to_bottom): Also process type lists.
4186         (ipcp_add_param_type): New function.
4187         (ipcp_copy_types): Likewise.
4188         (ipcp_propagate_types): Likewise.
4189         (ipcp_propagate_stage): Also propagate types.
4190         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
4191         Also return true if propagated types require it.
4192         (ipcp_update_callgraph): Dump redirection info.
4193         (ipcp_process_devirtualization_opportunities): New function.
4194         (ipcp_const_param_count): Include known type information.
4195         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
4196         on new node.  Fixed formatting.
4197         * ipa-prop.c (make_edge_direct_to_target): Renamed to
4198         ipa_make_edge_direct_to_target and changed all callers.  Made
4199         externally visible.
4200         (ipa_node_duplication_hook): Duplicate types vector.
4201         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
4202         redirect outgoing calls for which we can't get a decl from the
4203         statement.  Check that we can get a decl from the call statement.
4204         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
4205         ipa_analyze_params_uses only when ipa-cp is disabled.
4206         * tree-inline.c (get_indirect_callee_fndecl): Removed.
4207         (expand_call_inline): Do not call get_indirect_callee_fndecl.
4208         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
4209         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
4210
4211 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
4212
4213         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
4214         temporary. Emit move from temporary to accum, so REG_EQUAL note will
4215         be attached to this insn in correct mode.
4216
4217 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
4218
4219         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
4220         using REGNO of base_reg directly.
4221
4222 2010-08-05  Jie Zhang  <jie@codesourcery.com>
4223
4224         PR tree-optimization/45144
4225         * tree-sra.c (type_consists_of_records_p): Return false
4226         if the record contains bit-field.
4227
4228 2010-08-04  Richard Henderson  <rth@redhat.com>
4229
4230         * config/i386/i386.c (struct ix86_frame): Remove padding and
4231         to_allocate members.
4232         (ix86_compute_frame_layout): Don't store them.
4233         (ix86_can_use_return_insn_p): Use a more direct and more obviously
4234         correct condition for the position of the stack pointer.
4235         (ix86_expand_prologue): Compute remaining stack allocation based
4236         on the ultimate stack pointer offset.
4237         (ix86_expand_epilogue): Use more obvious expressions testing for
4238         the stack pointer already pointing to the saved registers.
4239
4240         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
4241         duplication deconstructing the frame pointer.  Simplify
4242         deallocation of the local stack frame.
4243
4244         * reg-notes.def (CFA_EXPRESSION): New.
4245         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
4246         (dwarf2out_frame_debug_cfa_expression): New.
4247         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
4248
4249         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
4250         * config/i386/i386.c (ix86_expand_prologue): Set it.
4251         (ix86_expand_epilogue): Clear it.
4252         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
4253         context, add REG_CFA_EXPRESSION notes.
4254
4255         * config/i386/i386.h (struct machine_frame_state): Rename from
4256         machine_cfa_state.  Add members tracking SP and FP regardless
4257         of the current CFA register.
4258         (ix86_cfa_state): Remove.
4259         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
4260         and sse_reg_save_offset members.
4261         (ix86_compute_frame_layout): Set them.
4262         (gen_push): Increment sp_offset too.
4263         (choose_baseaddr_len, choose_baseaddr): New.
4264         (ix86_emit_save_reg_using_mov): New.
4265         (ix86_emit_save_regs_using_mov): Use it.
4266         (ix86_emit_save_sse_regs_using_mov): Likewise.
4267         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
4268         compare vs the saved red_zone_offset.
4269         (pro_epilogue_adjust_stack): Adjust sp_offset.
4270         (ix86_adjust_stack_and_probe): Likewise.
4271         (ix86_expand_prologue): Set up, use, and validate the new
4272         frame_state_info members.  Use gen_frame_mem.
4273         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
4274         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
4275         new frame_state_info members.
4276         (ix86_emit_leave): Likewise.
4277         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
4278         out-of-range stack pointer offsets here.
4279         (ix86_emit_restore_sse_regs_using_mov): Likewise.
4280         (ix86_expand_epilogue): Use and validate the new frame_state_info
4281         members.  Break up and simplify the logic selecting the
4282         restore_regs_via_mov code path.  Ensure that there will be no
4283         out-of-range stack pointer offsets.
4284
4285         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
4286
4287         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
4288         argument name to reflect the expected tree; fix indentation.
4289         (ix86_asm_output_function_label): Output the entire 32-bit
4290         ms_hook here as bytes ...
4291         (ix86_expand_prologue): ... not here as insns.  Attach the
4292         unwind info for the ms_hook to a blockage insn.
4293         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
4294         (ix86_ms_bitfield_layout_p): Fix indentation.
4295         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
4296
4297         * config/i386/i386.c (ix86_using_red_zone): New.
4298         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
4299         ix86_expand_prologue, ix86_force_to_memory): Use it.
4300
4301         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
4302         saving the int registers.
4303
4304         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
4305         and DWARF2_UNWIND_INFO conditional compilation.
4306
4307 2010-08-04  Richard Henderson  <rth@redhat.com>
4308
4309         PR debug/45171
4310         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
4311         an is_naming_typedef_decl.
4312
4313 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
4314
4315         PR rtl-optimization/45162
4316         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
4317         * dce.c (word_dce_process_block): Likewise.
4318
4319 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
4320
4321         PR target/44583
4322         * config/ia64/constraints.md (Z): New.
4323         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
4324         (xfreg_or_signed_fp01_operand): New.
4325         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
4326         with fr_reg_or_signed_fp01_operand and constraint G with Z.
4327         (subsf3): Ditto.
4328         (*maddsf4): Ditto.
4329         (*msubsf4): Ditto.
4330         (adddf3): Ditto.
4331         (adddf3_trunc): Ditto.
4332         (subdf3): Ditto.
4333         (*subdf3_trunc): Ditto.
4334         (*madddf4): Ditto.
4335         (*madddf4_trunc): Ditto.
4336         (*msubdf4): Ditto.
4337         (*msubdf4_trunc): Ditto.
4338         (addxf3): Replace xfreg_or_fp01_operand with
4339         xfreg_or_signed_fp01_operand and constraint G with Z.
4340         (*addxf3_truncsf): Ditto.
4341         (*addxf3_truncdf): Ditto.
4342         (subxf3): Ditto.
4343         (*subxf3_truncsf): Ditto.
4344         (*subxf3_truncdf): Ditto.
4345         (*maddxf4): Ditto.
4346         (*maddxf4_truncsf): Ditto.
4347         (*maddxf4_truncdf): Ditto.
4348         (*msubxf4): Ditto.
4349         (*msubxf4_truncsf): Ditto.
4350         (*msubxf4_truncdf): Ditto.
4351
4352 2010-08-04  Richard Guenther  <rguenther@suse.de>
4353
4354         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
4355         if either alias-set is zero.
4356
4357 2010-08-04  Richard Guenther  <rguenther@suse.de>
4358
4359         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
4360         * tree-ssa-ccp.c: ... here.
4361         * tree-ssa-copy.c: ... and here.
4362         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
4363         value_range_t): Move ...
4364         * tree-vrp.c: ... here.
4365         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
4366         (substitute_and_fold): Adjust prototype.
4367         * tree-ssa-propagate.c (replace_uses_in): Adjust.
4368         (replace_phi_args_in): Likewise.
4369         (substitute_and_fold): Take callback to query lattice instead
4370         of pointer to lattice.  Replace SSA name defs with lattice
4371         values first.
4372         * tree-ssa-ccp.c (ccp_finalize): Adjust.
4373         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
4374         (get_value): New function.
4375         (fini_copy_prop): Adjust.
4376         * tree-vrp.c (vrp_finalize): Adjust.
4377
4378 2010-08-04  Richard Guenther  <rguenther@suse.de>
4379
4380         PR middle-end/45176
4381         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
4382         points-to set for original MEM_REF.
4383
4384 2010-08-04  Richard Guenther  <rguenther@suse.de>
4385
4386         * tree-ssa-ccp.c (get_constant_value): New function.
4387         (get_rhs_assign_op_for_ccp): Remove.
4388         (valueize_op): New function.
4389         (ccp_fold): Use get_constant_value and valueize_op.
4390         (fold_const_aggregate_ref): Likewise.
4391         (ccp_fold_stmt): Likewise.
4392         (visit_assignment): Simplify.
4393
4394 2010-08-04  Richard Guenther  <rguenther@suse.de>
4395
4396         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
4397         * double-int.h (double_int_ctz): Declare.
4398         * double-int.c (double_int_ctz): New function.
4399
4400 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
4401
4402         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
4403         Define.
4404         picochip_expand_movmemhi : Expand movmem pattern.
4405         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
4406         Declare.
4407         * config/picochip/picochip.md (movmemhi) : New pattern.
4408
4409 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
4410
4411         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
4412
4413 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
4414
4415         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
4416         NEG as operand of a MULT by merging it with the other operand.
4417         * combine.c (make_compound_operation): Use trunc_int_for_mode when
4418         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
4419         MULT.
4420         * config/arm/constraints.md (M): Examine only 32 bits of a
4421         HOST_WIDE_INT.
4422         * config/arm/predicates.md (power_of_two_operand): Likewise.
4423
4424 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4425
4426         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
4427         non-NOTE insns.
4428
4429 2010-08-03  Jan Hubicka  <jh@suse.cz>
4430
4431         * ipa-split.c (struct split_point): Add split_part_set_retval.
4432         (find_retval): Forward declare.
4433         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
4434         (consider_split): Compute current->split_part_set_retval.
4435         (visit_bb): Do not look into return value.
4436         (split_function): Handle !split_part_set_retval
4437
4438 2010-08-03  Martin Jambor  <mjambor@suse.cz>
4439
4440         * tree-sra.c (completely_scalarize_record): New parameter REF, create
4441         its own access->expr intead of using build_ref_for_offset.
4442
4443 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4444
4445         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
4446         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
4447         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
4448         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
4449         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
4450         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
4451         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
4452         DEFAULT_SWITCH_TAKES_ARG.
4453         * config/rx/rx.opt (-patch=): Remove option.
4454         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
4455         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
4456         * doc/invoke.texi (RX Options): Remove -patch=.
4457         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
4458         (option_map): Remove --profile-blocks, --quiet and --silent.
4459
4460 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
4461
4462         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
4463         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
4464         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
4465         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
4466         Update calls to ix86_expand_compare and ix86_expand_branch.
4467         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
4468         ix86_expand_compare.
4469         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
4470         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
4471         Make static.
4472         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
4473         and ix86_compare_op1.  Update calls to ix86_expand_compare.
4474         (ix86_expand_int_movcc): Ditto.
4475         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
4476         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
4477         (ix86_expand_setcc): Ditto.
4478         (ix86_expand_compare): Remove prototype.
4479         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
4480         ix86_compare_op0 and ix86_compare_op1.  Update calls
4481         to ix86_expand_branch to directly pass operands[1] and operands[2].
4482         (cbranchxf4): Ditto.
4483         (cbranch<MODEF:mode>4): Ditto.
4484         (cbranchcc4): Ditto.
4485         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
4486         Update calls to ix86_expand_setcc to directly pass operands[2] and
4487         operands[3].
4488         (cstorexf4): Ditto.
4489         (cstore<MODEF:mode>4): Ditto.
4490         (cstorecc4): Ditto.
4491
4492 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
4493
4494         PR target/45063
4495         * caller-save.c (save_call_clobbered_regs): Remove regs from
4496         hard_regs_saved when they are set.
4497
4498 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
4499
4500         PR target/41089
4501         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
4502         as volatile.
4503
4504 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
4505
4506         * common.opt (ftree-loop-distribute-patterns): New.
4507         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
4508         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
4509         at -O3.
4510         * tree-data-ref.c (stores_zero_from_loop): New.
4511         * tree-data-ref.h (stores_zero_from_loop): Declared.
4512         * tree-loop-distribution.c (tree_loop_distribution): Call
4513         stores_zero_from_loop.
4514         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
4515
4516 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
4517
4518         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
4519         into account.
4520
4521         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
4522         * config/arm/arm.c (thumb1_code): New variable.
4523         (arm_override_options): Set it.
4524         (thumb1_final_prescan_insn): Keep track of condition code status.
4525         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
4526         jumps that depend on them.
4527         * config/arm/arm.h (thumb1_code): Declare variable.
4528         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
4529         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
4530         thumb1_cc_mode.
4531         (CC_STATUS_INIT): New macro.
4532         * config/arm/constraints.md (Pd): New constraint.
4533         * config/arm/predicates.md (noov_comparison_operator): New predicate.
4534         * config/arm/arm.md (is_thumb1): New define_attr.
4535         (conds): Set default to "clob" when generating Thumb1 code.
4536         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
4537         code are set.  Use two-operand assembly syntax.
4538         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
4539         pattern.
4540         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
4541         codes are set.  Use two-operand assembly syntax.
4542         (zero_extendhisi splitter): Remove constraints.
4543         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
4544         thumb1_movsf_insn): Set conds attribute as appropriate.
4545         (cbranchsi4_insn): Use condition code status from struct
4546         machine_function to determine whether the comparison can be eliminated.
4547         Discourage the alternative using high registers.
4548         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
4549         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
4550         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
4551         subsi3_cbranch): Delete.
4552         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
4553         one subtract and one cbranch insn.
4554
4555         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
4556         thumb2_movdf_soft_insn): Delete patterns.
4557         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
4558         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
4559         (pool_range, neg_pool_range): Use them to define defaults.
4560         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
4561         and allow for TARGET_32BIT.
4562
4563         PR target/40457
4564         * config/arm/arm.h (arm_regs_in_sequence): Declare.
4565         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
4566         load_multiple_sequence, store_multiple_sequence): Delete
4567         declarations.
4568         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
4569         declarations.
4570         * config/arm/ldmstm.md: New file.
4571         * config/arm/arm.c (arm_regs_in_sequence): New array.
4572         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
4573         CHECK_REGS.  All callers changed.
4574         If SAVED_ORDER is nonnull, copy the computed order into it.
4575         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
4576         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
4577         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
4578         If SAVED_ORDER is nonnull, copy the computed order into it.
4579         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
4580         like REGS.  Handle Thumb mode.
4581         (arm_gen_load_multiple_1): New function, broken out of
4582         arm_gen_load_multiple.
4583         (arm_gen_store_multiple_1): New function, broken out of
4584         arm_gen_store_multiple.
4585         (arm_gen_multiple_op): New function, with code from
4586         arm_gen_load_multiple and arm_gen_store_multiple moved here.
4587         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
4588         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
4589         changed.
4590         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
4591         * config/arm/predicates.md (commutative_binary_operator): New.
4592         (load_multiple_operation, store_multiple_operation): Handle more
4593         variants of these patterns with different starting offsets.  Handle
4594         Thumb-1.
4595         * config/arm/arm.md: Include "ldmstm.md".
4596         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
4597         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
4598         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
4599         peepholes): Delete.
4600         * config/arm/ldmstm.md: New file.
4601         * config/arm/arm-ldmstm.ml: New file.
4602
4603         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
4604         if statement which adds extra costs to frame-related expressions.
4605
4606 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4607
4608         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
4609
4610 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
4611
4612         PR target/45142
4613         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
4614         alternative 2.
4615         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
4616         split V4SI operands.
4617
4618 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
4619
4620         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
4621         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
4622         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
4623         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
4624
4625 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
4626
4627         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
4628         LOCAL_INCLUDE_DIR.
4629
4630 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
4631
4632         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
4633         used in the call to optab_for_tree_code.  Fix the second
4634         is_widening_mult_p call.  Check that both unwidened operands
4635         have the same sign.
4636
4637 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
4638
4639         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
4640
4641 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
4642
4643         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
4644
4645 2010-07-30  DJ Delorie  <dj@redhat.com>
4646
4647         * config/rx/predicates.md (rx_constshift_operand): New.
4648         * config/rx/rx.md (zs_cond): New.
4649         (cbranchsi4): Remove mode.
4650         (*cbranchsi4_<code>): Likewise.
4651         (*tstbranchsi4_<code>): New.
4652         (*tstbranchsi4r_<code>): New.
4653         (*tstbranchsi4m_eq): New.
4654         (*tstbranchsi4m_ne): New.
4655         (cbranchsf4): Remove mode.
4656         (*cbranchsf4_<code>): Likewise.
4657
4658 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
4659
4660         * rtlanal.c (simplify_subreg_regno): Don't treat
4661         HARD_FRAME_POINTER_REGNUM specially.
4662
4663 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
4664
4665         * common.opt (-G): Don't define option here.
4666         * config/g.opt: New.
4667         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
4668         rs6000/powerpc and score targets.
4669         * opts.c (common_handle_option): Don't handle -G here.
4670         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
4671         * config/frv/frv.c (frv_handle_option): Handle -G.
4672         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
4673         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
4674         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
4675         * config/mips/mips.c (mips_handle_option): Handle -G.
4676         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
4677         * config/score/score.c (score_handle_option): Handle -G.
4678
4679 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
4680
4681         * config/mmix/mmix.c: Include basic-block.h.
4682
4683 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
4684
4685         PR debug/45055
4686         PR rtl-optimization/45137
4687         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
4688         prototypes.
4689         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
4690         New functions.
4691         * combine.c (next_nonnote_nondebug_insn): Removed.
4692         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
4693         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
4694         * sched-deps.c (sched_analyze_insn): Likewise.
4695         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
4696         * rtlanal.c (canonicalize_condition): Likewise.
4697         * postreload.c (reload_combine_recognize_pattern): Likewise.
4698         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
4699
4700 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
4701
4702         * config/i386/i386.md (int_cond): Remove code iterator.
4703         (fp_cond): Ditto.
4704         (cbranch<mode>4): Use ordered_comparison_operator predicate
4705         for operator0.
4706         (cstore<mode>4): Ditto for operator1.
4707         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
4708         (add<mode>cc): ditto.
4709
4710 2010-07-30  Richard Guenther  <rguenther@suse.de>
4711
4712         PR middle-end/45141
4713         * expr.c (expand_expr_real_1): Check for not handled base address.
4714
4715 2010-07-30  Richard Guenther  <rguenther@suse.de>
4716
4717         * ipa-prop.c (ipa_modify_formal_parameters): Use
4718         build_distinct_type_copy.
4719
4720 2010-07-30  Anthony Green  <green@moxielogic.com>
4721
4722         * config/moxie/rtems.h: New file.
4723         * config.gcc: Add moxie-rtems support.
4724
4725 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4726
4727         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
4728         df flags as in run_fast_df_dce.
4729
4730 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
4731
4732         Revert:
4733         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
4734
4735         * rtl.def (NOTE): Swap operands 4 and 5.
4736         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
4737         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
4738         Adjust accordingly.
4739         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
4740
4741 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
4742
4743         PR debug/45110
4744         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
4745         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
4746         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
4747         formal parameters.
4748         (gen_decl_die): Change return type to dw_die_ref, return what
4749         gen_formal_parameter_die returned.
4750
4751 2010-07-29  Martin Jambor  <mjambor@suse.cz>
4752
4753         * dbgcnt.def (eipa_sra): New counter.
4754         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
4755
4756 2010-07-29  Xinliang David Li  <davidxl@google.com>
4757
4758         PR bootstrap/45119
4759         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
4760         in revision 162652.
4761
4762 2010-07-29  Richard Guenther  <rguenther@suse.de>
4763
4764         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
4765         (TV_TREE_STORE_CCP): Likewise.
4766         (TV_TREE_REDPHI): Likewise.
4767
4768 2010-07-29  Richard Guenther  <rguenther@suse.de>
4769
4770         * double-int.h (double_int_and_not): New function.
4771         * combine.c (try_combine): Use it.
4772         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
4773
4774 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4775
4776         PR rtl-optimization/42575
4777         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
4778         Argument AU removed.  All callers changed.  Ignore artificial refs.
4779         Use return value of df_word_lr_simulate_defs to decide whether an insn
4780         is necessary.
4781         (fast_dce): Rename arg to WORD_LEVEL.
4782         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
4783         static.
4784         (pass_fast_rtl_byte_dce): Delete.
4785         * dce.h (run_word_dce): Declare.
4786         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
4787         All callers changed.  Simplify code to only deal with two-word regs.
4788         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
4789         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
4790         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
4791         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
4792         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
4793         (df_word_lr_mark_ref): Declare.
4794         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
4795         df_word_lr_simulate_uses): Declare or rename from byte variants.
4796         (df_byte_lr_simulate_artificial_refs_at_top,
4797         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
4798         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
4799         declarations.
4800         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
4801         (enum df_mm): Delete.
4802         * df-byte-scan.c: Delete file.
4803         * df-problems.c (df_word_lr_problem_data): Renamed from
4804         df_byte_lr_problem_data, all members deleted except for
4805         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
4806         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
4807         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
4808         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
4809         df_byte_lr_confluence_0): Delete functions.
4810         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
4811         callers changed.
4812         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
4813         Don't initialize members that were deleted, don't try to discover data
4814         about registers.  Ignore hard regs.
4815         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
4816         (df_word_lr_mark_ref): New function.
4817         (df_word_lr_bb_local_compute): Renamed from
4818         df_byte_bb_lr_local_compute; all callers changed.  Use
4819         df_word_lr_mark_ref.  Assert that artificial refs don't include
4820         pseudos.  Ignore hard registers.
4821         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
4822         Assert that exit block uses don't contain pseudos.
4823         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
4824         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
4825         callers changed.  Ignore hard regs.
4826         (df_word_lr_transfer_function): Renamed from
4827         df_byte_lr_transfer_function; all callers changed.
4828         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
4829         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
4830         changed.
4831         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
4832         callers changed.
4833         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
4834         confluence operator 0 set to NULL.
4835         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
4836         callers changed.
4837         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
4838         Return bool, true if bitmap changed or insn otherwise necessary.
4839         All callers changed.  Simplify using df_word_lr_mark_ref.
4840         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
4841         all callers changed.  Simplify using df_word_lr_mark_ref.
4842         * lower-subreg.c: Include "dce.h"
4843         (decompose_multiword_subregs): Call run_word_dce if df available.
4844         * Makefile.in (lower-subreg.o): Adjust dependencies.
4845         (df-byte-scan.o): Delete.
4846         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
4847
4848 2010-07-29  Richard Guenther  <rguenther@suse.de>
4849
4850         * tree.c (build_vector): Assert that the vector constant
4851         has enough elements.
4852         (build_vector_from_ctor): Pad with trailing zeros.
4853
4854 2010-07-29  Richard Guenther  <rguenther@suse.de>
4855
4856         PR tree-optimization/45120
4857         * tree-ssa-structalias.c (get_constraint_for_component_ref):
4858         Handle offset in DEREFs properly.
4859         (get_constraint_for_1): Handle MEM_REF offset properly.
4860
4861 2010-07-29  Richard Guenther  <rguenther@suse.de>
4862
4863         PR middle-end/45034
4864         * convert.c (convert_to_integer): Always use an unsigned
4865         type for narrowed negate and bitwise not.
4866
4867 2010-07-29  Ira Rosen  <irar@il.ibm.com>
4868
4869         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
4870         to outer loop when creating reduction epilogue for double reduction,
4871         and switch back to the inner loop when updating the phi nodes.
4872         Update uses of outer loop exit phi nodes in double reduction (instead
4873         of uses of reduction).
4874
4875 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
4876
4877         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
4878         popcount on power7 and parity on power6 systems.
4879         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
4880         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
4881         instructions.
4882
4883         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
4884         (UNSPEC_PARITY): Ditto.
4885         (SFDF): New iterator for SF/DF.
4886         (rreg2): New mode attribute for floating register constraint.
4887         (TARGET_FLOAT): New mode attribute for whether single/double float
4888         is supported.
4889         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
4890         pattern.
4891         (parity<mode>2_cmpb): New insn for parity on power6 and newer
4892         machines.
4893         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
4894         pattern.  Add support for fcpsgn instruction added in power6.
4895         (copysignsf3): Delete.
4896         (copysigndf3): Delete.
4897         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
4898         instead of if_then_else in RTL to avoid problems with -0.
4899
4900         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
4901         of if_then_else to mirror scalar code.
4902         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
4903         rs6000.md.
4904
4905         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
4906         instead of if_then_else.
4907
4908 2010-07-28  Xinliang David Li  <davidxl@google.com>
4909
4910         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
4911         (dump_cand): Dump var_before/after.
4912         (htab_inv_expr_eq): New function.
4913         (htab_inv_expr_hash): New function.
4914         (tree_ssa_iv_optimize_init): Support pseudo invariants.
4915         (add_candidate_1): consider base type precision.
4916         (set_use_iv_cost): New parameter.
4917         (adjust_setup_cost): Use profile information.
4918         (get_address_cost): Do not hard code width in computing address
4919         offset limits.
4920         (compare_aff_trees): New function.
4921         (get_loop_invariant_expr_id): New function.
4922         (get_computation_cost_at): New parameter and use profile information.
4923         (get_computation_cost): New parameter.
4924         (determine_use_iv_cost_generic): Pass new parameter.
4925         (determine_use_iv_cost_address): Ditto.
4926         (determine_use_iv_cost_condition): Ditto.
4927         (autoinc_possible_for_pair): Ditto.
4928         (determine_use_iv_costs): More dumps.
4929         (iv_ca_get_num_inv_exprs): New function.
4930         (iv_ca_recount_cost): Consider loop invariants in register pressure
4931         cost.
4932         (iv_ca_add_use): New parameter.
4933         (iv_ca_dump): Better dumping.
4934         (iv_ca_extend): New parameter.
4935         (try_add_cand_for): Attempt to get better partial solution.
4936         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
4937         (create_new-ivs): More dumps.
4938         (rewrite_use_compare): Ditto.
4939         (free_loop_data): More cleanup.
4940         (treee_ssa_iv_optimize_finalize): Ditto.
4941
4942 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
4943
4944         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
4945         * config/i386/i386.c (ix86_profile_before_prologue): New.
4946         (override_options): Add special handling for -mfentry.
4947         (ix86_function_regparm): Likewise.
4948         (ix86_function_sseregparm): Likewise.
4949         (ix86_frame_pointer_required): Likewise.
4950         (ix86_expand_prologue): Check for ms_hook_prologue.
4951         (x86_function_profiler): Adjust mcount output.
4952         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
4953         * config/i386/i386.opt (mfentry): New.
4954         * doc/invoke.texi (mfentry): Add documentation.
4955         * doc/tm.texi: Regenerated..
4956         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
4957         * final.c (final_start_function): Replace macro
4958         PROFILE_BEFORE_PROLOGUE by target hook.
4959         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4960         * target.def (profile_before_prologue): New hook.
4961         * targhooks.c (default_profile_before_prologue): New.
4962         * targhooks.h (default_profile_before_prologue): New.
4963
4964 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
4965
4966         PR debug/45105
4967         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
4968
4969         PR debug/45103
4970         * dwarf2out.c (dwarf2out_var_location): Always consider
4971         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
4972
4973 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
4974
4975         PR rtl-optimization/45107
4976         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
4977
4978 2010-07-28  Richard Guenther  <rguenther@suse.de>
4979
4980         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
4981         (set_lattice_value): Do not query an old default value.
4982         (get_value_for_expr): New function.  Properly canonicalize
4983         float values.
4984         (ccp_visit_phi_node): Use it.
4985
4986 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
4987
4988         * config/arm/arm.c (arm_pcs_default): Remove static.
4989         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
4990         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
4991         (arm_pcs_default): Declare.
4992
4993 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
4994
4995         * config/rs6000/rs6000.c (rs6000_override_options):
4996         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
4997         ... to darwin_rs6000_override_options.
4998         (rs6000_return_in_memory): Update preceding comment for darwin
4999         64 bit ABI.  Use TARGET_MACHO inline.
5000         (rs6000_darwin64_struct_check_p): New.
5001         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
5002         (function_arg): Likewise.
5003         (rs6000_arg_partial_bytes): Likewise.
5004         (rs6000_function_value): Likewise.
5005
5006 2010-07-28  Andi Kleen <ak@linux.intel.com>
5007
5008         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
5009
5010 2010-07-28  Richard Guenther  <rguenther@suse.de>
5011
5012         PR middle-end/44903
5013         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
5014         targets try harder to not generate unaligned accesses.
5015
5016 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
5017
5018         PR rtl-optimization/45101
5019         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
5020         for gcse-las.
5021
5022 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
5023
5024         PR tree-optimization/44885
5025         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
5026         with non-aliased component.
5027
5028 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
5029
5030         * config/darwin-driver.c (SWITCH_TAKES_ARG,
5031         WORD_SWITCH_TAKES_ARG): Remove.
5032         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5033         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
5034         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
5035         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
5036         definitions from gcc.c.
5037         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
5038         defaults.h.
5039         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
5040         Move to defaults.h.
5041         * opts-common.c: Include tm.h.
5042         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
5043         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
5044         Handle more than one argument.  Set canonical_option_num_elements.
5045         (decode_cmdline_options_to_array): Set
5046         canonical_option_num_elements and trailing elements of
5047         canonical_option.
5048         * opts.h (struct cl_decoded_option): Allow four elements in
5049         canonical_option.  Add field canonical_option_num_elements.
5050         * Makefile.in (opts-common.o): Update dependencies.
5051
5052 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
5053
5054         PR middle-end/44790
5055         PR middle-end/44993
5056         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
5057         sure the base has address_mode before adding the offset.
5058
5059 2010-07-27  Xinliang David Li <davidxl@google.com>
5060
5061         * tree-flow.h (create_mem_ref): Add one new parameter.
5062         * tree-ssa-address.c (create_mem_ref): New parameter.
5063         (addr_to_parts): Ditto.
5064         (move_variant_to_index): New function.
5065         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
5066
5067 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5068
5069         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
5070         4 and 5.
5071         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
5072         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
5073         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
5074         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
5075         CODE_LABELs and NOTEs.
5076         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
5077         * combine.c (try_combine): Likewise.
5078         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5079         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
5080
5081 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5082
5083         * coretypes.h (struct cl_option_handlers): Declare.
5084         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
5085         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
5086         * langhooks-def.h (lhd_handle_option): Declare.
5087         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
5088         * langhooks.c (lhd_handle_option): New.
5089         * langhooks.h (struct lang_hooks): Update prototype and return
5090         value type of handle_option hook.
5091         * optc-gen.awk: Generate target_flags_explicit definition for the
5092         driver.
5093         * opts-common.c: Include diagnostic.h.
5094         (handle_option): Move from opts.c.  Update prototype and return
5095         value type.  Use handlers structure.
5096         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
5097         handlers structure.
5098         (set_option): Move from opts.c.
5099         * opts.c (common_handle_option): Update prototype and return value
5100         type.  Update calls to handle_option and enable_warning_as_error.
5101         (unknown_option_callback, post_handling_callback,
5102         lang_handle_option, target_handle_option): New.
5103         (handle_option, read_cmdline_option): Move to opts-common.c.
5104         (read_cmdline_options): Update prototype.  Update call to
5105         read_cmdline_option.
5106         (decode_options): Initialize and use handlers structure.
5107         (set_option): Move to opts-common.c.
5108         (enable_warning_as_error): Update prototype.  Update call to
5109         handle_option.
5110         * opts.h (struct cl_option_handler_func, struct
5111         cl_option_handlers): New.
5112         (handle_option, enable_warning_as_error): Update prototypes.
5113         (read_cmdline_option): Declare.
5114         * Makefile.in (opts-common.o): Update dependencies.
5115
5116 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5117
5118         * config/arm/arm.c (params.h): Include.
5119         (arm_override_options): Tune gcse-unrestricted-cost.
5120         * config/arm/t-arm (arm.o): Define dependencies.
5121
5122 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5123
5124         PR target/42495
5125         PR middle-end/42574
5126         * basic-block.h (get_dominated_to_depth): Declare.
5127         * dominance.c (get_dominated_to_depth): New function, use
5128         get_all_dominated_blocks as a base.
5129         (get_all_dominated_blocks): Use get_dominated_to_depth.
5130
5131         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
5132         (hoist_exprs): Remove.
5133         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
5134         (compute_code_hoist_vbeinout): Add debug print outs.
5135         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
5136
5137         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
5138         quadratic behavior.
5139         * params.h (MAX_HOIST_DEPTH): New macro.
5140         * doc/invoke.texi (max-hoist-depth): Document.
5141
5142 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5143
5144         PR rtl-optimization/40956
5145         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
5146         constants.
5147
5148 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5149
5150         PR target/42495
5151         PR middle-end/42574
5152         * config/arm/arm.c (legitimize_pic_address): Use
5153         gen_calculate_pic_address pattern to emit calculation of PIC address.
5154         (will_be_in_index_register): New function.
5155         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
5156         (thumb1_legitimate_address_p): Use it provided !strict_p.
5157         * config/arm/arm.md (calculate_pic_address): New expand and split.
5158
5159 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5160
5161         PR target/42495
5162         PR middle-end/42574
5163         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
5164         * config/arm/arm.md (define_split "J", define_split "K"): Make
5165         IRA/reload friendly.
5166
5167 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5168
5169         * gcse.c (insert_insn_end_basic_block): Update signature, remove
5170         unused checks.
5171         (pre_edge_insert, hoist_code): Update.
5172
5173 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5174
5175         PR target/42495
5176         PR middle-end/42574
5177         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
5178
5179 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5180
5181         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
5182
5183 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5184
5185         PR rtl-optimization/40956
5186         PR target/42495
5187         PR middle-end/42574
5188         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
5189         for hoisting.
5190         (hoist_code): Count occurences in current block too.
5191
5192 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5193
5194         * gcse.c (struct expr:max_distance): New field.
5195         (doing_code_hoisting_p): New static variable.
5196         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
5197         simple expressions, don't change behavior for PRE.  Set max_distance.
5198         (insert_expr_in_table): Set new max_distance field.
5199         (hash_scan_set): Update.
5200         (hoist_expr_reaches_here_p): Stop search after max_distance
5201         instructions.
5202         (find_occr_in_bb): New static function.  Use it in ...
5203         (hoist_code): Calculate sizes of basic block before any changes are
5204         done.  Pass max_distance to hoist_expr_reaches_here_p.
5205         (one_code_hoisting_pass): Set doing_code_hoisting_p.
5206
5207         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
5208         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
5209         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
5210         macros.
5211         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
5212         Document.
5213
5214 2010-07-27  Jeff Law  <law@redhat.com>
5215             Maxim Kuvyrkov  <maxim@codesourcery.com>
5216
5217         * gcse.c (compute_transpout, transpout): Remove, move logic
5218         to prune_expressions.
5219         (compute_pre_data): Move pruning of trapping expressions ...
5220         (prune_expressions): ... here.  New static function.
5221         (compute_code_hoist_data): Use it.
5222         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
5223
5224 2010-07-27  Xinliang David Li  <davidxl@google.com>
5225
5226         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
5227         (rewrite_use_address): Adjust iv update position when needed.
5228
5229 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5230
5231         * dbgcnt.def (hoist_insn): New debug counter.
5232         * gcse.c (hoist_code): Use it.
5233
5234 2010-07-27  Xinliang David Li  <davidxl@google.com>
5235
5236         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
5237         (niter_for_single_dom_exit): Passes additional parameter.
5238         (iv_period): Fix comments.
5239         (may_eliminate_iv): Handles multiple exit loops properly.
5240         (free_tree_niter_desc): New function.
5241         (free_loop_data): Frees up loop iteration descriptors.
5242
5243 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5244
5245         PR target/44542
5246         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
5247         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
5248         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
5249         (expand_one_var): Don't consider DECL_ALIGN for variables for
5250         which expand_one_stack_var_at has been already called.
5251
5252         PR testsuite/44701
5253         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
5254         constraints on IA-64.
5255
5256 2010-07-27  Jie Zhang  <jie@codesourcery.com>
5257
5258         PR target/44290
5259         Revert:
5260         2010-07-23  Jie Zhang  <jie@codesourcery.com>
5261
5262         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
5263         false if ! tree_versionable_function_p.
5264
5265 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5266
5267         * dwarf2out.c (add_data_member_location_attribute): Use
5268         add_AT_unsigned instead of add_AT_int if offset is non-negative.
5269
5270 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5271
5272         * postreload.c (try_replace_in_use): New static function.
5273         (reload_combine_recognize_const_pattern): Use it here.  Allow
5274         substituting into a final add insn, and substituting into a memory
5275         reference in an insn that sets the reg.
5276
5277 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5278
5279         * common.opt (o): Add MissingArgError.
5280         * doc/options.texi (MissingArgError): Document.
5281         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
5282         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
5283         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5284         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
5285         * langhooks.h (struct lang_hooks): Remove missing_argument.
5286         * optc-gen.awk: Handle MissingArgError and output new structure
5287         field initializers.
5288         * opts.c (read_cmdline_option): Use missing_argument_error field
5289         instead of missing_argument langhook.
5290         * opts.h (struct cl_option): Add missing_argument_error field.
5291         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
5292
5293 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
5294
5295         PR target/29090
5296         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
5297         Darwin64 ABI, for zero-sized objects.
5298
5299 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
5300
5301         PR target/35491
5302         PR target/29090
5303
5304         Merge from Apple local 4.2.1.
5305         2005-05-11  Stan Shebs  <shebs@apple.com>
5306         Fix 64-bit varargs for Darwin (Radar 4028089).
5307         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
5308         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
5309         Add argument, add case for 8-byte register half-filled with a float.
5310         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
5311         single-precision floats specially.
5312
5313 2010-07-27  Ira Rosen  <irar@il.ibm.com>
5314
5315         PR tree-optimization/44152
5316         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
5317         complex numbers for further check.
5318         (vect_supported_load_permutation_p): Check nodes with
5319         complex numbers.
5320
5321 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5322
5323         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
5324         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
5325         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
5326         (LANG_HOOKS_INITIALIZER): Add new hooks.
5327         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
5328         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
5329         and complain_wrong_lang_p.  Update init_options prototype.
5330         * c-objc-common.c (c_initialize_diagnostics): First call
5331         c_common_initialize_diagnostics.
5332         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
5333         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
5334         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
5335         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
5336         (hook_uint_void_0): New.
5337         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
5338         (hook_uint_void_0): New.
5339         * opts-common.c (decode_cmdline_option,
5340         decode_cmdline_options_to_array): Also fill in canonical_option field.
5341         * opts.c (complain_wrong_lang): Use langhook to determine whether
5342         to complain instead of special-casing LTO.
5343         (decode_options): Separate lang_mask determination with
5344         option_lang_mask hook from call of init_options hook.
5345         * opts.h (struct cl_decoded_option): Add canonical_option.
5346
5347 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5348
5349         PR tree-optimization/45083
5350         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
5351
5352 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5353
5354         * postreload.c (reload_combine_recognize_const_pattern): Move test
5355         for limiting the insn movement to the right scope.
5356
5357         PR rtl-optimization/45051
5358         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
5359         than reg_mentioned_p.
5360
5361 2010-07-26  Richard Henderson  <rth@redhat.com>
5362
5363         PR target/44132
5364         * tree-emutls.c: New file.
5365         * Makefile.in (OBJS-common): Add it.
5366         * tree-pass.h (pass_ipa_lower_emutls): Declare.
5367         * passes.c (init_optimization_passes): Add it.
5368
5369         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
5370         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
5371         * expr.c (emutls_var_address): Delete.
5372         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
5373         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
5374         (emutls_finish): Delete.
5375         * toplev.c (compile_file): Don't call it.
5376         * tree.h (emutls_decl): Delete.
5377         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
5378         (emutls_finish, emutls_finalize_control_var): Delete.
5379         (emutls_object_type): Move to tree-emutls.c.
5380         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
5381         default_emutls_var_fields, get_emutls_object_type,
5382         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
5383         default_emutls_var_init): Likewise.
5384         (get_variable_section): Don't special case emutls.
5385         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
5386         default_elf_select_section, default_unique_section,
5387         default_encode_section_info): Likewise.
5388         * varpool.c (decide_is_variable_needed): Likewise.
5389         * gimple-iterator.c (update_call_edge_frequencies): New
5390         (gsi_insert_on_edge_immediate): Use it.
5391         (gsi_insert_seq_on_edge_immediate): Likewise.
5392         (gsi_commit_one_edge_insert): Likewise.
5393
5394         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
5395         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
5396         (x86_64_elf_unique_section): Likewise.
5397
5398 2010-07-26  Jan Hubicka  <jh@suse.cz>
5399
5400         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
5401         GTY((skip)).
5402
5403 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
5404
5405         * target.def (output_source_filename): New hook.
5406         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
5407         * doc/tm.texi: Regenerate.
5408         * toplev.c (output_file_directive) Remove function.
5409         * toplev.h (output_file_directive) Remove.
5410         * output.h (default_asm_output_source_filename,
5411         output_file_directive): Declare.
5412         * varasm.h (default_asm_output_source_filename,
5413         output_file_directive): New functions.
5414
5415         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
5416         * config/mips/mips-protos.h (mips_output_filename): Remove.
5417         * config/mips/mips.c (mips_output_filename): Make Static.
5418         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
5419
5420 2010-07-26  Richard Guenther  <rguenther@suse.de>
5421
5422         PR tree-optimization/43784
5423         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
5424         if the destination is used by the call.
5425
5426 2010-07-26  Richard Guenther  <rguenther@suse.de>
5427
5428         PR middle-end/45073
5429         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
5430         SSA updating on being in SSA form.
5431
5432 2010-07-26  Richard Guenther  <rguenther@suse.de>
5433
5434         PR middle-end/45056
5435         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
5436
5437 2010-07-26  Richard Guenther  <rguenther@suse.de>
5438
5439         PR tree-optimization/45071
5440         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
5441         adjust op->opcode.
5442
5443 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
5444
5445         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
5446         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
5447         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
5448         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
5449         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
5450         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
5451         save_r31, return_r31, save_interrupt, return_interrupt,
5452         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
5453         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
5454         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
5455         new ABI requirements.
5456         (save_r6_r9, L_callt_save_r6_r9): Remove.
5457         * config/v850/predicates.md (even_reg_operand, disp23_operand,
5458         const_float_1_operand const_float_0_operand): New Predicates.
5459         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
5460         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
5461         * config/v850/t-v850: Update multilibs for new target variants.
5462         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
5463         * config/v850/t-v850e: Likewise.
5464         * config/v850/v850.c (v850_issue_rate): New.
5465         (v850_strict_argument_naming): New.
5466         (function_arg): Modify to generate a different ABI.
5467         (print_operand): Update case 'z' to support float modes.
5468         (output_move_single): Modify to generate appropriate and better
5469         assembly.
5470         (v850_float_z_comparison_operator, v850_select_cc_mode,
5471         v850_float_nz_comparison_operator,  v850_gen_float_compare,
5472         v850_gen_compare): New functions to support comparison of float values.
5473         (ep_memory_offset): Add support for V850E2 targets.
5474         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
5475         (INTERRUPT_REGPARM_NUM): Remove.
5476         (compute_register_save_size): Add extra case to save/restore long call.
5477         (use_prolog_function): New function to support prologue.
5478         (expand_prologue): Add support for V850E2 targets and modified
5479         as per the current ABI requirements.
5480         (expand_epilogue): Likewise.
5481         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
5482         (construct_save_jarl): Likewise.
5483         (construct_dispose_instruction): Update as per the current ABI
5484         requirements.
5485         (construct_prepare_instruction): Likewise.
5486         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
5487         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
5488         (CPP_SPEC): Updated to support v850e2 targets.
5489         (STRICT_ALIGNMENT): Modified.
5490         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
5491         (FIXED_REGISTERS): Likewise.
5492         (CALL_USED_REGISTERS): Likewise.
5493         (CONDITIONAL_REGISTER_USAGE): Updated.
5494         (HARD_REGNO_MODE_OK): Updated.
5495         (reg_class): Updated to add even registers.
5496         (REG_CLASS_NAMES): Likewise.
5497         (REG_CLASS_CONTENTS): Likewise.
5498         (REGNO_REG_CLASS): Updated for CC registers.
5499         (REG_CLASS_FROM_LETTER): Added support for even registers.
5500         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
5501         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
5502         ARG_POINTER_REGNUM): Updated.
5503         (FUNCTION_ARG_ADVANCE): Define.
5504         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
5505         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
5506         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
5507         (GO_IF_LEGITIMATE_ADDRESS): Updated.
5508         (SELECT_CC_MODE): Define.
5509         (REGISTER_NAMES): Updated to add psw and fcc registers.
5510         (ADDITIONAL_REGISTER_NAMES): Updated.
5511         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
5512         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
5513         * config/v850/v850.md (define_constants): Define new constants.
5514         (type): Update store,bit1,macc,div,fpu and single attributes.
5515         (cpu): New attribute.
5516         (cc): Add set_z attribute.
5517         (unsign23byte_load, sign23byte_load, unsign23hword_load,
5518         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
5519         23word_store): New instructions for 23-bit displacement load and store.
5520         (movqi_internal, movhi_internal): Update the attributes.
5521         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
5522         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
5523         the attributes.
5524         (v850_tst1): Modified using CC_REGNUM.
5525         (tstsi): Remove.
5526         (cmpsi): Modified as define_expand from define_insn.
5527         (cmpsi_insn, cmpsf, cmpdf): New instructions.
5528         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
5529         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
5530         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
5531         one_cmplsi2): Clobber the CC_REGNUM register.
5532         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
5533         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
5534         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
5535         (setf_insn, set_z_insn, set_nz_insn): New instructions for
5536         v850e2v3 target.
5537         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
5538         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
5539         targets.
5540         (sasf_1, sasf_2): Remove.
5541         (sasf): New instruction.
5542         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
5543         targets. CC_REGNUM register is clobbered and attributes are
5544         updated.
5545         (branch_z_normal, branch_z_invert, branch_nz_normal,
5546         branch_nz_invert): New branch related instructions.
5547         (jump): Updated the attributes.
5548         (switch): Update to support new targets. CC_REGNUM register is
5549         clobbered and attributes are updated.
5550         (call_internal_short, call_internal_long, call_value_internal_short,
5551         call_value_internal_long): Updated the attributes.
5552         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
5553         clobbered and attributes are updated.
5554         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
5555         Update to support new targets. CC_REGNUM register is clobbered.
5556         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
5557         instructions.
5558         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
5559         are updated.
5560         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
5561         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
5562         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
5563         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
5564         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
5565         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
5566         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
5567         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
5568         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
5569         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
5570         point instructions defined for V850e2v3 target.
5571         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
5572         Add support for V850E2 targets and CC_REGNUM register is clobbered.
5573         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
5574         support for new targets.
5575         * config/v850/v850-modes.def: New file.
5576         * config/v850/v850.opt(mstrict-align): Remove.
5577         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
5578         mv850e2v3): New command line options for V850.
5579         * config.gcc: Update the newly added files.
5580         * doc/invoke.texi: Update the newly added command line options for
5581         V850 target.
5582
5583 2010-07-26  Richard Guenther  <rguenther@suse.de>
5584
5585         PR tree-optimization/45052
5586         * ipa-pure-const.c (check_stmt): Check volatileness.
5587
5588 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
5589
5590         PR target/44707
5591         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
5592         * config/sparc/sparc.c: Include reload.h.
5593         (legitimize_tls_address): Rename into...
5594         (sparc_legitimize_tls_address): ...this.
5595         (legitimize_pic_address): Rename into...
5596         (sparc_legitimize_pic_address): ...this.
5597         (sparc_expand_move): Adjust to above renaming.
5598         (sparc_tls_referenced_p): Likewise.
5599         (sparc_legitimize_tls_address): Likewise.
5600         (sparc_legitimize_pic_address): Likewise.
5601         (sparc_legitimize_address): Likewise.
5602         (sparc_output_mi_thunk): Likewise.
5603         (sparc_legitimize_reload_address): New global function.  Recognize
5604         (lo_sum (high ...) ...) patterns generated by earlier passes.
5605         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
5606
5607 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
5608
5609         PR target/44484
5610         * config/sparc/predicates.md (memory_reg_operand): Delete.
5611         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
5612         (*sync_compare_and_swap): Encode the address form in the pattern.
5613         (*sync_compare_and_swapdi_v8plus): Likewise.
5614
5615 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
5616
5617         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
5618         Streamline paragraph on compatibility with the system compiler.
5619
5620 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
5621
5622         PR middle-end/45035
5623         * alias.c (true_dependence_1): Fix thinko in merge of old
5624         true_dependence and canon_true_dependence.
5625
5626 2010-07-23  Jan Hubicka  <jh@suse.cz>
5627
5628         * lto-streamer-out.c (write_symbol): Fix visibilities of external
5629         references.
5630
5631 2010-07-23  Le-Chun Wu  <lcwu@google.com>
5632
5633         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
5634         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
5635         and an unnecessary assignment.
5636         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
5637         self-assign warning.
5638         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
5639         unnecessary self-init.
5640
5641 2010-07-23  Richard Guenther  <rguenther@suse.de>
5642
5643         PR lto/43071
5644         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
5645         for -flto and -fwhopr.
5646
5647 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
5648
5649         PR target/41943
5650         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
5651         (stmp-int-hdrs): Prefix/postfix headers by include_next.
5652         * config.gcc (user_headers_inc_next_pre): New.
5653         (user_headers_inc_next_post): Likewise.
5654         (*-w64-mingw*): Use for float.h post-fixing, and for
5655         stddef.h/stdarg.h pre-fixing by include_next.
5656         * configure.ac (user_headers_inc_next_post): New.
5657         (user_headers_inc_next_pre): New.
5658         * configure: Regenerated.
5659
5660 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5661
5662         * configure.ac: Don't disable TLS on Solaris 8/9 by default
5663         Set tga_func for Solaris 2/x86 resp. SPARC.
5664         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
5665         (LIB_THREAD_LDFLAGS_SPEC): Define.
5666         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
5667         * configure: Regenerate.
5668         * config.in: Regenerate.
5669         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
5670         -pthread, -threads, LIB_TLS_SPEC with -pthread.
5671         * doc/install.texi (Specific, *-*-solaris2*): Document use of
5672         alternate thread libraries on Solaris 8.
5673         Document TLS patch requirements.
5674         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
5675         Document tls.
5676
5677         PR target/18788
5678         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
5679         -shared.
5680
5681 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
5682
5683         * tree.h (struct tree_base): Add nameless_flag bitfield.
5684         (TYPE_NAMELESS, DECL_NAMELESS): Define.
5685         * omp-low.c (create_omp_child_function, scan_omp_parallel,
5686         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
5687         DECL_ARTIFICIAL where needed.
5688         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
5689         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
5690         has DECL_NAMELESS set.
5691
5692 2010-07-23  Martin Jambor  <mjambor@suse.cz>
5693
5694         PR tree-optimization/44915
5695         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
5696         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
5697         (analyze_function): Likewise.
5698
5699 2010-07-23  Martin Jambor  <mjambor@suse.cz>
5700
5701         PR tree-optimization/44914
5702         * tree-sra.c (sra_modify_function_body): Return true if CFG was
5703         changed, add purging dead eh edges.
5704         (ipa_sra_modify_function_body): Return true if CFG was changed,
5705         simplify purging dead eh edges.
5706         (modify_function): Return true if CFG was changed.
5707         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
5708         was changed.
5709         (ipa_early_sra): Likewise.
5710
5711 2010-07-23  Jie Zhang  <jie@codesourcery.com>
5712
5713         PR target/44290
5714         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
5715         if "naked".
5716         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
5717         false if ! tree_versionable_function_p.
5718
5719 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
5720
5721         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
5722         * ipa-pure-const.c (special_builtlin_state): Remove
5723         BUILT_IN_ARGS_INFO case.
5724         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
5725         * builtins.c (expand_builtin): Likewise.
5726         (expand_builtin_args_info): Remove.
5727         * doc/tm.texi (__builtin_args_info): Remove.
5728         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
5729         * doc/tm.text.in: Likewise.
5730
5731 2010-07-23  Richard Guenther  <rguenther@suse.de>
5732
5733         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
5734         (lto_symtab_merge_decls_2): Likewise.
5735         * tree-ssa.c (useless_type_conversion_p): Likewise.
5736         * lto-streamer-in.c (input_gimple_stmt): Likewise.
5737         * gimple.c (gtc_visited2, gtc_ob2): Remove.
5738         (struct type_pair_d): Make same_p an array indexed by mode.
5739         Update comment.
5740         (lookup_type_pair): Update initialization.
5741         (struct sccs): Adjust same_p type.
5742         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
5743         Adjust.
5744         (print_gimple_types_stats): Likewise.
5745         * gimple.h (enum gtc_mode): New.
5746         (gimple_types_compatible_p): Adjust prototype.
5747
5748 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
5749
5750         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
5751         again after processing insn.
5752
5753 2010-07-23  Jie Zhang  <jie@codesourcery.com>
5754
5755         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
5756         proper words when !tree_versionable_function_p.
5757
5758 2010-07-23  Richard Guenther  <rguenther@suse.de>
5759
5760         PR tree-optimization/45037
5761         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
5762
5763 2010-07-23  Jie Zhang  <jie@codesourcery.com>
5764
5765         * doc/extend.texi: Remove IP2K from the description of naked attribute.
5766         Add MCORE instead.
5767
5768 2010-07-10  Andi Kleen  <ak@linux.intel.com>
5769
5770         PR lto/44992
5771         * lto-opts.c (lto_write_options): Add NULL file_data argument to
5772         lto_get_section_name.
5773         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
5774         * lto-streamer-out.c (produce_asm): Likewise.
5775         (copy_function): Likewise.
5776         (produce_symtab): Likewise.
5777         (produce_asm_for_decls): Likewise.
5778         * lto-streamer.c (lto_get_section_name): Add file_data argument.
5779         Rewrite to add random postfix to LTO sections.
5780         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
5781         (lto_get_section_name): Add file_data argument to prototype.
5782
5783 2010-07-10  Andi Kleen  <ak@linux.intel.com>
5784
5785         * lto-section-in.c (lto_section_name): Synchronize names
5786         with lto_get_section_name.
5787
5788 2010-07-10  Andi Kleen  <ak@linux.intel.com>
5789
5790         * lto-opts.c (lto_read_file_options): Check for missing section.
5791
5792 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
5793
5794         * ira.c (check_allocation): Correctly handle the case where an allocno
5795         with two objects was allocated to a single reg.
5796
5797 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
5798
5799         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
5800         (is_widening_mult_p): Likewise.
5801         (convert_to_widen): Use them.
5802         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
5803         well as integer ones.
5804
5805 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
5806
5807         * alias.c (true_dependence_1): New function, merged version of
5808         true_dependence and canon_true_dependence.
5809         (true_dependence): Simplify.
5810         (canon_true_dependence): Simplify.
5811
5812 2010-07-22  Richard Henderson  <rth@redhat.com>
5813
5814         PR target/45027
5815         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
5816         of V4SFmode for the SSE saves; increase stack alignment if needed.
5817         (ix86_gimplify_va_arg): Don't increase stack alignment here.
5818
5819 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
5820
5821         PR bootstrap/45028
5822         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
5823         call cprop_find_used_regs again via note_uses.
5824
5825 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
5826
5827         * alias.c (get_alias_set): Fix formatting issues.
5828
5829 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
5830
5831         PR middle-end/44878
5832         * stmt.c (expand_value_return):  Call promote_function_mode with
5833         a for_return argument of 2 when returning by reference.
5834
5835 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
5836
5837         PR debug/45024
5838         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
5839         unit DIE if we can find the scope DIE.
5840
5841 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
5842
5843         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
5844         changed.  Initialize OBJECT_SUBWORD.
5845         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
5846         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
5847         all callers changed.
5848         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
5849         (finish_allocno): Likewise.
5850         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
5851         (remove_low_level_allocnos): Likewise.
5852         (update_bad_spill_attribute): Likewise.
5853         (setup_min_max_allocno_live_range_point): Likewise.
5854         (sort_conflict_id_map): Likewise.
5855         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
5856         (ior_hard_reg_conflicts): New function.
5857         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
5858         (compress_conflict_vecs): Iterate over objects, not allocnos.
5859         (ira_add_live_range_to_object): New function.
5860         (object_range_compare_func): Renamed from allocno_range_compare_func.
5861         All callers changed.
5862         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
5863         subobjects, widen the min/max range of the lowest-order object to
5864         potentially include all other such low-order objects.
5865         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
5866         (check_allocation): Likewise.  Use more fine-grained tests for register
5867         conflicts.
5868         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
5869         allocno subobjects.
5870         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
5871         choices about which bits to set in each set.  Don't use
5872         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
5873         using the multiple sets we computed.
5874         (push_allocno_to_stack): Iterate over allocno subobjects.
5875         (all_conflicting_hard_regs_coalesced): New static function.
5876         (setup_allocno_available_regs_num): Use it.
5877         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
5878         subobjects.
5879         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
5880         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
5881         by ALLOCNO_NUM_OBJECTS.
5882         (calculate_spill_cost): Likewise.
5883         (color_pass): Express if statement in a more normal way.
5884         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
5885         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
5886         (setup_slot_coalesced_allocno_live_ranges): Likewise.
5887         (allocno_reload_assign): Likewise.
5888         (ira_reassign_pseudos): Likewise.
5889         (fast_allocation): Likewise.
5890         * ira-conflicts.c (build_conflict_bit_table): Likewise.
5891         (print_allocno_conflicts): Likewise.
5892         (ira_build_conflicts): Likewise.
5893         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
5894         callers changed.  Test subword 0 of each allocno for conflicts.
5895         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
5896         callers changed.  Iterate over allocno subobjects.
5897         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
5898         * ira-int.h (struct ira_allocno): New member: num_objects.
5899         Rename object to objects and change it into an array.
5900         (ALLOCNO_OBJECT): Add new argument N.
5901         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
5902         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
5903         (ior_hard_reg_conflicts): Declare.
5904         (ira_add_live_range_to_object): Declare.
5905         (ira_allocno_object_iterator): New.
5906         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
5907         (FOR_EACH_ALLOCNO_OBJECT): New macro.
5908         * ira-lives.c (objects_live): Renamed from allocnos_live; all
5909         uses changed.
5910         (allocnos_processed): New sparseset.
5911         (make_object_born): Renamed from make_allocno_born; take an
5912         ira_object_t argument.  All callers changed.
5913         (make_object_dead): Renamed from make_allocno_dead; take an
5914         ira_object_t argument.  All callers changed.
5915         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
5916         All callers changed.
5917         (mark_pseudo_regno_live): Iterate over allocno subobjects.
5918         (mark_pseudo_regno_dead): Likewise.
5919         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
5920         functions.
5921         (mark_ref_live): Detect subword accesses and call
5922         mark_pseudo_regno_subword_live as appropriate.
5923         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
5924         (process_bb_nodes_live): Deal with object-related updates first; set
5925         and test bits in allocnos_processed to avoid computing allocno
5926         statistics more than once.
5927         (create_start_finish_chains): Iterate over objects, not allocnos.
5928         (print_object_live_ranges): New function.
5929         (print_allocno_live_ranges): Use it.
5930         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
5931         and objects_live.
5932
5933 2010-07-22  Richard Guenther  <rguenther@suse.de>
5934
5935         PR lto/42451
5936         * gimple.c (gtc_next_dfs_num): New global.
5937         (struct sccs): Make value a union, add integer same_p member.
5938         (gtc_visit): New function.
5939         (gimple_types_compatible_p_1): New function, split out from ...
5940         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
5941         (iterative_hash_gimple_type): Adjust for sccs change.
5942
5943 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5944
5945         PR tree-optimization/44891
5946         * tree-sra.c: Include gimple-pretty-print.h.
5947         (replace_uses_with_default_def_ssa_name): Renamed to
5948         get_repl_default_def_ssa_name, return the new SSA name instead of
5949         replacing the old one.
5950         (sra_modify_assign): Dump a message when removing a load, if the LHS
5951         is an SSA_NAME, do not do any propagation, just set the RHS to a
5952         default definition SSA NAME, type convert if necessary.
5953         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
5954
5955 2010-07-22  Richard Guenther  <rguenther@suse.de>
5956
5957         PR tree-optimization/45017
5958         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
5959         TYPE_PRECISION of integral types in addition to size.
5960
5961 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
5962
5963         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
5964         when no C library is specified.
5965
5966 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5967
5968         * ipa-prop.h (struct ipa_node_params): Updated comment.
5969         (struct ipa_edge_args): Likewise.
5970         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
5971
5972 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5973
5974         * cgraphunit.c (verify_edge_count_and_frequency): New function.
5975         (verify_cgraph_node): Verify frequencies of indirect edges.
5976         * tree-inline.c (tree_function_versioning): Update frequencies of
5977         indirect edges.
5978
5979 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5980
5981         PR target/43698
5982         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
5983         Set *arm_rev to be predicable.
5984
5985 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
5986
5987         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
5988         (LINK_COMMAND_SPEC_A): New.
5989         (DSYMUTIL): New.
5990         (DSYMUTIL_SPEC): New.
5991         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
5992         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
5993
5994 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
5995
5996         * calls.c (load_register_parameters): Move check for zero
5997         sized items so that only the call to
5998         mem_overlaps_already_clobbered_arg_p () is protected.
5999
6000 2010-07-22  Jan Hubicka  <jh@suse.cz>
6001
6002         * ipa-pure-const.c (varying_state): Break out from ...
6003         (get_function_state): ... here; always return varying_state
6004         when state would be NULL otherwise.
6005         (remove_node_data): Do not free varying state.
6006
6007 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
6008
6009         PR bootstrap/44970
6010         PR middle-end/45009
6011         * postreload.c: Include "target.h".
6012         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
6013         into account.
6014         (fixup_debug_insns): Don't copy the rtx.
6015         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
6016         Don't copy when replacing.  Call fixup_debug_insns in the case where
6017         we merged one add with another.
6018         (reload_combine_recognize_pattern): Fail if there aren't any uses.
6019         Try harder to determine whether we're picking a valid index register.
6020         Don't set store_ruid for an insn we're going to scan in the
6021         next iteration.
6022         (reload_combine): Remove unused code.
6023         (reload_combine_note_use): When updating use information for
6024         an old insn, ignore a use that occurs after store_ruid.
6025         * Makefile.in (postreload.o): Update dependencies.
6026
6027         * function.c (record_hard_reg_sets): Restrict the previous change
6028         to cases where the incoming nominal mode is the same as the
6029         incoming promoted mode and everything happens in MODE_INT.
6030
6031 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
6032
6033         PR debug/45015
6034         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
6035         ASM_OPERANDS_OUTPUT_IDX.
6036         (adjust_insn): For inline asm with multiple sets ensure first
6037         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
6038         the insn.
6039
6040 2010-07-21  Richard Henderson  <rth@redhat.com>
6041
6042         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
6043         comparison for avoiding xmm register saves.  Emit the xmm register
6044         saves explicitly.
6045         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
6046         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
6047         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
6048         Remove patterns and the associated splitters.
6049
6050 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
6051
6052         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
6053         and imagine parts of a complex, so that they can have the same
6054         base and fall into the same group.
6055
6056 2010-07-21  Richard Guenther  <rguenther@suse.de>
6057
6058         PR lto/45018
6059         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
6060         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
6061         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
6062
6063 2010-07-21  Martin Jambor  <mjambor@suse.cz>
6064
6065         PR tree-optimization/44900
6066         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
6067         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
6068
6069 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
6070
6071         PR middle-end/44738
6072         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
6073
6074 2010-07-21  Richard Guenther  <rguenther@suse.de>
6075
6076         PR middle-end/45013
6077         * tree-ssa.c (useless_type_conversion_p): Dispatch to
6078         gimple_types_compatible_p only when in lto.
6079         * gimple.c (gimple_types_compatible_p): Use canonical types
6080         to speed up comparison.
6081
6082 2010-07-21  Richard Guenther  <rguenther@suse.de>
6083
6084         * tree-flow.h (referenced_var): Move define ...
6085         * tree-flow-inline.h (referenced_var): ... here as an inline
6086         function.  Assert here ...
6087         * tree-dfa.c (referenced_var_lookup): ... instead of here.
6088         * tree-ssa.c (maybe_optimize_var): Check if the variable
6089         is in referenced vars.
6090         (execute_update_addresses_taken): Remove old broken check.
6091         * gimple-pretty-print.c (pp_points_to_solution): Use
6092         referenced_var_lookup.
6093         * tree-into-ssa.c (dump_decl_set): Likewise.
6094
6095 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
6096
6097         PR debug/45003
6098         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
6099         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
6100         ZERO_EXTEND here.
6101
6102 2010-07-20  Richard Henderson  <rth@redhat.com>
6103
6104         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
6105
6106 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
6107
6108         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
6109         computing the sum of the stack pointer and a large constant.
6110         * config/arm/constraints.md (M): Remove superfluous parentheses.
6111         (Pc): New constraint.
6112
6113 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
6114
6115         PR debug/45006
6116         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
6117         operand's type if exp is tcc_unary class tree.
6118
6119 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
6120
6121         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
6122         Reverse sense of if_then_else condition.
6123
6124 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
6125
6126         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
6127         * config/rs6000/rs6000.c (rs6000_override_options): Set
6128         rs6000_block_move_inline_limit appropriately.
6129         (expand_block_move): Use rs6000_block_move_inline_limit.
6130         * doc/invoke.texi (mblock-move-inline-limit): Document.
6131
6132 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
6133
6134         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
6135         FROM and TO.  All callers changed.  Don't look for tracked uses,
6136         just scan the RTL for DEBUG_INSNs and substitute.
6137         (reload_combine_recognize_pattern): Call fixup_debug_insns.
6138         (reload_combine): Ignore DEBUG_INSNs.
6139
6140 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
6141
6142         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
6143         depth to 8 from 5.
6144
6145         PR debug/45003
6146         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
6147         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
6148         instead of the result's type.
6149
6150 2010-07-20  Richard Guenther  <rguenther@suse.de>
6151
6152         PR tree-optimization/44977
6153         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
6154         SSA form.
6155
6156 2010-07-20  Richard Guenther  <rguenther@suse.de>
6157
6158         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
6159         (lto_symtab_merge_decls_2): Likewise.
6160         * gimple.h (gimple_types_compatible_p): Declare.
6161         * gimple.c (gimple_queue_type_fixup): Remove.
6162         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
6163         (gimple_compatible_complete_and_incomplete_type_p): New function.
6164         (gimple_types_compatible_p): Adjust.
6165         (gimple_register_type): Remove type fixup code.
6166         (print_gimple_types_stats): Adjust.
6167         (free_gimple_type_tables): Likewise.
6168         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
6169         * tree-ssa.c (useless_type_conversion_p): Likewise.
6170
6171 2010-07-20  Richard Guenther  <rguenther@suse.de>
6172
6173         PR middle-end/44971
6174         PR middle-end/44988
6175         * tree-ssa.c (maybe_optimize_var): New function split out from ...
6176         (execute_update_addresses_taken): ... here.
6177         (non_rewritable_mem_ref_base): Likewise.
6178         (execute_update_addresses_taken): Do not iterate over all referenced
6179         vars but just all local decls and parms.
6180         Properly check call and asm arguments and rewrite call arguments.
6181
6182 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
6183
6184         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
6185         to top level.
6186         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
6187         definitions ...
6188         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
6189         New macro.
6190         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
6191
6192 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6193
6194         * gengtype.c (start_root_entry): New function, split out from
6195         write_root.  Check whether V is null and raise an error if so.
6196         (write_field_root): Check for V being null.  Don't raise an error here;
6197         set V to null instead.
6198         (write_root): Update comment above function.  Use start_root_entry.
6199
6200 2010-07-19  Xinliang David Li  <davidxl@google.com>
6201
6202         PR testsuite/44932
6203         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
6204         def edges.
6205         (find_uninit_use): Add dump.
6206         (is_use_properly_guarded): Ditto.
6207         (warn_uninitialized_phi): Ditto.
6208         (execute_late_warn_uninitialized): Ditto.
6209
6210 2010-07-19  Richard Guenther  <rguenther@suse.de>
6211
6212         PR middle-end/44941
6213         * expr.c (emit_block_move_hints): Move zero size check first.
6214         Move asserts to more useful places.
6215         * calls.c (load_register_parameters): Check for zero size.
6216
6217 2010-07-19  Richard Henderson  <rth@redhat.com>
6218
6219         * tree-optimize.c (execute_all_early_local_passes): New.  Change
6220         cgraph_state here ...
6221         (execute_early_local_optimizations): ... not here.  Remove.
6222         (pass_early_local_passes, pass_all_early_optimizations): Update.
6223
6224 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
6225
6226         * postreload.c (reload_combine_closest_single_use): Ignore the
6227         number of uses for DEBUG_INSNs.
6228         (fixup_debug_insns): New static function.
6229         (reload_combine_recognize_const_pattern): Use it.  Don't let the
6230         main loop be affected by DEBUG_INSNs.
6231         Really disallow moving adds past a jump insn.
6232         (reload_combine_recognize_pattern): Don't update use_ruid here.
6233         (reload_combine_note_use): Do it here.
6234         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
6235
6236 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
6237
6238         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
6239         of a loop.
6240         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
6241
6242 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
6243
6244         * config/i386/darwin.h: Define darwin_emit_branch_islands.
6245         (TARGET_MACHO_BRANCH_ISLANDS): New.
6246         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
6247         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
6248         default value.
6249         * config/i386/i386.c (output_pic_addr_const): Do not emit
6250         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
6251         (x86_output_mi_thunk): Adjust symbol creation.
6252         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
6253         Remove out of date comment.
6254         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
6255         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
6256         (DARWIN_GENERATE_ISLANDS): Ditto.
6257         (output_call):  Do not emit branch islands unless
6258         darwin_emit_branch_islands is set.
6259         * config/darwin.c: Declare darwin_emit_branch_islands.
6260         (machopic_indirect_data_reference): Do not emit unless
6261         darwin_emit_branch_islands is set.
6262         (darwin_override_options): Set darwin_emit_branch_islands
6263         where it is needed.
6264         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
6265
6266 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6267
6268         * doc/sourcebuild.texi (Effective-Target Keywords): Document
6269         sse_runtime, sse2_runtime.
6270
6271 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
6272
6273         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
6274         low half of a single-register SCmode return value before ORing
6275         it with the high half.
6276         * config/mips/mips16.S (MERGE_GPRf): Likewise.
6277
6278 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6279
6280         PR target/44805
6281         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
6282         on all targets.
6283
6284 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
6285
6286         PR target/42235
6287         * postreload.c (reload_cse_move2add): Return bool, true if anything.
6288         changed.  All callers changed.
6289         (move2add_use_add2_insn): Likewise.
6290         (move2add_use_add3_insn): Likewise.
6291         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
6292         reload_combine.
6293         (RELOAD_COMBINE_MAX_USES): Bump to 16.
6294         (last_jump_ruid): New static variable.
6295         (struct reg_use): New members CONTAINING_MEM and RUID.
6296         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
6297         (reload_combine_split_one_ruid, reload_combine_split_ruids,
6298         reload_combine_purge_insn_uses, reload_combine_closest_single_use
6299         reload_combine_purge_reg_uses_after_ruid,
6300         reload_combine_recognize_const_pattern): New static functions.
6301         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
6302         is true for our reg and that we have available index regs.
6303         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
6304         callers changed.  Use them to initialize fields in struct reg_use.
6305         (reload_combine): Initialize last_jump_ruid.  Be careful when to
6306         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
6307         Call reload_combine_recognize_const_pattern.
6308         (reload_combine_note_store): Update REAL_STORE_RUID field.
6309
6310 2010-07-16  Jason Merrill  <jason@redhat.com>
6311
6312         * Makefile.in (opts-common.o): Depend on options.h.
6313
6314 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
6315
6316         * tree.c (build_common_builtin_nodes): Use build_function_type_list
6317         instead of build_function_type.
6318         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
6319         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
6320
6321 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
6322
6323         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
6324         do all the work.
6325         (rs6000_emit_int_cmove): Use function pointers for insn generation.
6326         Don't force values into registers unnecessarily.
6327         (output_isel): Assert that we're not given conditions we can't handle.
6328         Delete corresponding code.
6329         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
6330         scc_comparison_operator constraint.  Permit 0 for the consequent
6331         operand.  Permit any GPR for the alternative operand.
6332         (isel_unsigned_<mode>): Likewise.
6333
6334 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
6335
6336         PR target/44942
6337         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
6338         argument to const_tree.
6339         * config/i386/i386.c (function_arg_advance): If padding needs to be
6340         inserted before argument, increment cum->words by number of padding
6341         words as well.
6342         (contains_aligned_value_p): Change argument to const_tree.
6343         (ix86_function_arg_boundary): Change second argument to const_tree.
6344
6345 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
6346
6347         PR target/42235
6348         * function.c (record_hard_reg_sets): New static function.
6349         (assign_parm_setup_reg): If an optab for extending exists and the
6350         generated code clobbbers no hard regs, emit the insn directly and
6351         create a REG_EQUIV note.
6352
6353 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
6354
6355         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
6356         TREE_CHAIN.
6357         * c-typeck.c (push_init_level): Likewise.
6358         (process_init_element): Likewise.
6359
6360 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
6361
6362         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
6363         (integer_three_node): Add.
6364         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
6365         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
6366         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
6367         of call build_int_cst.
6368         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
6369         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
6370         (find_interesting_uses_address): Ditto.
6371         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
6372         * tree-eh.c (lower_eh_constructs_2): Ditto.
6373         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
6374         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
6375         * expmed.c (expand_divmod): Ditto.
6376         * tree-mudflap.c (mx_register_decls): Ditto.
6377         * varasm.c (array_size_for_constructor): Ditto.
6378         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
6379         * c-parser.c (c_parser_postfix_expression): Ditto.
6380
6381 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
6382
6383         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
6384         New static variables.
6385         (reload_combine_recognize_pattern): New static function, broken out
6386         of reload_combine.
6387         (reload_combine): Use it.  Only initialize first_index_reg and
6388         last_index_reg once.
6389
6390 2010-07-15  Richard Henderson  <rth@redhat.com>
6391
6392         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
6393         when done.
6394
6395 2010-07-15  Jan Hubicka  <jh@suse.cz>
6396
6397         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
6398         comdats for broken gold.
6399         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
6400
6401 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
6402
6403         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
6404
6405 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
6406
6407         * tree.h (DECL_CHAIN): Define.
6408         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6409         * c-decl.c: Likewise.
6410         * c-parser.c: Likewise.
6411         * c-typeck.c: Likewise.
6412         * cfgexpand.c: Likewise.
6413         * cgraph.c: Likewise.
6414         * cgraphunit.c: Likewise.
6415         * combine.c: Likewise.
6416         * config/alpha/alpha.c: Likewise.
6417         * config/arm/arm.c: Likewise.
6418         * config/frv/frv.c: Likewise.
6419         * config/i386/i386.c: Likewise.
6420         * config/i386/winnt-cxx.c: Likewise.
6421         * config/ia64/ia64.c: Likewise.
6422         * config/iq2000/iq2000.c: Likewise.
6423         * config/mep/mep.c: Likewise.
6424         * config/mips/mips.c: Likewise.
6425         * config/pa/som.h: Likewise.
6426         * config/rs6000/rs6000.c: Likewise.
6427         * config/s390/s390.c: Likewise.
6428         * config/sh/sh.c: Likewise.
6429         * config/sh/symbian-cxx.c: Likewise.
6430         * config/sparc/sparc.c: Likewise.
6431         * config/spu/spu.c: Likewise.
6432         * config/stormy16/stormy16.c: Likewise.
6433         * config/vxworks.c: Likewise.
6434         * config/xtensa/xtensa.c: Likewise.
6435         * coverage.c: Likewise.
6436         * dbxout.c: Likewise.
6437         * dwarf2out.c: Likewise.
6438         * emit-rtl.c: Likewise.
6439         * expr.c: Likewise.
6440         * function.c: Likewise.
6441         * gimple-low.c: Likewise.
6442         * gimple-pretty-print.c: Likewise.
6443         * gimplify.c: Likewise.
6444         * integrate.c: Likewise.
6445         * ipa-inline.c: Likewise.
6446         * ipa-prop.c: Likewise.
6447         * ipa-split.c: Likewise.
6448         * ipa-struct-reorg.c: Likewise.
6449         * ipa-type-escape.c: Likewise.
6450         * langhooks.c: Likewise.
6451         * lto-cgraph.c: Likewise.
6452         * omp-low.c: Likewise.
6453         * stor-layout.c: Likewise.
6454         * tree-cfg.c: Likewise.
6455         * tree-complex.c: Likewise.
6456         * tree-dfa.c: Likewise.
6457         * tree-dump.c: Likewise.
6458         * tree-inline.c: Likewise.
6459         * tree-mudflap.c: Likewise.
6460         * tree-nested.c: Likewise.
6461         * tree-object-size.c: Likewise.
6462         * tree-pretty-print.c: Likewise.
6463         * tree-sra.c: Likewise.
6464         * tree-ssa-live.c: Likewise.
6465         * tree-ssa-loop-niter.c: Likewise.
6466         * tree-ssa-math-opts.c: Likewise.
6467         * tree-ssa-reassoc.c: Likewise.
6468         * tree-ssa-sccvn.c: Likewise.
6469         * tree-ssa-structalias.c: Likewise.
6470         * tree-tailcall.c: Likewise.
6471         * tree-vrp.c: Likewise.
6472         * tree.c: Likewise.
6473         * var-tracking.c: Likewise.
6474         * varasm.c: Likewise.
6475
6476 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6477
6478         PR target/44877
6479         * config/spu/spu.c (spu_expand_builtin_1): Allow references
6480         (as well as pointers) as argument to mask_for_load builtins.
6481
6482 2010-07-15  Richard Guenther  <rguenther@suse.de>
6483
6484         PR tree-optimization/44946
6485         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
6486         with accessing only padding properly.
6487
6488 2010-07-15  Jan Hubicka  <jh@suse.cz>
6489
6490         * ipa.c (function_and_variable_visibility): Variables marked as used
6491         should not be localized.
6492
6493 2010-07-15  Jan Hubicka  <jh@suse.cz>
6494
6495         * cgraph.c: Include lto-streamer.h
6496         (change_decl_assembler_name): Work when assembler name hash is at place.
6497         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
6498         be sure to rename it to avoid name clash.
6499         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
6500         Localize hidden symbols only when locally defined.
6501
6502 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
6503
6504         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
6505
6506 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
6507             Kevin F. Quinn  <kevquinn@gentoo.org>
6508
6509         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
6510         * common.opt: Add -Wtrampolines.
6511         * doc/invoke.texi: Add -Wtrampolines.
6512
6513 2010-07-15  Jie Zhang  <jie@codesourcery.com>
6514
6515         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
6516         cortex_a8_issue_ls.
6517
6518 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
6519
6520         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
6521         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
6522
6523 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6524
6525         * config/spu/spu.c (reg_names): Remove prototype.
6526         (call_used_regs): Likewise.
6527
6528 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
6529
6530         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
6531         "unused" with attribute "used".
6532         (__JCR_END__): Likewise.
6533         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
6534         "used" attribute.
6535         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
6536
6537 2010-07-14  Richard Guenther  <rguenther@suse.de>
6538
6539         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
6540         (maybe_fixup_decls): Likewise.
6541         (input_gimple_stmt): Do not fixup anything.
6542         * lto-streamer-out.c (output_gimple_stmt): Make sure all
6543         non-automatic variable uses are wrapped inside a MEM_REF.
6544
6545 2010-07-14  Richard Henderson  <rth@redhat.com>
6546
6547         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
6548         for functions.
6549         * varasm.c (assemble_variable): Remove early exit for functions;
6550         assert that we're given a variable.
6551
6552 2010-07-14  Jie Zhang  <jie@codesourcery.com>
6553
6554         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
6555         cortex_a8_default when neon_type is not none.
6556
6557 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6558
6559         * lower-subreg.c (subreg_context): New static bitmap.
6560         (decompose_multiword_subregs): Allocate and free it.
6561         (find_decomposable_subregs): Set a bit in it for a register that
6562         occurs in a subreg that changes mode but not size.
6563         (can_decompose_p): Test it instead of non_decomposable_context.
6564
6565 2010-07-14  Richard Guenther  <rguenther@suse.de>
6566
6567         PR tree-optimization/44824
6568         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
6569         is_gimple_mem_ref_addr.
6570         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
6571         non-decl_address_invariant_p addresses.
6572
6573 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6574
6575         * reload.c (find_reloads): Revert code to penalize small register
6576         classes that was brought in with the IRA merge.
6577
6578 2010-07-14  Richard Guenther  <rguenther@suse.de>
6579
6580         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
6581         as base of ARRAY_REFs.
6582
6583 2010-07-14  Richard Guenther  <rguenther@suse.de>
6584
6585         PR middle-end/44930
6586         * tree-pretty-print.c (do_niy): Do not print a newline.
6587
6588 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6589
6590         * ira-int.h (struct ira_object): New.
6591         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
6592         (struct ira_allocno): Remove members min, max,
6593         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
6594         conflict_allocnos_num and conflict_vec_p.  Add new member object.
6595         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
6596         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
6597         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
6598         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
6599         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
6600         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
6601         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
6602         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
6603         an ira_object_t rather than ira_allocno_t.  All uses changed.
6604         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
6605         contains a vector of ira_object_t; all uses changed.
6606         (ira_objects_num): Declare variable.
6607         (ira_create_allocno_object): Declare function.
6608         (ira_conflict_vector_profitable_p): Adjust prototype.
6609         (ira_allocate_conflict_vec): Renamed from
6610         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
6611         (ira_allocate_object_conflicts): Renamed from
6612         ira_allocate_allocno_conflicts; first arg now ira_object_t.
6613         (struct ira_object_iterator): New.
6614         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
6615         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
6616         to conflict_vec_p.  All uses changed.
6617         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
6618         Changed to take into account that conflicts are now tracked for
6619         objects.
6620         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
6621         Args changed to accept ira_object_t.  All uses changed.
6622         (allocnos_conflict_p): New static function.
6623         (collected_conflict_objects): Renamed from collected_allocno_objects;
6624         now a vector of ira_object_t.  All uses changed.
6625         (build_conflict_bit_table): Changed to take into account that
6626         conflicts are now tracked for objects.
6627         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
6628         (print_allocno_conflicts, ira_build_conflicts): Likewise.
6629         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
6630         setup_allocno_left_conflicts_size, allocno_reload_assign,
6631         fast_allocation): Likewise.
6632         * ira-lives.c (make_hard_regno_born, make_allocno_born)
6633         process_single_reg_class_operands, process_bb_node_lives): Likewise.
6634         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
6635         Likewise.
6636         * ira-build.c (ira_objects_num): New variable.
6637         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
6638         contains a vector of ira_object_t; all uses changed.
6639         (ira_object_id_map_vec): Corresponding change.
6640         (object_pool): New static variable.
6641         (initiate_allocnos): Initialize it.
6642         (finish_allocnos): Free it.
6643         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
6644         New functions.
6645         (ira_create_allocno): Don't set members that were removed.
6646         (ira_set_allocno_cover_class): Don't change conflict hard regs.
6647         (merge_hard_reg_conflicts): Changed to take into account that
6648         conflicts are now tracked for objects.
6649         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
6650         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
6651         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
6652         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
6653         setup_min_max_conflict_allocno_ids, ):  Likewise.
6654         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
6655         to ira_object_t; all callers changed.
6656         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
6657         to ira_object_t, all callers changed.
6658         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
6659         to ira_object_t, all callers changed.
6660         (conflict_check, curr_conflict_check_tick): Renamed from
6661         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
6662         changed.
6663         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
6664         arg changed to ira_object_t, all callers changed.
6665         (create_cap_allocno): Call ira_create_allocno_object.
6666         (finish_allocno): Free the corresponding object.
6667         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
6668         callers changed.  Adjusted for dealing with objects.
6669         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
6670         dealing with objects.
6671         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
6672
6673         * ira-int.h (struct live_range): Rename allocno member to object
6674         and change type to ira_object_t.
6675         (struct ira_object): New member live_ranges.
6676         (struct ira_allocno): Remove member live_ranges.
6677         (ALLOCNO_LIVE_RANGES): Remove.
6678         (OBJECT_LIVE_RANGES): New macro.
6679         (ira_create_live_range, ira_copy_live_range_list,
6680         ira_merge_live_range_list, ira_live_ranges_intersect_p,
6681         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
6682         * ira-build.c (ira_create_object): Initialize live ranges here.
6683         (ira_create_allocno): Not here.
6684         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
6685         changed to ira_object_t, all callers changed.
6686         (copy_live_range): Rename from copy_allocno_live_range, all callers
6687         changed.
6688         (ira_copy_live_range_list): Rename from
6689         ira_copy_allocno_live_range_list, all callers changed.
6690         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
6691         all callers changed.
6692         (ira_live_ranges_intersect_p): Rename from
6693         ira_allocno_live_ranges_intersect_p, all callers changed.
6694         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
6695         callers changed.
6696         (ira_finish_live_range_list): Rename from
6697         ira_finish_allocno_live_range_list, all callers changed.
6698         (change_object_in_range_list): Rename from change_allocno_in_range_list,
6699         last arg changed to ira_object_t, all callers changed.
6700         (finish_allocno): Changed to expect live ranges in the allocno's object.
6701         (move_allocno_live_ranges, copy_allocno_live_ranges,
6702         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
6703         ira_flattening, ira_build): Likewise.
6704         * ira-color.c (allocnos_have_intersected_live_ranges_p,
6705         slot_coalesced_allocno_live_ranges_intersect,
6706         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
6707         * ira-conflicts.c (build_conflict_bit_table): Likewise.
6708         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
6709         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
6710         make_allocno_dead, create_start_finish_chains,
6711         remove_some_program_points_and_update_live_ranges,
6712         ira_debug_live_range_list): Likewise.
6713
6714         * ira-int.h (ira_object_conflict_iterator): Rename from
6715         ira_allocno_conflict_iterator.
6716         (ira_object_conflict_iter_init): Rename from
6717         ira_allocno_conflict_iter_init, second arg changed to
6718         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
6719         FOR_EACH_ALLOCNO_CONFLICT.
6720         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
6721         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
6722         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
6723         * ira-conflicts.c (print_allocno_conflicts): Likewise.
6724
6725 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
6726
6727         PR other/44874
6728         * tree-dump.c (dump_options): Add enumerate_locals entry.
6729         Add TDF_NOID exclusion to all entry.
6730         * tree-dump.h (dump_enumerated_decls): Declare.
6731         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
6732         Don't display type uid.
6733         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
6734         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
6735         * tree-ssa-live.c: Include gimple.h.
6736         (numbered_tree_d): New struct.
6737         (numbered_tree): New typedef.
6738         (DEF_VEC_O (numbered_tree): New.
6739         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
6740         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
6741         (dump_enumerated_decls): Likewise.
6742         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
6743         debug info and flag_dump_final_insns, call dump_enumerated_decls.
6744         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
6745         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
6746
6747 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
6748
6749         * expmed.h (MAX_BITS_PER_WORD): Move to...
6750         * defaults.h (MAX_BITS_PER_WORD): ...here.
6751
6752 2010-07-13  DJ Delorie  <dj@redhat.com>
6753
6754         * config/h8300/h8300.c (h8300_init_once): Default to
6755         -fstrict_volatile_bitfields.
6756
6757         * config/sh/sh.c (sh_override_options): Default to
6758         -fstrict_volatile_bitfields.
6759
6760         * config/rx/rx.c (rx_option_override): New.
6761
6762         * config/m32c/m32c.c (m32c_override_options): Default to
6763         -fstrict_volatile_bitfields.
6764
6765 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
6766
6767         * tree.h (build_function_call_expr): Delete.
6768         (build_call_expr_loc_array): New function.
6769         (build_call_expr_loc_vec): New function.
6770         * tree-flow.h (struct omp_region): Change type of ws_args field
6771         to a VEC.
6772         * builtins.c (build_function_call_expr): Delete.
6773         (build_call_expr_loc_array): New function.
6774         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
6775         (build_call_expr): Likewise.
6776         (build_call_expr_loc_vec): New function.
6777         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
6778         build_function_call_expr.
6779         * expr.c (emutls_var_address): Likewise.
6780         * varasm.c (emutls_common_1): Likewise.
6781         * omp-low.c (expand_omp_atomic_mutex): Likewise.
6782         (expand_omp_taskreg): Adjust for new type of region->ws_args.
6783         (get_ws_args_for): Return a VEC instead of a tree.
6784         (expand_parallel_call): Call build_call_expr_loc_vec instead of
6785         build_function_call_expr.
6786         * stor-layout.c (self_referential_size): Likewise.
6787
6788 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
6789
6790         PR testsuite/44701
6791         * recog.c (constrain_operands): Allow side-effects in memory
6792         operands if either < or > constraint is used, rather than if
6793         both < and > is used.
6794
6795 2010-07-13  Richard Guenther  <rguenther@suse.de>
6796
6797         PR middle-end/44911
6798         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
6799         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
6800         without name.
6801
6802 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
6803
6804         PR target/44761
6805         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
6806         to variable emited.
6807         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
6808         * config/sh/sh.md (symGOT_load): Likewise.
6809         (symDTPOFF2reg): Likewise.
6810         (symTPOFF2reg): Likewise.
6811
6812 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6813
6814         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
6815         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
6816
6817 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6818
6819         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
6820         explanation.
6821         Find ucontext_t * on Solaris 11.
6822         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
6823         Handle new Solaris 11 __sighndlr patterns.
6824
6825 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
6826
6827         PR debug/44901
6828         * vec.h (VEC_block_remove): Fix comment.
6829         * tree-ssa-live.c (remove_unused_locals): Don't use
6830         VEC_unordered_remove on local_decls, instead replace a single
6831         vector element in each iteration if at least one element had
6832         to be removed and VEC_truncate at the end.
6833         * omp-low.c (expand_omp_taskreg): Likewise.
6834
6835 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6836
6837         * c-decl.c (finish_function): Fix typo in comment.
6838
6839 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6840
6841         PR bootstrap/44921
6842         * postreload.c (move2add_use_add3_insn): Silence gcc warning
6843         on min_regno.
6844
6845 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
6846
6847         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
6848         (simplify_stmt_using_ranges): Use it.
6849
6850 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6851
6852         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
6853         member.  Do not mark as GTY(()).
6854         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
6855         (spu_builtin_decls): New static variable.
6856         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
6857         (spu_init_builtins): Likewise.
6858         (spu_builtin_mul_widen_even): Likewise.
6859         (spu_builtin_mul_widen_odd): Likewise.
6860         (spu_builtin_mask_for_load): Likewise.
6861         (spu_builtin_vec_perm): Likewise.
6862         * config/spu/spu-c.c: Include "target.h".
6863         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
6864         of using spu_builtins[].fndecl.
6865
6866 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6867
6868         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
6869         imply -minterlink-mips16.
6870
6871 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6872
6873         * config/mips/mips.h (mips16_globals): Declare.
6874         (SWITCHABLE_TARGET): Define.
6875         * config/mips/mips.c: Include target-globals.h.
6876         (mips16_globals): New variable.
6877         (mips_set_mips16_mode): Use save_target_globals and
6878         restore_target_globals instead of target_reinit.
6879
6880 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6881
6882         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
6883         to say that the function can be called more than once.
6884         * target-globals.c (save_target_globals): Call init_reg_sets.
6885
6886 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6887
6888         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
6889         * bb-reorder.h: New file.
6890         * bb-reorder.c (default_target_bb_reorder): New variable.
6891         (this_target_bb_reorder): New conditional variable.
6892         (uncond_jump_length): Redefine as a macro.
6893         * target-globals.h (this_target_bb_reorder): Declare.
6894         (target_globals): Add a bb_reorder field.
6895         (restore_target_globals): Copy the bb_reorder field to
6896         this_target_bb-reorder.
6897         * target-globals.c: Include bb-reorder.h.
6898         (default_target_globals): Initialize the bb_reorder field.
6899         (save_target_globals): Likewise.
6900
6901 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6902
6903         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
6904         * gcse.h: New file.
6905         * gcse.c: Include gcse.h.
6906         (default_target_gcse): New variable.
6907         (this_target_gcse): New conditional variable.
6908         (can_copy): Redefine as a macro.
6909         (can_copy_init_p): New macro.
6910         (can_copy_p): Remove can_copy_init_p.
6911         * target-globals.h (this_target_gcse): Declare.
6912         (target_globals): Add a gcse field.
6913         (restore_target_globals): Copy the gcse field to this_target_gcse.
6914         * target-globals.c: Include gcse.h.
6915         (default_target_globals): Initialize the gcse field.
6916         (save_target_globals): Likewise.
6917
6918 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6919
6920         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
6921         and x_ira_prohibited_mode_move_regs_initialized_p.
6922         (ira_prohibited_mode_move_regs): Redefine as a macro.
6923         * ira.c (ira_prohibited_mode_move_regs): Delete.
6924         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
6925
6926 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6927
6928         * reload.h (target_reload): Add x_cached_reg_save_code and
6929         x_cached_reg_restore_code.
6930         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
6931         Redefine as macros.
6932
6933 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6934
6935         * Makefile.in (target-globals.o): Depend on builtins.h.
6936         * builtins.h: New file.
6937         * builtins.c: Include builtins.h.
6938         (default_target_builtins): New variable.
6939         (this_target_builtins): New conditional variable.
6940         (apply_args_mode, apply_result_mode): Redefine as macros.
6941         * target-globals.h (this_target_builtins): Declare.
6942         (target_globals): Add a builtins field.
6943         (restore_target_globals): Copy the builtins field to
6944         this_target_builtins.
6945         * target-globals.c: Include builtins.h.
6946         (default_target_globals): Initialize the builtins field.
6947         (save_target_globals): Likewise.
6948
6949 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6950
6951         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
6952         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
6953         from expmed.c.
6954         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
6955         (alg_hash, alg_hash_used_p): New macros.
6956         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
6957         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
6958         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
6959
6960 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6961
6962         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
6963         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
6964         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
6965         (this_op_costs, costs_classes): Redefine as macros.
6966         (record_reg_classes): Don't take op_costs as a parameter.
6967         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
6968         (scan_one_insn): Update call to record_operand_costs.
6969
6970 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6971
6972         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
6973         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
6974         (target_ira_int): New structure.
6975         (default_target_ira_int): Declare.
6976         (this_target_ira_int): Declare as a variable or define as a macro.
6977         (ira_reg_mode_hard_regset, ira_register_move_cost)
6978         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
6979         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
6980         (prohibited_class_mode_regs, ira_important_classes_num)
6981         (ira_important_classes, ira_reg_class_intersect)
6982         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
6983         (ira_reg_class_union): Redefine as macros.
6984         * ira.h (target_ira): New structure.
6985         (default_target_ira): Declare.
6986         (this_target_ira): Declare as a variable or define as a macro.
6987         (ira_available_class_regs, ira_hard_regno_cover_class)
6988         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
6989         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
6990         (ira_class_hard_regs_num): Redefine as macros.
6991         * ira.c (default_target_ira, default_target_ira_int): New variables.
6992         (this_target_ira, this_target_ira_int): New conditional variables.
6993         (ira_reg_mode_hard_regset, ira_memory_move_cost)
6994         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
6995         (ira_class_subset_p): Delete.
6996         (no_unit_alloc_regs): Redefine as a macro.
6997         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
6998         (ira_class_hard_regs_num, ira_class_hard_reg_index)
6999         (ira_available_class_regs): Delete.
7000         (alloc_reg_class_subclasses): Redefine as a macro.
7001         (ira_reg_class_cover_size, ira_reg_class_cover)
7002         (ira_important_classes_num, ira_important_classes)
7003         (ira_important_class_nums, ira_class_translate): Delete.
7004         (cover_class_order): Document the variable's lifetime.
7005         (reorder_important_classes): Don't set ira_important_class_nums.
7006         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
7007         (ira_reg_class_super_classes, ira_reg_class_union)
7008         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
7009         Delete.
7010         (setup_reg_class_nregs): Don't set ira_max_regs.
7011         (prohibited_class_mode_regs): Delete.
7012         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
7013         (target_globals): Add ira and ira_int fields.
7014         (restore_target_globals): Copy the ira field to this_target_ira
7015         and the ira_int field to this_target_ira_int.
7016         * target-globals.c: Include ira-int.h.
7017         (default_target_globals): Initialize the ira and ira_int fields.
7018         (save_target_globals): Likewise.
7019
7020 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7021
7022         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
7023         * cfgloop.h (target_cfgloop): New structure.
7024         (default_target_cfgloop): Declare.
7025         (this_target_cfgloop): Declare as a variable or define as a macro.
7026         (target_avail_regs, target_clobbered_regs, target_res_regs)
7027         (target_reg_cost, target_spill_cost): Redefine as macros.
7028         * cfgloopanal.c (default_target_cfgloop): New variable.
7029         (this_target_cfgloop): New conditional variable.
7030         (target_avail_regs, target_clobbered_regs, target_res_regs)
7031         (target_reg_cost, target_spill_cost): Delete.
7032         * target-globals.h (this_target_cfgloop): Declare.
7033         (target_globals): Add a cfgloop field.
7034         (restore_target_globals): Copy the cfgloop field to
7035         this_target_cfgloop.
7036         * target-globals.c: Include cfgloop.h.
7037         (default_target_globals): Initialize the cfgloop field.
7038         (save_target_globals): Likewise.
7039
7040 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7041
7042         * regs.h (target_regs): Add x_direct_load, x_direct_store and
7043         x_float_extend_from_mem.
7044         (direct_load, direct_store, float_extend_from_mem): New macros.
7045         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
7046
7047 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7048
7049         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
7050         (target-globals.o): Depend on $(LIBFUNCS_H).
7051         * libfuncs.h: Include hashtab.h.
7052         (libfunc_entry): Moved from optabs.c.
7053         (target_libfuncs): New structure.
7054         (default_target_libfuncs): Declare.
7055         (this_target_libfuncs): Declare as a variable or define as a macro.
7056         (libfunc_table): Redefine as a macro.
7057         * optabs.c (default_target_libfuncs): New variable.
7058         (this_target_libfuncs): New conditional variable.
7059         (libfunc_table): Delete.
7060         (libfunc_entry): Moved to optabs.h.
7061         (libfunc_hash): Redefine as a macro.
7062         (hash_libfunc, eq_libfunc): Fix comments.
7063         (init_optabs): Use libfunc_hash to detect cases where the function
7064         has already been called.  Clear the hash table instead of
7065         recreating it.
7066         * target-globals.h (this_target_libfuncs): Declare.
7067         (target_globals): Add a libfuncs field.
7068         (restore_target_globals): Copy the libfuncs field to
7069         this_target_libfuncs.
7070         * target-globals.c: Include libfuncs.h.
7071         (default_target_globals): Initialize the libfuncs field.
7072         (save_target_globals): Likewise.
7073
7074 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7075
7076         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
7077         in all dependency lists.
7078
7079 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7080
7081         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
7082         * optabs.h (target_optabs): New structure.
7083         (default_target_optabs): Declare.
7084         (this_target_optabs): Declare as a variable or define as a macro.
7085         (optab_table, convert_optab_table, direct_optab_table): Redefine
7086         as macros.
7087         * optabs.c (default_target_optabs): New variable.
7088         (this_target_optabs): New conditional variable.
7089         (optab_table, convert_optab_table, direct_optab_table): Delete.
7090         * target-globals.h (this_target_optabs): Declare.
7091         (target_globals): Add a optabs field.
7092         (restore_target_globals): Copy the optabs field to
7093         this_target_optabs.
7094         * target-globals.c: Include expr.h and optabs.h.
7095         (default_target_globals): Initialize the optabs field.
7096         (save_target_globals): Likewise.
7097
7098 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7099
7100         * flags.h (target_flagstate): Add x_flag_excess_precision.
7101         (flag_excess_precision): Redefine as a macro.
7102         * toplev.c (flag_excess_precision): Delete.
7103
7104 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7105
7106         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
7107         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
7108         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
7109         (no_caller_save_reg_set): Redefine as a macro.
7110         * reload.h (target_reload): Add x_caller_save_initialized_p and
7111         x_regno_save_mode.
7112         (caller_save_initialized_p): Redefine as a macro.
7113         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
7114         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
7115         (regno_save_mode): Redefine as a macro.
7116
7117 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7118
7119         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
7120         * expmed.h: New file.
7121         * expmed.c (default_target_costs): New variable.
7122         (this_target_costs): New conditional variable.
7123         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
7124         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
7125         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
7126         * target-globals.h (this_target_expmed): Declare.
7127         (target_globals): Add a expmed field.
7128         (restore_target_globals): Copy the expmed field to
7129         this_target_expmed.
7130         * target-globals.c: Include expmed.h.
7131         (default_target_globals): Initialize the expmed field.
7132         (save_target_globals): Likewise.
7133
7134 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7135
7136         * Makefile.in (target-globals.o): Depend on reload.h.
7137         * reload.h (target_reload): New structure.
7138         (default_target_reload): Declare.
7139         (this_target_reload): Declare as a variable or define as a macro.
7140         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
7141         * reload1.c (default_target_reload): New variable
7142         (this_target_reload): New conditional variable.
7143         (indirect_symref_ok, double_reg_address_ok): Delete.
7144         (spill_indirect_levels): Redefine as a macro.
7145         * target-globals.h (this_target_reload): Declare.
7146         (target_globals): Add a reload field.
7147         (restore_target_globals): Copy the reload field to
7148         this_target_reload.
7149         * target-globals.c: Include hard-reg-set.h.
7150         (default_target_globals): Initialize the reload field.
7151         (save_target_globals): Likewise.
7152
7153 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7154
7155         * rtl.h (target_rtl): Add x_static_reg_base_value.
7156         * alias.c (static_reg_base_value): Redefine as a macro.
7157
7158 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7159
7160         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
7161         (GTFILES): Remove reginfo.c.
7162         * rtl.h (target_rtl): Add x_top_of_stack.
7163         (top_of_stack): New macro.
7164         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
7165         (top_of_stack): Delete.
7166
7167 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7168
7169         * regs.h (target_regs): Add x_hard_regs_of_mode,
7170         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
7171         x_may_move_out_cost and x_last_mode_for_init_move_cost.
7172         (have_regs_of_mode, contains_reg_of_mode, move_cost)
7173         (may_move_in_cost, may_move_out_cost): Redefine as macros.
7174         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
7175         (may_move_in_cost, may_move_out_cost): Delete.
7176         (last_mode_for_init_move_cost): Redefine as a macro.
7177
7178 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7179
7180         * hard-reg-set.h (target_hard_regs): New structure.
7181         (default_target_hard_regs): Declare.
7182         (this_target_hard_regs): Declare as a variable or define as a macro.
7183         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
7184         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
7185         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
7186         (reg_class_size, reg_class_subclasses, reg_class_subunion)
7187         (reg_class_superunion, reg_names): Redefine as macros.
7188         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
7189         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
7190         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
7191         (reg_class_contents, reg_class_size, reg_class_subclasses)
7192         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
7193         (default_target_hard_regs): New variable
7194         (this_target_hard_regs, initial_call_really_used_regs)
7195         (initial_reg_alloc_order): New conditional variables.
7196         (initial_reg_names): New variable.
7197         (init_reg_sets): Assert that initial_call_really_used_regs,
7198         initial_reg_alloc_order and initial_reg_names
7199         are all the same size as their variable counterparts.  Use them to
7200         initialize those counterparts.
7201         * target-globals.h (this_target_hard_regs): Declare.
7202         (target_globals): Add a hard_regs field.
7203         (restore_target_globals): Copy the hard_regs field to
7204         this_target_hard_regs.
7205         * target-globals.c: Include hard-reg-set.h.
7206         (default_target_globals): Initialize the hard_regs field.
7207         (save_target_globals): Likewise.
7208
7209 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7210
7211         * Makefile.in (target-globals.o): Depend on $(RTL_H).
7212         * rtl.h (target_rtl): New structure.
7213         (default_target_rtl): Declare.
7214         (this_target_rtl): Declare as a variable or define as a macro.
7215         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
7216         Redefine as macros.
7217         * emit-rtl.c (default_target_rtl): New variable.
7218         (this_target_rtl): New conditional variable.
7219         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
7220         (return_address_pointer_rtx): Delete.
7221         (initial_regno_reg_rtx): New macro.
7222         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
7223         (init_emit_regs): Likewise.
7224         * target-globals.h (this_target_rtl): Declare.
7225         (target_globals): Add a rtl field.
7226         (restore_target_globals): Copy the rtl field to this_target_rtl.
7227         * target-globals.c: Include rtl.h.
7228         (default_target_globals): Initialize the rtl field.
7229         (save_target_globals): Likewise.
7230
7231 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7232
7233         * Makefile.in (target-globals.o): Depend on $(REGS_H).
7234         * regs.h (target_reg_modes): New structure.
7235         (default_target_reg_modes): Declare.
7236         (this_target_reg_modes): Declare as a variable or define as a macro.
7237         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
7238         * reginfo.c (default_target_reg_modes): New variable.
7239         (this_target_reg_modes): New conditional variable.
7240         (hard_regno_nregs, reg_raw_mode): Delete.
7241         * target-globals.h (this_target_regs): Declare.
7242         (target_globals): Add a regs field.
7243         (restore_target_globals): Copy the regs field to this_target_regs.
7244         * target-globals.c: Include regs.h.
7245         (default_target_globals): Initialize the regs field.
7246         (save_target_globals): Likewise.
7247
7248 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7249
7250         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
7251         * doc/tm.texi: Regenerate.
7252         * Makefile.in (OBJS-common): Add target-globals.o.
7253         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
7254         and target-globals.h.
7255         (target-globals.o): New rule.
7256         (GTFILES): Include $(srcdir)/target-globals.h.
7257         * defaults.h (SWITCHABLE_TARGET): Define.
7258         * gengtype.c (open_base_files): Add target-globals.h to the
7259         list of includes.
7260         * target-globals.h: New file.
7261         * target-globals.c: Likewise.
7262
7263         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
7264         * flags.h (target_flag_state): New structure.
7265         (default_target_flag_state): Declare.
7266         (this_target_flag_state): Declare as a variable or define as a macro.
7267         (align_loops_log): Redefine as a macro.
7268         (align_loops_max_skip, align_jumps_log): Likewise.
7269         (align_jumps_max_skip, align_labels_log): Likewise.
7270         (align_labels_max_skip, align_functions_log): Likewise.
7271         * toplev.c (default_target_flag_state): New variable.
7272         (this_target_flag_state): New conditional variable.
7273         (align_loops_log): Delete.
7274         (align_loops_max_skip, align_jumps_log): Likewise.
7275         (align_jumps_max_skip, align_labels_log): Likewise.
7276         (align_labels_max_skip, align_functions_log): Likewise.
7277         * target-globals.h (this_target_flag_state): Declare.
7278         (target_globals): Add a flag_state field.
7279         (restore_target_globals): Copy the flag_state field to
7280         this_target_flag_state.
7281         * target-globals.c: Include flags.h.
7282         (default_target_globals): Initialize the flag_state field.
7283         (save_target_globals): Likewise.
7284
7285 2010-07-12  Jie Zhang  <jie@codesourcery.com>
7286
7287         * postreload.c (reg_symbol_ref[]): New.
7288         (move2add_use_add2_insn): New.
7289         (move2add_use_add3_insn): New.
7290         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
7291         (move2add_note_store): Likewise.
7292
7293 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
7294
7295         PR rtl-optimization/44752
7296         * genautomata.c (main): Don't emit an empty file even if there
7297         is no automaton.
7298
7299 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7300
7301         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
7302         ix86_solaris_return_in_memory.
7303         * config/i386-protos.h: Reflect this.
7304         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
7305         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
7306         Move ...
7307         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
7308
7309 2010-07-12  Jie Zhang  <jie@codesourcery.com>
7310
7311         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
7312         align the stack when it's going to be saved.
7313
7314 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7315
7316         PR pch/14940
7317         * config/host-solaris.c (mmap_fixed): New function.
7318         (sol_gt_pch_get_address): Use it.
7319         (sol_gt_pch_use_address): Likewise.
7320
7321 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7322
7323         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
7324         pentiumpro on Solaris 8 and 9/x86.
7325         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
7326         Document SSE/SSE2 support.
7327         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
7328
7329 2010-07-12  Andi Kleen  <ak@linux.intel.com>
7330
7331         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
7332         instead of gcc_assert to print better error message for multiple
7333         prevailing defs.
7334
7335 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
7336
7337         * config/i386/i386.c (ix86_asm_output_function_label): Change format
7338         string placeholder from 0x%x to %#x.
7339         (ix86_code_end): Use putc to output '\n'.
7340         (ix86_print_operand) <case ';'>: Use putc to output ';'.
7341
7342 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
7343
7344         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
7345         in directive -export.
7346
7347 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
7348
7349         * reginfo.h (reg_classes_intersect_p): Change arguments type to
7350         reg_class_t.
7351         * rtl.h (reg_classes_intersect_p): Adjust prototype.
7352
7353         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7354         Remove macros.
7355         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
7356         rs6000_memory_move_cost): Remove
7357         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
7358         TARGET_MEMORY_MOVE_COST): Define.
7359         (rs6000_register_move_cost): Make static. Change arguments type from
7360         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
7361         (rs6000_memory_move_cost): Make static. Change arguments type from
7362         'enum reg_class' to reg_class_t.
7363
7364 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
7365
7366         PR middle-end/42505
7367         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
7368         lookup code into....
7369         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
7370         new functions.
7371         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
7372         * cfgloopanal.c (target_clobbered_regs): Define.
7373         (init_set_costs): Initialize target_clobbered_regs.
7374         (estimate_reg_pressure_cost): Add call_p argument.  When true,
7375         adjust the number of available registers to exclude the
7376         call-clobbered registers.
7377         * cfgloop.h (target_clobbered_regs): Declare.
7378         (estimate_reg_pressure_cost): Adjust declaration.
7379         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
7380         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
7381         (determine_set_costs): Dump target_clobbered_regs.
7382         (loop_body_includes_call): New function.
7383         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
7384         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
7385         call_p flag through.
7386         (best_gain_for_invariant): Likewise.
7387         (find_invariants_to_move): Likewise.
7388         (move_single_loop_invariants): Likewise, using already-computed
7389         has_call field.
7390
7391 2010-07-10  Richard Guenther  <rguenther@suse.de>
7392             Joern Rennecke  <joern.rennecke@embecosm.com>
7393
7394         PR debug/44832
7395         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
7396         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
7397         unless they have DECL_IGNORED_P set.
7398
7399 2010-07-10  Richard Guenther  <rguenther@suse.de>
7400
7401         PR lto/44889
7402         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
7403         helper function.
7404         (gimple_types_compatible_p): Similar to pointed-to
7405         types allow and merge a mix of complete and incomplete aggregate.
7406         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
7407         (iterative_hash_gimple_type): Adjust for that.
7408
7409 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
7410
7411         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
7412
7413 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
7414
7415         PR objc/44140
7416         * config/darwin.c (output_objc_section_asm_op): Save and restore
7417         section when outputting ObjC section list.
7418
7419 2010-07-09  Jan Hubicka  <jh@suse.cz>
7420
7421         * lto-streamer-out.c (produce_symtab): Do not write alias
7422         cgraph/varpool nodes.
7423
7424 2010-07-09  Jan Hubicka  <jh@suse.cz>
7425
7426         * tree-inline.c (declare_return_variable): Fix ICE while
7427         inlining DECL_BY_VALUE function not in SSA form
7428
7429 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
7430
7431         PR tree-optimization/44576
7432         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
7433         New.  Pull out from is_loop_prefetching_profitable to implement
7434         the trip count to ahead ratio heuristic.
7435         (mem_ref_count_reasonable_p): New.  Pull out from
7436         is_loop_prefetching_profitable to implement the instruction to
7437         memory reference ratio heuristic.  Also consider not reasonable if
7438         the memory reference count is above a threshold (to avoid
7439         explosive compilation time.
7440         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
7441         is_loop_prefetching_profitable to implement the instruction to
7442         prefetch ratio heuristic.
7443         (is_loop_prefetching_profitable): Removed.
7444         (loop_prefetch_arrays): Distribute the cost analysis across the
7445         function to allow early exit of the prefetch analysis.
7446         is_loop_prefetching_profitable is splitted into three functions,
7447         with each one called as early as possible.
7448         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
7449         number of memory references in a loop is considered too many.
7450
7451 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
7452
7453         * reload.c (find_reloads): Don't clear badop if we have a winreg
7454         alternative, but not win, and the class only has fixed regs.
7455         * hard-reg-set.h (class_only_fixed_regs): Declare.
7456         * reginfo.c (class_only_fixed_regs): New array.
7457         (init_reg_sets_1): Initialize it.
7458         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
7459         discourage alternatives using the stack pointer.
7460
7461         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
7462
7463         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
7464
7465         * config/arm/arm.md (cbranchqi4): Fix array size.
7466         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
7467         calculating length.
7468
7469 2010-07-09  Richard Guenther  <rguenther@suse.de>
7470
7471         * gimple.c (struct type_fixup_s): New struct and VEC type.
7472         (gimple_register_type_fixups): New static global.
7473         (gimple_queue_type_fixup): New function.
7474         (gimple_types_compatible_p): Queue type fixups instead of
7475         applying them here.
7476         (gimple_register_type): Apply queued fixups for the
7477         canonical type.  Empty the type fixup queue.
7478
7479 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
7480
7481         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
7482         * configure: Regenerate.
7483         * config.in: Ditto.
7484
7485 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
7486             Denys Vlasenko  <dvlasenk@redhat.com>
7487             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7488
7489         PR tree-optimization/28632
7490         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
7491         (extract_range_from_binary_expr): Further optimize
7492         BIT_AND_EXPR and BIT_IOR_EXPR.
7493
7494 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
7495
7496         * tree-if-conv.c (fold_or_predicates): New.
7497         (add_to_predicate_list): Call it.
7498
7499 2010-07-09  Richard Guenther  <rguenther@suse.de>
7500
7501         PR middle-end/44890
7502         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
7503         if base is a pointer.
7504         * tree-cfg.c (verify_expr): Update MEM_REF checking.
7505
7506 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7507
7508         PR target/44877
7509         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
7510         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
7511         builtin mask for load/store builtins.
7512
7513 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
7514
7515         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
7516         for "lock addl".
7517         * configure: Regenerate.
7518         * config/i386/i386.c (ix86_print_operand) <case ';'>:
7519         Remove TARGET_MACHO.
7520
7521 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
7522
7523         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
7524         default ISA flags.
7525         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
7526
7527 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
7528
7529         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
7530
7531 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
7532
7533         * config/picochip/picochip.md (commsTestPort): Emit more
7534         efficient sequence for tstport instruction.
7535
7536 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
7537
7538         * config/i386/i386.c (ix86_veclib_handler): Make static.
7539
7540 2010-07-09  Richard Guenther  <rguenther@suse.de>
7541
7542         PR tree-optimization/44852
7543         * tree-ssa-alias.c: Include toplev.h for exact_log2.
7544         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
7545         in MEM_REF.
7546         (indirect_refs_may_alias_p): Likewise.
7547         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
7548
7549 2010-07-09  Richard Guenther  <rguenther@suse.de>
7550
7551         PR tree-optimization/44882
7552         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
7553         sets do conflict.
7554         (vectorizable_load): Likewise.
7555
7556 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
7557
7558         PR target/40657
7559         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
7560         All callers changed.
7561         Handle the case when we're called for the epilogue.
7562         (thumb_unexpanded_epilogue): Use it.
7563         (thumb1_expand_epilogue): Likewise.
7564
7565 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
7566
7567         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
7568         both ranges are range_int_cst_p with non-negative minimum,
7569         try harder to derive smaller range.
7570
7571 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7572
7573         * genrecog.c: Include diagnostic-core.h before toplev.h.
7574         * genoutput.c: Likewise.
7575         * genextract.c: Likewise.
7576         * genautomata.c: Likewise.
7577         * genemit.c: Likewise.
7578         * genpeep.c: Likewise.
7579         * genattrtab.c: Likewise.
7580         * genconditions.c: Likewise.
7581         * genpreds.c: Likewise.
7582
7583 2010-07-08  Andi Kleen  <ak@linux.intel.com>
7584
7585         * lto-section-in.c (lto_section_name): Add missing comma.
7586
7587 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
7588
7589         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
7590         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
7591         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
7592         (ia64_override_options): Rename to...
7593         (ia64_option_override): ... this one. Make static.
7594
7595 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7596
7597         PR middle-end/44843
7598         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
7599         pointed-to type of the offset in a MEM_REF to compute the alignment.
7600
7601 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
7602
7603         * final.c (final_scan_insn): Replace
7604         TARGET_UNWIND_INFO macro check by unwind_emit
7605         hook NULL check.
7606         * targhooks.c (default_unwind_emit): Removed.
7607         * targhooks.h (default_unwind_emit): Likewise.
7608         * target.def (unwind_emit): Set default value to NULL.
7609
7610         * config/i386/i386-protos.h (ix86_asm_output_function_label):
7611         New prototype.
7612         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
7613         for NULL fntype argument and allow 64-bit targets.
7614         (ix86_asm_output_function_label): New function.
7615         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
7616         (ix86_handle_fndecl_attribute): Likewise.
7617         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
7618         * doc/doc/tm.texi: Regenerated.
7619         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
7620         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
7621         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
7622         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
7623         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
7624         * config/elfos.h: Likewise.
7625         * config/i386/cygming.h: Likewise.
7626         * config/netbsd-aout.h: Likewise.
7627         * config/openbsd.h: Likewise.
7628         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
7629         by ix86_asm_output_function_label function call.
7630         * varasm.c (assemble_start_function): Use
7631         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
7632
7633 2010-07-08  Jan Hubicka  <jh@suse.cz>
7634
7635         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
7636         New function.
7637         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
7638         Declare.
7639         * ipa-cp.c (ipcp_estimate_growth): Use it.
7640         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
7641         Likewise.
7642
7643 2010-07-08  Jan Hubicka  <jh@suse.cz>
7644
7645         * tree-inline.c (declare_return_variable): Allocate annotation for new
7646         temporary.
7647
7648 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
7649
7650         PR tree-optimization/44710
7651         * tree-if-conv.c (parse_predicate): New.
7652         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
7653         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
7654
7655 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
7656
7657         * common.opt (ftree-loop-if-convert): New flag.
7658         * doc/invoke.texi (ftree-loop-if-convert): Documented.
7659         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
7660         when flag_tree_loop_if_convert is set.
7661
7662 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
7663
7664         * config/i386/i386.c: Use short syntax for function calls
7665         through function pointers.
7666         * config/i386/i386.md: Ditto.
7667
7668 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7669
7670         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
7671
7672 2010-07-08  Richard Guenther  <rguenther@suse.de>
7673
7674         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
7675         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
7676
7677 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
7678
7679         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
7680         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
7681         (loc_list_from_tree): Likewise.
7682         (output_loc_operands): Handle outputting DW_OP_const[48]u
7683         with loc->dtprel set.
7684         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
7685
7686 2010-07-08  Jan Hubicka  <jh@suse.cz>
7687
7688         * ipa.c: Include pointer-set.h
7689         (cgraph_externally_visible_p): New attribute ALIASED;
7690         when in LTO, hidden symbols are local unless they are aliased.
7691         (function_and_variable_visibility): Compute aliased nodes;
7692         handle LTO and hidden symbol on functions and vars.
7693         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
7694         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
7695
7696 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7697
7698         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
7699         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7700         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7701         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7702         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7703         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
7704         (ix86_gen_probe_stack_range): Likewise.
7705         (override_options): Set them.
7706         (ix86_target_stack_probe): New function.
7707         (ix86_compute_frame_layout): Force use of push instructions to
7708         save registers if stack checking with probes is enabled.
7709         (get_scratch_register_on_entry): New function.
7710         (release_scratch_register_on_entry): Likewise.
7711         (ix86_adjust_stack_and_probe): Likewise.
7712         (output_adjust_stack_and_probe): Likewise.
7713         (ix86_emit_probe_stack_range): Likewise.
7714         (output_probe_stack_range): Likewise.
7715         (ix86_expand_prologue): Emit stack checking code if static built-in
7716         stack checking is enabled.
7717         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
7718         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
7719         (output_adjust_stack_and_probe): Likewise.
7720         (output_probe_stack_range): Likewise.
7721         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
7722         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
7723         TARGET_STACK_PROBE.
7724         (allocate_stack_worker_64): Likewise.
7725         (allocate_stack): Likewise.
7726         (adjust_stack_and_probe): New insn.
7727         (probe_stack_range): Likewise.
7728
7729 2010-07-08  Richard Guenther  <rguenther@suse.de>
7730
7731         PR tree-optimization/44831
7732         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
7733         a MEM_REF preserving TBAA info of the original dereference.
7734         Dereference the original pointer if the address is not invariant.
7735         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
7736         at least one invariant address that we are going to dereference.
7737
7738 2010-07-08  Richard Guenther  <rguenther@suse.de>
7739
7740         PR tree-optimization/44861
7741         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
7742         information when building MEM_REFs.
7743         (vectorizable_load): Likewise.
7744         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
7745
7746 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7747
7748         * config/sol2-c.c: Do not include diagnostic-core.h.
7749
7750 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7751
7752         PR bootstrap/44768
7753         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
7754         with respect to current_function_decl. Pass decl of the function.
7755         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
7756         * ipa-inline.c (compute_inline_parameters): Pass decl to
7757         estimated_stack_frame_size.
7758
7759 2010-07-08  Richard Guenther  <rguenther@suse.de>
7760
7761         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7762         New function.
7763         (valueize_refs): Call it.
7764
7765 2010-07-08  Richard Guenther  <rguenther@suse.de>
7766
7767         PR rtl-optimization/44838
7768         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
7769         SSA form do not use pointer equivalence.
7770
7771 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7772
7773         * dwarf2out.c (AT_linkage_name): Delete.
7774         (add_linkage_attr): New function.
7775         (add_linkage_name): Call it to emit the linkage attribute.
7776         (dwarf2out_finish): Likewise.
7777         (move_linkage_attr): Explicitly accept both attribute variants.
7778
7779 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7780
7781         * toplev.h: Do not include diagnostic-core.h.
7782         Include diagnostic-core.h in every file that includes toplev.h.
7783         * c-tree.h: Do not include toplev.h.
7784         * pretty-print.h: Update comment.
7785         * Makefile.in: Update dependencies.
7786         * alias.c: Include diagnostic-core.h in every file that includes
7787         toplev.h.
7788         * attribs.c: Likewise.
7789         * auto-inc-dec.c: Likewise.
7790         * bb-reorder.c: Likewise.
7791         * bt-load.c: Likewise.
7792         * caller-save.c: Likewise.
7793         * calls.c: Likewise.
7794         * cfg.c: Likewise.
7795         * cfganal.c: Likewise.
7796         * cfgbuild.c: Likewise.
7797         * cfgcleanup.c: Likewise.
7798         * cfghooks.c: Likewise.
7799         * cfgloop.c: Likewise.
7800         * combine.c: Likewise.
7801         * config/alpha/alpha.c: Likewise.
7802         * config/arc/arc.c: Likewise.
7803         * config/arm/arm.c: Likewise.
7804         * config/arm/pe.c: Likewise.
7805         * config/avr/avr.c: Likewise.
7806         * config/bfin/bfin.c: Likewise.
7807         * config/cris/cris.c: Likewise.
7808         * config/crx/crx.c: Likewise.
7809         * config/darwin-c.c: Likewise.
7810         * config/darwin.c: Likewise.
7811         * config/fr30/fr30.c: Likewise.
7812         * config/frv/frv.c: Likewise.
7813         * config/h8300/h8300.c: Likewise.
7814         * config/host-darwin.c: Likewise.
7815         * config/i386/i386.c: Likewise.
7816         * config/i386/netware.c: Likewise.
7817         * config/i386/nwld.c: Likewise.
7818         * config/i386/winnt-cxx.c: Likewise.
7819         * config/i386/winnt-stubs.c: Likewise.
7820         * config/i386/winnt.c: Likewise.
7821         * config/ia64/ia64-c.c: Likewise.
7822         * config/ia64/ia64.c: Likewise.
7823         * config/iq2000/iq2000.c: Likewise.
7824         * config/lm32/lm32.c: Likewise.
7825         * config/m32c/m32c-pragma.c: Likewise.
7826         * config/m32c/m32c.c: Likewise.
7827         * config/m32r/m32r.c: Likewise.
7828         * config/m68hc11/m68hc11.c: Likewise.
7829         * config/m68k/m68k.c: Likewise.
7830         * config/mcore/mcore.c: Likewise.
7831         * config/mep/mep-pragma.c: Likewise.
7832         * config/mep/mep.c: Likewise.
7833         * config/mmix/mmix.c: Likewise.
7834         * config/mn10300/mn10300.c: Likewise.
7835         * config/moxie/moxie.c: Likewise.
7836         * config/pa/pa.c: Likewise.
7837         * config/pdp11/pdp11.c: Likewise.
7838         * config/picochip/picochip.c: Likewise.
7839         * config/rs6000/rs6000-c.c: Likewise.
7840         * config/rs6000/rs6000.c: Likewise.
7841         * config/rx/rx.c: Likewise.
7842         * config/s390/s390.c: Likewise.
7843         * config/score/score.c: Likewise.
7844         * config/score/score3.c: Likewise.
7845         * config/score/score7.c: Likewise.
7846         * config/sh/sh.c: Likewise.
7847         * config/sh/symbian-base.c: Likewise.
7848         * config/sh/symbian-c.c: Likewise.
7849         * config/sh/symbian-cxx.c: Likewise.
7850         * config/sol2-c.c: Likewise.
7851         * config/sol2.c: Likewise.
7852         * config/sparc/sparc.c: Likewise.
7853         * config/spu/spu.c: Likewise.
7854         * config/stormy16/stormy16.c: Likewise.
7855         * config/v850/v850-c.c: Likewise.
7856         * config/v850/v850.c: Likewise.
7857         * config/vax/vax.c: Likewise.
7858         * config/vxworks.c: Likewise.
7859         * config/xtensa/xtensa.c: Likewise.
7860         * convert.c: Likewise.
7861         * cse.c: Likewise.
7862         * cselib.c: Likewise.
7863         * dbgcnt.c: Likewise.
7864         * dbxout.c: Likewise.
7865         * ddg.c: Likewise.
7866         * dominance.c: Likewise.
7867         * emit-rtl.c: Likewise.
7868         * explow.c: Likewise.
7869         * expmed.c: Likewise.
7870         * fixed-value.c: Likewise.
7871         * fold-const.c: Likewise.
7872         * fwprop.c: Likewise.
7873         * gcse.c: Likewise.
7874         * ggc-common.c: Likewise.
7875         * ggc-page.c: Likewise.
7876         * ggc-zone.c: Likewise.
7877         * gimple-low.c: Likewise.
7878         * gimplify.c: Likewise.
7879         * graph.c: Likewise.
7880         * haifa-sched.c: Likewise.
7881         * ifcvt.c: Likewise.
7882         * implicit-zee.c: Likewise.
7883         * integrate.c: Likewise.
7884         * ira-build.c: Likewise.
7885         * ira-color.c: Likewise.
7886         * ira-conflicts.c: Likewise.
7887         * ira-costs.c: Likewise.
7888         * ira-lives.c: Likewise.
7889         * ira.c: Likewise.
7890         * lists.c: Likewise.
7891         * loop-doloop.c: Likewise.
7892         * loop-iv.c: Likewise.
7893         * lto-opts.c: Likewise.
7894         * lto-symtab.c: Likewise.
7895         * main.c: Likewise.
7896         * modulo-sched.c: Likewise.
7897         * optabs.c: Likewise.
7898         * params.c: Likewise.
7899         * plugin.c: Likewise.
7900         * postreload-gcse.c: Likewise.
7901         * postreload.c: Likewise.
7902         * predict.c: Likewise.
7903         * profile.c: Likewise.
7904         * real.c: Likewise.
7905         * regcprop.c: Likewise.
7906         * reginfo.c: Likewise.
7907         * regmove.c: Likewise.
7908         * reorg.c: Likewise.
7909         * resource.c: Likewise.
7910         * rtl.c: Likewise.
7911         * rtlanal.c: Likewise.
7912         * sched-deps.c: Likewise.
7913         * sched-ebb.c: Likewise.
7914         * sched-rgn.c: Likewise.
7915         * sdbout.c: Likewise.
7916         * sel-sched-dump.c: Likewise.
7917         * sel-sched-ir.c: Likewise.
7918         * simplify-rtx.c: Likewise.
7919         * stmt.c: Likewise.
7920         * stor-layout.c: Likewise.
7921         * store-motion.c: Likewise.
7922         * targhooks.c: Likewise.
7923         * tree-cfg.c: Likewise.
7924         * tree-cfgcleanup.c: Likewise.
7925         * tree-dump.c: Likewise.
7926         * tree-eh.c: Likewise.
7927         * tree-inline.c: Likewise.
7928         * tree-nomudflap.c: Likewise.
7929         * tree-object-size.c: Likewise.
7930         * tree-optimize.c: Likewise.
7931         * tree-outof-ssa.c: Likewise.
7932         * tree-phinodes.c: Likewise.
7933         * tree-profile.c: Likewise.
7934         * tree-ssa-ccp.c: Likewise.
7935         * tree-ssa-coalesce.c: Likewise.
7936         * tree-ssa-live.c: Likewise.
7937         * tree-ssa-loop-niter.c: Likewise.
7938         * tree-ssa-loop-prefetch.c: Likewise.
7939         * tree-ssa-loop.c: Likewise.
7940         * tree-ssa-structalias.c: Likewise.
7941         * tree-ssa-uninit.c: Likewise.
7942         * tree-ssa.c: Likewise.
7943         * tree-vect-data-refs.c: Likewise.
7944         * tree-vect-loop-manip.c: Likewise.
7945         * tree-vect-loop.c: Likewise.
7946         * tree-vect-patterns.c: Likewise.
7947         * tree-vect-stmts.c: Likewise.
7948         * tree-vrp.c: Likewise.
7949         * varasm.c: Likewise.
7950         * vec.c: Likewise.
7951         * web.c: Likewise.
7952         * xcoffout.c: Likewise.
7953
7954 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
7955
7956         * gengtype.c (write_field_root): New function.
7957         (write_root): Use it.
7958
7959 2010-07-07  Wei Guozhi  <carrot@google.com>
7960
7961         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
7962         of lowest bits to lshift/compare): Add a missing line.
7963
7964 2010-07-07  Wei Guozhi  <carrot@google.com>
7965
7966         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
7967         of lowest bits to lshift/compare): New.
7968
7969 2010-07-07  Tom Tromey  <tromey@redhat.com>
7970
7971         * doc/tm.texi: Update.
7972         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
7973         Add @hook.
7974         * target.def (want_debug_pub_sections): New hook.
7975         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
7976         * dwarf2out.c (add_pubname_string): Check
7977         targetm.want_debug_pub_sections.
7978         (add_pubname): Likewise.
7979         (add_pubtype): Likewise.
7980
7981 2010-07-07  Jie Zhang  <jie@codesourcery.com>
7982
7983         * genautomata.c (output_automata_list_min_issue_delay_code):
7984         Correctly decompress min_issue_delay.
7985
7986 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7987
7988         PR rtl-optimization/44404
7989         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
7990         possible, use reg_overlap_mentioned_p instead.
7991
7992 2010-07-07  Duncan Sands  <baldrick@free.fr>
7993
7994         PR middle-end/41355
7995         * tree.c (build_function_type_skip_args): Copy the original type using
7996         build_distinct_type_copy rather than copy_node.
7997
7998 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7999
8000         PR target/44850
8001         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
8002         revision 161876.
8003         (ix86_expand_prologue): Likewise.
8004         (ix86_handle_fndecl_attribute): Likewise.
8005         (ix86_asm_declare_function_name): Likewise.
8006         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8007         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8008         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
8009         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
8010         * doc/extend.texi: Likewise.
8011
8012 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
8013
8014         PR target/44844
8015         * config/i386/i386.md (rdrand<mode>): Changed to expand to
8016         retry if the carry flag isn't valid.
8017         (rdrand<mode>_1): New.
8018
8019 2010-07-07  Richard Guenther  <rguenther@suse.de>
8020
8021         PR middle-end/44790
8022         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
8023         for expanding the constant offset for MEM_REFs.
8024
8025 2010-07-07  Richard Guenther  <rguenther@suse.de>
8026
8027         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
8028         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
8029         * gimple.h (is_gimple_operand): Remove.
8030         * gimple.c (is_gimple_operand): Likewise.
8031         (walk_gimple_op): Fix wi->val_only setting for calls.
8032         * tree-cfg.c (verify_gimple_call): Fix argument validation.
8033         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
8034         invalid gimple calls.
8035
8036 2010-07-06  Jan Hubicka  <jh@suse.cz>
8037
8038         * lto-cgraph.c (output_cgraph): Add missing declaration.
8039
8040 2010-07-06  Jan Hubicka  <jh@suse.cz>
8041
8042         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
8043         partition.
8044
8045 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
8046
8047         * doc/gimple.texi (GIMPLE_DEBUG): Document.
8048         * doc/rtl.texi (Debug Information): New node.
8049         (NOTE_INSN_VAR_LOCATION): Document.
8050         (debug_insn): Likewise.
8051         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
8052
8053 2010-07-07  Jan Hubicka  <jh@suse.cz>
8054
8055         With parts by Richard Guenther.
8056
8057         PR middle-end/44813
8058         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
8059         for functions passed by reference.
8060         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
8061         in memory when passed by reference.
8062         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
8063         beggining.
8064         * ipa-split.c (split_function): Cleanup way return value is passed;
8065         handle SSA DECL_BY_REFERENCE retvals.
8066         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
8067         DECL_BY_REFERENCE is set.
8068         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
8069         find_what_p_points_to): Handle RESULT_DECL.
8070         * tree-inline.c (declare_return_variable): Get new entry_block argument;
8071         when passing by reference ensure that RESULT_DECL is gimple_val.
8072         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
8073         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
8074
8075 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8076
8077         PR rtl-optimization/44787
8078         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
8079         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
8080
8081 2010-07-06  Jan Hubicka  <jh@suse.cz>
8082
8083         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
8084         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
8085         with body can prevail.
8086         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
8087         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
8088         * cgraph.c (cgraph_get_node_or_alias): New function.
8089         * cgraph.h (cgraph_get_node_or_alias): Declare.
8090
8091 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
8092
8093         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
8094         support.
8095         (ix86_expand_prologue): Likewise.
8096         (ix86_handle_fndecl_attribute): Likewise.
8097         (ix86_asm_declare_function_name): New function for
8098         ASM_DECLARE_FUNCTION_NAME.
8099         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
8100         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
8101         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
8102         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
8103         * doc/extend.texi: Adjust documentation about ms_hook_prologue
8104         attribute.
8105
8106 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
8107
8108         * config/i386/i386.md (immediate_operand): New mode attribute.
8109
8110         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
8111         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
8112         using P mode iterator.
8113         (pro_epilogue_adjust_stack_di_2): Rename from
8114         pro_epilogue_adjust_stack_rex64_2.
8115
8116         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
8117
8118 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
8119
8120         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
8121         through gen_mov_insv_1 function pointer.
8122         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
8123         gen_truncxf<mode>2 through gen_truncxf function pointer.
8124         (remainder<mode>3): Ditto.
8125         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
8126         (allocate_stack): Call gen_allocate_stack_worker_64 or
8127         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
8128         function pointer.
8129         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
8130         function pointer.
8131
8132 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
8133
8134         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
8135         operand constraint instead of <r><i>m.
8136
8137 2010-07-06  Richard Guenther  <rguenther@suse.de>
8138
8139         PR middle-end/44828
8140         * convert.c (convert_to_integer): Watch out for overflowing
8141         MULT_EXPR as well.
8142
8143 2010-07-05  Jan Hubicka  <jh@suse.cz>
8144
8145         * lto-streamer.c (write_symbol_vec): Rename to ...
8146         (write_symbol) ... this one; write only symbol given and when
8147         present in cache. Sanity check that what is defined is present
8148         in cgraph/varpool with body/finalized decl.
8149         (write_symbols_of_kind): Remove.
8150         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
8151         pairs to produce symtab.
8152         (produce_asm_for_decls): Update call of produce_symtab; don't do so
8153         when doing WPA streaming.
8154
8155 2010-07-05  Jan Hubicka  <jh@suse.cz>
8156
8157         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
8158         function is still available to fold into.
8159
8160 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
8161
8162         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
8163         * function.h (struct_function): Change type of local_decls field
8164         to a VEC.
8165         (add_local_decl): New function.
8166         (FOR_EACH_LOCAL_DECL): New macro.
8167         * cfgexpand.c (init_vars_expansion): Adjust for new type of
8168         cfun->local_decls.
8169         (estimated_stack_frame_size): Likewise.
8170         (expand_used_vars): Likewise.
8171         * cgraphbuild.c (build_cgraph_edges): Likewise.
8172         * function.c (instantiate_decls_1): Likewise.
8173         * ipa-struct-reorg.c (build_data_structure): Likewise.
8174         * ipa-type-escape.c (analyze_function): Likewise.
8175         * lto-streamer-in.c (input_function): Likewise.
8176         * lto-streamer-out.c (output_function): Likewise.
8177         * tree-ssa-live.c (remove_unused_locals): Likewise.
8178         * tree.c (free_lang_data_in_decl): Likewise.
8179         (find_decls_types_in_node): Likewise.
8180         * omp-low.c (remove_exit_barrier): Likewise.
8181         (expand_omp_taskreg): Likewise.
8182         (list2chain): Rename to...
8183         (vec2chain): ...this.  Adjust.
8184         * cgraphunit.c (assemble_thunk): Call add_local_decl.
8185         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
8186         * gimple-low.c (record_vars_into): Likewise.
8187         * tree-inline.c (remap_decls): Likewise.
8188         (declare_return_variable): Likewise.
8189         (declare_inline_vars): Likewise.
8190         (copy_forbidden): Adjust for new type of cfun->local_decls.
8191         (add_local_variables): New function.
8192         (expand_call_inline): Call it.
8193         (tree_function_versioning): Likewise.
8194
8195 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
8196
8197         AVX Programming Reference (June, 2010)
8198         * config/i386/cpuid.h (bit_F16C): New.
8199         (bit_RDRND): Likewise.
8200         (bit_FSGSBASE): Likewise.
8201
8202         * config/i386/i386-builtin-types.def: Add
8203         "DEF_FUNCTION_TYPE (UINT16)", function types for
8204         float16 <-> float conversions and
8205         "DEF_FUNCTION_TYPE (VOID, UINT64)".
8206
8207         * config/i386/i386-c.c (ix86_target_macros_internal): Support
8208         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
8209         OPTION_MASK_ISA_F16C.
8210
8211         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
8212         (OPTION_MASK_ISA_RDRND_SET): Likewise.
8213         (OPTION_MASK_ISA_F16C_SET): Likewise.
8214         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
8215         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
8216         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
8217         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
8218         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
8219         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
8220         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
8221         (override_options): Handle them.
8222         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
8223         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
8224         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
8225         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
8226         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
8227         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
8228         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
8229         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
8230         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
8231         (bdesc_args): Likewise.
8232         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
8233         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
8234         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
8235         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
8236         Handle non-memory store.
8237
8238         * config/i386/i386.h (TARGET_FSGSBASE): New.
8239         (TARGET_RDRND): Likewise.
8240         (TARGET_F12C): Likewise.
8241
8242         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
8243         (UNSPEC_VCVTPS2PH): Likewise.
8244         (UNSPECV_RDFSBASE): Likewise.
8245         (UNSPECV_RDGSBASE): Likewise.
8246         (UNSPECV_WRFSBASE): Likewise.
8247         (UNSPECV_WRGSBASE): Likewise.
8248         (UNSPECV_RDRAND): Likewise.
8249         (rdfsbase<mode>): Likewise.
8250         (rdgsbase<mode>): Likewise.
8251         (wrfsbase<mode>): Likewise.
8252         (wrgsbase<mode>): Likewise.
8253         (rdrand<mode>): Likewise.
8254
8255         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
8256
8257         * config/i386/immintrin.h (_rdrand_u16): New.
8258         (_rdrand_u32): Likewise.
8259         (_readfsbase_u32): Likewise.
8260         (_readfsbase_u64): Likewise.
8261         (_readgsbase_u32): Likewise.
8262         (_readgsbase_u64): Likewise.
8263         (_writefsbase_u32): Likewise.
8264         (_writefsbase_u64): Likewise.
8265         (_writegsbase_u32): Likewise.
8266         (_writegsbase_u64): Likewise.
8267         (_rdrand_u64): Likewise.
8268         (_cvtsh_ss): Likewise.
8269         (_mm_cvtph_ps): Likewise.
8270         (_mm256_cvtph_ps): Likewise.
8271         (_cvtss_sh): Likewise.
8272         (_mm_cvtps_ph): Likewise.
8273         (_mm256_cvtps_ph): Likewise.
8274
8275         * config/i386/sse.md (vcvtph2ps): New.
8276         (*vcvtph2ps_load): Likewise.
8277         (vcvtph2ps256): Likewise.
8278         (vcvtps2ph): Likewise.
8279         (*vcvtps2ph): Likewise.
8280         (*vcvtps2ph_store): Likewise.
8281         (vcvtps2ph256): Likewise.
8282
8283         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
8284
8285         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
8286
8287 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
8288
8289         PR bootstrap/44512
8290         * genenums.c (main): Output include of insn-constants.h
8291         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
8292
8293 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
8294
8295         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
8296         (override_options): Initialize it.
8297         (ix86_expand_prologue): Use it.
8298
8299 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
8300
8301         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
8302
8303 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
8304
8305         * double-int.h (fit_double_type): Remove declaration.
8306         * double-int.c (fit_double_type): Remove function.
8307         * tree.h (int_fits_type_p): Adjust prototype.
8308         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
8309         instead of fit_double_type.
8310         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
8311         instead of fit_double_type and build_int_cst_wide.
8312         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
8313         instead of fit_double_type and build_int_cst_wide.
8314         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
8315         of fit_double_type.
8316
8317 2010-07-05  Jan Hubicka  <jh@suse.cz>
8318
8319         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
8320         in_other_partition.
8321         * lto-cgraph.c (referenced_from_other_partition_p,
8322         reachable_from_other_partition_p): Use in_other_partition flags.
8323         (output_node, output_varpool_node): COMDAT nodes always have private
8324         copies and thus are never used from other partition.
8325
8326 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
8327
8328         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
8329         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
8330         * config/ia64/ia64.c Include reload.h.
8331         (ia64_memory_move_cost): New function.
8332         (TARGET_MEMORY_MOVE_COST): Define.
8333         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
8334         memory_move_cost.
8335
8336 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
8337
8338         PR middle-end/42505
8339         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
8340         comments about cost model.
8341         (try_add_cand_for):  Add second strategy for choosing initial set
8342         based on original IVs, controlled by ORIGINALP argument.
8343         (get_initial_solution): Add ORIGINALP argument.
8344         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
8345         (find_optimal_iv_set): Try two different strategies for choosing
8346         the IV set, and return the one with lower cost.
8347
8348 2010-07-05  Richard Guenther  <rguenther@suse.de>
8349
8350         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
8351
8352 2010-07-05  Richard Guenther  <rguenther@suse.de>
8353
8354         * tree.c (reference_alias_ptr_type): New function.
8355         * tree.h (reference_alias_ptr_type): Declare.
8356         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
8357         allow non-TARGET_MEM_REF new refs.
8358         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
8359         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
8360         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
8361         (create_mem_ref): Get alias pointer type.  Adjust calls to
8362         create_mem_ref_raw.
8363         (maybe_fold_tmr): Likewise.
8364         * tree-flow.h (create_mem_ref): Adjust prototype.
8365
8366 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
8367
8368         PR c++/44808
8369         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
8370         *from_p is VAR_DECL.
8371
8372 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
8373
8374         * tree.h (build_call_list): Remove.
8375         * tree.c (build_call_list): Remove.
8376
8377 2010-07-05  Richard Guenther  <rguenther@suse.de>
8378
8379         * double-int.h (double_int_sub): Declare.
8380         * double-int.c (double_int_sub): New function.
8381         * dwarf2out.c (field_byte_offset): Use it.
8382         * fixed-value.c (do_fixed_add): Likewise.
8383         (do_fixed_multiply): Likewise.
8384         (do_fixed_divide): Likewise.
8385         * tree-predcom.c (add_ref_to_chain): Likewise.
8386         (determine_roots_comp): Likewise.
8387         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
8388
8389 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
8390
8391         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
8392         implementations.
8393
8394 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
8395
8396         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
8397         * arm-modes.def (CC_NOTB): Don't define.
8398         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
8399         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
8400         (LTUGEU): New code_iterator.
8401         (cnb, optab): New corresponding code_attrs.
8402         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
8403         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
8404         using LTUGEU.
8405         (addsi3_carryin_shift_<optab>): Likewise.
8406         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
8407         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
8408         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
8409         (subsi3_compare): Renamed from subsi3_compare0_c.
8410         Change CC_NOTB to CC.
8411         (arm_subsi3_insn): Allow constants for operand 0.
8412         (compare_scc peephole for eq case): New.
8413         (compare_scc splitters): Change CC_NOTB to CC.
8414
8415 2010-07-05  Richard Guenther  <rguenther@suse.de>
8416
8417         * tree-ssa-loop-im.c (for_each_index): Do not handle
8418         ALIGN_INDIRECT_REF.
8419         (gen_lsm_tmp_name): Likewise.
8420         * tree-dump.c (dequeue_and_dump): Likewise.
8421         * tree-pretty-print.c (dump_generic_node): Likewise.
8422         (op_code_prio): Likewise.
8423         (op_symbol_code): Likewise.
8424         * tree.c (staticp): Likewise.
8425         (build1_stat): Likewise.
8426         * tree.h (INDIRECT_REF_P): Likewise.
8427         * fold-const.c (maybe_lvalue_p): Likewise.
8428         (operand_equal_p): Likewise.
8429         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8430         (ao_ref_init_from_vn_reference): Likewise.
8431         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
8432         (find_interesting_uses_address): Likewise.
8433         * dwarf2out.c (loc_list_from_tree): Likewise.
8434         * gimplify.c (gimplify_expr): Likewise.
8435         * tree-eh.c (tree_could_trap_p): Likewise.
8436         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8437         * cfgexpand.c (expand_debug_expr): Likewise.
8438         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8439         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
8440         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
8441         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
8442         * tree-ssa-operands.c (get_expr_operands): Likewise.
8443         * expr.c (safe_from_p): Likewise.
8444         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
8445         * tree-vect-data-refs.c (vect_setup_realignment): Build
8446         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
8447         * tree-vect-stmts.c (vectorizable_load): Likewise.
8448         * tree.def (ALIGN_INDIRECT_REF): Remove.
8449
8450 2010-07-05  Richard Guenther  <rguenther@suse.de>
8451
8452         PR tree-optimization/44784
8453         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
8454         for inserted stmts.
8455         (find_or_generate_expression): Fix SCCVN insertion check.
8456
8457 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
8458
8459         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
8460         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
8461         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
8462         directives.
8463
8464 2010-07-05  Ira Rosen  <irar@il.ibm.com>
8465
8466         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
8467         statements that are not vectorized.
8468         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
8469         in INSIDE_COST.
8470
8471 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
8472
8473         PR bootstrap/44820
8474         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
8475
8476 2010-07-05  Richard Guenther  <rguenther@suse.de>
8477
8478         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
8479         RESULT_DECLs properly.
8480
8481 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
8482
8483         PR rtl-optimization/44695
8484         * config/i386/i386.md (extract_code): Removed.
8485         (<u>divmodqi4): Likewise.
8486         (divmodqi4): New.
8487         (udivmodqi4): Likewise.
8488         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
8489         (udivmodhiqi3): Likewise.
8490
8491 2010-07-04  Jan Hubicka  <jh@suse.cz>
8492
8493         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
8494
8495 2010-07-04  Jan Hubicka  <jh@suse.cz>
8496
8497         * cgraphunit.c (init_cgraph): Only initialize dump file if it
8498         is not already initialized.
8499
8500 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
8501
8502         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
8503         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
8504         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
8505         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
8506         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
8507         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
8508         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
8509         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
8510         (sync_new_nand_optab): Redefine as macros.
8511         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
8512         Delete.
8513         (direct_optab_index): New enum.
8514         (direct_optab_d): New structure.
8515         (direct_optab): New typedef.
8516         (direct_optab_table): Declare.
8517         (direct_optab_handler, set_direct_optab_handler): New functions.
8518         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
8519         (sync_lock_release_optab): New macros.
8520         * optabs.c (direct_optab_table): New variable.
8521         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
8522         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
8523         cmpstr_optab and cmpstrn_optab.
8524         (emit_conditional_move): Likewise for movcc_optab.
8525         (can_conditionally_move_p): Likewise for movcc_gen_code.
8526         (init_insn_codes): Clear direct_optab_table.
8527         (init_optabs): Don't initialize the new "direct optabs" here.
8528         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
8529         vcond_gen_code.
8530         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
8531         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
8532         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
8533         (expand_sync_operation): Likewise other sync_*_optabs.
8534         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
8535         to sync_compare_and_swap_optab.
8536         (expand_sync_lock_test_and_set): Use direct_optab_handler for
8537         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
8538         to the names of both.
8539         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
8540         cmpstr_optab and cmpstrn_optab.
8541         (expand_builtin_lock_release): Likewise sync_lock_release.
8542         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
8543         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
8544         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
8545         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
8546         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
8547         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
8548         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
8549         (sync_lock_test_and_set, sync_lock_release): Delete.
8550         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
8551         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
8552         * genopinit.c (optabs): Use set_direct_optab_handler for the new
8553         macro optabs.
8554         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
8555         the "optab" local variable.  Use direct_optab_handler for optab and
8556         sync_compare_and_swap_optab.
8557         * reload1.c (reload_in_optab, reload_out_optab): Delete.
8558         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
8559         reload_in_optab and reload_out_optab.
8560         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
8561         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
8562         * config/pa/pa.c (pa_secondary_reload): Likewise.
8563         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
8564         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
8565         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
8566         (VMSupportsCS8_builtin): Likewise.
8567
8568 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
8569
8570         * optabs.h (optab_handlers): Change type of insn_code to int.
8571         (optab_handler, set_optab_handler, convert_optab_handler)
8572         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
8573         CODE_FOR_nothing".
8574         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
8575         (init_insn_codes): Zero both the above arrays.
8576         (init_optabs): Never call init_insn_codes first time around.
8577
8578 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
8579
8580         * optabs.h (optab_handler, convert_optab_handler): Turn into
8581         inline functions that return an insn code.
8582         (set_optab_handler, set_convert_optab_handler): New functions.
8583         * builtins.c: Replace optab_handler(X)->insn_code with
8584         optab_handler or set_optab_handler thoughout.  Likewise
8585         convert_optab_handler(X)->insn_code with convert_optab_handler
8586         and set_convert_optab_handler.
8587         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
8588         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
8589         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
8590         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
8591         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
8592         config/spu/spu.c: Likewise.
8593
8594 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8595
8596         PR target/44531
8597         * config.gcc (sh*-*-*): Use regular expressions instead of
8598         the 'i' modifier for sed substitutions.
8599
8600 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
8601
8602         * gimple.c (gimple_body): Comments added.
8603
8604 2010-07-04  Richard Guenther  <rguenther@suse.de>
8605
8606         PR middle-end/44809
8607         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
8608         of an INDIRECT_REF.
8609
8610 2010-07-04  Richard Guenther  <rguenther@suse.de>
8611
8612         PR tree-optimization/44479
8613         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
8614         extra SSA name copy statements which preserves points-to
8615         information.
8616         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8617         Copy points-to information for all pointers.  Properly handle
8618         MEM_REFs.
8619         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
8620         copy statements.
8621         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
8622         dependency.
8623
8624 2010-07-04  Richard Guenther  <rguenther@suse.de>
8625
8626         PR middle-end/44785
8627         * tree-inline.c (initialize_inlined_parameters): Do not
8628         re-use pointer-map slot over remap_type call.
8629
8630 2010-07-04  Richard Guenther  <rguenther@suse.de>
8631
8632         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
8633
8634 2010-07-04  Richard Guenther  <rguenther@suse.de>
8635
8636         PR tree-optimization/44656
8637         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
8638         again after value-replacing in the defintions lhs.
8639
8640 2010-07-04  Ira Rosen  <irar@il.ibm.com>
8641             Revital Eres  <eres@il.ibm.com>
8642
8643         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
8644         Document new arguments.
8645         * doc/tm.texi: Regenerate.
8646         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
8647         Handle unaligned store.
8648         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
8649         * target.def (builtin_vectorization_cost): Add new arguments.
8650         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
8651         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
8652         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
8653         (vect_vfa_segment_size): Fix indentation.
8654         * tree-vectorizer.h (struct _vect_peel_info): New.
8655         (struct _vect_peel_extended_info): New.
8656         (struct _loop_vec_info): Add new field for peeling hash table and a
8657         macro for its access.
8658         (VECT_MAX_COST): Define.
8659         (vect_get_load_cost): Declare.
8660         (vect_get_store_cost, vect_get_known_peeling_cost,
8661         vect_get_single_scalar_iteraion_cost): Likewise.
8662         (vect_supportable_dr_alignment): Add new argument.
8663         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
8664         field.
8665         (destroy_loop_vec_info): Free peeling hash table.
8666         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
8667         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
8668         vect_analyze_slp. Fix indentation.
8669         (vect_get_single_scalar_iteraion_cost): New function.
8670         (vect_get_known_peeling_cost): Likewise.
8671         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
8672         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
8673         statement. Move outside cost calculation inside unknown peeling case.
8674         Call vect_get_known_peeling_cost for known amount of peeling.
8675         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
8676         reference to the print message of forced alignment.
8677         (vect_verify_datarefs_alignment): Update call to
8678         vect_supportable_dr_alignment.
8679         (vect_get_data_access_cost): New function.
8680         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
8681         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
8682         vect_peeling_hash_choose_best_peeling): Likewise.
8683         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
8684         to store all the accesses in the loop and find best possible access to
8685         align using peeling for known alignment case. For unknown alignment
8686         check if stores are preferred or if peeling is worthy.
8687         (vect_find_same_alignment_drs): Analyze pairs of loads too.
8688         (vect_supportable_dr_alignment): Add new argument and check aligned
8689         accesses according to it.
8690         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
8691         (cost_for_stmt): Call vect_get_stmt_cost.
8692         (vect_model_simple_cost): Likewise.
8693         (vect_model_store_cost): Call vect_get_stmt_cost. Call
8694         vect_get_store_cost to calculate the cost of the statement.
8695         (vect_get_store_cost): New function.
8696         (vect_model_load_cost): Call vect_get_stmt_cost. Call
8697         vect_get_load_cost to calculate the cost of the statement.
8698         (vect_get_load_cost): New function.
8699         (vectorizable_store): Update call to vect_supportable_dr_alignment.
8700         (vectorizable_load): Likewise.
8701         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
8702         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
8703         arguments. Handle unaligned store.
8704         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
8705         (rs6000_builtin_support_vector_misalignment): Return true for word and
8706         double word alignments for VSX.
8707         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
8708         vect_supportable_dr_alignment and builtin_vectorization_cost.
8709
8710 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8711
8712         PR target/44597
8713         * config/pa/predicates.md (prefetch_cc_operand): Remove.
8714         (prefetch_nocc_operand): Likewise.
8715         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
8716         (prefetch_20): New insn.
8717         (prefetch_cc): Remove.
8718         (prefetch_nocc): Likewise.
8719
8720 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8721
8722         * expr.c (vector_mode_valid_p): Move to c-common.c.
8723         * expr.h (vector_mode_valid_p): Do not declare here.
8724         * system.h: Poison GCC_EXPR_H in front-ends.
8725         * Makefile.in: Update dependencies.
8726
8727 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8728
8729         PR target/44705
8730         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
8731
8732 2010-07-03  Jan Hubicka  <jh@suse.cz>
8733
8734         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
8735         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
8736         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
8737         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
8738         Likewise.
8739
8740         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
8741         Update timevars.V
8742         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
8743         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
8744         TV_IPA_LTO_DECL_OUT): New.
8745         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
8746
8747 2010-07-03  Jan Hubicka  <jh@suse.cz>
8748
8749         * ipa-inline.c (update_edge_key): Break out from ...
8750         update_callers_keys): ... here;
8751         (update_callee_keys): Update only the edges from caller to callee.
8752         (update_all_calle_keys): Do what update_calle_keys did.
8753         (decide_inlining_of_small_functions): Avoid recomputing of all
8754         callees when badness increase.
8755
8756 2010-07-03  Jie Zhang  <jie@codesourcery.com>
8757
8758         * config/arm/arm.c (arm_attr_length_move_neon): New.
8759         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
8760         * config/arm/neon.md (define_mode_attr V_slen): Remove.
8761         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
8762         to compute length attribute.
8763
8764 2010-07-03  Jie Zhang  <jie@codesourcery.com>
8765
8766         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
8767         as predicate for operand 1 and remove its constraint.
8768         * config/arm/predicates.md (vfp_register_operand): New.
8769         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
8770         (*push_fp_multi): Likewise.
8771
8772 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
8773
8774         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
8775
8776 2010-07-03  Jan Hubicka  <jh@suse.cz>
8777
8778         * config/i386/i386.c (override_options): Revert accidental commit.
8779
8780 2010-07-02  Le-Chun Wu  <lcwu@google.com>
8781
8782         PR c++/44128
8783         * doc/invoke.texi: Update documentation of -Wshadow.
8784
8785 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
8786             Julian Brown  <julian@codesourcery.com>
8787             Sandra Loosemore <sandra@codesourcery.com>
8788
8789         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
8790         comparisons.  Adjust to take both operands.
8791         (arm_select_cc_mode): Handle DImode comparisons.
8792         (arm_gen_compare_reg): Generate a scratch register for DImode
8793         comparisons which require one.  Use xor for Thumb equality checks.
8794         (arm_const_double_by_immediates): New.
8795         (arm_print_operand): Allow 'Q' and 'R' for constants.
8796         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
8797         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
8798         arm_canonicalize_comparison.
8799         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
8800         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
8801         prototype.
8802         (arm_const_double_by_immediates): Declare.
8803         * config/arm/constraints.md (Di): New constraint.
8804         * config/arm/predicates.md (arm_immediate_di_operand)
8805         (arm_di_operand, cmpdi_operand): New.
8806         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
8807         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
8808         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
8809         (cstoredi4): Handle non-Cirrus also.
8810
8811 2010-07-02  Julian Brown  <julian@codesourcery.com>
8812             Sandra Loosemore <sandra@codesourcery.com>
8813
8814         PR target/43703
8815         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
8816         (smax<mode>3): Disable for NEON float modes when
8817         flag_unsafe_math_optimizations is false.
8818         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
8819         (*mul<mode>3_neon)
8820         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
8821         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
8822         for NEON float modes when flag_unsafe_math_optimizations is false.
8823         (quad_halves_<code>v4sf): Only enable if
8824         flag_unsafe_math_optimizations is true.
8825         * doc/invoke.texi (ARM Options): Add note about floating point
8826         vectorization requiring -funsafe-math-optimizations.
8827
8828 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8829             Julian Brown  <julian@codesourcery.com>
8830
8831         * config/arm/neon.md (UNSPEC_VABA): Delete.
8832         (UNSPEC_VABAL): Delete.
8833         (UNSPEC_VABS): Delete.
8834         (UNSPEC_VMUL_N): Delete.
8835         (adddi3_neon): New.
8836         (subdi3_neon): New.
8837         (mul<mode>3add<mode>_neon): Make the pattern named.
8838         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
8839         (neon_vadd<mode>): Replace with define_expand, and move the remaining
8840         unspec parts...
8841         (neon_vadd<mode>_unspec): ...to this.
8842         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
8843         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
8844         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
8845         (neon_vaba<mode>): Rewrite in terms of vabd.
8846         (neon_vabal<mode>): Rewrite in terms of vabdl.
8847         (neon_vabs<mode>): Rewrite without unspec.
8848         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
8849         (*arm_subdi3): Likewise.
8850         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
8851         No_op attribute to disable assembly output checks.
8852         * config/arm/arm_neon.h: Regenerated.
8853         * doc/arm-neon-intrinsics.texi: Regenerated.
8854
8855 2010-07-02  Jan Hubicka  <jh@suse.cz>
8856
8857         * ipa-split.c (split_function): For aggregate values, set the return
8858         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
8859         *<retval> = fncall.part ().
8860         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
8861
8862 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8863
8864         * config/arm/neon.md (UNSPEC_VAND): Delete.
8865         (UNSPEC_VBIC): Delete.
8866         (UNSPEC_VCLZ): Delete.
8867         (UNSPEC_VCNT): Delete.
8868         (UNSPEC_VEOR): Delete.
8869         (UNSPEC_VORN): Delete.
8870         (UNSPEC_VORR): Delete.
8871         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
8872         core registers too.
8873         (anddi3_neon): Likewise.
8874         (orndi3_neon): Likewise.
8875         (bicdi3_neon): Likewise.
8876         (xordi3_neon): Likewise.
8877         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
8878         rid of unspec and handle unused operand.
8879         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
8880         * config/arm/predicates.md (imm_for_neon_logic_operand):
8881         Require TARGET_NEON.
8882         (imm_for_neon_inv_logic_operand): Likewise.
8883         * config/arm/arm.md (define_split for logical_binary_operator):
8884         Disable for NEON registers.
8885         (anddi3): Add new define_expand, and rename the insn.  Disable
8886         this insn for NEON, where anddi3_neon now applies.
8887         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
8888         (iordi3): As for anddi3.
8889         (xordi3): Likewise.
8890         * config/arm/neon.ml (Vand): Split DImode variants and mark them
8891         as No_op to disable testing for exact instruction match.
8892         (Vorr): Likewise.
8893         (Veor): Likewise.
8894         (Vbic): Likewise.
8895         (Vorn): Likewise.
8896         * config/arm/arm_neon.h: Regenerated.
8897         * doc/arm-neon-intrinsics.texi: Regenerated.
8898
8899 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8900
8901         * expr.h (emit_stack_probe): Declare.
8902         * explow.c (emit_stack_probe): Make global.
8903         (anti_adjust_stack_and_probe): Fix comments.
8904         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
8905         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8906         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8907         * config/sparc/sparc.c: Include except.h.
8908         (sparc_emit_probe_stack_range): New function.
8909         (output_probe_stack_range): Likewise.
8910         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
8911         built-in stack checking is enabled.
8912         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
8913         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
8914         (probe_stack_range): New insn.
8915
8916 2010-07-02  Richard Guenther  <rguenther@suse.de>
8917
8918         PR target/43958
8919         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
8920         for argument alignment.
8921
8922 2010-07-02  Jan Hubicka  <jh@suse.cz>
8923
8924         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
8925         walk backwards from entry_bb to check only those basic block of header
8926         that might lead to execution of split part.
8927         (consider_split) ... here.
8928         (find_return_bb): Allow assignment in return BB.
8929         (find_retval): New.
8930         (split_function): Fix name of cloned function; take care of updating
8931         return value in return_bb containing move.
8932
8933 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
8934
8935         PR target/44771
8936         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
8937         used variable insn.
8938
8939 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8940
8941         * implicit-zee.c (combine_reaching_defs): Fix long lines.
8942         (is_set_with_extension_DI): Delete.
8943         (struct zero_extend_info): New structure.
8944         (add_removable_zero_extend): New function.
8945         (find_removable_zero_extends): Use note_stores to find SETs.
8946         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
8947
8948 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
8949
8950         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
8951         is_miss_rate_acceptable. Pull total_positions computation
8952         out of the loops.  Early return if miss_positions exceeds
8953         the acceptable threshold.
8954         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
8955         is_miss_rate_acceptable after renaming of compute_miss_rate.
8956
8957 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
8958
8959         PR middle-end/44576
8960         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
8961         of 1000) for miss rate if the address diference is greater than or
8962         equal to the cache line size (the two reference will never hit the
8963         same cache line).
8964
8965 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
8966
8967         PR target/42835
8968         * config/arm/arm-modes.def (CC_NOTB): New mode.
8969         * config/arm/arm.c (get_arm_condition_code): Handle it.
8970         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
8971         * config/arm/arm.md (subsi3_compare0_c): New pattern.
8972         (compare_scc): Now a define_and_split.  Add a number of extra
8973         splitters before it.
8974
8975         PR target/42172
8976         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
8977         and ZERO_EXTEND.
8978         (arm_rtx_costs_1): Likewise.
8979         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
8980         * config/arm/arm.md (is_arch6): New attribute.
8981         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
8982         extendqisi2): Tighten the code somewhat, avoiding invalid
8983         RTL to occur in the expander patterns.
8984         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
8985         (thumb1_zero_extendhisi2_v6): Delete.
8986         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
8987         (thumb1_extendhisi2_v6): Delete.
8988         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
8989         (thumb1_extendqisi2_v6): Delete.
8990         (zero_extendhisi2 for register input splitter): New.
8991         (zero_extendqisi2 for register input splitter): New.
8992         (thumb1_extendhisi2 for register input splitter): New.
8993         (extendhisi2 for register input splitter): New.
8994         (extendqisi2 for register input splitter): New.
8995         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
8996         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
8997         and add support for a register alternative requiring a split.
8998         (thumb1_zero_extendqisi2): Likewise.
8999         (arm_zero_extendqisi2): Likewise.
9000         (arm_extendhisi2): Likewise.
9001         (arm_extendqisi2): Likewise.
9002
9003 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9004
9005         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
9006         instead of an unspec.
9007         (neon_expand_vector_init): Likewise.
9008         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
9009         (UNSPEC_VDUP_LANE): Delete.
9010         (UNSPEC VDUP_N): Delete.
9011         (UNSPEC_VGET_HIGH): Delete.
9012         (UNSPEC_VGET_LANE): Delete.
9013         (UNSPEC_VGET_LOW): Delete.
9014         (UNSPEC_VMVN): Delete.
9015         (UNSPEC_VSET_LANE): Delete.
9016         (V_double_vector_mode): New.
9017         (vec_set<mode>_internal): Make code emitted match that for the
9018         corresponding intrinsics.
9019         (vec_setv2di_internal): Likewise.
9020         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
9021         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
9022         (neon_vset_lane<mode>): Combine double and quad patterns and
9023         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
9024         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
9025         (neon_vdup_n<mode>): Rewrite RTL without unspec.
9026         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
9027         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
9028         with neon_vdup_lanev2di, adjusting the pattern from the latter
9029         to be predicable for consistency.
9030         (neon_vdup_lane<mode>_internal): New.
9031         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
9032         to avoid using an unspec.
9033         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
9034         (neon_vdup_lanev2di): Turn into a define_expand.
9035         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
9036         (neon_vget_high<mode>): Replace with....
9037         (neon_vget_highv16qi): New pattern using canonical RTL.
9038         (neon_vget_highv8hi): Likewise.
9039         (neon_vget_highv4si): Likewise.
9040         (neon_vget_highv4sf): Likewise.
9041         (neon_vget_highv2di): Likewise.
9042         (neon_vget_low<mode>): Replace with....
9043         (neon_vget_lowv16qi): New pattern using canonical RTL.
9044         (neon_vget_lowv8hi): Likewise.
9045         (neon_vget_lowv4si): Likewise.
9046         (neon_vget_lowv4sf): Likewise.
9047         (neon_vget_lowv2di): Likewise.
9048
9049         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
9050         test for this emitting vmov.
9051         (Vset_lane): Likewise.
9052         (Vdup_n): Likewise.
9053         (Vmov_n): Likewise.
9054
9055         * doc/arm-neon-intrinsics.texi: Regenerated.
9056
9057 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9058
9059         * config/arm/neon.md (vec_extractv2di): Correct error in register
9060         numbering to reconcile with neon_vget_lanev2di.
9061
9062 2010-07-02  Richard Guenther  <rguenther@suse.de>
9063
9064         * tree-ssa-structalias.c (pt_solution_set_var): New function.
9065         * tree-ssa-alias.h (pt_solution_set_var): Declare.
9066         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
9067         points-to information.
9068
9069 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
9070
9071         * config/s390/s390.c (override_options): Adopt prefetching
9072         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
9073
9074 2010-07-02  Jan Hubicka  <jh@suse.cz>
9075
9076         * df-problems.c (df_kill_notes): Do not collect dead  notes.
9077         (df_set_note): Just call add_reg_note.
9078         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
9079         df_create_unused_note): Do not deal with lists of old notes.
9080         (df_note_bb_compute): Likewise.
9081
9082 2010-07-02  Richard Guenther  <rguenther@suse.de>
9083
9084         * tree-ssa-structalias.c (find_func_aliases): Handle
9085         pointer alignment via BIT_AND_EXPR.
9086         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
9087
9088 2010-07-02  Richard Guenther  <rguenther@suse.de>
9089
9090         * tree-data-ref.c (initialize_data_dependence_relation): Handle
9091         mismatching number of dimensions properly.
9092
9093 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9094
9095         PR target/44707
9096         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
9097         (lo_sum (high ...) ...) patterns generated by earlier passes.
9098
9099 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9100
9101         * doc/install.texi (Prerequisites): Document Perl requirement on
9102         Solaris 2.
9103         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
9104
9105 2010-07-02  Richard Guenther  <rguenther@suse.de>
9106
9107         PR middle-end/44777
9108         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
9109
9110 2010-07-02  Jan Hubicka  <jh@suse.cz>
9111
9112         PR middle-end/44706
9113         * predict.c (predict_paths_for_bb): Handle case when control dependence
9114         BB has only abnormal edges.
9115
9116 2010-07-02  Richard Guenther  <rguenther@suse.de>
9117
9118         PR tree-optimization/44748
9119         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
9120         the embedded conversion in MEM_REFs.
9121
9122 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
9123
9124         * reload.c: Include toplev.h.
9125         * recog.c:  Likewise.
9126         * Makefile.in: Adjust dependencies.
9127
9128 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
9129
9130         PR debug/44694
9131         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
9132         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
9133
9134 2010-07-01  Richard Guenther  <rguenther@suse.de>
9135
9136         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
9137         types for offsets.
9138
9139 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
9140
9141         PR target/44732
9142         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
9143         Fix argument types.
9144
9145 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
9146
9147         PR target/44727
9148         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
9149         Make sure operand 0 dies.
9150
9151 2010-07-01  Richard Guenther  <rguenther@suse.de>
9152
9153         PR middle-end/42834
9154         PR middle-end/44468
9155         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
9156         * doc/generic.texi (References to storage): Document MEM_REF.
9157         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
9158         (print_call_name): Likewise.
9159         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
9160         (build_simple_mem_ref_loc): New function.
9161         (mem_ref_offset): Likewise.
9162         * tree.h (build_simple_mem_ref_loc): Declare.
9163         (build_simple_mem_ref): Define.
9164         (mem_ref_offset): Declare.
9165         * fold-const.c: Include tree-flow.h.
9166         (operand_equal_p): Handle MEM_REF.
9167         (build_fold_addr_expr_with_type_loc): Likewise.
9168         (fold_comparison): Likewise.
9169         (fold_unary_loc): Fold
9170         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
9171         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
9172         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
9173         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
9174         (ptr_deref_may_alias_ref_p_1): Likewise.
9175         (ao_ref_base_alias_set): Properly differentiate base object for
9176         offset and TBAA.
9177         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
9178         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
9179         (indirect_refs_may_alias_p): Likewise.
9180         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
9181         chasing code.
9182         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
9183         (call_may_clobber_ref_p_1): Likewise.
9184         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
9185         * expr.c (expand_assignment): Handle MEM_REF.
9186         (store_expr): Handle MEM_REFs from STRING_CSTs.
9187         (store_field): If expanding a MEM_REF of a non-addressable
9188         decl use bitfield operations.
9189         (get_inner_reference): Handle MEM_REF.
9190         (expand_expr_addr_expr_1): Likewise.
9191         (expand_expr_real_1): Likewise.
9192         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
9193         * alias.c (ao_ref_from_mem): Handle MEM_REF.
9194         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
9195         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
9196         (dr_analyze_indices): Likewise.
9197         (dr_analyze_alias): Likewise.
9198         (object_address_invariant_in_loop_p): Likewise.
9199         * gimplify.c (mark_addressable): Handle MEM_REF.
9200         (gimplify_cond_expr): Build MEM_REFs.
9201         (gimplify_modify_expr_to_memcpy): Likewise.
9202         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
9203         (gimple_fold_indirect_ref): Adjust.
9204         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
9205         * tree.def (MEM_REF): New tree code.
9206         * tree-dfa.c: Include toplev.h.
9207         (get_ref_base_and_extent): Handle MEM_REF.
9208         (get_addr_base_and_unit_offset): New function.
9209         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
9210         * gimple-fold.c (may_propagate_address_into_dereference): Handle
9211         MEM_REF.
9212         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
9213         accesses if the array has just one dimension.  Remove always true
9214         parameter.  Do not require type compatibility here.
9215         (maybe_fold_offset_to_component_ref): Remove.
9216         (maybe_fold_stmt_indirect): Remove.
9217         (maybe_fold_reference): Remove INDIRECT_REF handling.
9218         Fold back to non-MEM_REF.
9219         (maybe_fold_offset_to_address): Simplify.  Deal with type
9220         mismatches here.
9221         (maybe_fold_reference): Likewise.
9222         (maybe_fold_stmt_addition): Likewise.  Also handle
9223         &ARRAY + I in addition to &ARRAY[0] + I.
9224         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
9225         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
9226         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
9227         * tree-ssa.c (useless_type_conversion_p): Make most pointer
9228         conversions useless.
9229         (warn_uninitialized_var): Handle MEM_REF.
9230         (maybe_rewrite_mem_ref_base): New function.
9231         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
9232         to SSA form.
9233         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
9234         INDIRECT_REF handling.
9235         (copy_tree_body_r): Handle MEM_REF.
9236         * gimple.c (is_gimple_addressable): Adjust.
9237         (is_gimple_address): Likewise.
9238         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
9239         invariant base are invariant.
9240         (is_gimple_min_lval): Adjust.
9241         (is_gimple_mem_ref_addr): New function.
9242         (get_base_address): Handle MEM_REF.
9243         (count_ptr_derefs): Likewise.
9244         (get_base_loadstore): Likewise.
9245         * gimple.h (is_gimple_mem_ref_addr): Declare.
9246         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
9247         * tree-cfg.c (verify_address): New function, split out from ...
9248         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
9249         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
9250         INDIRECT_REFs.
9251         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
9252         INDIRECT_REF.  Allow conversions.
9253         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
9254         a register does not change its size.
9255         (verify_types_in_gimple_reference): Verify MEM_REF.
9256         (verify_gimple_assign_single): Disallow INDIRECT_REF.
9257         Handle MEM_REF.
9258         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
9259         New.
9260         (mark_address_taken): Handle MEM_REF.
9261         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
9262         (get_asm_expr_operands): Pass opf_not_non_addressable.
9263         (get_expr_operands): Handle opf_[not_]non_addressable.
9264         Handle MEM_REF.  Remove INDIRECT_REF handling.
9265         * tree-vrp.c (check_array_ref): Handle MEM_REF.
9266         (search_for_addr_array): Likewise.
9267         (check_array_bounds): Likewise.
9268         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
9269         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
9270         (ref_always_accessed_p): Likewise.
9271         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
9272         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
9273         Handle MEM_REF.
9274         * cgraphbuild.c (mark_load): Properly check for NULL result
9275         from get_base_address.
9276         (mark_store): Likewise.
9277         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
9278         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
9279         handling for MEM_REF.
9280         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
9281         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
9282         * builtins.c (stabilize_va_list_loc): Use the function ABI
9283         valist type if we couldn't canonicalize the argument type.
9284         Always dereference with the canonical va-list type.
9285         (maybe_emit_free_warning): Handle MEM_REF.
9286         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
9287         memmove to memcpy.
9288         * builtins.c (fold_builtin_memory_op): Use ref-all types
9289         for all memcpy foldings.
9290         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
9291         (build_outer_var_ref): Likewise.
9292         (scan_omp_1_op): Likewise.
9293         (lower_rec_input_clauses): Likewise.
9294         (lower_lastprivate_clauses): Likewise.
9295         (lower_reduction_clauses): Likewise.
9296         (lower_copyprivate_clauses): Likewise.
9297         (expand_omp_atomic_pipeline): Likewise.
9298         (expand_omp_atomic_mutex): Likewise.
9299         (create_task_copyfn): Likewise.
9300         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
9301         Remove old union trick.  Initialize constant offsets.
9302         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
9303         INDIRECT_REF.  Init base_alias_set properly.
9304         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
9305         (vn_reference_fold_indirect): Adjust for MEM_REFs.
9306         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
9307         for ARRAY_REFs.
9308         (may_insert): Remove.
9309         (visit_reference_op_load): Do not test may_insert.
9310         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
9311         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
9312         a field to store the constant offset this op applies.
9313         (run_scc_vn): Adjust prototype.
9314         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
9315         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
9316         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
9317         bother about volatile qualifiers on pointers.
9318         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
9319         * tree-ssa-loop-ivopts.c
9320         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
9321         (strip_offset_1): Likewise.
9322         (find_interesting_uses_address): Replace INDIRECT_REF handling with
9323         MEM_REF handling.
9324         (get_computation_cost_at): Likewise.
9325         * ipa-pure-const.c (check_op): Handle MEM_REF.
9326         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
9327         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
9328         and constants.
9329         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
9330         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
9331         (eliminate_local_variables_1): Likewise.
9332         (create_call_for_reduction_1): Likewise.
9333         (create_loads_for_reductions): Likewise.
9334         (create_loads_and_stores_for_name): Likewise.
9335         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
9336         (ssa_accessed_in_tree): Handle MEM_REF.
9337         (ssa_accessed_in_assign_rhs): Likewise.
9338         (update_type_size): Likewise.
9339         (analyze_accesses_for_call_stmt): Likewise.
9340         (analyze_accesses_for_assign_stmt): Likewise.
9341         (transform_access_sites): Likewise.
9342         (transform_allocation_sites): Likewise.
9343         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
9344         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
9345         not handle INDIRECT_REF.
9346         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
9347         (cond_store_replacement): Likewise.
9348         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
9349         MEM_REF, no not handle INDIRECT_REFs.
9350         (insert_into_preds_of_block): Properly initialize avail.
9351         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
9352         for ARRAY_REFs.  Properly handle reference lookups that
9353         require a bit re-interpretation.
9354         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
9355         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
9356         (build_ref_for_offset_1): Remove.
9357         (build_ref_for_offset): Build MEM_REFs.
9358         (gate_intra_sra): Disable for now.
9359         (sra_ipa_modify_expr): Handle MEM_REF.
9360         (ipa_early_sra_gate): Disable for now.
9361         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
9362         MEM_REF handling.
9363         (disqualify_base_of_expr): Likewise.
9364         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
9365         MEM_REF handling.
9366         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
9367         Use mem_ref_offset.  Remove bogus folding.
9368         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
9369         (make_fancy_name_1): Add support for MEM_REF.
9370         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
9371         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
9372         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
9373         (compute_complex_ancestor_jump_func): Likewise.
9374         (ipa_analyze_virtual_call_uses): Likewise.
9375         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
9376         INDIRECT_REF folding with more generalized MEM_REF folding.
9377         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
9378         (forward_propagate_addr_into_variable_array_index): Also handle
9379         &ARRAY + I in addition to &ARRAY[0] + I.
9380         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
9381         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
9382         creates assignments with overlap.
9383         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
9384         (get_frame_field): Likewise.
9385         (get_nonlocal_debug_decl): Likewise.
9386         (convert_nonlocal_reference_op): Likewise.
9387         (struct nesting_info): Add mem_refs pointer-set.
9388         (create_nesting_tree): Allocate it.
9389         (convert_local_reference_op): Insert to be folded mem-refs.
9390         (fold_mem_refs): New function.
9391         (finalize_nesting_tree_1): Perform defered folding of mem-refs
9392         (free_nesting_tree): Free the pointer-set.
9393         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
9394         (vectorizable_load): Likewise.
9395         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
9396         (propagate_with_phi): Likewise.
9397         * tree-object-size.c (addr_object_size): Handle MEM_REFs
9398         instead of INDIRECT_REFs.
9399         (compute_object_offset): Handle MEM_REF.
9400         (plus_stmt_object_size): Handle MEM_REF.
9401         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
9402         for &MEM_REF.
9403         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
9404         (symbol_marked_for_renaming): Likewise.
9405         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
9406         (fold-const.o): Add $(TREE_FLOW_H).
9407         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
9408         (find_func_clobbers): Likewise.
9409         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
9410         (decompose_access): Likewise.
9411         (replace_field_acc): Likewise.
9412         (replace_field_access_stmt): Likewise.
9413         (insert_new_var_in_stmt): Likewise.
9414         (get_stmt_accesses): Likewise.
9415         (reorg_structs_drive): Disable.
9416         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
9417         (ix86_canonical_va_list_type): Likewise.
9418
9419 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
9420
9421         PR other/44566
9422         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
9423         * target.def (struct gcc_target): Replace enum reg_class with
9424         reg_class_t in hook argument / return types.
9425         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
9426         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
9427         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
9428         * targhooks.h (default_branch_target_register_class): Likewise.
9429         (default_ira_cover_classes, default_secondary_reload): Likewise.
9430         (default_memory_move_cost, default_register_move_cost): Likewise.
9431         * targhooks.c (default_branch_target_register_class): Likewise.
9432         (default_ira_cover_classes, default_secondary_reload): Likewise.
9433         (default_memory_move_cost, default_register_move_cost): Likewise.
9434         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
9435         * bt-load.c (branch_target_load_optimize): Likewise.
9436         * ira.c (setup_cover_and_important_classes): Likewise.
9437         * ira-costs.c (copy_cost): Likewise.
9438         * reload1.c (emit_input_reload_insns): Likewise.
9439         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
9440         * config/frv/frv.c (frv_secondary_reload): Likewise.
9441         * config/s390/s390.c (s390_secondary_reload): Likewise.
9442         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
9443         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
9444         (ix86_register_move_cost): Likewise.
9445         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
9446         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
9447         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
9448         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
9449         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
9450         (rs6000_ira_cover_classes): Likewise.
9451         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
9452         * config/picochip/picochip-protos.h (picochip_secondary_reload):
9453         Likewise.
9454         * config/pa/pa.c (pa_secondary_reload): Likewise.
9455         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
9456         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
9457         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
9458         * doc/tm.texi: Regenerate.
9459
9460 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
9461
9462         PR bootstrrap/44726
9463         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
9464         use.
9465         (build_alias_set_optimal_p): Likewise.
9466         (build_base_obj_set_for_drs): Likewise.
9467
9468 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
9469
9470         * target.def: Remove comment about licensing problems of function
9471         declarations.
9472
9473         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
9474         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
9475         * doc/tm.texi: Regenerate.
9476
9477         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
9478         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
9479
9480         * target.def (enum_va_list_p): Use DEFHOOK.
9481         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
9482         Rename ptype to ptree.
9483         * doc/tm.texi: Regenerate.
9484
9485         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
9486         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
9487         * doc/tm.texi: Regenerate.
9488
9489         * target.def (memory_move_cost): Use DEFHOOK.
9490         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
9491         Rename regclass AKA class to rclass.
9492         * doc/tm.texi: Regenerate.
9493
9494         * target.def (pragma_parse): Use DEFHOOK.
9495         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
9496         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
9497         * doc/tm.texi: Regenerate.
9498
9499         * target.def (pass_by_reference): Use DEFHOOK.
9500         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
9501         * doc/tm.texi: Regenerate.
9502
9503         * target.def (resolve_overloaded_builtin): Rename params to arglist.
9504         Use DEFHOOK.
9505         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
9506         * doc/tm.texi: Regenerate.
9507
9508         * target.def (return_pops_args): Use DEFHOOK.
9509         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
9510         Rename stack-size to size.
9511         * doc/tm.texi: Regenerate.
9512
9513         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
9514         last-sched_cycle to last_clock, cur_cycle to clock.
9515         * doc/tm.texi.in: Use @hook.
9516         * doc/tm.texi: Regenerate.
9517
9518         * target.def (print_operand, print_operand_address): Update comment.
9519         (print_operand_punct_valid_p): Likewise.
9520
9521 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9522
9523         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
9524         to rtl.h.
9525         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
9526         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
9527         * rtl-error.h: New.
9528         * regrename.c: Do not include toplev.h. Include rtl-error.h.
9529         * rtl-error.c: Likewise.
9530         * reload.c: Likewise.
9531         * recog.c:  Likewise.
9532         * sel-sched.c: Likewise.
9533         * function.c: Likewise.
9534         * reg-stack.c: Likewise.
9535         * cfgrtl.c: Likewise.
9536         * reload1.c: Likewise.
9537         * final.c: Include rtl-error.
9538         * Makefile.in: Adjust dependencies.
9539
9540 2010-06-30  Jan Hubicka  <jh@suse.cz>
9541
9542         PR middle-end/PR44706
9543         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
9544         to return the value.
9545
9546 2010-06-30  Michael Matz  <matz@suse.de>
9547
9548         PR bootstrap/44699
9549         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
9550         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
9551         a gimple reg, attach the original VDEF to the last store in the
9552         sequence.
9553
9554 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
9555
9556         PR other/44034
9557         * config/darwin.c (darwin_override_options): Use renamed
9558         targetm.asm_out.emit_unwind_label.
9559
9560 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
9561
9562         PR tree-optimization/39799
9563         * tree-inline.c (remap_ssa_name): Initialize variable only if
9564         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
9565
9566 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
9567
9568         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
9569
9570 2010-06-30  Richard Guenther  <rguenther@suse.de>
9571
9572         PR target/44722
9573         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
9574         against oscillation with reverse peephole2.
9575
9576 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
9577
9578         PR target/44721
9579         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
9580         Fix last commit.
9581
9582 2010-06-30  Nick Clifton  <nickc@redhat.com>
9583
9584         * config/rx/rx-modes.def: New file.
9585         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
9586         (CC_REGNUM): Define.
9587         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
9588         register.
9589         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
9590         (SELECT_CC_MODE): Define.
9591         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
9592         (reg:CC CC_REG) instead of (cc0).
9593         (attr "cc"): Delete.
9594         (cbranchsi4): Do not split compare and branch here. Instead move
9595         it to...
9596         (cbranchsi4_<code>): ... here.  New patterns.
9597         (cmpsi): Call rx-compare_redundant to find out if it is necessary
9598         to emit the compare instruction.
9599         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
9600         cc_status flags.
9601         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
9602         FIRST_PSEUDO_REGNUM.
9603         (rx_expand_prologue, rx_expand_epilogue): Likewise.
9604         (rx_notice_update_cc): Delete.
9605         (rx_cc_modes_compatible): New function.
9606         (flags_needed_for_conditional): New function.
9607         (flags_from_mode): New function.
9608         (rx_compare_redundant): New function - scans backwards through
9609         insn list to find out if condition flags are already set correctly.
9610         (TARGET_CC_MODES_COMPATIBLE): Define.
9611         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
9612
9613         * config/rx/rx.h (BRANCH_COST): Define.
9614         (REGISTER_MOVE_COST): Define.
9615         * config/rx/predicates (rx_source_operand): Allow all constant types.
9616         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
9617         (tstsi4): New pattern.
9618         * config/rx/rx.c (rx_memory_move_cost): Define.
9619         (TARGET_MEMORY_MOVE_COST): Define.
9620
9621 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9622
9623         * tree.h (block_may_fallthru): Declare here.
9624         * tree-flow.h (block_may_fallthru): Do not declare here.
9625         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
9626         bitmap.h
9627         * Makefile.in (c-typeck.o): Update dependencies.
9628
9629 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
9630
9631         PR debug/44694
9632         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
9633         * cselib.c (cfa_base_preserved_regno): New static variable.
9634         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
9635         of REGNO (cfa_base_preserved_val->locs->loc).
9636         (cselib_preserve_cfa_base_value): Add regno argument, set
9637         cfa_base_preserved_regno to it.
9638         (cselib_invalidate_regno): Allow removal of registers other than
9639         cfa_base_preserved_regno from cfa_base_preserved_val.
9640         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
9641         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
9642         of MEM addresses, if not on LHS.
9643         (reverse_op): Don't add reverse ops for cfa_base_rtx.
9644         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
9645
9646 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
9647
9648         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
9649         static variables.
9650         (peep2_buf_position): New static function.
9651         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
9652         peephole2_optimize): Use it.
9653         (peep2_attempt, peep2_update_life): New static functions, broken out
9654         of peephole2_optimize.
9655         (peep2_fill_buffer): New static function.
9656         (peephole2_optimize): Change the main loop to try to fill the buffer
9657         with the maximum number of insns before matching them against
9658         peepholes.  Use a forward scan.  Remove special case for targets with
9659         conditional execution.
9660         * genrecog.c (change_state): Delete dead code.
9661         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
9662         Rewrite so as not to expect the second insn to have had a peephole
9663         applied yet.
9664
9665 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9666
9667         * genhooks.c (emit_findices): Cast field precision to int.
9668         (emit_documentation): Likewise.
9669
9670 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
9671
9672         PR tree-optimization/43801
9673         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
9674         if old_decl was DECL_ONE_ONLY.
9675
9676         PR debug/44668
9677         * dwarf2out.c (add_accessibility_attribute): New function.
9678         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
9679         instead of adding DW_AT_accessibility manually.
9680         (gen_enumeration_type_die, gen_struct_or_union_type_die,
9681         gen_typedef_die): Use it.
9682
9683 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9684
9685         * vmsdbgout.c (full_name): Just output the file name if not native.
9686
9687 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9688
9689         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
9690         (funcnam_table): New static table.
9691         (funcnum_table): New static table.
9692         (write_rtnbeg): Write value saved in funcnum_table.
9693         (write_rtnend): Write value saved in funcnum_table.
9694         (vmsdbgout_begin_function): Save current function info in
9695         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
9696         (vmsdbgout_finish): Iterate over funcnum_table.
9697
9698 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9699
9700         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
9701         (vmsdbgout_type_decl): Declare
9702         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
9703         (FUNC_EPILOGUE_LABEL): New macro
9704         (vmsdbgout_begin_epilogue): New function.
9705         (vmsdbgout_type_decl): New function.
9706
9707 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9708
9709         * vmsdbg.h: Update copyright.
9710
9711 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9712
9713         * vmsdbg.h (DST_K_TBG): New DST constant.
9714         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
9715         (write_modbeg): Cast module_language to avoid warning.
9716         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
9717
9718 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
9719
9720         PR other/44034
9721         * target.def, doc/tm.texi.in, genhooks.c: New files.
9722         * target.h: Instead of defining individual hook members,
9723         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
9724         include target.def.
9725         * target-def.h: Instead of defining individual hook initializers,
9726         include target-hooks-def.h.
9727         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
9728         targetm.live_on_entry -> targetm.extra_live_on_entry
9729         targetm.sched.md_finish ->targetm.sched.finish
9730         targetm.sched.md_init -> targetm.sched.init
9731         targetm.sched.md_init_global -> targetm.sched.init_global
9732         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
9733         targetm.asm_out.except_table_label ->
9734           targetm.asm_out.emit_except_table_label
9735         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
9736         targetm.target_help -> targetm.help
9737         targetm.vectorize.builtin_support_vector_misalignment ->
9738           targetm.vectorize.support_vector_misalignment
9739         targetm.file_start_app_off -> targetm.asm_file_start_app_off
9740         targetm.file_start_file_directive ->
9741          targetm.asm_file_start_file_directive
9742         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
9743         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
9744         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
9745         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
9746           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
9747         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
9748           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
9749         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
9750         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
9751         * Makefile.in (TARGET_H): Depend on target.def.
9752         (TARGET_DEF_H): Depend on target-hooks-def.h.
9753         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
9754         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
9755         * doc/tm.texi: Regenerate.
9756
9757         * Makefile.in (s-tm-texi): Remove stray tab / rule.
9758
9759         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
9760         (targetm.sched.init): Likewise.
9761
9762 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9763
9764         PR bootstrap/44713
9765         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
9766         (function_arg_advance_32): Const-ify TYPE parameter.
9767         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
9768         (ix86_function_arg_advance): Change type of NAMED to bool.
9769         (function_arg_32): Const-ify CUM and TYPE parameters.
9770         (function_arg_64): Likewise.  Change type of NAMED to bool.
9771         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
9772         to bool.
9773         (ix86_function_arg): Change type of NAMED to bool.
9774         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
9775         last argument as a bool.
9776
9777 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
9778
9779         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
9780         (OVERRIDE_OPTIONS): Add note of obsolescence.
9781         Replace references with references to TARGET_OPTION_OVERRIDE.
9782         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
9783          the macro).
9784         * targhooks.c (default_target_option_override): New function.
9785         * targhooks.h (default_target_option_override): Declare.
9786         * target.h (struct gcc_target): Add override member to
9787         target_option member.
9788         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
9789         targetm.target_option.override call.
9790         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
9791         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
9792
9793 2010-06-29  Jan Hubicka  <jh@suse.cz>
9794
9795         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
9796
9797 2010-06-29  Jan Hubicka  <jh@suse.cz>
9798
9799         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
9800         unreachable.
9801         (rebuild_frequencies): New function.
9802         * predict.h (rebuild_frequencies): Declare.
9803         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
9804         entry block and edge reaching new_entry.
9805         (tree_function_versioning): When doing partial cloning, rebuild
9806         frequencies when done.
9807         * passes.c (execute_function_todo): Use rebild_frequencies.
9808
9809 2010-06-29  Richard Guenther  <rguenther@suse.de>
9810
9811         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
9812         * tree-flow.h (enum noalias_state): Remove.
9813         (struct var_ann_d): Remove noalias_state member.
9814
9815 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
9816
9817         PR target/43902
9818         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
9819         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
9820         (maddhidi4): Likewise.
9821
9822         Revert parts of the change for PR25130.
9823         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
9824         MEM_ALIAS_SET.
9825
9826 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9827
9828         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
9829         targetm.calls.function_incoming_arg, and
9830         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
9831         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
9832         * target.h (struct gcc_target): Add function_arg_advance,
9833         function_arg, and function_incoming_arg fields.
9834         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
9835         (TARGET_FUNCTION_INCOMING_ARG): Define.
9836         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
9837         and TARGET_FUNCTION_INCOMING_ARG.
9838         * targhooks.h (default_function_arg_advance): Declare.
9839         (default_function_arg, default_function_incoming_arg): Declare.
9840         * targhooks.c (default_function_arg_advance): New function.
9841         (default_function_arg, default_function_incoming_arg): New function.
9842         * config/i386/i386.c (function_arg_advance): Rename to...
9843         (ix86_function_arg_advance): ...this.  Make static.
9844         (function_arg): Rename to...
9845         (ix86_function_arg): ...this.  Make static.
9846         (TARGET_FUNCTION_ARG_ADVANCE): Define.
9847         (TARGET_FUNCTION_ARG): Define.
9848         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
9849         (FUNCTION_ARG): Delete.
9850         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
9851         (function_arg): Delete prototype.
9852
9853 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9854
9855         * reginfo.c (init_reg_sets_1): Adjust comments.
9856         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
9857         * calls.c (prepare_call_address): Likewise.
9858         (emit_call_1): Use targetm.calls.return_pops_args.
9859         (expand_call): Likewise.
9860         * function.c (assign_parms): Likewise.
9861         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
9862         * target.h (struct gcc_target) [struct calls]: Add
9863         return_pops_args field.
9864         * targhooks.h (default_return_pops_args): Declare.
9865         * targhooks.c (default_return_pops_args): Define.
9866         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
9867         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
9868         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
9869         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
9870         documentation.
9871         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
9872         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
9873         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
9874         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
9875         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
9876         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
9877         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
9878         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
9879         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
9880         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
9881         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
9882         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
9883         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
9884         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
9885         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
9886         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
9887         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
9888         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
9889         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
9890         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
9891         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
9892         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
9893         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
9894         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
9895         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
9896         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
9897         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
9898         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
9899         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
9900         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
9901         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
9902         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
9903         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
9904         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
9905         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
9906         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
9907         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
9908         * config/i386/i386.c (ix86_return_pops_args): Make static.
9909         Constify arguments.
9910         (TARGET_RETURN_POPS_ARGS): Define.
9911         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
9912         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
9913         (TARGET_RETURN_POPS_ARGS): Define.
9914         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
9915         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
9916         (TARGET_RETURN_POPS_ARGS): Define.
9917
9918 2010-06-29  Richard Guenther  <rguenther@suse.de>
9919
9920         PR middle-end/44667
9921         * tree-inline.c (initialize_inlined_parameters): Make sure
9922         to remap the inlined parameter variable substitutions types.
9923
9924 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
9925
9926         PR rtl-optimization/44659
9927         * combine.c (make_compound_operation) <SUBREG>: Do not return the
9928         result of force_to_mode if it partially re-expanded the compound.
9929
9930 2010-06-28  Jan Hubicka  <jh@suse.cz>
9931
9932         PR middle-end/44671
9933         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
9934         RESULT_DECL.
9935
9936 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
9937
9938         * double-int.h (force_fit_type_double): Remove declaration.
9939         * double-int.c (force_fit_type_double): Move to tree.c.
9940         * tree.h (force_fit_type_double): Declare.
9941         * tree.h (force_fit_type_double): Moved from double-int.c. Use
9942         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
9943         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
9944         * convert.c (convert_to_pointer): Adjust call to
9945         force_fit_type_double.
9946         * tree-vrp.c (extract_range_from_assert,
9947         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
9948         * fold-const.c: Update comment.
9949         (int_const_binop, fold_convert_const_int_from_int,
9950         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
9951         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
9952         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
9953         round_up_loc): Adjust call to force_fit_type_double.
9954
9955 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9956
9957         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
9958
9959 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9960
9961         * tree-sra.c (convert_callers): New parameter, change fndecls of
9962         recursive calls.
9963         (modify_function): Pass the old decl to convert_callers.
9964
9965 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9966
9967         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
9968         ipa_check_create_node_params and ipa_initialize_node_params with
9969         checking asserts they are not necessary.
9970
9971 2010-06-28  Jan Hubicka  <jh@suse.cz>
9972
9973         PR tree-optimization/44687
9974         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
9975
9976 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9977
9978         PR c++/44535
9979         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
9980         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
9981         instead of BINFO_BASE_BINFO.
9982
9983 2010-06-28  Michael Matz  <matz@suse.de>
9984
9985         PR middle-end/44592
9986         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
9987         proper VDEF chain for intermediate stores in the sequence.
9988
9989 2010-06-28  Jan Hubicka  <jh@suse.cz>
9990
9991         PR tree-optimization/44357
9992         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
9993         uninlinable functions.
9994
9995 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9996
9997         * config.gcc (powerpc*-*-*): Handle titan.
9998         * config/rs6000/rs6000.c (titan_cost): New costs.
9999         (rs6000_override_options): Add "titan" to processor_target_table.
10000         Add Titan to branch alignment logic.
10001         Correctly set rs6000_cost for titan.
10002         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
10003         * config/rs6000/titan.md: New file.
10004         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
10005
10006 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
10007
10008         * tree-browser.c (TB_history_stack): Convert to a VEC.
10009         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
10010         (TB_history_prev): Likewise.
10011
10012 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
10013
10014         * vec.h (vec_heap_free): Add parentheses around free.
10015
10016 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
10017
10018         * system.h: Poison GCC_EXCEPT_H for front-end files.
10019
10020         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
10021         langhook.
10022         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
10023         Define to NULL by default.
10024         * except.h: Define GCC_EXCEPT_H.
10025         (doing_eh): Remove prototype.
10026         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
10027         (lang_protect_cleanup_actions): Remove.
10028         * except.c (lang_protect_cleanup_actions): Remove.
10029         (doing_eh): Remove.
10030         (gen_eh_region): Don't check doing_eh here.
10031         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
10032         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
10033         instead of lang_protect_cleanup_actions.
10034         * omp-low.c (maybe_catch_exception): Likewise.
10035         * Makefile.in: Update dependencies.
10036
10037 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
10038
10039         * cgraph.h (struct varpool_node): new used_from_object_file flag.
10040         (struct cgraph_local_info): new used_from_object_file flag.
10041         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
10042         (cgraph_clone_node): initialize used_from_object_file.
10043         (cgraph_create_virtual_clone): initialize used_from_object_file.
10044         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
10045         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
10046         when compiling with -fwhole-program.
10047         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
10048         internal resolver.
10049         * ipa.c (function_and_variable_visibility): Set externally_visible
10050         flag of varpool_node if used_from_object_file flag is set.
10051         (cgraph_externally_visible_p): check used_from_object_file flag.
10052         * doc/invoke.texi (-fwhole-program option): Change description of
10053         externally_visible attribute accordingly.
10054         * doc/extend.texi (externally_visible): Ditto.
10055
10056 2010-06-27  Jan Hubicka  <jh@suse.cz>
10057
10058         * params.def (max-inline-insns-auto): Default to 40.
10059         * doc/invoke.texi (max-inline-insns-auto): Document the change.
10060
10061 2010-06-27  Jan Hubicka  <jh@suse.cz>
10062
10063         PR middle-end/44671
10064         PR middle-end/44686
10065         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
10066         signature change.
10067         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
10068         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
10069
10070 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
10071
10072         * target.h (struct gcc_target): Add register_move_cost field.
10073         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
10074         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
10075         * targhooks.c (default_register_move_cost): New function.
10076         * targhooks.h (default_register_move_cost): Declare function.
10077         * defaults.h (REGISTER_MOVE_COST): Delete.
10078         * ira-int.h (ira_register_move_cost): Update comment.
10079         * ira.c (ira_register_move_cost): Update comment.
10080         * reload.h (register_move_cost): Declare.
10081         * reginfo.c (register_move_cost): New function.
10082         (move_cost): Update comment.
10083         (init_move_cost, memory_move_secondary_cost): Replace
10084         REGISTER_MOVE_COST with register_move_cost.
10085         * postreload.c (reload_cse_simplify_set): (Ditto.).
10086         * reload.c (find_valid_class, find_reloads): (Ditto.).
10087         * reload1.c (choose_reload_regs): (Ditto.).
10088         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
10089         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
10090         * doc/md.texi (can_create_pseudo_p): Update documentation.
10091
10092         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
10093         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
10094         * config/i386/i386.h (ix86_memory_move_cost): Make static.
10095         (TARGET_MEMORY_MOVE_COST): Define.
10096
10097         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
10098         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
10099         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
10100         (TARGET_MEMORY_MOVE_COST): Define.
10101
10102 2010-06-27  Richard Guenther  <rguenther@suse.de>
10103
10104         PR tree-optimization/44683
10105         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
10106         false edge from the inverted condition.
10107
10108 2010-06-27  Richard Guenther  <rguenther@suse.de>
10109
10110         PR middle-end/44684
10111         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
10112         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
10113         for register LHS.  Or non-store assignments.
10114
10115 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
10116
10117         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
10118         (sparc_emit_set_const64): Likewise.  Remove disabled code.
10119         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
10120         (sparc_emit_set_const64): Likewise.
10121
10122 2010-06-26  Catherine Moore  <clm@codesourcery.com>
10123
10124         * config/mips/mips.md (alu_type): New attribute.
10125         (type): Infer type from alu_type.
10126         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
10127         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
10128         *subsi3_extended, negsi2, negdi2, *low<mode>,
10129         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
10130         xor<mode>3, *nor<mode>3,
10131         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
10132         *zero_extendhi_truncqi):  Set alu_type instead of type.
10133
10134 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
10135
10136         * config/alpha/alpha.c (alpha_need_linkage): Adjust
10137         splay_tree_new_ggc call.
10138         (alpha_use_linkage): Likewise.
10139
10140 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
10141
10142         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
10143         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
10144         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
10145         (static_specs): Remove switches_need_spaces.
10146         (process_command, do_self_spec): Hardcode handling "-o" instead of
10147         checking switches_need_spaces.
10148         * system.h (SWITCHES_NEED_SPACES): Poison.
10149
10150 2010-06-26  Richard Guenther  <rguenther@suse.de>
10151
10152         PR tree-optimization/44393
10153         * tree-loop-distribution.c (generate_loops_for_partition): Fix
10154         stmt removal and VOP renaming.
10155         (generate_memset_zero): Remove redundant stmt updating.
10156         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
10157         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
10158
10159 2010-06-26  Jan Hubicka  <jh@suse.cz>
10160
10161         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
10162         edges comming from header are equivalent.
10163         (visit_bb): Handle PHIs correctly.
10164         * tree-inline.c (copy_phis_for_bb): Be able to copy
10165         PHI from entry edge.
10166         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
10167
10168 2010-06-26  Richard Guenther  <rguenther@suse.de>
10169
10170         PR middle-end/44674
10171         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
10172         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
10173
10174 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
10175
10176         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
10177         add_infile, alloc_switch): New.
10178         (process_command): Remove variable lang_n_infiles.  Process
10179         options in a single pass.  Use new functions for allocating
10180         infiles and switches arrays.  Properly skip operands of
10181         -Xpreprocessor and -Xassembler.
10182
10183 2010-06-26  Jan Hubicka  <jh@suse.cz>
10184
10185         PR middle-end/44671
10186         * cgraphunit.c (cgraph_function_versioning): Remove wrong
10187         cgraph_make_decl_local call; fix typo copying RTL data.
10188
10189 2010-06-25  DJ Delorie  <dj@redhat.com>
10190
10191         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
10192         (m32c_output_aligned_common): Likewise.
10193         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
10194         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
10195         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
10196         (m32c_register_pragmas): Register it.
10197         * config/m32c/m32c.c (m32c_get_pragma_address): New.
10198         (m32c_insert_attributes): Set #pragma address decls volatile.
10199         (pragma_entry_eq): New.
10200         (pragma_entry_hash): New.
10201         (m32c_note_pragma_address): New.
10202         (m32c_get_pragma_address): New.
10203         (m32c_output_aligned_common): New.
10204         * doc/extend.texi: Document the new pragma.
10205
10206         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
10207         also.
10208         * config/m32c/predicates.md (m32c_any_operand): Check the code
10209         instead of memory_operand so as to allow matching volatile MEMs.
10210         (m32c_nonimmediate_operand): Likewise.
10211         (mra_operand): Allow volatiles.
10212
10213 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
10214
10215         PR debug/44610
10216         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
10217         address if the offset is unknown.
10218
10219 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
10220
10221         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
10222         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
10223         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
10224         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
10225         to ia64_start_function. Invoke it.
10226         * config/ia64/ia64.c (ia64_start_function): Call new function
10227         dwarf2out_vms_debug_main_pointer.
10228
10229 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10230
10231         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
10232         statements computing the true predicate.
10233
10234 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10235
10236         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
10237         to boolean_true_node.
10238         (reset_bb_predicate): New.
10239         (predicate_bbs): Call reset_bb_predicate.
10240
10241 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10242
10243         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
10244         (tree_if_conversion): Returns true when something has been changed.
10245         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
10246         changed something.
10247
10248 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10249
10250         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
10251         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
10252         * tree-if-conv.c: Include dbgcnt.h.
10253         (tree_if_conversion): Use if_conversion_tree to count the number of
10254         if-convertible loops.
10255
10256 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
10257
10258         * common.opt (fprefetch-loop-arrays): Re-define
10259         -fprefetch-loop-arrays as a tri-state option with the initial
10260         value of -1.
10261         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
10262         pass only when flag_prefetch_loop_arrays > 0.
10263         * toplev.c (process_options): Note that, with tri-states,
10264         flag_prefetch_loop_arrays>0 means prefetching is enabled.
10265         * config/i386/i386.c (override_options): Enable prefetching at -O3
10266         for a set of CPUs that sw prefetching is helpful.
10267         (software_prefetching_beneficial_p): New.  Return TRUE if software
10268         prefetching is beneficial for the given CPU.
10269
10270 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
10271
10272         PR rtl-optimization/44326
10273         * implicit-zee.c (find_removable_zero_extends): Replace
10274         INSN_P with NONDEBUG_INSN_P.
10275
10276 2010-06-25  Martin Jambor  <mjambor@suse.cz>
10277
10278         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
10279         (struct ipa_node_params): Removed the modification_analysis_done flag.
10280         (ipa_is_param_modified): Removed.
10281         (ipa_analyze_node): Declare.
10282         (ipa_compute_jump_functions): Remove declaration.
10283         (ipa_count_arguments): Likewise.
10284         (ipa_detect_param_modifications): Likewise.
10285         (ipa_analyze_params_uses): Likewise.
10286         * ipa-prop.c (struct param_analysis_info): New type.
10287         (visit_store_addr_for_mod_analysis): Removed.
10288         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
10289         moved down in the file.
10290         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
10291         (ipa_count_arguments): Made static.
10292         (mark_modified): New function.
10293         (is_parm_modified_before_call): New function.
10294         (compute_pass_through_member_ptrs): New parameter parms_info, call
10295         is_parm_modified_before_call instead of ipa_is_param_modified.
10296         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
10297         it to compute_pass_through_member_ptrs.
10298         (ipa_compute_jump_functions): New parameter parms_info, pass it to
10299         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
10300         on the callee if it is analyzed.  Made static.
10301         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
10302         is_parm_modified_before_call instead of ipa_is_param_modified.
10303         (ipa_analyze_call_uses): New parameter parms_info, pass it to
10304         ipa_analyze_indirect_call_uses.
10305         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
10306         ipa_analyze_call_uses.
10307         (ipa_analyze_params_uses): New parameter parms_info, pass it to
10308         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
10309         (ipa_analyze_node): New function.
10310         (ipa_print_node_params): Do not dump the modified flag.
10311         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
10312         it.  Do not stream the modified parameter flag.
10313         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
10314         it.  Do not stream the modified parameter flag.
10315         * ipa-cp.c (ipcp_analyze_node): Removed.
10316         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
10317         with only a call to ipa_analyze_node.
10318         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
10319         node with only a call to ipa_analyze_node.
10320
10321 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10322
10323         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
10324
10325 2010-06-25  Jan Hubicka  <jh@suse.cz>
10326
10327         * tree-pass.h (pass_split_functions): Declare.
10328         * opts.c (decode_options): Enable function splitting at -O2
10329         * timevar.def (TV_IPA_FNSPLIT): New macro.
10330         * ipa-split.c: New file.
10331         * common.opt (-fpartial-inlining): New flag.
10332         * Makefile.in (ipa-split.o): New object file.
10333         * passes.c (init_optimization_passes): Add ipa-split.
10334         * params.def (partial-inlining-entry-probability): New parameters.
10335         * doc/invoke.texi (-fpartial-inlining): New.
10336
10337 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10338
10339         PR 44665
10340         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
10341         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
10342         (gimplify_expr): Likewise.
10343
10344 2010-06-25  Martin Jambor  <mjambor@suse.cz>
10345
10346         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
10347         statements instead of bailing out on them.
10348         (ipa_analyze_indirect_call_uses): Do not require that loads from the
10349         parameter are in the same BB as the condition.  Update comments.
10350
10351 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
10352
10353         PR middle-end/43866
10354         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
10355         true or always false, return NULL_TREE.
10356         (tree_unswitch_single_loop): Optimize conditions even when reaching
10357         max-unswitch-level parameter.  If num > 0, optimize first all conditions
10358         using entry checks, then do still reachable block discovery and consider
10359         only conditions in still reachable basic blocks in the loop.
10360
10361         PR tree-optimization/44539
10362         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
10363         the call doesn't have LHS, but has VDEF.
10364
10365 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
10366
10367         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
10368         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
10369         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
10370         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
10371         * system.h (MODIFY_TARGET_NAME): Poison.
10372
10373 2010-06-25  Alan Modra  <amodra@gmail.com>
10374
10375         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
10376         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
10377         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
10378         CMODEL_LARGE as default.
10379         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
10380         (offsettable_ok_by_alignment): Delete.
10381         (rs6000_emit_move): Remove mcmodel=medium optimization.
10382
10383 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
10384
10385         With large parts from Jim Wilson:
10386         PR target/43902
10387         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
10388         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
10389         * optabs.c (optab_for_tree_code): Likewise.
10390         (expand_widen_pattern_expr): Likewise.
10391         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
10392         out of execute_optimize_widening_mul.
10393         (convert_plusminus_to_widen): New function.
10394         (execute_optimize_widening_mul): Use the two new functions.
10395         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
10396         Remove code to generate widening multiply-accumulate.  Add support
10397         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
10398         * gimple-pretty-print.c (dump_ternary_rhs): New function.
10399         (dump_gimple_assign): Call it when appropriate.
10400         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
10401         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
10402         (expand_gimple_stmt_1): Likewise.
10403         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
10404         WIDEN_MULT_MINUS_EXPR.
10405         * tree-ssa-operands.c (get_expr_operands): Likewise.
10406         * tree-inline.c (estimate_operator_cost): Likewise.
10407         * gimple.c (extract_ops_from_tree_1): Renamed from
10408         extract_ops_from_tree.  Add new arg for a third operand; fill it.
10409         (gimple_build_assign_stat): Support operations with three operands.
10410         (gimple_build_assign_with_ops_stat): Likewise.
10411         (gimple_assign_set_rhs_from_tree): Likewise.
10412         (gimple_assign_set_rhs_with_ops_1): Renamed from
10413         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
10414         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
10415         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
10416         WIDEN_MULT_MINUS_EXPR.
10417         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
10418         (extract_ops_from_tree_1): Adjust declaration.
10419         (gimple_assign_set_rhs_with_ops_1): Likewise.
10420         (gimple_build_assign_with_ops): Pass NULL for last operand.
10421         (gimple_build_assign_with_ops3): New macro.
10422         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
10423         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
10424         functions.
10425         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
10426         (verify_gimple_assign): Call it.
10427         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
10428         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
10429         functions for dealing with three-operand statements.
10430         * tree.c (commutative_ternary_tree_code): New function.
10431         * tree.h (commutative_ternary_tree_code): Declare it.
10432         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
10433         ternary statements.
10434         (gimple_assign_nonzero_warnv_p): Likewise.
10435         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
10436         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
10437         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
10438         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
10439         (struct hashtable_expr): New member ternary in the union.
10440         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
10441         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
10442         (iterative_hash_hashable_expr): Likewise.
10443         (print_expr_hash_elt): Handle EXPR_TERNARY.
10444         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
10445         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
10446         statements.  Handle GIMPLE_TERNARY_RHS.
10447
10448 2010-06-25  Jan Hubicka  <jh@suse.cz>
10449
10450         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
10451
10452 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
10453
10454         PR c/44517
10455         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
10456         parameters are not good.
10457         (c_parser_parameter_declaration): Error unknown type name if the type
10458         name can't start declaration specifiers.
10459
10460 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
10461
10462         * gcc.c (translate_options): Don't mention +e in comment.
10463         (process_command): Don't handle +e specially.
10464
10465 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
10466
10467         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
10468
10469         * ira-build.c (merge_hard_reg_conflicts): New function.
10470         (create_cap_allocno, copy_info_to_removed_store_destinations,
10471         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
10472         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
10473         (remove_unnecessary_allocnos, remove_low_level_allocnos)
10474         copy_nifo_to_removed_store_destination): Use them.
10475         * ira-lives.c (make_hard_regno_born): New function, split out of
10476         make_regno_born.
10477         (make_allocno_born): Likewise.
10478         (make_hard_regno_dead): New function, split out of make_regno_dead.
10479         (make_allocno_dead): Likewise.
10480         (inc_register_pressure): New function, split out of set_allocno_live.
10481         (dec_register_pressure): New function, split out of clear_allocno_live.
10482         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
10483         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
10484         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
10485         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
10486         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
10487         mark_pseudo_regno_live.
10488         (process_bb_node_lives): Use mark_pseudo_regno_live,
10489         make_hard_regno_born and make_allocno_dead.
10490         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
10491         set_allocno_live, clear_allocno_live): Delete functions.
10492
10493         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
10494         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
10495         functions.
10496         (ira_flattening): Use ira_parent_allocno.
10497         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
10498         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
10499
10500         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
10501         statement.
10502
10503         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
10504         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
10505         minmax_set_iter_cond, minmax_set_iter_next,
10506         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
10507         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
10508         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
10509         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
10510         uses changed.
10511
10512         * ira-int.h (struct live_range, live_range_t): Renamed from struct
10513         ira_allocno_live_range and allocno_live_range_t; all uses changed.
10514         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
10515         All uses changed.
10516
10517 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
10518
10519         * thumb2.md (thumb2_tlobits_cbranch): Delete.
10520         (peephole2 to convert zero_extract/compare of single bit to
10521          lshift/compare): New.
10522
10523 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
10524
10525         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
10526         recursive call and call to 'int_const_binop'.
10527         (build_range_check, fold_cond_expr_with_comparison, unextend,
10528         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
10529         multiple_of_p): Adjust call to const_binop.
10530
10531 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
10532
10533         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
10534         determine size of XFmode operand.
10535         (XFmode extended DFmode push splitter): Ditto.
10536         (XFmode extended SFmode push splitter): Ditto.
10537
10538 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10539
10540         PR target/44588
10541         * config/i386/i386.md (extract_code): New.
10542         (<u>divmodqi4): Likewise.
10543         (divmodhiqi3): Likewise.
10544         (udivmodhiqi3): Likewise.
10545         (<u>divqi3): Remvoved.
10546
10547 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
10548
10549         PR middle-end/44492
10550         * recog.h (struct recog_data): Add is_asm field.
10551         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
10552         present in constraints of inline-asm operand and memory operand
10553         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
10554         (extract_insn): Initialize recog_data.is_asm.
10555         * doc/md.texi (Constraints): Document operand side-effect rules.
10556
10557 2010-06-24  Andi Kleen  <ak@linux.intel.com>
10558
10559         * c-parser.c (c_parser_conditional_expression): Call
10560         warn_for_omitted_condop.
10561         * doc/invoke.texi: Document omitted condop warning.
10562
10563 2010-06-24  Nick Clifton<nickc@redhat.com>
10564
10565         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
10566         insn in the sequence is a jump insn before setting its label.
10567
10568 2010-06-24  Alan Modra  <amodra@gmail.com>
10569
10570         * collect2.c (main): Match exactly --version and --help.
10571
10572 2010-06-24  DJ Delorie  <dj@redhat.com>
10573
10574         * config/m32c/m32c-pragma.c: Don't include rtl.h.
10575
10576 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
10577
10578         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
10579         using X87MODEF mode iterator.
10580         (pushsf splitter): Macroize splitter using P mode iterator.
10581         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
10582         mode iterator.
10583
10584         (*movxf_internal): Rename from *movxf_integer.
10585         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
10586         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
10587         (*movdf_internal): Rename from *movdf_integer.
10588         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
10589         (*movsf_internal): Rename from *movdf_1.
10590
10591 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
10592
10593         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
10594         (const_gimple_seq_node): Removed typedefs.
10595
10596         * gimple.h (gimple_seq_node_d, gimple_seq_node)
10597         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
10598
10599 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
10600
10601         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
10602         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
10603         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
10604         and CODE_FOR_vec_extract_lo_v4df.
10605
10606         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
10607         Changed to define_insn_and_split.
10608         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
10609         (vec_extract_lo_v16hi): Likewise.
10610         (vec_extract_lo_v32qi): Likewise.
10611         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
10612         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
10613
10614 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
10615
10616         PR target/44640
10617         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
10618         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
10619         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
10620         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
10621         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
10622
10623         PR target/44640
10624         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
10625
10626         PR other/44644
10627         * df-core.c (struct df): Rename to df_d.
10628         * df.h (struct df): Likewise.
10629         * dse.h (struct df): Remove forward declaration.
10630         * recog.h (struct insn_data): Rename to:
10631         (struct_insn_data_d).  Adjusted all users.
10632
10633 2010-06-23  Arnaud Charlet  <charlet@adacore.com
10634
10635         PR ada/22220
10636         * doc/install.texi: Update requirements to build GNAT.
10637
10638 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
10639
10640         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
10641         enum type.
10642         (m68k_sched_attr_opx_type): Remove unreachable return.
10643         (m68k_sched_attr_opy_type): Likewise.
10644         (m68k_sched_attr_size): Likewise.
10645         (sched_get_opxy_mem_type): Likewise.
10646         (m68k_sched_attr_op_mem): Likewise.
10647
10648 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
10649
10650         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
10651         new statement and adjust VDEF only if necessary.  Remove superfluous
10652         call to maybe_clean_or_replace_eh_stmt.
10653         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
10654         copy the flags.
10655         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
10656         * tree-inline.c (copy_bb): ...and not there.
10657
10658 2010-06-22  Cary Coutant  <ccoutant@google.com>
10659
10660         * dwarf2out.c (is_nested_in_subprogram): New function.
10661         (should_move_die_to_comdat): Use it.
10662         (copy_ancestor_tree): Don't mark DIEs here.
10663         (copy_decls_walk): Start walk from root of newly-added tree;
10664         mark DIEs here instead.
10665
10666 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10667
10668         * config/i386/i386.md (unit): Also check sseishft1.
10669
10670 2010-06-22  Jan Hubicka  <jh@suse.cz>
10671
10672         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
10673         enabled.
10674
10675 2010-06-22  Jan Hubicka  <jh@suse.cz>
10676
10677         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
10678         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
10679         Return true if something changed.
10680         * df.h (df_confluence_function_n): Return bool.
10681         * df-core.c (df_worklist_propagate_forward,
10682         df_worklist_propagate_backward): Track changes and ages.
10683         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
10684         track ages.
10685         * dse.c (dse_confluence_n): Return always true.
10686
10687 2010-06-22  Jan Hubicka  <jh@suse.cz>
10688
10689         * bitmap.c (bitmap_clear_bit): Micro optimize.
10690
10691 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
10692
10693         * config/i386/i386.md (SWI1248x): New mode iterator.
10694         (SWI48x): Ditto.
10695         (SWI12): Ditto.
10696         (SWI24): Ditto.
10697
10698         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
10699         SWI1248x mode iterator.
10700         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
10701         using SWI124 mode iterator.
10702         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
10703         mode iterator.
10704         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
10705         *pushdi2_prologue_rex64 using P mode iterator.
10706         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
10707         using SWI48 mode iterator.
10708         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
10709         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
10710         using SWI1248x mode iterator.
10711         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
10712         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
10713         SWI48 mode iterator.
10714         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
10715         iterator.
10716         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
10717         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
10718         SWI12 mode iterator.
10719         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
10720         SWI12 mode iterator.
10721         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
10722         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
10723         SWI24 mode iterator.
10724         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
10725         SWI48 mode iterator.
10726         (mov<mode>_insn_1): New expander.
10727         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
10728         using SWI48x mode iterator.
10729
10730         (*movoi_internal_avx): Rename from *movoi_internal.
10731         (*movti_internal_rex64): Rename from *movti_rex64.
10732         (*movti_internal_sse): Rename from *movti_sse.
10733         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
10734         (*movdi_internal): Rename from *movdi_2.
10735         (*movsi_internal): Rename from *movsi_1.
10736         (*movhi_internal): Rename from *movhi_1.
10737         (*movqi_internal): Rename from *movqi_1.
10738
10739         (insv): Update the call to gen_movsi_insv_1 for rename.
10740         * config/i386/i386.c (promote_duplicated_reg): Ditto.
10741
10742 2010-06-22  Jan Hubicka  <jh@suse.cz>
10743
10744         * passes.c (execute_function_todo): Move call of statistics_fini_pass
10745         to ...
10746         (execute_todo) ... this one.
10747
10748 2010-06-22  Alan Modra  <amodra@gmail.com>
10749
10750         PR target/44364
10751         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10752         * caller-save.c (insert_restore, insert_save): Use non-validate
10753         form of adjust_address.
10754
10755 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10756
10757         PR target/39690
10758         * config/pa/pa.c (override_options): Disable
10759         -freorder-blocks-and-partition.
10760
10761 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
10762
10763         PR target/44615
10764         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
10765
10766         * config/i386/i386.md (type): Add sseishft1
10767
10768         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
10769         (ppro_insn_load): Likewise.
10770         (ppro_insn_store): Likewise.
10771         (ppro_insn_both): Likewise.
10772
10773         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
10774         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
10775         for type.
10776         (*vec_extractv2di_1_avx): Likewise.
10777         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
10778         type.  Remove atom_unit.
10779         (*vec_extractv2di_1_sse2): Likewise.
10780
10781 2010-06-21  DJ Delorie  <dj@redhat.com>
10782
10783         * diagnostic.h (diagnostic_classification_change_t): New.
10784         (diagnostic_context): Add history and push/pop list.
10785         (diagnostic_push_diagnostics): Declare.
10786         (diagnostic_pop_diagnostics): Declare.
10787         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
10788         from pragmas in a history chain instead of the global table.
10789         (diagnostic_push_diagnostics): New.
10790         (diagnostic_pop_diagnostics): New.
10791         (diagnostic_report_diagnostic): Scan history chain to find state
10792         of diagnostics as of the diagnostic location.
10793         * opts.c (set_option): Pass UNKNOWN_LOCATION to
10794         diagnostic_classify_diagnostic.
10795         (enable_warning_as_error): Likewise.
10796         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
10797         use in the history chain.
10798         * doc/extend.texi: Document pragma GCC diagnostic changes.
10799
10800 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
10801
10802         * dwarf2out.c (add_linkage_name): New function.  Don't add
10803         anything to DW_TAG_member DIEs.
10804         (add_name_and_src_coords_attributes): Use it.
10805         (gen_variable_die): Call it for C++ static data members if
10806         specification is DW_TAG_member.
10807
10808         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
10809         C++ char16_t and char32_t.
10810
10811         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
10812         * genattrtab.c: Include vecprim.h.
10813         (cached_attrs, cached_attr_count, attrs_seen_once,
10814         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
10815         attrs_cached_after): New variables.
10816         (find_attrs_to_cache): New function.
10817         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
10818         (write_test_expr): Add attrs_cached argument, return it too,
10819         attempt to cache non-const attributes used more than once in
10820         a single case handling.
10821         (write_attr_get): Use find_attrs_to_cache, for caching candidates
10822         emit cached_* variables.  Adjust write_attr_set callers.
10823         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
10824         to find attributes that should be cached in this block.  Adjust
10825         write_test_expr callers.
10826         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
10827         callers.
10828         (make_automaton_attrs): Adjust write_test_expr caller.
10829
10830         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
10831         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
10832         (make_automaton_attrs): If find_tune_attr returns non-NULL,
10833         write separate internal_dfa_insn_code_* and insn_default_latency_*
10834         functions for each attribute's value and emit init_sched_attrs
10835         function and function pointers.
10836         * genattr.c (const_attrs, reservations): New variables.
10837         (gen_attr): Add const attributes to const_attrs vector.
10838         (check_tune_attr, find_tune_attr): New functions.
10839         (main): Add reservations to reservations vector.  If find_tune_attr
10840         returns true, add prototype for init_sched_attrs and make
10841         internal_dfa_insn_code and insn_default_latency function pointers,
10842         otherwise define init_sched_attrs as dummy macro.
10843         * cfgexpand.c: Include insn-attr.h.
10844         (gimple_expand_cfg): Call init_sched_attrs.
10845
10846         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
10847
10848         PR target/44575
10849         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
10850         va_arg from a set of register save slots into a temporary,
10851         if the container is bigger than type size, do the copying
10852         using smaller mode or using memcpy.
10853
10854         PR bootstrap/44426
10855         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
10856         prototype.
10857         (sel_print_to_dot): Remove macro.
10858         (sel_print): Likewise.  New prototype.
10859         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
10860         (sel_print): New function.
10861
10862 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10863
10864         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
10865         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
10866
10867 2010-06-21  Nick Clifton  <nickc@redhat.com>
10868
10869         * config/rx/rx.h (PTRDIFF_TYPE): Define.
10870         (SMALL_REGISTER_CLASS): Define (to zero).
10871         (PRINT_OPERAND): Delete.
10872         (PRINT_OPERAND_ADDRESS): Delete.
10873         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
10874         (rx_print_operand_address): Delete prototype.
10875         * config/rx/rx.c (rx_print_operand): Make static.
10876         Allow %H and %L to handle CONST_DOUBLEs.
10877         (rx_print_operand_address): Make static.
10878         (rx_gen_move_template): Rename local variable 'template' to
10879         out_template.
10880         (rx_function_arg): Do not pass unknown sized objects in registers.
10881         (TARGET_PRINT_OPERAND): Define.
10882         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10883
10884 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10885
10886         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
10887
10888 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
10889
10890         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
10891         stack-alignment for simple leaf-functions.
10892
10893 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
10894
10895         * doc/install.texi: Document bootstrap-lto.
10896
10897 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
10898
10899         PR debug/44248
10900         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
10901         (input_function): Drop them here, if VTA is disabled.
10902
10903 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
10904
10905         PR target/44546
10906         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
10907         New predicate.
10908         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
10909         ix86_swapped_fp_comparsion_operator instead of
10910         ix86_fp_comparison_operator.
10911
10912         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
10913         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
10914         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
10915         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
10916         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
10917         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
10918
10919 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
10920
10921         PR other/32998
10922         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
10923         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
10924         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
10925         (decode_cmdline_option): Update for this return value.  Set
10926         orig_option_with_args_text field.  Set arg field for unknown
10927         options.  Make static.
10928         (decode_cmdline_options_to_array): New.
10929         (prune_options): Update handling of find_opt return value.
10930         * opts.c (read_cmdline_option): Take decoded option.  Return void.
10931         (read_cmdline_options): Take decoded options.
10932         (decode_options): Add parameters for decoded options.  Use
10933         decode_cmdline_options_to_array.  Use decoded options for -O
10934         scan.  Use integral_argument for -O parameters.  Update call to
10935         read_cmdline_options.
10936         (enable_warning_as_error): Update handling of find_opt return value.
10937         * opts.h: Update comment on unknown options.
10938         (struct cl_decoded_option): Update comments on opt_index and arg.
10939         Add orig_option_with_args_text.
10940         (decode_cmdline_option): Remove.
10941         (decode_cmdline_options_to_array): Declare.
10942         (decode_options): Update prototype.
10943         * toplev.c (save_argv): Remove.
10944         (save_decoded_options, save_decoded_options_count): New.
10945         (read_integral_parameter): Remove.
10946         (print_switch_values): Use decoded options.
10947         (toplev_main): Don't set save_argv.  Update call to decode_options.
10948         * toplev.h (read_integral_parameter): Remove.
10949         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
10950
10951 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
10952
10953         PR target/44072
10954         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
10955         immediate.
10956         * constraints.md (Pw, Px): New constraints.
10957         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
10958
10959 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
10960
10961         * config/i386/sse.md (fma4modesuffixf4): Removed.
10962         (ssemodesuffixf2s): Likewise.
10963         (ssemodesuffixf4): Likewise.
10964         (ssemodesuffixf2c): Likewise.
10965         (ssescalarmodesuffix2s): Likewise.
10966         (avxmodesuffixf2c): Likewise.
10967         (ssemodesuffix): New.
10968         (ssescalarmodesuffix): Likewise.
10969         Update patterns with ssemodesuffix and ssescalarmodesuffix.
10970
10971 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
10972
10973         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
10974
10975 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
10976
10977         * stor-layout.c (debug_rli): Remove unused local variables.
10978
10979 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
10980
10981         PR rtl-optimization/40900
10982         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
10983         original expression for later reuse.
10984         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
10985         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
10986
10987 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
10988
10989         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
10990         double_int_fits_in_uhwi_p): Implement as static inline.
10991         (double_int_xor): New inline function.
10992         (double_int_lrotate, double_int_rrotate, double_int_max,
10993         double_int_umax, double_int_smax, double_int_min, double_int_umin,
10994         double_int_smin): Declare.
10995         (lrotate_double, rrotate_double): Remove declaration.
10996         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
10997         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
10998         (double_int_lrotate, double_int_rrotate, double_int_max,
10999         double_int_umax, double_int_smax, double_int_min, double_int_umin,
11000         double_int_smin): New function.
11001         * fold-const.c (int_const_binop): Clean up, use double_int_*
11002         functions.
11003         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
11004         double_int_* and immed_double_int_const functions.
11005
11006 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
11007
11008         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
11009         * function.c (types_used_by_cur_var_decl): Likewise.
11010         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
11011
11012 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
11013
11014         * tree.h (record_layout_info): Change type of pending_statics field
11015         to a VEC.
11016         * stor-layout.c (start_record_layout): Store NULL into
11017         pending_statics.
11018         (debug_rli): Call debug_vec_tree instead of debug_tree.
11019         (place_field): Likewise.
11020         (finish_record_layout): Likewise.
11021
11022 2010-06-18  Alan Modra  <amodra@gmail.com>
11023
11024         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
11025
11026 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11027
11028         PR target/43740
11029         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
11030         for SET source operand from SET destination operand.
11031
11032 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
11033
11034         PR rtl-optimization/39871
11035         * reload1.c (init_eliminable_invariants): For flag_pic, disable
11036         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
11037         (function_invariant_p): Rule out a plus of frame or arg pointer with
11038         a SYMBOL_REF.
11039         * ira.c (find_reg_equiv_invariant_const): Likewise.
11040
11041 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
11042
11043         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
11044         print_operand_address and puts to output the operand for CONST.
11045
11046 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
11047
11048         PR debug/44572
11049         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
11050         hook.
11051
11052 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11053
11054         * v850-protos.h (print_operand): Delete.
11055         (print_operand_address): Delete.
11056         * v850.h (PRINT_OPERAND): Delete.
11057         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11058         (PRINT_OPERAND_ADDRESS): Delete.
11059         * v850.c (print_operand_address): Rename to...
11060         (v850_print_operand_address): ...this.  Make static. Call
11061         v850_print_operand.
11062         (print_operand): Rename to...
11063         (v850_print_operand): ...this.  Make static.  Call
11064         v850_print_operand_address.
11065         (v850_print_operand_punct_valid_p): New function.
11066         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11067         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11068
11069 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11070
11071         * config/sh/sh-protos.h (print_operand): Delete.
11072         (print_operand_address): Delete.
11073         * config/sh/sh.h (PRINT_OPERAND): Delete.
11074         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11075         (PRINT_OPERAND_ADDRESS): Delete.
11076         * config/sh/sh.c (sh_print_operand_address): Make static.
11077         (sh_print_operand): Make static.  Call sh_print_operand_address
11078         and sh_print_operand.
11079         (sh_print_operand_punct_valid_p): New function.
11080         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11081         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11082
11083 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11084
11085         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
11086         (mcore_print_operand_address): Delete.
11087         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
11088         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11089         (PRINT_OPERAND_ADDRESS): Delete.
11090         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
11091         (mcore_print_operand): Make static.
11092         (mcore_print_operand_punct_valid_p): New function.
11093         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
11094         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11095
11096 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11097
11098         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
11099         (print_operand_address): Delete.
11100         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
11101         (PRINT_OPERAND_ADDRESS): Delete.
11102         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
11103         static.
11104         (m68hc11_print_operand): Make static.
11105         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11106
11107 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11108
11109         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
11110         (m32r_print_operand_address): Delete.
11111         * config/m32r/m32r.h (m32r_punct_chars): Delete.
11112         (PRINT_OPERAND): Delete.
11113         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11114         (PRINT_OPERAND_ADDRESS): Delete.
11115         * config/m32r/m32r.c (m32r_punct_chars): Make static.
11116         (m32r_print_operand_address): Make static.
11117         (m32r_print_operand): Make static.
11118         (m32r_print_operand_punct_valid_p): New function.
11119         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11120         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11121
11122 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11123
11124         * config/iq2000/iq2000-protos.h (print_operand): Delete.
11125         (print_operand_address): Delete.
11126         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
11127         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11128         (PRINT_OPERAND_ADDRESS): Delete.
11129         (iq2000_print_operand_punct): Delete.
11130         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
11131         (iq2000_print_operand_address): Make static.
11132         (iq2000_print_operand): Make static.
11133         (iq2000_print_operand_punct_valid_p): New function.
11134         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11135         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11136
11137 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11138
11139         * config/frv/frv-protos.h (frv_print_operand): Delete.
11140         (frv_print_operand_address): Delete.
11141         * config/frv/frv.h (PRINT_OPERAND): Delete.
11142         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11143         (PRINT_OPERAND_ADDRESS): Delete.
11144         * config/frv/frv.c (frv_print_operand_address): Make static.
11145         (frv_print_operand): Make static.
11146         (frv_print_operand_punct_valid_p): New function.
11147         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11148         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11149
11150 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11151
11152         * tree.h (vec_member): Declare.
11153         * tree.c (vec_member): Define.
11154
11155 2010-06-17  Richard Guenther  <rguenther@suse.de>
11156
11157         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
11158         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
11159
11160 2010-06-17  Richard Guenther  <rguenther@suse.de>
11161
11162         * tree-inline.c (declare_return_variable): Remove bogus code.
11163
11164 2010-06-17  Richard Guenther  <rguenther@suse.de>
11165
11166         * gimplify.c (gimplify_bind_expr): Always promote complex
11167         and vector variables to registers if possible.
11168
11169 2010-06-17  Richard Guenther  <rguenther@suse.de>
11170
11171         * expr.c (get_inner_reference): Use double_int for bit_offset
11172         calculation.
11173
11174 2010-06-16  DJ Delorie  <dj@redhat.com>
11175
11176         * common.opt (-fstrict-volatile-bitfields): new.
11177         * doc/invoke.texi: Document it.
11178         * fold-const.c (optimize_bit_field_compare): For volatile
11179         bitfields, use the field's type to determine the mode, not the
11180         field's size.
11181         * expr.c (expand_assignment): Likewise.
11182         (get_inner_reference): Likewise.
11183         (expand_expr_real_1): Likewise.
11184         * expmed.c (store_fixed_bit_field): Likewise.
11185         (extract_bit_field_1): Likewise.
11186         (extract_fixed_bit_field): Likewise.
11187
11188 2010-06-16  Richard Guenther  <rguenther@suse.de>
11189
11190         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
11191
11192 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
11193
11194         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
11195         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
11196         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
11197         * debug.c: Likewise.
11198         * sdbout.c: Likewise.
11199         * vmsdbgout.c: Likewise.
11200         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
11201         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
11202         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
11203         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
11204         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
11205         * dwarf2out.c (dw_fde_struct): New fields
11206         dw_fde_vms_{end,begin}_prologue.
11207         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
11208         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
11209         (dwarf2out_vms_end_prologue): New function.
11210         (dwarf2out_vms_begin_epilogue): New function.
11211         (dw_val_struct): New value dw_val_class_vms_delta.
11212         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
11213         begin_epilogue for VMS.
11214         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
11215         new static functions.
11216         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
11217         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
11218         static functions.
11219         (print_die): New case dw_val_class_vms_delta.
11220         (attr_checksum): Likewise.
11221         (same_dw_val_p: Likewise.
11222         (size_of_die): Likewise.
11223         (value_format): Likewise.
11224         (output_die): Likewise.
11225         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
11226         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
11227         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
11228         dwarf2out_cfi_begin_epilogue
11229         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
11230
11231 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
11232
11233         * config/cris/cris-protos.h (cris_print_operand): Delete.
11234         (cris_print_operand_address): Delete.
11235         * config/cris/cris.h (PRINT_OPERAND): Delete.
11236         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11237         (PRINT_OPERAND_ADDRESS): Delete.
11238         * config/cris/cris.c (cris_print_operand_address): Make static.
11239         (cris_print_operand): Make static.
11240         (cris_print_operand_punct_valid_p): New function.
11241         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11242         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11243
11244 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
11245
11246         * config/arm/arm-protos.h (arm_print_operand): Delete.
11247         (arm_print_operand_address): Delete.
11248         * config/arm/arm.h (PRINT_OPERAND): Delete.
11249         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11250         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
11251         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
11252         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
11253         (arm_print_operand): Make static.
11254         (arm_print_operand_punct_valid_p): New function.
11255         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11256         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11257
11258 2010-06-16  Nick Clifton  <nickc@redhat.com>
11259
11260         * config/rx/constraints.md (NEGint4): New constraint.
11261         * config/rx/rx.md (attr cc): Add set_zsc.
11262         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
11263         initialised.
11264         (cmpsf): Likewise.
11265         (call_internal): Clobber the cc0 register.
11266         (call_value_internal): Likewise.
11267         (cstoresi4): Likewise.
11268         (movsieq): Likewise.
11269         (movsine): Likewise.
11270         (addsi3): Add alternative to handle small negative constants.
11271         (sunsi3): Likewise.
11272         (addsi3): Do not set the O bit in the cc0 register.
11273         (adddi3): Likewise.
11274         (subsi3): Likewise.
11275         (subdi3): Likewise.
11276         (andsi3): Reorder alternatives to prefer shorter forms.
11277         (mulsi3): Likewise.
11278         (iorsi3): Likewise.
11279         (negsi2): Note that the cc0 flags are set.
11280         (rotlsi3): Note that only the Z and S bits are set in cc0.
11281         (lshrsi3): Likewise.
11282         (ashlsi3): Likewise.
11283         (subsf3): Use %Q for the MEM operand.
11284         (fix_truncsfsi2): Likewise.
11285         (floatsisf2): Likewise.
11286         (bitset): Remove early clobber from destination.
11287         (bitset_in_memory): Likewise.
11288         (lrintsf2): Clobber the cc0 register.
11289         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
11290         (rx_print_operand): Handle %N.
11291
11292 2010-06-16  Jan Hubicka  <jh@suse.cz>
11293
11294         * df-core.c (df_compact_blocks): Free problem_temps vector.
11295
11296 2010-06-16  Martin Jambor  <mjambor@suse.cz>
11297
11298         PR tree-optimization/43905
11299         * tree-sra.c: Include tree-inline.h.
11300         (create_abstract_origin): Removed.
11301         (modify_function): Version the call graph node instead of creating
11302         abstract origins and dealing with same_body aliases.
11303         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
11304         function is versionable.
11305         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
11306
11307 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
11308
11309         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
11310         (CHOOSE_DYNAMIC_LINKER): Update.
11311
11312 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
11313
11314         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
11315         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
11316         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
11317         *prefetch_3dnow_rex.
11318
11319 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
11320
11321         * target.h (struct asm_out):Add declare_constant_name field.
11322         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
11323         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
11324         * output.h (default_asm_declare_constant_name): Declare.
11325         (assemble_label): Update prototype.
11326         * varasm.c (assemble_constant_contents): Use
11327         targetm.asm_out.declare_constant_name target hook.
11328         (assemble_label): Add 'file' argument.
11329         (default_asm_declare_constant_name): New function.
11330         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
11331         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
11332         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
11333
11334         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
11335         * config/darwin.c (darwin_asm_declare_constant_name): New function.
11336         (machopic_output_indirection): Update assemble_label argument list.
11337         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
11338         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
11339
11340 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
11341
11342         PR middle-end/44391
11343         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
11344         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
11345
11346 2010-06-15  Richard Guenther  <rguenther@suse.de>
11347
11348         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
11349
11350 2010-06-15  Paul Brook  <paul@codesourcery.com>
11351
11352         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
11353         hard-float ABI.
11354
11355 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
11356
11357         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
11358         don't get a vector type for output.
11359
11360 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
11361
11362         PR fortran/44536
11363         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
11364         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
11365         (LANG_HOOKS_DECLS): Add it.
11366         * gimplify.c (omp_notice_variable): Call
11367         lang_hooks.decls.omp_report_decl.
11368
11369 2010-06-15  Martin Jambor  <mjambor@suse.cz>
11370
11371         PR lto/44464
11372         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
11373         on the newly dead SSA name.
11374
11375 2010-06-15  Alan Modra  <amodra@gmail.com>
11376
11377         * doc/invoke.texi: Add mcmodel to powerpc options.
11378         * configure.ac: Add HAVE_LD_LARGE_TOC test.
11379         * configure: Regenerate.
11380         * config.in: Regenerate.
11381         * config/rs6000/linux64.opt (mcmodel): New.
11382         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
11383         (TARGET_CMODEL, SET_CMODEL): Define.
11384         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
11385         select CMODEL_MEDIUM default.
11386         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
11387         (TARGET_CMODEL): Define default.
11388         * config/rs6000/rs6000.c (cmodel): New variable.
11389         (rs6000_explicit_options): Add cmodel field.
11390         (rs6000_handle_option): Handle -mcmodel.
11391         (create_TOC_reference): Add largetoc_reg param.  Generate high,
11392         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
11393         (rs6000_delegitimize_address): Recognise new toc reference rtl
11394         and minimal-toc rtl.
11395         (rs6000_legitimize_reload_address): Handle new toc references.
11396         (print_operand_address): Handle legitimate_constant_pool_address_p
11397         match before lo_sum.
11398         (rs6000_eliminate_indexed_memrefs): Tidy.
11399         (rs6000_emit_move): Tweak threshold for inlining constants.
11400         Keep rs6000_emit_allocate_stack large stack frame offsets
11401         loaded into r0 inline.
11402         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
11403         (tocrel_base, tocrel_offset): New variables.
11404         (toc_relative_expr_p): Set them here.
11405         (print_operand_address): Skip over any offset on constant pool address.
11406         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
11407         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
11408         (offsettable_ok_by_alignment): New function.
11409         (rs6000_emit_move): Address suitably aligned local symbol_refs
11410         relative to the toc pointer for -mcmodel=medium.
11411         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
11412         strict param.  Allow lo_sum version of addressing.  Verify reg
11413         used for -mminimal-toc and -mcmodel != small.  Update all callers.
11414         * config/rs6000/constraints.md: Update for above change.
11415         * config/rs6000/predicates.md: Likewise.
11416         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
11417         code.
11418         (tls_gd): Split for -mcmodel=medium/large.
11419         (tls_gd_high, tls_gd_low): New.
11420         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
11421         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
11422         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
11423         (largetoc_high, largetoc_low): New.
11424         (cmptf_internal2): Add clobber.
11425         * config/rs6000/rs6000-protos.h: Update.
11426
11427 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
11428
11429         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
11430         true if no prefetch is going to be generated for a given group.
11431         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
11432         estimate the prefetch_count.
11433         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
11434         prefetch count by considering the unroll_factor and prefetch_mod
11435         for is_loop_prefetching_profitable.
11436
11437 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
11438
11439         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
11440         anything if the argument is not a MEM.
11441
11442 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
11443
11444         PR debug/43650
11445         PR debug/44181
11446         PR debug/44247
11447         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
11448         debug stmts.
11449         (canonicalize_loop_ivs): Likewise.
11450
11451 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
11452
11453         PR debug/43656
11454         * haifa-sched.c (setup_insn_reg_pressure_info,
11455         update_register_pressure): Reject debug insns.
11456         (ready_sort): Don't setup reg pressure for debug insns.
11457         (schedule_insn): Don't update reg pressure for debug insns.
11458
11459 2010-06-14  Richard Guenther  <rguenther@suse.de>
11460
11461         * lto-streamer.c (cached_bp): Remove.
11462         (bitpack_delete): Likewise.
11463         (bitpack_create): Likewise.
11464         (bp_get_next_word): Likewise.
11465         (bp_pack_value, bp_unpack_value): Move ...
11466         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
11467         Re-implement.
11468         (struct bitpack_d): Likewise.
11469         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
11470         New inline functions.
11471         * lto-streamer-out.c (lto_output_bitpack): Remove.
11472         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
11473         (pack_value_fields): Adjust.
11474         (lto_write_tree): Likewise.
11475         (output_gimple_stmt): Likewise.
11476         (output_function): Likewise.
11477         * lto-streamer-in.c (input_gimple_stmt): Adjust.
11478         (input_function): Likewise.
11479         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
11480         (lto_input_bitpack): Remove.
11481         (lto_materialize_tree): Adjust.
11482         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
11483         * lto-cgraph.c (lto_output_edge): Adjust.
11484         (lto_output_node): Likewise.
11485         (lto_output_varpool_node): Likewise.
11486         (lto_output_ref): Likewise.
11487         (input_node): Likewise.
11488         (input_varpool_node): Likewise.
11489         (input_ref): Likewise.
11490         (input_edge): Likewise.
11491         (output_node_opt_summary): Likewise.
11492         (input_node_opt_summary): Likewise.
11493         * ipa-pure-const.c (pure_const_write_summary): Likewise.
11494         (pure_const_read_summary): Likewise.
11495         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
11496         (ipa_read_indirect_edge_info): Likewise.
11497         (ipa_write_node_info): Likewise.
11498         (ipa_read_node_info): Likewise.
11499
11500 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
11501
11502         PR target/44534
11503         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
11504         (vec_extract_lo_v16hi): Likewise.
11505         (vec_extract_lo_v32qi): Likewise.
11506
11507 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
11508
11509         PR bootstrap/44426
11510         * tree.h (build_call_expr): Don't define as vararg macro, instead
11511         add a prototype.
11512         * builtins.c (build_call_nofold): Remove.
11513         (expand_builtin_int_roundingfn, expand_builtin_pow,
11514         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
11515         expand_builtin_memset_args, expand_builtin_strcmp,
11516         expand_builtin_strncmp, expand_builtin_memory_chk): Use
11517         build_call_nofold_loc instead of build_call_nofold.
11518         (build_call_expr): New function.
11519
11520         PR tree-optimization/44508
11521         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
11522         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
11523         don't eliminate trivially dead stmts.
11524         * tree-vrp.c (vrp_finalize): Pass false as last argument
11525         to substitute_and_fold.
11526         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
11527         to substitute_and_fold.
11528         * tree-ssa-ccp.c (ccp_finalize): Likewise.
11529
11530         PR bootstrap/44509
11531         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
11532
11533 2010-06-14  Ira Rosen  <irar@il.ibm.com>
11534
11535         PR tree-optimization/44507
11536         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
11537         to build initial vector for BIT_AND_EXPR.
11538         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
11539
11540 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
11541
11542         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
11543         adjust z10prop set_attr.
11544
11545 2010-06-13  Jan Hubicka  <jh@suse.cz>
11546
11547         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
11548         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
11549         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
11550         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
11551         datastructure checks into checking asserts.
11552         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
11553         * tree-ssa-sccvn.c (VN_INFO): Likewise.
11554         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
11555         df_ref_create_structure): Likewise.
11556         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
11557         pool_free): Use gcc_checking_assert.
11558         * alias.c (get_alias_set): Likewise.
11559         * var-tracking.c (variable_htab_free, shared_hash_copy,
11560         canonicalize_values_mark, variable_merge_over_cur): Likewise.
11561         * lto-streamer.c (bp_unpack_value): Likewise.
11562
11563 2010-06-13  Richard Guenther  <rguenther@suse.de>
11564
11565         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
11566         Do not stream but initialize TYPE_CANONICAL to NULL.
11567         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
11568         * gimple.c (gimple_types_compatible_p): Disregard
11569         TYPE_STRUCTURAL_EQUALITY_P.
11570         (gimple_register_type): Use TYPE_CANONICAL as cache.
11571         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
11572         before registering common types.
11573         * config/i386/i386.c (ix86_function_arg_boundary): Do not
11574         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
11575         * tree.h (TYPE_CANONICAL): Clarify documentation.
11576
11577 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
11578
11579         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11580         LIBCALL_VALUE): Remove macros.
11581         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
11582         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11583         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11584         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
11585         (ia64_function_value): Make static. Handle receiving the function
11586         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
11587
11588 2010-06-12  Jan Hubicka  <jh@suse.cz>
11589
11590         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
11591         at correct place.
11592
11593 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
11594
11595         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
11596
11597 2010-06-12  Jan Hubicka  <jh@suse.cz>
11598
11599         * df-core.c (df_clear_bb_info): New function.
11600         (df_set_blocks): bb_info is always allocated.
11601         (df_get_bb_info): Use block_info_elt_size.
11602         (df_set_bb_info): Likewise.
11603         (df_compact_blocks): Update for new block_info.
11604         (grow_bb_info): New function.
11605         * df-problems.c (df_grow_bb_info): Move to df-core.c
11606         (df_rd_set_bb_info): Remove.
11607         (df_rd_free_bb_info): Do not free block pool.
11608         (df_rd_alloc): Do not create pool, use check for
11609         obstack presence instead of NULL pointer for new blocks.
11610         (df_rd_free): DO not free alloc pool; clear block_info.
11611         (problem_RD): Add size of block info structure.
11612         (df_lr_set_bb_info): Remove.
11613         (df_lr_free_bb_info): Do not free block pool.
11614         (df_lr_alloc): Do not create pool, use check for
11615         obstack presence instead of NULL pointer for new blocks.
11616         (df_lr_free): DO not free alloc pool; clear block_info.
11617         (problem_LR): Add size of block info structure.
11618         (df_live_set_bb_info): Remove.
11619         (df_live_free_bb_info): Do not free block pool.
11620         (df_live_alloc): Do not create pool, use check for
11621         obstack presence instead of NULL pointer for new blocks.
11622         (df_live_free): DO not free alloc pool; clear block_info.
11623         (problem_LIVE): Add size of block info structure.
11624         (problem_CHAIN): Add size of block info structure.
11625         (df_byte_lr_set_bb_info): Remove.
11626         (df_byte_lr_free_bb_info): Do not free block pool.
11627         (df_byte_lr_alloc): Do not create pool, use check for
11628         obstack presence instead of NULL pointer for new blocks.
11629         (df_byte_lr_free): DO not free alloc pool; clear block_info.
11630         (problem_BYTE_LR): Add size of block info structure.
11631         (problem_NOTE): Add size of block info structure.
11632         (df_byte_MD_set_bb_info): Remove.
11633         (df_byte_MD_free_bb_info): Do not free block pool.
11634         (df_byte_MD_alloc): Do not create pool, use check for
11635         obstack presence instead of NULL pointer for new blocks.
11636         (df_byte_MD_free): DO not free alloc pool; clear block_info.
11637         (problem_BD): Add size of block info structure.
11638         * df-scan.c (df_scan_free_internal): Free block pool.
11639         (df_scan_set_bb_info): Remove.
11640         (df_scan_free_bb_info): Check for artificial_defs instead
11641         of bb_info being non-NULL.
11642         (df_scan_alloc): DO not create df_scan_block pool.
11643         (problem_SCAN): Set size of block info.
11644         (df_bb_refs_record): Do not allocate bb_info.
11645         * df.h (df_problem): Add block_info_elt_size.
11646         (struct dataflow): Change block_info to void *.
11647         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
11648         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
11649         in-line structures.
11650
11651 2010-06-12  Jan Hubicka  <jh@suse.cz>
11652
11653         PR tree-optimize/44485
11654         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
11655         containing use of return value of noreturn function.
11656
11657 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
11658
11659         * targhooks.c (default_function_value): Don't use
11660         FUNCTION_OUTGOING_VALUE.
11661         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
11662         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
11663
11664 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
11665
11666         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
11667         Add crtfastmath.o to extra_parts.
11668         * config/mips/crtfastmath.c: New.
11669         * config/mips/linux.h (ENDFILE_SPEC): New.
11670
11671 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
11672
11673         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
11674         old_type in parameter.
11675         (gcc_type_for_value): Update call to gcc_type_for_interval.
11676         (compute_type_for_level_1): Renamed compute_type_for_level.
11677         Update call to gcc_type_for_interval.
11678
11679 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
11680
11681         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
11682         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
11683
11684 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
11685
11686         * opts-common.c: Include options.h.
11687         (integral_argument): Move from opts.c.
11688         (decode_cmdline_option): New.  Based on read_cmdline_option.
11689         * opts.c (integral_argument): Move to opts-common.c.
11690         (read_cmdline_option): Move most contents to
11691         decode_cmdline_option.  Use %qs in diagnostics.
11692         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
11693         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
11694         decode_cmdline_option): New.
11695
11696 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
11697
11698         PR target/44481
11699         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
11700         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
11701         (partiysi2_cmp): Ditto.
11702         (*partiyhi2_cmp): Ditto.
11703         (*parityqi2_cmp): Remove.
11704
11705 2010-06-11  Jan Hubicka  <jh@suse.cz>
11706
11707         * bitmap.h (bmp_iter_next_bit): New.
11708         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
11709
11710 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
11711             Eric Botcazou  <ebotcazou@adacore.com>
11712
11713         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
11714         computed cost.
11715
11716 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
11717
11718         * config/i386/i386.md (unspec): New define_c_enum.
11719         (unspecv): Ditto.
11720
11721 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
11722
11723         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
11724
11725 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
11726
11727         PR middle-end/44483
11728         * tree-if-conv.c (bb_predicate_s): New struct.
11729         (bb_predicate_p): New.
11730         (bb_has_predicate): New.
11731         (bb_predicate): New.
11732         (set_bb_predicate): New.
11733         (bb_predicate_gimplified_stmts): New.
11734         (set_bb_predicate_gimplified_stmts): New.
11735         (add_bb_predicate_gimplified_stmts): New.
11736         (init_bb_predicate): New.
11737         (free_bb_predicate): New.
11738         (is_predicated): Use bb_predicate.
11739         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
11740         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
11741         before processing their successors.
11742         (clean_predicate_lists): Removed.
11743         (find_phi_replacement_condition): Use bb_predicate.
11744         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
11745         computations.
11746         (insert_gimplified_predicates): New.
11747         (combine_blocks): Call insert_gimplified_predicates.
11748         (tree_if_conversion): Call free_bb_predicate instead of
11749         clean_predicate_lists.
11750
11751 2010-10-11  Paul Brook  <paul@codesourcery.com>
11752
11753         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
11754         * config/arm/arm.c (all_architectures): Change v7e-m default to
11755         cortexm4.
11756         * config/arm/arm-cores.def: Add cortex-m4.
11757         * config/arm/arm-tune.md: Regenerate.
11758
11759 2010-06-11  Jan Hubicka  <jh@suse.cz>
11760
11761         * ipa-pure-const.c (special_builtlin_state): New function.
11762         (check_call): Use it instead of special casign BUILT_IN_RETURN.
11763         (propagate_pure_const): Use it.
11764
11765 2010-06-11  Jan Hubicka  <jh@suse.cz>
11766
11767         * df-problems.c (df_live_scratch): Convert to bitmap_head.
11768         (df_live_alloc): Initialize df_live_scratch when initializing
11769         problem_data.
11770         (df_live_transfer_function): Update uses of df_live_scratch.
11771         (df_live_free): Free problem_data; clear df_live_scratch before
11772         releasing the obstack.
11773         (df_md_free): Free problem data.
11774
11775 2010-06-11  Jan Hubicka  <jh@suse.cz>
11776
11777         * doc/invoke.texi (Wsuggest-attribute): Document.
11778         (Wmissing-noreturn): Remove.
11779         * ipa-pure-const.c (warn_function_noreturn): New function.
11780         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
11781         warn_missing_noreturn.
11782         * common.opt (Wsuggest-attribute=noreturn): New.
11783         * tree-flow.h (warn_function_noreturn): Declare.
11784         * tree-cfg.c (execute_warn_function_noreturn): Use
11785         warn_function_noreturn.
11786         (gate_warn_function_noreturn): New.
11787         (pass_warn_function_noreturn): Update.
11788
11789 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11790
11791         * c-typeck.c (handle_warn_cast_qual): Add loc
11792         parameter. Improve warning message.
11793         (build_c_cast): Pass location to handle_warn_cast_qual.
11794
11795 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
11796
11797         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
11798         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
11799         insn mnemonic.
11800         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
11801
11802 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
11803
11804         Fix bootstap on mips
11805         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
11806         be naming typedefs.
11807
11808 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
11809
11810         * system.h (helper_const_non_const_cast): New inline for
11811         gcc version <= 4.0.
11812         (CONST_CAST2): For gcc version <= 4.0 use
11813         new helper to do const/non-const casting.
11814
11815 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11816
11817         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
11818         * Makefile.in (OBJS-common): Include insn-enums.o.
11819         (insn-enums.o): New rule.
11820         (simple_generated_c): Add insn-enums.c.
11821         (build/genenums.o): New rule.
11822         (genprogmd): Add "enums".
11823         * genconstants.c (print_enum_type): Declare a C string array
11824         for each enum.
11825         * genenums.c: New file.
11826         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
11827         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
11828         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
11829
11830 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11831
11832         * doc/md.texi (define_enum_attr): Document.
11833         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
11834         * read-md.h (lookup_enum_type): Declare.
11835         * read-md.c (lookup_enum_type): New function.
11836         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
11837         * genattrtab.c (attr_desc): Add an enum_name field.
11838         (evaluate_eq_attr): Take the associated attribute as argument.
11839         Get the enum prefix from the enum_name field, if defined.
11840         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
11841         (simplify_test_exp): Pass attr to evaluate_eq_attr.
11842         (add_attr_value): New function, split out from...
11843         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
11844         (write_test_expr): Pass attr to evaluate_eq_attr.
11845         (write_attr_get): Use the enum_name as the enum tag, if defined.
11846         (write_attr_valueq): Use the enum_name as a prefix, if defined.
11847         (find_attr): Initialize enum_name.
11848         (main): Handle DEFINE_ENUM_ATTR.
11849         * gensupport.c (process_rtx): Likewise.
11850         * config/mips/mips.h (mips_tune_attr): Delete.
11851         * config/mips/mips.md (cpu): Use define_attr_enum.
11852
11853 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11854
11855         * doc/md.texi (define_c_enum, define_enum): Document.
11856         * read-md.h (md_constant): Add a parent_enum field.
11857         (enum_value, enum_type): New structures.
11858         (upcase_string, traverse_enum_types): Declare.
11859         * read-md.c (enum_types): New variable.
11860         (upcase_string, add_constant): New functions.
11861         (handle_constants): Don't create the hash table here.
11862         Use add_constant.
11863         (traverse_md_constants): Don't check for a null md_constants.
11864         (decimal_string, handle_enum, traverse_enum_types): New functions.
11865         (read_md_files): Initialize md_constants and md_enums.
11866         * genconstants.c (print_md_constant): Ignore info argument.
11867         Only print constants that belong to no enum.
11868         (print_enum_type): New function.
11869         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
11870         for each defined enum type.
11871         * config/mips/mips.md (processor): New define_enum.
11872         (unspec): New define_c_enum.
11873         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
11874         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
11875         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
11876         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
11877         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
11878         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
11879         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
11880         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
11881         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
11882         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
11883         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
11884         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
11885         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
11886         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
11887         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
11888         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
11889         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
11890         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
11891         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
11892         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
11893         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
11894         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
11895         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
11896         (UNSPEC_RDDSP): Move to mips-dsp.md.
11897         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
11898         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
11899         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
11900         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
11901         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
11902         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
11903         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
11904         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
11905         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
11906         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
11907         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
11908         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
11909         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
11910         Moved to mips-dspr2.md.
11911         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
11912         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
11913         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
11914         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
11915         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
11916         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
11917         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
11918         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
11919         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
11920         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
11921         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
11922         UNSPEC_LOONGSON_PSADBH)
11923         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
11924         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
11925         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
11926         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11927         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11928         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11929         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
11930         (cpu): Update comment.
11931         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
11932         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
11933         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
11934         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
11935         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
11936         UNSPEC_LOONGSON_PCMPEQ)
11937         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
11938         UNSPEC_LOONGSON_PINSR_0)
11939         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
11940         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
11941         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
11942         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
11943         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
11944         UNSPEC_LOONGSON_PSADBH)
11945         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
11946         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
11947         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
11948         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11949         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11950         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11951         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
11952         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
11953         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
11954         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
11955         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
11956         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
11957         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
11958         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
11959         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
11960         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
11961         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
11962         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
11963         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
11964         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
11965         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
11966         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
11967         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
11968         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
11969         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
11970         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
11971         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
11972         (UNSPEC_RDDSP): Moved from mips.md.
11973         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
11974         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
11975         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
11976         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
11977         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
11978         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
11979         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
11980         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
11981         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
11982         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
11983         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
11984         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
11985         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
11986         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
11987         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
11988         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
11989         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
11990         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
11991         (UNSPEC_SCC): Moved from mips.md.
11992         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
11993         "processor_type" to "processor".
11994         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
11995         * config/mips/mips.h (processor_type): Delete.
11996         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
11997         "processor_type" to "processor".
11998
11999 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12000
12001         * configure.ac (tm_include_list): Add insn-constants.h.
12002         * configure: Regenerate.
12003         * Makefile.in (GTM_H): Move insn-constants.h here from...
12004         (TM_H): ...here.
12005         * mkconfig.sh: Remove special handling for insn-constants.h.
12006
12007 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12008
12009         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
12010         (BUILD_MD): ...this new variable.
12011         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
12012         that include the old contents of simple_generated_h and
12013         simple_generated_c.
12014         (simple_generated_h, simple_generated_c): Include them.  Add
12015         insn-constants.h.
12016         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
12017         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
12018         Remove these dependencies from the main rule and include
12019         insn-conditions.md in the command line only if it appears
12020         in the dependency list.
12021         (insn-constants.h, s-constants): Delete.
12022         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
12023         or gensupport.h.
12024         (build/genmddeps.o): Likewise.
12025         (genprogrtl): New variable that contains everything from genprogmd
12026         except mddeps and constants.
12027         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
12028         depend on $(BUILD_MD)
12029         (genprog): New variable.  Make these programs depend on
12030         $(BUILD_ERRORS).
12031         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
12032         (main): Use read_md_files instead of init_rtx_reader_args.
12033         * genconstants.c: As for genmddeps.c.
12034         * read-md.h (read_skip_construct): Declare.
12035         * read-md.c (read_skip_construct): New function.
12036         (handle_file): Allow a null handle_directive, skipping the
12037         construct if so.
12038         (parse_include): Update the comment accordingly.
12039
12040 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12041
12042         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
12043         * genmddeps.c: Include read-md.h.
12044         (main): Call init_rtx_reader_args instead of init_md_reader_args.
12045         * genattr.c (main): Likewise.
12046         * genattrtab.c (main): Likewise.
12047         * genautomata.c (main): Likewise.
12048         * gencodes.c (main): Likewise.
12049         * genconditions.c (main): Likewise.
12050         * genconfig.c (main): Likewise.
12051         * genconstants.c (main): Likewise.
12052         * genemit.c (main): Likewise.
12053         * genextract.c (main): Likewise.
12054         * genflags.c (main): Likewise.
12055         * genopinit.c (main): Likewise.
12056         * genoutput.c (main): Likewise.
12057         * genpeep.c (main): Likewise.
12058         * genrecog.c (main): Likewise.
12059         * genpreds.c (main): Likewise.
12060         * gensupport.h (in_fname): Move to read-md.h.
12061         (init_md_reader_args_cb): Rename to...
12062         (init_rtx_reader_args_cb): ...this and return a bool.
12063         (init_md_reader_args): Rename to...
12064         (init_rtx_reader_args): ...this and return a bool.
12065         (include_callback): Move to read-md.h.
12066         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
12067         (file_name_list, first_dir_md_include): Move to read-md.c
12068         (first_bracket_include): Delete unused variable.
12069         (last_dir_md_include): Move to read-md.c.
12070         (process_include): Delete, moving code to read-md.c:handle_include.
12071         (process_rtx): Don't handle INCLUDE.
12072         (save_string): Delete.
12073         (rtx_handle_directive): New function.
12074         (init_md_reader_args_cb): Rename to...
12075         (init_rtx_reader_args_cb): ...this and return a boolean success value.
12076         Use read_md_args.
12077         (init_md_reader_args): Rename to...
12078         (init_rtx_reader_args): ...this and return a boolean success value.
12079         * rtl.def (INCLUDE): Delete.
12080         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
12081         argument.
12082         * read-rtl.c (read_conditions): Don't gobble ')' here.
12083         (read_mapping): Likewise.
12084         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
12085         Handle top-level non-rtx constructs here rather than in read_rtx_1.
12086         Store the whole queue in *X.  Remove call to init_md_reader.
12087         (read_rtx_1): Rename to...
12088         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
12089         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
12090         here.
12091         (read_nested_rtx): New function.  Handle (nil) here rather than
12092         in read_rtx_code.
12093         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
12094         gobble ')' here.
12095         * read-md.h (directive_handler_t): New type.
12096         (in_fname, include_callback): Moved from read-md.h.
12097         (read_constants, init_md_reader): Delete.
12098         (read_md_files): Declare.
12099         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
12100         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
12101         from gensupport.c.
12102         (read_constants): Rename to...
12103         (handle_constants): ...this.  Don't gobble ')' here.
12104         (handle_include, handle_file, handle_toplevel_file)
12105         (parse_include): New functions, mostly taken from gensupport.c.
12106         (init_md_reader): Subsume into...
12107         (read_md_files): ...this new function.
12108
12109 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12110
12111         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
12112         (unread_char): Decrement read_md_lineno after putting back '\n'.
12113         * read-md.c (fatal_with_file_and_line): Push back any characters
12114         that we decide not to add to the context.
12115         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
12116         fatal_expected_char in cases where '/' ends a line (for example).
12117         (read_name): Don't increment read_md_lineno here.
12118         (read_escape): Likewise.
12119         (read_quoted_string): Likewise.
12120         (read_braced_string): Likewise.
12121
12122 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12123
12124         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
12125         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
12126         * genconstants.c: Include read-md.h.
12127         * read-rtl.c (md_constants): Move to read-md.c.
12128         (md_name): Move to read-md.h.
12129         (initialize_iterators): Use leading_string_hash instead of def_hash
12130         and leading_string_eq_p instead of def_name_eq_p.
12131         (read_name): Move to read-md.c.
12132         (def_hash, def_name_eq_p): Delete.
12133         (read_constants, traverse_md_constants): Move to read-md.c.
12134         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
12135         * read-md.h: Include hashtab.h.
12136         (md_name): Moved from read-rtl.c.
12137         (md_constant): Moved from read-md.h.
12138         (leading_string_hash, leading_string_eq_p, read_name)
12139         (read_constants, traverse_md_constants): Declare.
12140         * read-md.c (md_constants): Moved from read-rtl.c.
12141         (leading_string_hash, leading_string_eq_p): New functions.
12142         (read_name, read_constants, traverse_md_constants): Moved from
12143         read-rtl.c.
12144
12145 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12146
12147         * read-rtl.c (md_name): New structure.
12148         (read_name): Take an md_name instead of a buffer pointer.
12149         Use the "string" field instead of strcpy when expanding constants.
12150         (read_constants): Remove the tmp_char argument.  Update the calls
12151         to read_name, using two local name buffers instead of the tmp_char
12152         argument.  Merge the constant-creation code.
12153         (read_conditions): Remove the tmp_char argument.  Update the calls
12154         to read_name, using a local name buffer instead of the tmp_char
12155         argument.
12156         (read_mapping): Replace tmp_char variable with a local name buffer.
12157         Update the calls to read_name.
12158         (read_rtx_1): Likewise.  Update the calls to read_constants and
12159         read_conditions.
12160
12161 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12162
12163         * Makefile.in (build/read-md.o): Depend on errors.h.
12164         * read-md.h (error_with_line): Declare.
12165         * read-md.c: Include errors.h.
12166         (message_with_line_1): New function, extracted from...
12167         (message_with_line): ...here.
12168         (error_with_line): New function.
12169         * genattrtab.c: If a call to message_with_line is followed by
12170         "have_error = 1;", replace both statements with a call to
12171         error_with_line.
12172         * genoutput.c: Likewise.
12173         * genpreds.c: Likewise.
12174         * genrecog.c: If a call to message_with_line is followed by
12175         "error_count++;", replace both statements with a call to
12176         error_with_line.
12177         (errorcount): Delete.
12178         (main): Don't check it.
12179         * gensupport.c: If a call to message_with_line is followed by
12180         "errors = 1;", replace both statements with a call to error_with_line.
12181         (errors): Delete.
12182         (process_define_cond_exec): Check have_error instead of errors.
12183         (init_md_reader_args_cb): Likewise.  Don't set errors.
12184
12185 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12186
12187         * read-md.h (read_md_file): Declare.
12188         (read_char, unread_char): New functions.
12189         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
12190         (read_quoted_string, read_string): Remove FILE * argument.
12191         * read-md.c (read_md_file): New variable.
12192         (read_md_filename, read_md_lineno): Update comments and remove
12193         unnecessary initialization.
12194         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
12195         (read_escape, read_quoted_string, read_braced_string, read_string):
12196         Remove FILE * argument.  Update calls accordingly, using read_char
12197         and unread_char instead of getc and ungetc.
12198         * rtl.h (read_rtx): Remove FILE * argument.
12199         * read-rtl.c (iterator_group): Remove FILE * argument from
12200         "find_builtin".
12201         (iterator_traverse_data): Remove "infile" field.
12202         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
12203         (add_mapping, read_name, read_constants, read_conditions)
12204         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
12205         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
12206         Remove file arguments from all calls, using read_char and unread_char
12207         instead of getc and ungetc.
12208         * gensupport.c (process_include): Preserve read_md_file around
12209         the include.  Set read_md_file to the handle of the included file.
12210         Update call to read_rtx.
12211         (init_md_reader_args_cb): Set read_md_file to the handle of the file
12212         and remove local FILE *.  Update calls to read_rtx.
12213
12214 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12215
12216         * read-md.h (read_rtx_lineno): Rename to...
12217         (read_md_lineno): ...this.
12218         (read_rtx_filename): Rename to...
12219         (read_md_filename): ...this.
12220         (copy_rtx_ptr_loc): Rename to...
12221         (copy_md_ptr_loc): ...this.
12222         (print_rtx_ptr_loc): Rename to...
12223         (print_md_ptr_loc): ...this.
12224         * read-md.c: Likewise.  Update references after renaming.
12225         (string_obstack): Replace RTL with MD in comment.
12226         (set_rtx_ptr_loc): Rename to...
12227         (set_md_ptr_loc): ...this.
12228         (get_rtx_ptr_loc): Rename to...
12229         (get_md_ptr_loc): ...this.
12230         * genconditions.c: Update references after renaming.
12231         * genemit.c: Likewise.
12232         * genoutput.c: Likewise.
12233         * genpreds.c: Likewise.
12234         * gensupport.c: Likewise.
12235         * read-rtl.c: Likewise.
12236
12237 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12238
12239         * Makefile.in (READ_MD_H): New variable.
12240         (BUILD_RTL): Add build/read-md.o.
12241         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
12242         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
12243         (build/genattrtab.o, build/genconditions.o build/genemit.o)
12244         (build/genextract.o, build/genflags.o, build/genoutput.o)
12245         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
12246         (build/read-md.o): New rule.
12247         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
12248         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
12249         * coretypes.h: ...here.
12250         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
12251         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
12252         * genattr.c: Include read-md.h.
12253         * genattrtab.c: Likewise.
12254         * genconditions.c: Likewise.
12255         * genemit.c: Likewise.
12256         * genextract.c: Likewise.
12257         * genflags.c: Likewise.
12258         * genoutput.c: Likewise.
12259         * genpreds.c: Likewise.
12260         * genrecog.c: Likewise.
12261         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
12262         (join_c_conditions, print_c_condition, read_rtx_filename)
12263         (read_rtx_lineno): Move to read-md.h.
12264         * read-rtl.c: Include read-md.h.
12265         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
12266         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
12267         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
12268         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
12269         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
12270         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
12271         (read_braced_string, read_string): Move to read-md.c.
12272         (read_rtx): Move some initialization to init_md_reader and call
12273         init_md_reader here.
12274         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
12275         Move to read-md.h.
12276         * gensupport.c: Include read-md.h.
12277         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
12278         * read-md.h, read-md.c: New files.
12279
12280 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
12281
12282         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12283         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12284         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
12285         * config/moxie/moxie.c (moxie_function_value): Make static.
12286         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
12287         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12288
12289 2010-06-10  Martin Jambor  <mjambor@suse.cz>
12290
12291         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
12292         * dbgcnt.def (tree_sra): New counter.
12293         * tree-sra.c: Include dbgcnt.h.
12294         (gate_intra_sra): Check tree_sra debug counter.
12295
12296 2010-06-10  Martin Jambor  <mjambor@suse.cz>
12297
12298         PR tree-optimization/44258
12299         * tree-sra.c (build_access_subtree): Return false iff there is a
12300         partial overlap.
12301         (build_access_trees): Likewise.
12302         (analyze_all_variable_accesses): Disqualify candidates if
12303         build_access_trees returns true for them.
12304
12305 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
12306
12307         PR debug/41371
12308         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
12309         tail-recurse into canonical node.  Fast-forward over
12310         non-canonical VALUEs.
12311
12312 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
12313
12314         PR boostrap/44470
12315         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
12316         (*addsi_1_zext) <TYPE_LEA>: Likewise.
12317         (add lea splitter): Likewise.
12318         (add_zext lea splitter): Likewise.
12319
12320 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
12321
12322         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
12323
12324 2010-06-10  Jan Hubicka  <jh@suse.cz>
12325
12326         * df-problems.c (df_live_problem_data): Add live_bitmaps.
12327         (df_live_alloc): Initialize problem data and live_osbtacks.
12328         (df_live_finalize): Remove obstack, problem data; do not
12329         clear all bitmaps.
12330         (df_live_top_dump, df_live_bottom_dump): Do not dump old
12331         data when not allocated.
12332         (df_live_verify_solution_start): Do not allocate problem data.
12333         (df_live_verify_solution_end): Check if out is allocated.
12334         (struct df_md_problem_data): New structure.
12335         (df_md_alloc): Allocate problem data.
12336         (df_md_free): Free problem data; do not clear bitmaps.
12337
12338 2010-06-10  Jan Beulich  <jbeulich@novell.com>
12339
12340         PR bootstrap/37304
12341         * configure.ac: Replace $() with ${} when intending to expand
12342         variables rather than invoking commands.
12343         * configure: Re-generate.
12344
12345 2010-06-10  Jan Hubicka  <jh@suse.cz>
12346
12347         PR rtl-optimization/44460
12348         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
12349         TYPE_NEEDS_CONSTRUCTING sanity check.
12350
12351 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
12352
12353         * doc/include/fdl.texi: Move to GFDL version 1.3.
12354
12355         * doc/cpp.texi: Move to GFDL version 1.3.
12356         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
12357         * doc/gccint.texi: Move to GFDL version 1.3.
12358         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
12359         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
12360         * doc/invoke.texi: Move to GFDL version 1.3.
12361
12362 2010-06-09  Jan Hubicka  <jh@suse.cz>
12363
12364         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
12365         Break out from ...
12366         (propagate) ... here; swap the order.
12367
12368 2010-06-09  Jan Hubicka  <jh@suse.cz>
12369
12370         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
12371         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
12372         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
12373         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
12374
12375 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
12376
12377         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
12378         Do not the gather memory reference in the outer loop if the step
12379         is not a constant.
12380
12381 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
12382
12383         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
12384         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
12385         8 to 4.  Minor change of the related comments.
12386
12387 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12388
12389         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
12390         the scev analysis when the variable is not used outside the loop
12391         in a close phi node: call compute_overall_effect_of_inner_loop.
12392
12393 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12394
12395         * graphite-sese-to-poly.c (single_pred_cond): Renamed
12396         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
12397         (build_sese_conditions_before): Renamed call to single_pred_cond.
12398         (build_sese_conditions_after): Same.
12399
12400 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12401
12402         * graphite-poly.h: Fix comments and indentation.
12403         * graphite-sese-to-poly.c: Same.
12404         (build_sese_conditions_before): Compute stmt and gbb only when needed.
12405         * tree-chrec.c: Fix comments and indentation.
12406         (tree-ssa-loop-niter.c): Same.
12407
12408 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
12409
12410         PR rtl-optimization/42461
12411         * dce.c (deletable_insn_p): Return true for const or pure calls again.
12412         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
12413
12414 2010-06-09  Jan Hubicka  <jh@suse.cz>
12415
12416         * bitmap.c (bitmap_and): Walk array forward.
12417         (bitmap_and_compl_into): Likewise.
12418         (bitmap_xor): Likewise.
12419         (bitmap_xor_into):  Likewise.
12420         (bitmap_equal_p): Likewise.
12421         (bitmap_intersect_p): Likewise.
12422         (bitmap_intersect_compl_p): Likewise.
12423         (bitmap_ior_and_into): Likewise.
12424         (bitmap_elt_copy): Likewise.
12425         (bitmap_and_compl): Likewise.
12426         (bitmap_elt_ior): Likewise.
12427
12428 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
12429
12430         * opts-common.c (prune_options): Ensure replacement argv array
12431         is correctly terminated by a NULL entry.
12432
12433 2010-06-09  Jan Hubicka  <jh@suse.cz>
12434
12435         * cgraph.h (varpool_first_static_initializer,
12436         varpool_next_static_initializer): Make checking only when
12437         checking enabled.
12438         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
12439         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
12440         gcc_assert to gcc_checking_assert.
12441         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
12442         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
12443         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
12444         op_iter_init_phiuse, op_iter_init_phidef,
12445         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
12446         gcc_checking_assert.
12447         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
12448         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
12449         partition_is_global, live_on_entry, live_on_exit,
12450         live_merge_and_clear): Likewise.
12451         * system.h (gcc_checking_assert): New macro.
12452         * gimple.h (set_bb_seq): Use gcc_checking_assert.
12453
12454 2010-06-09  Jason Merrill  <jason@redhat.com>
12455
12456         * Makefile.in (TAGS): Collect tags info from c-family.
12457
12458 2010-06-09  Jan Hubicka  <jh@suse.cz>
12459
12460         * gimple.h (gcc_gimple_checking_assert): New macro.
12461         (gimple_set_def_ops, gimple_set_use_ops,
12462         gimple_set_vuse, gimple_set_vdef,
12463         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
12464         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
12465         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
12466         gimple_asm_output_op, gimple_asm_output_op_ptr,
12467         gimple_asm_set_output_op, gimple_asm_clobber_op,
12468         gimple_asm_set_clobber_op, gimple_asm_label_op,
12469         gimple_asm_set_label_op, gimple_try_set_kind,
12470         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
12471         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
12472         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
12473         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
12474         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
12475         gimple_omp_for_set_initial, gimple_omp_for_final,
12476         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
12477         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
12478         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
12479         conditional with ENABLE_GIMPLE_CHECKING.
12480         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
12481
12482 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
12483
12484         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
12485         (get_computation_cost_at): Use it.
12486         (determine_use_iv_cost_condition): Likewise.
12487         (determine_iv_cost): Likewise.
12488
12489 2010-06-09  Richard Guenther  <rguenther@suse.de>
12490
12491         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
12492         replace constants.
12493
12494 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
12495
12496         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
12497
12498 2010-06-09  Martin Jambor  <mjambor@suse.cz>
12499
12500         PR tree-optimization/44423
12501         * tree-sra.c (dump_access): Dump also grp_assignment_read.
12502         (analyze_access_subtree): Pass negative allow_replacements to children
12503         if the current type is scalar.
12504
12505 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
12506
12507         PR testsuite/42843
12508         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
12509         * doc/plugins.texi (Plugin license check): Update information
12510         on type of plugin_is_GPL_compatible.
12511         * Makefile.in (PLUGINCC): Define as $(COMPILER).
12512         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
12513
12514 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
12515
12516         * config/arm/arm.c (thumb2_reorg): New function.
12517         (arm_reorg): Call it.
12518         * config/arm/thumb2.md (define_peephole2 for flag clobbering
12519         arithmetic operations): Delete.
12520
12521 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
12522
12523         PR target/44067
12524         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
12525         e500v2 target.
12526
12527 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
12528
12529         PR plugins/44459
12530         * gcc-plugin.h: Encapsulate all declarations in extern "C".
12531
12532 2010-06-08  Jan Hubicka  <jh@suse.cz>
12533
12534         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
12535         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
12536
12537 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
12538
12539         PR tree-optimization/39874
12540         PR middle-end/28685
12541         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
12542         Declare.
12543         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
12544         same_bool_result_p): New.
12545         (and_var_with_comparison, and_var_with_comparison_1,
12546         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
12547         (or_var_with_comparison, or_var_with_comparison_1,
12548         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
12549         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
12550         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
12551         of combine_comparisons.
12552         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
12553
12554 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
12555
12556         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12557         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12558         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
12559         pdp11_function_value_regno_p): New functions.
12560         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12561         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12562
12563 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
12564
12565         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
12566         Thumb-2 in the MINUS case.
12567
12568 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12569
12570         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
12571
12572         * doc/gty.texi (GTY Options): Document typed GC allocation and
12573         variable_size GTY option.
12574
12575         * ggc-internal.h: New.
12576
12577         * ggc.h: Update copyright year.
12578         (digit_string): Move to stringpool.c.
12579         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
12580         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
12581         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
12582         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
12583         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
12584         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
12585         (ggc_force_collect, ggc_get_size, ggc_statistics)
12586         (ggc_print_common_statistics): Move to ggc-internal.h.
12587         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
12588         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
12589         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
12590         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
12591         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
12592         (ggc_alloc_zone_pass_stat): Remove.
12593         (ggc_internal_alloc_stat, ggc_internal_alloc)
12594         (ggc_internal_cleared_alloc_stat): New.
12595         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
12596         (ggc_internal_vec_alloc_stat)
12597         (ggc_internal_cleared_vec_alloc_stat)
12598         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
12599         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
12600         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
12601         (ggc_cleared_alloc_ptr_array_two_args): New.
12602         (htab_create_ggc, splay_tree_new_ggc): Redefine.
12603         (ggc_splay_alloc): Change the type of the first argument to
12604         enum gt_types_enum.
12605         (ggc_alloc_string): Make macro.
12606         (ggc_alloc_string_stat): New.
12607         (ggc_strdup): Redefine.
12608         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
12609         (ggc_alloc_rtvec_sized): New.
12610         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
12611         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
12612         (ggc_internal_cleared_alloc_zone_stat)
12613         (ggc_internal_zone_alloc_stat)
12614         (ggc_internal_zone_cleared_alloc_stat)
12615         (ggc_internal_zone_vec_alloc_stat)
12616         (ggc_alloc_zone_rtx_def_stat)
12617         (ggc_alloc_zone_tree_node_stat)
12618         (ggc_alloc_zone_cleared_tree_node_stat)
12619         (ggc_alloc_cleared_gimple_statement_d_stat): New.
12620
12621         * ggc-common.c: Include ggc-internal.h.
12622         (ggc_internal_cleared_alloc_stat): Rename from
12623         ggc_alloc_cleared_stat.
12624         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
12625         (ggc_calloc): Remove.
12626         (ggc_cleared_alloc_htab_ignore_args): New.
12627         (ggc_cleared_alloc_ptr_array_two_args): New.
12628         (ggc_splay_alloc): Add obj_type parameter.
12629         (init_ggc_heuristics): Formatting fixes.
12630
12631         * ggc-none.c: Update copyright year.
12632         (ggc_alloc_stat): Rename to ggc_alloc_stat.
12633         (ggc_alloc_cleared_stat): Rename to
12634         ggc_internal_cleared_alloc_stat.
12635         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
12636
12637         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
12638         Remove references to ggc_alloc in comments.
12639         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
12640         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
12641         (new_ggc_zone, destroy_ggc_zone): Remove.
12642         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
12643
12644         * ggc-zone.c: Include ggc-internal.h.  Remove references to
12645         ggc_alloc in comments.
12646         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
12647         (ggc_internal_alloc_zone_pass_stat): New.
12648         (ggc_internal_cleared_alloc_zone_stat): New.
12649         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
12650         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
12651         (new_ggc_zone, destroy_ggc_zone): Remove.
12652
12653         * stringpool.c: Update copyright year.  Include ggc-internal.h
12654         (digit_vector): Make static.
12655         (digit_string): Moved from ggc.h.
12656         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
12657         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
12658
12659         * Makefile.in (GGC_INTERNAL_H): New.
12660         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
12661         $(GGC_INTERNAL_H) to dependencies.
12662
12663         * gentype.c: Update copyright year.
12664         (walk_type): Accept variable_size GTY option.
12665         (USED_BY_TYPED_GC_P): New macro.
12666         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
12667         whitespace at the end of strings.
12668         (get_type_specifier, variable_size_p): New functions.
12669         (alloc_quantity, alloc_zone): New enums.
12670         (write_typed_alloc_def): New function.
12671         (write_typed_struct_alloc_def): Likewise.
12672         (write_typed_typed_typedef_alloc_def): Likewise.
12673         (write_typed_alloc_defns): Likewise.
12674         (output_typename, write_splay_tree_allocator_def): Likewise.
12675         (write_splay_tree_allocators): Likewise.
12676         (main): Call write_typed_alloc_defns and
12677         write_splay_tree_allocators.
12678
12679         * lto-streamer.h (lto_file_decl_data_ptr): New.
12680
12681         * passes.c (order): Define using cgraph_node_ptr.
12682
12683         * strinpool.c (struct string_pool_data): Declare nested_ptr using
12684         ht_identifier_ptr.
12685
12686         * gimple.h (union gimple_statement_d): Likewise.
12687
12688         * rtl.h (struct rtx_def): Likewise.
12689         (struct rtvec_def): Likewise.
12690
12691         * tree.h (union tree_node): Likewise.
12692
12693         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
12694
12695         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
12696
12697         * tree-scalar-evolution.c (scev_initialize): Likewise.
12698
12699         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
12700
12701         * dwarf2asm.c (dw2_force_const_mem): Likewise.
12702
12703         * omp-low.c (lower_omp_critical): Likewise.
12704
12705         * bitmap.h (struct bitmap_head_def): Update comment to not
12706         reference ggc_alloc.
12707
12708         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
12709
12710         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
12711
12712         * ipa-prop.c (duplicate_ggc_array): Rename to
12713         duplicate_ipa_jump_func_array.  Use typed GC allocation.
12714         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
12715
12716         * gimple.c (gimple_alloc_stat): Use
12717         ggc_alloc_cleared_gimple_statement_d_stat.
12718
12719         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
12720
12721         * tree.c (make_node_stat): Use
12722         ggc_alloc_zone_cleared_tree_node_stat.
12723         (make_tree_vec_stat): Likewise.
12724         (build_vl_exp_stat): Likewise.
12725         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
12726         (make_tree_binfo_stat): Likewise.
12727         (tree_cons_stat): Likewise.
12728
12729         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
12730         (shallow_copy_rtx_stat): Likewise.
12731         (make_node_stat): Likewise.
12732
12733         * lto-symtab.c: Fix comment.
12734
12735         * tree-cfg.c (create_bb): Update comment to not reference
12736         ggc_alloc_cleared.
12737         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
12738
12739         * varpool.c (varpool_node): Use typed GC allocation.
12740         (varpool_extra_name_alias): Likewise.
12741
12742         * varasm.c (emutls_decl): Likewise.
12743         (get_unnamed_section): Likewise.
12744         (get_noswitch_section): Likewise.
12745         (get_section): Likewise.
12746         (get_block_for_section): Likewise.
12747         (build_constant_desc): Likewise.
12748         (create_constant_pool): Likewise.
12749         (force_const_mem): Likewise.
12750
12751         * tree.c (build_vl_exp_stat): Likewise.
12752         (build_real): Likewise.
12753         (build_string): Likewise.
12754         (decl_debug_expr_insert): Likewise.
12755         (decl_value_expr_insert): Likewise.
12756         (type_hash_add): Likewise.
12757         (build_omp_clause): Likewise.
12758
12759         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
12760
12761         * tree-ssa.c (init_tree_ssa): Likewise.
12762
12763         * tree-ssa-structalias.c (heapvar_insert): Likewise.
12764
12765         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
12766
12767         * tree-ssa-loop-niter.c (record_estimate): Likewise.
12768
12769         * tree-ssa-alias.c (get_ptr_info): Likewise.
12770
12771         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
12772
12773         * tree-phinodes.c (allocate_phi_node): Likewise.
12774
12775         * tree-iterator.c (tsi_link_before): Likewise.
12776         (tsi_link_after): Likewise.
12777
12778         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
12779
12780         * tree-dfa.c (create_var_ann): Likewise.
12781
12782         * tree-cfg.c (create_bb): Likewise.
12783
12784         * toplev.c (alloc_for_identifier_to_locale): Likewise.
12785         (general_init): Likewise.
12786
12787         * stringpool.c (stringpool_ggc_alloc): Likewise.
12788         (gt_pch_save_stringpool): Likewise.
12789
12790         * sese.c (if_region_set_false_region): Likewise.
12791
12792         * passes.c (do_per_function_toporder): Likewise.
12793
12794         * optabs.c (set_optab_libfunc): Likewise.
12795         (set_conv_libfunc): Likewise.
12796
12797         * lto-symtab.c (lto_symtab_register_decl): Likewise.
12798
12799         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
12800         (input_eh_region): Likewise.
12801         (input_eh_lp): Likewise.
12802         (make_new_block): Likewise.
12803         (unpack_ts_real_cst_value_fields): Likewise.
12804
12805         * lto-section-in.c (lto_new_in_decl_state): Likewise.
12806
12807         * lto-cgraph.c (input_node_opt_summary): Likewise.
12808
12809         * loop-init.c (loop_optimizer_init): Likewise.
12810
12811         * lambda.h (lambda_vector_new): Likewise.
12812
12813         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
12814
12815         * ira.c (update_equiv_regs): Likewise.
12816
12817         * ipa.c (cgraph_node_set_new): Likewise.
12818         (cgraph_node_set_add): Likewise.
12819         (varpool_node_set_new): Likewise.
12820         (varpool_node_set_add): Likewise.
12821
12822         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
12823         (duplicate_ipa_jump_func_array): Likewise.
12824         (ipa_read_node_info): Likewise.
12825
12826         * ipa-cp.c (ipcp_create_replace_map): Likewise.
12827
12828         * integrate.c (get_hard_reg_initial_val): Likewise.
12829
12830         * gimple.c (gimple_alloc_stat): Likewise.
12831         (gimple_build_omp_for): Likewise.
12832         (gimple_seq_alloc): Likewise.
12833         (gimple_copy): Likewise.
12834
12835         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
12836         (gsi_insert_after_without_update): Likewise.
12837
12838         * function.c (add_frame_space): Likewise.
12839         (insert_temp_slot_address): Likewise.
12840         (assign_stack_temp_for_type): Likewise.
12841         (allocate_struct_function): Likewise.
12842         (types_used_by_var_decl_insert): Likewise.
12843
12844         * except.c (init_eh_for_function): Likewise.
12845         (gen_eh_region): Likewise.
12846         (gen_eh_region_catch): Likewise.
12847         (gen_eh_landing_pad): Likewise.
12848         (add_call_site): Likewise.
12849
12850         * emit-rtl.c (get_mem_attrs): Likewise.
12851         (get_reg_attrs): Likewise.
12852         (start_sequence): Likewise.
12853         (init_emit): Likewise.
12854
12855         * dwarf2out.c (new_cfi): Likewise.
12856         (queue_reg_save): Likewise.
12857         (dwarf2out_frame_init): Likewise.
12858         (new_loc_descr): Likewise.
12859         (find_AT_string): Likewise.
12860         (new_die): Likewise.
12861         (add_var_loc_to_decl): Likewise.
12862         (clone_die): Likewise.
12863         (clone_as_declaration): Likewise.
12864         (break_out_comdat_types): Likewise.
12865         (new_loc_list): Likewise.
12866         (loc_descriptor): Likewise.
12867         (add_loc_descr_to_each): Likewise.
12868         (add_const_value_attribute): Likewise.
12869         (tree_add_const_value_attribute): Likewise.
12870         (add_comp_dir_attribute): Likewise.
12871         (add_name_and_src_coords_attributes): Likewise.
12872         (lookup_filename): Likewise.
12873         (store_vcall_insn): Likewise.
12874         (dwarf2out_init): Likewise.
12875
12876         * dbxout.c (dbxout_init): Likewise.
12877
12878         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
12879
12880         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
12881
12882         * config/score/score7.c (score7_output_external): Likewise.
12883
12884         * config/score/score3.c (score3_output_external): Likewise.
12885
12886         * config/s390/s390.c (s390_init_machine_status): Likewise.
12887
12888         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
12889         (rs6000_init_machine_status): Likewise.
12890         (output_toc): Likewise.
12891
12892         * config/pa/pa.c (pa_init_machine_status): Likewise.
12893         (get_deferred_plabel): Likewise.
12894
12895         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
12896
12897         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
12898
12899         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
12900
12901         * config/mep/mep.c (mep_init_machine_status): Likewise.
12902         (mep_note_pragma_flag): Likewise.
12903
12904         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
12905
12906         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
12907
12908         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
12909
12910         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
12911         (i386_pe_maybe_record_exported_symbol): Likewise.
12912
12913         * config/i386/i386.c (get_dllimport_decl): Likewise.
12914         (ix86_init_machine_status): Likewise.
12915         (assign_386_stack_local): Likewise.
12916
12917         * config/frv/frv.c (frv_init_machine_status): Likewise.
12918
12919         * config/darwin.c (machopic_indirection_name): Likewise.
12920
12921         * config/cris/cris.c (cris_init_machine_status): Likewise.
12922
12923         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
12924
12925         * config/avr/avr.c (avr_init_machine_status): Likewise.
12926
12927         * config/arm/arm.c (arm_init_machine_status): Likewise.
12928
12929         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
12930         (alpha_need_linkage): Likewise.
12931         (alpha_use_linkage): Likewise.
12932
12933         * cgraph.c (cgraph_allocate_node): Likewise.
12934         (cgraph_create_edge_1): Likewise.
12935         (cgraph_create_indirect_edge): Likewise.
12936         (cgraph_add_asm_node): Likewise.
12937
12938         * cfgrtl.c (init_rtl_bb_info): Likewise.
12939
12940         * cfgloop.c (alloc_loop): Likewise.
12941         (rescan_loop_exit): Likewise.
12942
12943         * cfg.c (init_flow): Likewise.
12944         (alloc_block): Likewise.
12945         (unchecked_make_edge): Likewise.
12946
12947         * c-parser.c (c_parse_init): Likewise.
12948         (c_parse_file): Likewise.
12949
12950         * c-decl.c (bind): Likewise.
12951         (record_inline_static): Likewise.
12952         (push_scope): Likewise.
12953         (make_label): Likewise.
12954         (lookup_label_for_goto): Likewise.
12955         (finish_struct): Likewise.
12956         (finish_enum): Likewise.
12957         (c_push_function_context): Likewise.
12958
12959         * bitmap.c (bitmap_element_allocate): Likewise.
12960         (bitmap_gc_alloc_stat): Likewise.
12961
12962         * alias.c (record_alias_subset): Likewise.
12963         (init_alias_analysis): Likewise.
12964
12965 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
12966
12967         * fold-const.c (fold_comparison): Remove redundant parenthesis.
12968         * tree-inline.c (expand_call_inline): Pass translated return value of
12969         cgraph_inline_failed_string to diagnostic function.
12970
12971 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
12972             Shujing Zhao  <pearly.zhao@oracle.com>
12973
12974         PR c/37724
12975         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
12976         implicit bad conversions is initialization.
12977         (error_init): Use gmsgid instead of msgid for argument name and change
12978         the call for error.
12979         (pedwarn_init): Use gmsgid instead of msgid for argument name and
12980         change the call for pedwarn.
12981         (warning_init): Use gmsgid instead of msgid for argument name and
12982         change the call for warning.
12983
12984 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
12985
12986         * config/mips/mips-protos.h (mips_print_operand): Delete.
12987         (mips_print_operand_address): Delete.
12988         * config/mips/mips.h (mips_print_operand_punct): Delete.
12989         (PRINT_OPERAND): Delete.
12990         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12991         (PRINT_OPERAND_ADDRESS): Delete.
12992         * config/mips/mips.c (mips_print_operand_punct): Make static.
12993         (mips_print_operand_address): Make static.
12994         (mips_print_operand): Make static.  Call
12995         mips_print_operand_punct_valid_p.
12996         (mips_print_operand_punct_valid_p): New function.
12997         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12998         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12999
13000 2010-06-07  Jan Hubicka  <jh@suse.cz>
13001
13002         PR middle-end/44454
13003         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
13004         are allocated.
13005
13006 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
13007
13008         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
13009         name of RECORD.
13010
13011 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13012
13013         * doc/sourcebuild.texi (Effective-Target Keywords, Other
13014         attributes): Document gas.
13015
13016 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
13017
13018         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
13019         <TYPE_LEA>: Split instruction.
13020         <default>: Remove alternative 2 handling.
13021         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
13022         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
13023         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
13024
13025         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
13026         (ashift_zext lea splitter): Use DImode for multiplication.
13027
13028         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
13029         to generate addition.
13030
13031 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
13032
13033         * common.opt (fira-verbose): Use Var.
13034         (fpcc-struct-return): Use Init instead of VarExists.
13035         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
13036         toplev.c.
13037         * flags.h (flag_signed_char, flag_short_enums,
13038         flag_pcc_struct_return, flag_ira_verbose,
13039         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
13040         * toplev.c (flag_detailed_statistics, flag_signed_char,
13041         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
13042         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
13043         * toplev.h (flag_crossjumping, flag_if_conversion,
13044         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
13045         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
13046         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
13047         flag_cprop_registers, time_report, flag_ira_loop_pressure,
13048         flag_ira_coalesce, flag_ira_move_spills,
13049         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
13050
13051 2010-06-07  Jan Hubicka  <jh@suse.cz>
13052
13053         * df-core.c (df_analyze_problem): Do verification after allocation.
13054
13055         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
13056         (df_lr_alloc): Initialize problem data; move bitmaps to
13057         lr_bitmaps obstack.
13058         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
13059         (df_lr_verify_solution_start): Do not initialize problem data;
13060         allocate bitmaps in lr_bitmaps.
13061         (df_lr_verify_solution_end): Do not free problem data.
13062
13063 2010-06-07  Jan Hubicka  <jh@suse.cz>
13064
13065         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
13066         if caller is noreturn.
13067         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
13068         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
13069         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
13070         * ipa-pure-const.c (check_decl): Add IPA parameter.
13071         (state_from_flags): New function.
13072         (better_state, worse_state): New functions.
13073         (check_call): When in IPA mode, do not care about callees.
13074         (check_load, check_store): Update.
13075         (check_ipa_load, check_ipa_store): New.
13076         (check_stmt): When in IPA mode, use IPA checkers.
13077         (analyze_function): Use state_from_flags.
13078         (propagate): Check indirect edges and references.
13079
13080 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
13081
13082         PR rtl-optimization/44404
13083         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
13084         of count_occurrences to see if it's safe to modify mem_insn.
13085
13086 2010-06-07  Richard Guenther  <rguenther@suse.de>
13087
13088         * gimplify.c (gimplify_cleanup_point_expr): For empty body
13089         and EH-only cleanup drop the cleanup instead of inserting it
13090         unconditionally.
13091
13092 2010-06-07  Ira Rosen  <irar@il.ibm.com>
13093
13094         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
13095         documentation.
13096         * targhooks.c (default_builtin_vectorization_cost): New function.
13097         * targhooks.h (default_builtin_vectorization_cost): Declare.
13098         * target.h (enum vect_cost_for_stmt): Define.
13099         (builtin_vectorization_cost): Change argument and comment.
13100         * tree-vectorizer.h: Remove cost model macros.
13101         * tree-vect-loop.c: Include target.h.
13102         (vect_get_cost): New function.
13103         (vect_estimate_min_profitable_iters): Replace cost model macros with
13104         calls to vect_get_cost.
13105         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
13106         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
13107         default implementation.
13108         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
13109         calls to target hook builtin_vectorization_cost.
13110         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
13111         Likewise.
13112         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
13113         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
13114         implementation to return costs.
13115         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
13116         * config/spu/spu.h: Remove vectorizer cost model macros.
13117         * config/i386/i386.h: Likewise.
13118         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
13119         a call to target hook builtin_vectorization_cost.
13120
13121 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
13122
13123         PR target/44319
13124         * config/i386/i386.c (override_options): Turn zee pass on for level 2
13125         and above and defer till target is known.
13126         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
13127         turn off otherwise.
13128
13129 2010-05-25  Jan Hubicka  <jh@suse.cz>
13130
13131         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
13132         (df_compact_blocks): Likewise.
13133         * df.h (struct df): Turn hardware_regs_used,
13134         regular_block_artificial_uses, eh_block_artificial_uses,
13135         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
13136         bitmap_head.
13137         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
13138         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
13139         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
13140         df_scan_blocks, df_insn_delete, df_insn_rescan,
13141         df_insn_rescan_debug_internal, df_insn_rescan_all,
13142         df_process_deferred_rescans, df_process_deferred_rescans,
13143         df_notes_rescan, df_get_call_refs, df_get_call_refs,
13144         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
13145         df_record_entry_block_defs, df_record_exit_block_uses,
13146         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
13147         df_scan_verify): Update.
13148
13149 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
13150
13151         PR c++/44188
13152         * c-common.c (is_typedef_decl): Move this definition ...
13153         * tree.c (is_typedef_decl): ... here.
13154         (typdef_variant_p): Move definition here from cp/tree.c.
13155         * c-common.h (is_typedef_decl): Move this declaration ...
13156         * tree.h (is_typedef_decl): ... here.
13157         (typedef_variant_p): Move declaration here from cp/cp-tree.h
13158         * dwarf2out.c (is_naming_typedef_decl): New function.
13159         (gen_tagged_type_die): Split out of ...
13160         (gen_type_die_with_usage): ... this function. When an anonymous
13161         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
13162         is emitted for the typedef.
13163         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
13164         anonymous tagged types.
13165
13166 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13167
13168         PR c/20000
13169         * c-decl.c (grokdeclarator): Delete warning.
13170
13171 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13172
13173         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
13174         newly built CALL_EXPR.
13175         * tree-profile.c (tree_profiling): Don't profile functions produced
13176         for built-in stuff.
13177
13178 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
13179
13180         PR bootstrap/44427
13181         PR bootstrap/44428
13182         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
13183         endianness-independent.
13184
13185 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
13186
13187         * c-common.c: Move to c-family/.
13188         * c-common.def: Likewise.
13189         * c-common.h: Likewise.
13190         * c-cppbuiltin.c: Likewise.
13191         * c-dump.c: Likewise.
13192         * c-format.c: Likewise.
13193         * c-format.h : Likewise.
13194         * c-gimplify.c: Likewise.
13195         * c-lex.c: Likewise.
13196         * c-omp.c: Likewise.
13197         * c.opt: Likewise.
13198         * c-opts.c: Likewise.
13199         * c-pch.c: Likewise.
13200         * c-ppoutput.c: Likewise.
13201         * c-pragma.c: Likewise.
13202         * c-pragma.h: Likewise.
13203         * c-pretty-print.c: Likewise.
13204         * c-pretty-print.h: Likewise.
13205         * c-semantics.c: Likewise.
13206         * stub-objc.c: Likewise.
13207
13208         * gengtype.c (get_file_langdir): Special-case files in c-family/.
13209         (get_output_file_with_visibility): Fix name for c-common.h.
13210         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
13211
13212         * c-tree.h: Update include path for moved files.
13213         * c-lang.c: Likewise.
13214         * c-lang.h: Likewise.
13215         * c-parser.c: Likewise.
13216         * c-convert.c: Likewise.
13217         * c-decl.c: Likewise.
13218         * c-objc-common.c: Likewise.
13219         * configure.ac: Make sure c-family/ exists in the build directory.
13220         * configure: Regenerate.
13221         * Makefile.in: Update paths for moved files.  Regroup files per
13222         location and update dependencies.  Move generated_files down after
13223         ALL_GTFILES_H.
13224
13225         * config/spu/spu-c.c: Update paths for moved files.
13226         * config/mep/mep-pragma.c: Likewise.
13227         * config/darwin-c.c: Likewise.
13228         * config/i386/msformat-c.c: Likewise.
13229         * config/i386/i386-c.c: Likewise.
13230         * config/avr/avr-c.c: Likewise.
13231         * config/sol2-c.c: Likewise.
13232         * config/ia64/ia64-c.c: Likewise.
13233         * config/rs6000/rs6000-c.c: Likewise.
13234         * config/arm/arm.c: Likewise.
13235         * config/arm/arm-c.c: Likewise.
13236         * config/h8300/h8300.c: Likewise.
13237         * config/v850/v850-c.c: Likewise.
13238
13239         * config/t-darwin: Fix dependencies for moved files.
13240         * config/t-sol2: Fix dependencies for moved files.
13241         * config/mep/t-mep: Fix dependencies for moved files.
13242         * config/ia64/t-ia64: Fix dependencies for moved files.
13243         * config/rs6000/t-rs6000: Fix dependencies for moved files.
13244         * config/v850/t-v850: Fix dependencies for moved files.
13245         * config/v850/t-v850e: Fix dependencies for moved files.
13246
13247         * config/m32c/m32c-pragma.c
13248
13249         * po/exgettext: Look in c-family/ also.
13250
13251 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
13252
13253         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
13254         (mark_control_dependent_edges_necessary): Call it instead of marking
13255         the last statement manually.
13256         (propagate_necessity): Likewise.
13257
13258 2010-06-05  Jan Hubicka  <jh@suse.cz>
13259
13260         * basic-block.h (compute_dominance_frontiers): Updated.
13261         (compute_idf): Likewise.
13262
13263         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
13264         for dominance frontiers.
13265         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
13266         (insert_updated_phi_nodes_for): Likewise.
13267         (update_ssa): Likewise.
13268         * cfganal.c (compute_dominance_frontiers_1): Likewise.
13269         (compute_dominance_frontiers): Likewise.
13270         (compute_idf): Likewise.
13271         * df-problems.c (df_md_local_compute): Likewise.
13272
13273 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
13274
13275         * target.h (struct gcc_target): Add memory_move_cost field.
13276         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
13277         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
13278         * targhooks.c (default_memory_move_cost): New function.
13279         * targhooks.h (default_memory_move_cost): Declare function.
13280         * reload.h (memory_move_cost): Declare.
13281         (memory_move_secondary_cost): Change type of 'in' argument to bool.
13282         * reginfo.c (memory_move_cost): New function.
13283         (memory_move_secondary_cost): Change type of 'in' argument to bool.
13284         * ira.h (ira_memory_move_cost): Update comment.
13285         * ira.c (ira_memory_move_cost): Update comment.
13286         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
13287         with memory_move_cost.
13288         * postreload.c (reload_cse_simplify_set): (Ditto.).
13289         * reload1.c (choose_reload_regs): (Ditto.).
13290         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
13291         (MEMORY_MOVE_COST):  Revise documentation.
13292
13293         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
13294         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
13295         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
13296         type of 'in' argument to bool.
13297         (TARGET_MEMORY_MOVE_COST): Define.
13298
13299 2010-06-05  Jan Hubicka  <jh@suse.cz>
13300
13301         * ipa-pure-const.c (propagate): Fix typo in handling of functions
13302         that cannot return.  Be more careful when merging the results with
13303         previously known ones.
13304
13305 2010-06-05  Matthias Klose  <doko@ubuntu.com>
13306
13307         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
13308         function to add the -iplugindir option.
13309         (find_plugindir_spec_function): Add new declaration and function.
13310         (static_spec_func): Use it for "find-plugindir".
13311
13312 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
13313
13314         PR c++/44361
13315         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
13316         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
13317         statement expression.
13318
13319 2010-06-05  Jan Hubicka  <jh@suse.cz>
13320
13321         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
13322         (df_rd_problem_data): Convert sparse_invalidated_by_call,
13323         dense_invalidated_by_call to bitmap head.
13324         (df_rd_alloc, df_rd_bb_local_compute_process_def,
13325         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
13326         df_rd_start_dump, df_lr_verify_transfer_functions,
13327         df_live_verify_transfer_functions, df_chain_create_bb,
13328         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
13329         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
13330         df_simulate_one_insn_forwards, df_md_alloc,
13331         df_md_bb_local_compute_process_def,
13332         df_md_bb_local_compute_process_def, df_md_local_compute,
13333         df_md_transfer_function df_md_free): Update.
13334
13335 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
13336
13337         PR c/44322
13338         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
13339         target type for ADDR_EXPR; require no changes to qualifiers except
13340         for function types.
13341         * c-tree.h (c_build_type_variant): Remove.
13342
13343 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
13344
13345         * genautomata.c (get_excl_set): Do work per element, not per char.
13346         (check_presence_pattern_sets): Similar.
13347         (check_absence_pattern_sets): Similar.
13348
13349 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
13350
13351         * genautomata.c (curr_state_pass_num): Delete.
13352         (min_issue_delay_pass_states): Delete.
13353         (min_issue_delay): Delete.
13354         (initiate_min_issue_delay_pass_states): Delete.
13355         (output_min_issue_delay_table): Compute min_issue_delay_vect
13356         using a breadth-first search variant.
13357         (output_tables): Don't call initiate_min_issue_delay_pass_states.
13358
13359 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
13360
13361         PR boostrap/44421
13362         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
13363         (df_byte_lr_bb_local_compute): Likewise.
13364
13365 2010-06-03  Jason Merrill  <jason@redhat.com>
13366
13367         Implement noexcept operator (5.3.7)
13368         * c-common.c (c_common_reswords): Add noexcept.
13369         * c-common.h (enum rid): Add RID_NOEXCEPT.
13370
13371 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
13372
13373         * config/darwin-driver.c (darwin_default_min_version): Use
13374         GCC-specific formats in diagnostics.
13375         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
13376         diagnostics.
13377         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
13378         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
13379         eval_spec_function, handle_braces, process_brace_body, main,
13380         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
13381         getenv_spec_function, compare_version_strings,
13382         version_compare_spec_function): Use GCC-specific formats in
13383         diagnostics.
13384
13385 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
13386
13387         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
13388         that operand 0 and operand 1 are equal.
13389         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
13390         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
13391         and operand 1 are equal.
13392         <default>: Ditto.  Remove ??? comment.
13393         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
13394         and operand 1 are equal.
13395         <default>: Ditto.  Remove ??? comment.
13396         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
13397         are equal.
13398         (*add<mode>_4) <default>: Ditto.
13399         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
13400
13401 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
13402
13403         * config/i386/i386-protos.h (ix86_print_operand): Declare.
13404         * config/i386/i386.c (ix86_print_operand): Make non-static.
13405         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
13406         * output.h (output_operand): Declare.
13407         * final.c (output_operand): Make non-static.
13408
13409 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
13410
13411         PR rtl-optimization/44013
13412         * sched-deps.c (add_dependence_list_and_free): Don't free lists
13413         when processing debug insns.
13414
13415         PR debug/41371
13416         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
13417         recursing.  Check that recursion is bounded.  Rename inner var
13418         to avoid hiding incoming argument.
13419
13420 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
13421
13422         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
13423         operands[2] == 255.
13424         (*addqi_3): Ditto.
13425         (*addqi_4): Ditto.
13426         (*addqi_5): Ditto.
13427         (*addqi_ext_1_rex64): Ditto.
13428         (*addqi_ext_1): Ditto.
13429
13430         (*addqi_4): Check for incdec_operand in QImode.
13431
13432         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
13433         using SWI mode iterator.
13434         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
13435         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
13436         mode iterator.
13437         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
13438         using SWI mode iterator.
13439
13440 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13441
13442         PR c/25880
13443         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
13444         * c-format.c (gcc_diag_flag_specs): Add hash.
13445         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
13446         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
13447         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
13448         pp_c_cv_qualifiers. Handle qualifiers spelling here.
13449         (pp_c_type_qualifier_list): Call the function above.
13450         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
13451         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
13452         (WARN_FOR_QUALIFIERS): New macro.
13453         (convert_for_assignment): Use it.
13454
13455 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
13456
13457         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
13458
13459 2010-06-04  Jan Hubicka  <jh@suse.cz>
13460
13461         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
13462         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
13463         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
13464         DF_BYTE_LR_OUT): Update for embedded bitmaps.
13465         * fwprop.c (single_def_use_enter_block): Likewise.
13466         * ddg.c (create_ddg_dep_from_intra_loop_link,
13467         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
13468         * loop-iv.c (latch_dominating_def): Likewise.
13469         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
13470         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
13471         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
13472         df_rd_transfer_function, df_rd_top_dump,
13473         df_rd_bottom_dump): Update.
13474         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
13475         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
13476         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
13477         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
13478         df_lr_verify_solution_start, df_lr_verify_solution_end,
13479         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
13480         df_live_free_bb_info, df_live_alloc, df_live_reset,
13481         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
13482         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
13483         df_live_verify_solution_start, df_live_verify_solution_end,
13484         df_live_verify_transfer_functions, df_chain_create_bb,
13485         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
13486         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
13487         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
13488         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
13489         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
13490         df_byte_lr_transfer_function, df_byte_lr_top_dump,
13491         df_byte_lr_bottom_dump, df_create_unused_note,
13492         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
13493         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
13494         df_md_transfer_function, df_md_init, df_md_confluence_0,
13495         df_md_confluence_n,
13496         df_md_top_dump, df_md_bottom_dump): Update.
13497         (struct df_lr_problem_data): Embedd bitmap headers.
13498
13499 2010-06-04  Jan Hubicka  <jh@suse.cz>
13500
13501         * dce.c (dce_process_block): Do not re-scan already marked
13502         instructions.
13503
13504 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
13505
13506         PR rtl-optimization/39871
13507         PR rtl-optimization/40615
13508         PR rtl-optimization/42500
13509         PR rtl-optimization/42502
13510         * ira.c (init_reg_equiv_memory_loc: New function.
13511         (ira): Call it twice.
13512         * reload.h (calculate_elim_costs_all_insns): Declare.
13513         * ira-costs.c: Include "reload.h".
13514         (regno_equiv_gains): New static variable.
13515         (init_costs): Allocate it.
13516         (finish_costs): Free it.
13517         (ira_costs): Call calculate_elim_costs_all_insns.
13518         (find_costs_and_classes): Take estimated elimination costs
13519         into account.
13520         (ira_adjust_equiv_reg_cost): New function.
13521         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
13522         * reload1.c (init_eliminable_invariants, free_reg_equiv,
13523         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
13524         (elim_bb): New static variable.
13525         (reload): Move code out of here into init_eliminable_invariants and
13526         free_reg_equiv.  Call them.
13527         (calculate_elim_costs_all_insns): New function.
13528         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
13529         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
13530         but call note_reg_elim_costly if we turned a valid memory address
13531         into an invalid one.
13532         * Makefile.in (ira-costs.o): Depend on reload.h.
13533
13534 2010-06-04  Julian Brown  <julian@codesourcery.com>
13535
13536         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
13537         for pool ranges.
13538
13539 2010-06-04  Richard Guenther  <rguenther@suse.de>
13540
13541         PR lto/41584
13542         * cgraph.h (struct varpool_node): Add lto_file_data field.
13543         * lto-cgraph.c (input_varpool_node): Initialize it.
13544
13545 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
13546
13547         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
13548         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
13549         predicate in "type" attribute calculation.
13550         (*addsi_1_zext): Ditto.
13551         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
13552         (*addsi_2_zext): Ditto.
13553         (*add<mode>_3): Ditto.
13554         (*addsi_3_zext): Ditto.
13555         (*add<mode>_5): Ditto.
13556
13557 2010-06-03  Jan Hubicka  <jh@suse.cz>
13558
13559         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
13560         of bitmap_bit_p.
13561         * cfganal.c (compute_dominance_frontiers_1): Likewise.
13562
13563 2010-06-03  Jan Hubicka  <jh@suse.cz>
13564
13565         * df-problems.c (df_create_unused_note, df_note_bb_compute):
13566         micro-optimize the checks when to add new note.
13567
13568 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
13569
13570         * final.c (output_asm_insn): Call
13571         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
13572         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
13573         (output_address): Call targetm.asm_out.print_operand_address.
13574         Update comments.
13575         * target.h (struct gcc_target): Add print_operand,
13576         print_operand_address, and print_operand_punct_valid_p fields.
13577         * targhooks.h (default_print_operand): Declare.
13578         (default_print_operand_address): Declare.
13579         (default_print_operand_punct_valid_p): Declare.
13580         * targhooks.c (default_print_operand): Define.
13581         (default_print_operand_address): Define.
13582         (default_print_operand_punct_valid_p): Define.
13583         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
13584         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
13585         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
13586         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
13587         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
13588         * vmsdbgout.c (addr_const_to_string): Update comment.
13589         * config/i386/i386.c (print_operand): Rename to...
13590         (ix86_print_operand): ...this.  Make static.
13591         (print_operand_address): Rename to...
13592         (ix86_print_operand_address): ...this.  Make static.  Call
13593         ix86_print_operand instead of PRINT_OPERAND.
13594         (ix86_print_operand_punct_valid_p): New function.
13595         (TARGET_PRINT_OPERAND): Define.
13596         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13597         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13598         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
13599         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13600         (PRINT_OPERAND): Delete.
13601         (PRINT_OPERAND_ADDRESS): Delete.
13602         * config/i386/i386-protos.h (print_operand): Delete prototype.
13603         (print_operand_address): Delete prototype.
13604
13605 2010-06-03  Richard Guenther  <rguenther@suse.de>
13606
13607         PR tree-optimization/44403
13608         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13609         Preserve pointer qualifiers.
13610         (vect_create_data_ref_ptr): Likewise.
13611
13612 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
13613
13614         PR c++/44294
13615         * defaults.h (MAX_FIXED_MODE_SIZE): New.
13616
13617         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
13618
13619 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
13620
13621         PR debug/44375
13622         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
13623         return false if merging the bbs would lead to goto_locus
13624         location being lost from the IL.
13625
13626 2010-06-03  Jan Hubicka  <jh@suse.cz>
13627             Jakub Jelinek  <jakub@redhat.com>
13628
13629         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
13630         set->regs[i] is NULL or has just one entry.
13631
13632 2010-06-03  Jan Hubicka  <jh@suse.cz>
13633
13634         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
13635         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
13636
13637 2010-06-03  Paul Brook  <paul@codesourcery.com>
13638
13639         * config/arm/arm.c (FL_TUNE): Define.
13640         (arm_default_cpu, arm_cpu_select): Remove.
13641         (all_cores): Populate core field.
13642         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
13643         (arm_find_cpu): New function.
13644         (arm_handle_option): Lookup cpu/architecture names.
13645         (arm_override_options): Cleanup mcpu/march/mtune handling.
13646         (arm_file_start): Ditto.
13647
13648 2010-06-03  Alan Modra  <amodra@gmail.com>
13649
13650         PR target/44169
13651         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
13652         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
13653         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
13654         (rs6000_emit_load_toc_table): Likewise.
13655
13656 2010-06-02  Jan Hubicka  <jh@suse.cz>
13657
13658         * passes.c (init_optimization_passes): Put ipa reference
13659         after ipa pure-const.
13660
13661 2010-06-02  Jan Hubicka  <jh@suse.cz>
13662
13663         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
13664         calls_read_all and calls_write_all.
13665         (get_reference_optimization_summary): Fix formatting.
13666         (is_proper_for_analysis): Check that decl is not readonly.
13667         (propagate_bits): Check CONST/PURE/noreturn flags.
13668         (ipa_init): Move all_module_statics to optimization_summary_obstack.
13669         (analyze_function): Ignore indirect edges.
13670         (copy_global_bitmap): For all module statics, do nothing.
13671         (generate_summary): Do not print calls_read_all/calls_write_all.
13672         (read_write_all_from_decl): Take node as argument; check
13673         cgraph_node_cannot_return.
13674         (propagate): Reorganize read_all/write_all computation;
13675         check indirect edges; check ecf flags; use all_module_statics
13676         in the results; do not free all_module_statics.
13677         (stream_out_bitmap): Handle all_module_statics.
13678         (ipa_reference_write_optimization_summary): Likewise; use
13679         varpool/cgraph encoders to get boundaries.
13680         (ipa_reference_read_optimization_summary): Read in all_module_statics;
13681         use it when possible.
13682
13683 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13684
13685         PR target/44218
13686         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
13687         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
13688
13689         * doc/extend.texi (powerpc builtins): Document vec_recip,
13690         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
13691
13692         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
13693         (rs6000_emit_swrsqrt): Ditto.
13694         (rs6000_emit_swdivsf): Delete.
13695         (rs6000_emit_swdivdf): Ditto.
13696         (rs6000_emit_swrsqrtsf): Ditto.
13697
13698         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
13699         describe the reciprocal estimate support for each type.
13700         (recip_options): Map -mrecip=<opt> into option bits.
13701         (gen_2arg_fn_t): New typedef for binary rtx gen function.
13702         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
13703         reciprocal estimate instructions.
13704         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
13705         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
13706         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
13707         cost information if -mdebug=cost or -mdebug=reg.
13708         (rs6000_override_options): Set -mrecip-precision for power6, and
13709         power7 machines.  If -mvsx or -mdfp, enable various options that
13710         came in previous instruction set ISAs, unless the option was
13711         explicitly disabled by the command line option.  Parse
13712         -mrecip=<opt> options.
13713         (rs6000_builtin_vectorized_function): Add support for vectorizing
13714         the reciprocal estimate builtins and expansions.
13715         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
13716         (bdesc_2arg): Add reciprocal estimate builtins.
13717         (bdesc_1arg): Add reciprocal square root estimate builtins.
13718         (rs6000_expand_builtin): Rewrite to use a switch statement,
13719         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
13720         (rs6000_init_builtins): Create declarations for reciprocal
13721         estimate builtins.
13722         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
13723         sized, prefer traditional floating point registers, if integer
13724         vector types, prefer altivec registers.  Don't actually look at
13725         the memory address any more.
13726         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
13727         builtins.
13728         (rs6000_load_constant_and_splat): New helper function to load up
13729         the constant for reciprocal estimate instructions.
13730         (rs6000_emit_madd): New helper function for generating
13731         multiply/add type instructions, based on the current switches.
13732         (rs6000_emit_msub): Ditto.
13733         (rs6000_emit_mnsub): Ditto.
13734         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
13735         replace a divide with a reciprocal estimate and fixup, adding
13736         support for machines with high precision and vectors.
13737         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
13738         low precision machines.
13739         (rs6000_emit_swdiv): New common function to be called to replace a
13740         division with reciprocal estimate and fixup.
13741         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
13742         for double and vector types.  Add support for high precision machines.
13743
13744         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
13745         the reciprocal estimate instructions can be generated.
13746         (TARGET_FRE): Ditto.
13747         (TARGET_FRSQRTES): Ditto.
13748         (TARGET_FRSQRTE): Ditto.
13749         (RS6000_RECIP_*): New macros for reciprocal estimate support.
13750
13751         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
13752         square root estimate on vectors.
13753         (re<mode>2): New insn for reciprocal division estimate on vectors.
13754
13755         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
13756         New builtin.
13757         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
13758         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
13759         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
13760         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
13761         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
13762         (RS6000_BUILTIN_RSQRT): Ditto.
13763         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
13764         floating point builtin.
13765
13766         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
13767         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
13768         __RECIP_PRECISION__ based on the command line switches.
13769         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
13770
13771         * config/rs6000/rs6000.opt (-mrecip): Document add support for
13772         replacing division instructions with reciprocal estimate and fixup.
13773         (-mrecip=<opt>): New option.
13774         (-mrecip-precision): Ditto.
13775
13776         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
13777         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
13778         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
13779         precision scalar.
13780
13781         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
13782         (UNSPEC_VREFP): Ditto.
13783         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
13784         conterparts with regard to support of -mno-fused-madd and -ffast-math.
13785         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
13786         reciprocal estimate instructions to be generated.
13787         (altivec_vrefp): Ditto.
13788
13789         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
13790         estimate support.
13791         (rreg): New mode attribute for reciprocal estimate support.
13792         (recip<mode>3): New insn for division using reciprocal estimate
13793         and fixup builtins.
13794         (divide define_split): New define_split to convert floating point
13795         division to use reciprocal estimate if the user used the
13796         appropriate options and the split is run when we can add new
13797         pseudo registers for the fixup.
13798         (rsqrt<mode>2): New insn for reciprocal square root support.
13799         (recipsf3): Move into recip<mode>3.
13800         (recipdf3): Ditto.
13801         (fres): Use TARGET_FRES.
13802         (rsqrtsf2): Move into rsqrt<mode>2.
13803         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
13804         (copysignsf3): Add support for VSX.
13805         (fred): Use TARGET_FRE.
13806         (fred_fpr): Ditto.
13807         (rsqrtdf_internal1): New function for frsqrte instruciton.
13808
13809         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
13810         (vec_rsqrt): Ditto.
13811
13812 2010-06-03  Richard Guenther  <rguenther@suse.de>
13813
13814         PR middle-end/44291
13815         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
13816         (set_user_assembler_libfunc): Likewise.
13817
13818 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13819
13820         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
13821         defaults.h.
13822         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
13823         to defaults.h
13824         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
13825         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
13826         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
13827         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
13828         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
13829         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
13830         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
13831         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
13832         * defaults.h: Updated for above mentioned changes.
13833
13834 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
13835
13836         * c-common.c: Remove header include of tm_p.h.
13837         * Makefile.in (c-common.o): Remove TM_P_H dependency.
13838
13839 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
13840
13841         * tree.h (struct tree_decl_map): New type.
13842         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
13843         (tree_decl_map_hash): New prototype.
13844         (debug_expr_for_decl, value_expr_for_decl): Change into
13845         tree_decl_map hashtab from tree_map.
13846         (init_ttree): Adjust initialization.
13847         (tree_decl_map_hash): New function.
13848         (decl_debug_expr_lookup, decl_debug_expr_insert,
13849         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
13850
13851 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13852
13853         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
13854         linker emulations.
13855         * configure: Regenerate.
13856         * config.in: Regenerate.
13857
13858         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
13859         (X86_64_EMULATION): Define.
13860         (TARGET_LD_EMULATION): Use them.
13861
13862         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
13863         (SPARC64_EMULATION): Define.
13864         (LINK_ARCH_SPEC): Use them.
13865
13866 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
13867
13868         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
13869         smallest_mode_for_size for computing the precision types of new
13870         graphite IVs.  Do not call lang_hooks.types.type_for_size.
13871
13872 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
13873
13874         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
13875         information.
13876         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
13877
13878 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
13879
13880         PR middle-end/44363
13881         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
13882         return false instead.
13883
13884 2010-06-02  Jan Hubicka  <jh@suse.cz>
13885
13886         PR middle-end/44295
13887         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
13888         create new cgraph node to check callee.
13889
13890 2010-06-02  Richard Guenther  <rguenther@suse.de>
13891
13892         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
13893
13894 2010-06-02  Richard Guenther  <rguenther@suse.de>
13895
13896         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
13897         (lto_wrapper_cleanup): ... this.  Do not exit.
13898         (fatal): Adjust.  Exit here.
13899         (fatal_perror): Likewise.
13900         (fatal_signal): New function.
13901         (main): Set up signal handlers to cleanup temporary files.
13902         * Makefile.in (lto-wrapper.o): Adjust dependencies.
13903
13904 2010-06-02  Richard Guenther  <rguenther@suse.de>
13905
13906         PR tree-optimization/44377
13907         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
13908
13909 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13910
13911         * config/s390/2097.md (z10_fhex): Remove insn reservation.
13912         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
13913         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
13914         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
13915         instruction.
13916         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
13917
13918 2010-06-02  Jan Hubicka  <jh@suse.cz>
13919
13920         * bitmap.c (bitmap_descriptor): Add search_iter.
13921         (bitmap_find_bit): Increment it.
13922         (print_statistics): Print it.
13923
13924 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
13925
13926         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
13927         instead of gimple_build_call_vec.  Delete unnecessary local variable.
13928
13929 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13930
13931         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
13932         change from yesterday.
13933
13934 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13935
13936         * c-ada-spec.c: Clean up redundant includes.
13937
13938 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
13939
13940         * gimplify.c: Do not include except.h and optabs.h.
13941         (gimplify_body): Do not initialize RTL profiling.
13942         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
13943         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
13944         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
13945         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
13946         langhooks.h.
13947
13948         * tree-pretty-print.h: Include pretty-print.h.
13949         * gimple-pretty-print.h: Include pretty-print.h.
13950
13951         * tree-pretty-print.c: Do not include diagnostic.h.
13952         * tree-vrp.c: Likewise.
13953         * tree-tailcall.c: Likewise
13954         * tree-scalar-evolution.c: Likewise
13955         * tree-ssa-dse.c: Likewise
13956         * tree-chrec.c: Likewise
13957         * tree-ssa-sccvn.c: Likewise
13958         * tree-ssa-copyrename.c: Likewise
13959         * tree-nomudflap.c: Likewise
13960         * tree-call-cdce.c: Likewise
13961         * tree-stdarg.c: Likewise
13962         * tree-ssa-math-opts.c: Likewise
13963         * tree-nrv.c: Likewise
13964         * tree-ssa-sink.c: Likewise
13965         * tree-browser.c: Likewise
13966         * tree-ssa-loop-ivcanon.c: Likewise
13967         * tree-ssa-loop.c: Likewise
13968         * tree-parloops.c: Likewise
13969         * tree-ssa-address.c: Likewise
13970         * tree-ssa-ifcombine.c: Likewise
13971         * tree-if-conv.c: Likewise
13972         * tree-data-ref.c: Likewise
13973         * tree-affine.c: Likewise
13974         * tree-ssa-phiopt.c: Likewise
13975         * tree-ssa-coalesce.c: Likewise
13976         * tree-ssa-pre.c: Likewise
13977         * tree-ssa-live.c: Likewise
13978         * tree-predcom.c: Likewise
13979         * tree-ssa-forwprop.c: Likewise
13980         * tree-ssa-dce.c: Likewise
13981         * tree-ssa-ter.c: Likewise
13982         * tree-ssa-loop-prefetch.c: Likewise
13983         * tree-optimize.c: Likewise
13984         * tree-ssa-phiprop.c: Likewise
13985         * tree-object-size.c: Likewise
13986         * tree-outof-ssa.c: Likewise
13987         * tree-ssa-structalias.c: Likewise
13988         * tree-switch-conversion.c: Likewise
13989         * tree-ssa-reassoc.c: Likewise
13990         * tree-ssa-operands.c: Likewise
13991         * tree-vectorizer.c: Likewise
13992         * tree-vect-data-refs.c: Likewise
13993         * tree-vect-generic.c: Likewise
13994         * tree-vect-stmts.c: Likewise
13995         * tree-vect-patterns.c: Likewise
13996         * tree-vect-slp.c: Likewise
13997         * tree-vect-loop.c: Likewise
13998         * tree-ssa-loop-ivopts.c: Likewise
13999         * tree-ssa-loop-im.c: Likewise
14000         * tree-ssa-loop-niter.c: Likewise
14001         * tree-ssa-loop-unswitch.c: Likewise
14002         * tree-ssa-loop-manip.c: Likewise
14003         * tree-ssa-loop-ch.c: Likewise
14004         * tree-dump.c: Likewise
14005         * tree-complex.c: Likewise
14006
14007         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
14008         * tree-ssa-uninit.c: Likewise
14009         * tree-ssa-threadupdate.c: Likewise
14010         * tree-ssa-uncprop.c: Likewise
14011         * tree-ssa-ccp.c: Likewise
14012         * tree-ssa-dom.c: Likewise
14013         * tree-ssa-propagate.c: Likewise
14014         * tree-ssa-alias.c: Likewise
14015         * tree-dfa.c: Likewise
14016         * tree-cfgcleanup.c: Likewise
14017         * tree-sra.c: Likewise
14018         * tree-ssa-copy.c: Likewise
14019         * tree-ssa.c: Likewise
14020         * tree-profile.c: Likewise
14021         * tree-cfg.c: Likewise
14022         * tree-ssa-threadedge.c: Likewise
14023         * tree-vect-loop-manip.c: Likewise
14024
14025         * tree-inline.c: Do not include diagnostic.h and expr.h.
14026         Include rtl.h.
14027         (copy_decl_for_dup_finish): Do not use NULL_RTX.
14028
14029         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
14030         * tree-loop-distribution.c: Likewise.
14031
14032 2010-06-01  Jan Hubicka  <jh@suse.cz>
14033
14034         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
14035
14036 2010-06-01  Jan Hubicka  <jh@suse.cz>
14037
14038         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
14039         remove return value.
14040         (split_bbs_on_noreturn_calls) .... here.
14041         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
14042         * tree-flow.h (fixup_noreturn_call): New.
14043
14044 2010-06-01  Jan Hubicka  <jh@suse.cz>
14045
14046         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
14047
14048 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
14049
14050         * tree.h (build_nt_call_list): Delete.
14051         * tree.c (build_nt_call_list): Delete.
14052
14053 2010-06-01  Jan Hubicka  <jh@suse.cz>
14054
14055         * fwprop.c: Make emit-rtl.h include last.
14056         * rtlanal.c: Include emit-rtl.h.
14057         * genautomata.c: Output emit-rtl include into insn-automata.c
14058         * df-scan.c: Include emit-rtl.h.
14059         * haifa-sched.c: Indlude emit-rtl.h.
14060         * mode-switching.c: Indlude emit-rtl.h.
14061         * graph.c: Indlude emit-rtl.h.
14062         * sel-sched.c: Include emit-rtl.h.
14063         * sel-sched-ir.c: Include emit-rtl.h.
14064         * ira-build.c: Include emit-rtl.h.
14065         * emit-rtl.c (first_insn, last_insn): Remove defines.
14066         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
14067         Move to emit-rtl.h.
14068         (set_new_first_and_last_insn, get_last_insn_anywhere,
14069         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
14070         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
14071         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
14072         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
14073         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
14074         Use accessor functions.
14075         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
14076          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
14077         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
14078         mem_expr_equal_p): Move here from rtl.h.
14079         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
14080         Move here from emit-rtl.c; make inline.
14081         * cfglayout.h: Include emit-rtl.h.
14082         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
14083          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
14084         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
14085         mem_expr_equal_p, get_insns, set_first-insn,
14086         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
14087         * reg-stack.c: Include emit-rtl.h.
14088         * dce.c: Likewise.
14089
14090 2010-06-01  Jan Hubicka  <jh@suse.cz>
14091
14092         * cgraph.h (tree_function_versioning): Update prototype.
14093         (cgraph_function_versioning): Update prototype.
14094         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
14095         bitmap.
14096         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
14097         (cgraph_materialize_clone, save_inline_function_body): Update use of
14098         tree_function_versioning.
14099         * tree-inline.c (copy_bb): Look for previous copied block to link
14100         after; fix debug output.
14101         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
14102         (copy_body): Likewise.
14103         (expand_call_inline): Update use of copy_body.
14104         (tree_function_versioning): Update use of copy body; accept
14105         blocks_to_copy and new_entry.
14106
14107 2010-06-01  Jan Hubicka  <jh@suse.cz>
14108
14109         * gegenrtl.c: Remove unnecesary prototypes.
14110         (gendecl): Remove.
14111         (gendef): Produce static inline.
14112         (gencode): Remove.
14113         (main): Do not decode parameters; generate header only.
14114         * Makefile.in (genrtl.c): Remove.
14115
14116 2010-06-01  Jan Hubicka  <jh@suse.cz>
14117
14118         * tree-switch-conversion.c (build_one_array): Make it readonly.
14119
14120 2010-06-01  Richard Guenther  <rguenther@suse.de>
14121
14122         * optabs.c (init_optabs): Guard all accesses to reinit.
14123         * ipa-pure-const.c (propagate): Fix another typo.
14124         * opts.c (common_handle_option): Split assignment to bool.
14125         * c-opts.c (c_common_handle_option): Likewise.
14126
14127 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
14128             Matthew Gingell  <gingell@adacore.com>
14129
14130         * doc/invoke.texi: Mention -fdump-ada-spec.
14131         * tree-dump.c (dump_files): Add ada-spec.
14132         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
14133         * tree-pass.h (tree_dump_index): Add TDI_ada.
14134         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
14135         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
14136         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
14137         * c-decl.c: Include c-ada-spec.h.
14138         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
14139         functions.
14140         (c_write_global_declarations): Add handling of -fdump-ada-spec.
14141         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
14142         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
14143         * c-ada-spec.h, c-ada-spec.c: New files.
14144
14145 2010-06-01  Richard Guenther  <rguenther@suse.de>
14146
14147         PR lto/43853
14148         * ipa-pure-const.c (get_function_state): Hand back varying state
14149         if we do not have one.
14150         (has_function_state): New function.
14151         (duplicate_node_data): Adjust.
14152         (remove_node_data): Likewise.
14153         (pure_const_write_summary): Likewise.
14154         (propagate): Likewise.  Fix typo.
14155
14156 2010-06-01  Jan Hubicka  <jh@suse.cz>
14157
14158         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
14159         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
14160         (execute_all_ipa_transforms): Do not play with the states.
14161
14162 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14163
14164         * config/arm/t-linux-androideabi: New.
14165         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
14166
14167 2010-06-01  Jan Hubicka  <jh@suse.cz>
14168
14169         * tree-inline.c (estimate_num_insns): For stdarg functions look
14170         into call statement to count cost of argument passing.
14171
14172 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
14173
14174         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
14175         argument for fprintf.
14176         (ix86_output_addr_diff_elt): Likewise.
14177         (x86_function_profiler): Likewise.
14178         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
14179         (LPREFIX): Likewise.
14180         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
14181
14182 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
14183
14184         PR target/44338
14185         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
14186         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
14187         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
14188         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
14189         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
14190         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
14191         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
14192         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
14193         TARGET_FUSED_MADD.
14194
14195 2010-05-31  Jan Hubicka  <jh@suse.cz>
14196
14197         * tree.h (tree_range_check_failed): Declare noreturn.
14198
14199 2010-05-31  Jan Hubicka  <jh@suse.cz>
14200
14201         * gimple.c (gimple_call_builtin_p): New function.
14202         * gimple.h (gimple_call_builtin_p): Declare.
14203         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
14204         to exit.
14205         (execute_warn_function_return): BUILT_IN_RETURN is return.
14206         (split_critical_edges): Return edges are not critical.
14207         (is_ctrl_altering_stmt): Builtin_in_return is altering.
14208         (gimple_verify_flow_info): Handle built_in_return.
14209         (execute_warn_function_return): Handle built_in_return.
14210         * ipa-pure-const.c (check_call): Ignore builtin_return.
14211
14212 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
14213
14214         PR middle-end/44337
14215         * expr.c (expand_assignment): Don't store anything for out-of-bounds
14216         array accesses with non-MEM.
14217
14218         PR tree-optimization/44182
14219         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
14220         newly needs to end a bb is followed by debug stmts, instead return
14221         true from the function at the end.
14222         (maybe_move_debug_stmts_to_successors): New function.
14223         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
14224
14225 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
14226
14227         PR target/44161
14228         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
14229
14230 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
14231
14232         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
14233         for nested functions in non-optimized compilation.
14234
14235 2010-05-31  Richard Guenther  <rguenther@suse.de>
14236
14237         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
14238
14239 2010-05-30  Jan Hubicka  <jh@suse.cz>
14240
14241         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
14242
14243 2010-05-30  Richard Guenther  <rguenther@suse.de>
14244
14245         PR lto/42975
14246         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
14247         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
14248         no longer needed.
14249
14250 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
14251
14252         * config/darwin.c (output_objc_section_asm_op): Add comment.
14253         (name_needs_quotes): Add '_' to list of valid comment chars.
14254         (machopic_output_function_base_name): Remove unneeded quotes.
14255         (darwin_encode_section_info): Adjust asm whitespace.
14256         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
14257         (ASM_OUTPUT_LOCAL): Ditto.
14258         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
14259         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
14260         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
14261
14262 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
14263
14264         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
14265         RS6000_OUTPUT_BASENAME unconditionally.
14266         (rs6000_output_function_epilogue): Likewise.
14267
14268 2010-05-30  Jan Hubicka  <jh@suse.cz>
14269
14270         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
14271         nodes.
14272
14273 2010-05-30  Richard Guenther  <rguenther@suse.de>
14274
14275         * tree-cfg.c (verify_gimple_assign_single): Implement
14276         verification for COND_EXPR rhs.
14277
14278 2010-05-30  Jan Hubicka  <jh@suse.cz>
14279
14280         * cgraph.h (cgraph_dump_file): Declare.
14281         * cgraphunit.c (cgraph_dump_file): Export.
14282         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
14283
14284 2010-05-30  Jan Hubicka  <jh@suse.cz>
14285
14286         * dwarf2out.c (reference_to_unused,
14287         premark_types_used_by_global_vars_helper): Avoid creation of new
14288         varpool nodes.
14289
14290 2010-05-30  Jan Hubicka  <jh@suse.cz>
14291
14292         * cgraph.h (cgraph_node_cannot_return,
14293         cgraph_edge_cannot_lead_to_return): New functions.
14294         * cgraph.c (cgraph_node_cannot_return,
14295         cgraph_edge_cannot_lead_to_return): Use them.
14296         * ipa-pure-const.c (pure_const_names): New static var.
14297         (check_call): Handle calls not leading to return.
14298         (pure_const_read_summary): Dump info read.
14299         (propagate): Dump info about propagation process; ignore side effects
14300         of functions not leading to exit; fix handling of pure functions.
14301
14302 2010-05-30  Jan Hubicka  <jh@suse.cz>
14303
14304         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
14305         for tail call epilogues.
14306
14307 2010-05-30  Jan Hubicka  <jh@suse.cz>
14308
14309         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
14310         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
14311         dump files.
14312
14313 2010-05-29  Jan Hubicka  <jh@suse.cz>
14314
14315         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
14316         node; remove references in node we no longer keep in cgrpah but need
14317         body of.
14318
14319 2010-05-29  Jan Hubicka  <jh@suse.cz>
14320
14321         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
14322
14323 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14324
14325         PR target/44165
14326         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
14327
14328 2010-05-29  Jan Hubicka  <jh@suse.cz>
14329
14330         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
14331         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
14332         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
14333         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
14334         debug_names_replaced_by, debug_update_ssa): Likewise.
14335         * sbitmap.c (debug_sbitmap): Likewise.
14336         * genrecog.c (debug_decision, debug_decision_list): Likewise.
14337         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
14338         debug_tree_chain): Likewise.
14339         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
14340         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
14341         * optabs.c (debug_optab_libfuncs): Likewise.
14342         (verify_loop_closed_ssa): Likewise.
14343         * value-prof.c (verify_histograms): Likewise.
14344         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
14345         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
14346         * cfghooks.c (verify_flow_info): Likewise.
14347         * fold-const.c (debug_fold_checksum): Likewise.
14348         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
14349         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
14350         Likewise.
14351         * omega.c (debug_omega_problem): Likewise.
14352         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
14353         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
14354         * dominance.c (verify_dominators, debug_dominance_info,
14355         debug_dominance_tree): Likewise.
14356         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
14357         * df_regno_debug, df_ref_debug,
14358         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
14359         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
14360         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
14361         * sel-sched.c (debug_state): Likewise.
14362         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
14363         Likewise.
14364         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
14365         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
14366         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
14367         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
14368         Likewise.
14369         * c-pretty-print.c (debug_c_tree): Likewise.
14370         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
14371         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
14372         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
14373         * ebitmap.c (debug_ebitmap): Likewise.
14374         * function.c (debug_find_var_in_block_tree): Likewise.
14375         * print-rtl.c (debug_rtx): Likewise.
14376         (debug_rtx_count): Likewise.
14377         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
14378         * stor-layout.c (debug_rli): Likewise.
14379         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
14380         * tree-data-ref.c (debug_data_references,
14381         debug_data_dependence_relations, debug_data_reference,
14382         debug_data_dependence_relation, debug_rdg_vertex,
14383         debug_rdg_component, debug_rdg): Likewise.
14384         * tree-affine.c (debug_aff): Likewise.
14385         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
14386         Likewise.
14387         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
14388         * emit-rtl.c (verify_rtl_sharing): Likewise.
14389         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
14390         debug_value_expressions): Likewise.
14391         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
14392         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
14393         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
14394         * cfglayout.c (verify_insn_chain): Likewise.
14395         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
14396         debug_clast_stmt, debug_generated_program): Likewise.
14397         * ggc-page.c (debug_print_page_list): Likewise.
14398         * tree-ssa-ter.c (debug_ter): Likewise.
14399         * graphite-dependences.c (debug_pddr): Likewise.
14400         * sched-deps.c (debug_ds): Likewise.
14401         * tree-ssa.c (verify_ssa): Likewise.
14402         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
14403         debug_scattering_functions, debug_iteration_domains, debug_pdr,
14404         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
14405         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
14406         * tree-inline.c (debug_find_tree): Likewise.
14407         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
14408         debug_ppl_powerset_matrix): Likewise.
14409         * var-tracking.c (debug_dv): Likewise.
14410         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
14411         * cfgloop.c (verify_loop_structure): Likewise.
14412         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
14413         * c-common.c (verify_sequence_points): Likewise.
14414         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
14415         debug_candidates, debug_rgn_dependencies): Likewise.
14416         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
14417         * debug_constraint_graph, debug_solution_for_var,
14418         debug_sa_points_to_info): Likewise.
14419         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
14420         Likewie.
14421         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
14422         debug_loops, debug_loop, debug_loop_num): Likewise.
14423         * passes.c (debug_pass): Likewise.
14424         (dump_properties): Likewise; add cfglayout property.
14425         (debug_properties): Likewise.
14426         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
14427         * varpool.c (debug_varpool): Likewise.
14428         * regcprop.c (debug_value_data): Likewise.
14429         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
14430         debug_immediate_uses_for): Likewise.
14431
14432 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
14433
14434         PR bootstrap/44315
14435         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
14436         Filter out insn-flags.h.
14437
14438 2010-05-29  Jan Hubicka  <jh@suse.cz>
14439
14440         * cgraph.h (struct varpool_node_set_def,
14441         struct cgraph_node_set_def): Remove unused AUX pointer.
14442         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
14443         VEC_empty macro.
14444
14445 2010-05-29  Jan Hubicka  <jh@suse.cz>
14446
14447         PR middle-end/44324
14448         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
14449
14450 2010-05-29  Richard Guenther  <rguenther@suse.de>
14451
14452         * lto-streamer.c (cached_bp): New global variable.
14453         (bitpack_create): Return the cached bitpack, if available.
14454         (bitpack_delete): Clear and cache the bitpack, if appropriate.
14455         (bp_pack_value): Remove redundant asserts.
14456
14457 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
14458
14459         PR middle-end/44306
14460         * tree-if-conv.c (is_true_predicate): New.
14461         (is_predicated): Use is_true_predicate.
14462         (add_to_predicate_list): Same.  Do not use unshare_expr.
14463         (add_to_dst_predicate_list): Same.
14464
14465 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
14466
14467         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
14468         field on edges.
14469         (predicate_bbs): Same.
14470         (clean_predicate_lists): Same.
14471         (find_phi_replacement_condition): Do not AND the predicate from
14472         edge->aux.
14473
14474 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
14475
14476         PR bootstrap/44315
14477         * Makefile.in (build/gencondmd.o): Add a missing `\'.
14478
14479 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14480
14481         PR target/44261
14482         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
14483         (negdf2): Adjust expander pattern and use negdf2_slow.
14484         (negsf2): Likewise.
14485
14486 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
14487
14488         * basic-block.h (struct control_flow_graph): Move last_label_uid field
14489         up.
14490         * df.h (struct df_base_ref): Move regno field up.
14491         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
14492         * expr.h (struct separate_ops): Move location field up.
14493         * optabs.h (struct optab_d): Move libcall_basename field down.
14494         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
14495         * config/i386/i386.h (struct machine_function): Convert call_abi field
14496         into a bitfield.  Move cfa field to the end of the structure.
14497
14498 2010-05-29  Jan Hubicka  <jh@suse.cz>
14499
14500         * varpool.c (varpool_get_node): Fix lookup.
14501
14502 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14503
14504         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
14505         RTL specific prototypes with #ifdef RTX_CODE.
14506         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
14507         * config/spu/t-spu-elf: Fix dependencies.
14508
14509         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
14510
14511 2010-05-29  Mike Stump  <mikestump@comcast.net>
14512
14513         PR bootstrap/44315
14514         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
14515         TM_H when building to avoid dependency loops.
14516
14517 2010-05-29  Jan Hubicka  <jh@suse.cz>
14518
14519         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
14520         refs and body; not the whole node for masters of materialized clones.
14521
14522 2010-05-29  Mike Stump  <mikestump@comcast.net>
14523
14524         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
14525
14526 2010-05-29  Jan Hubicka  <jh@suse.cz>
14527
14528         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
14529         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
14530         use of clone_function_name.
14531         * cgraph.h (cgraph_create_virtual_clone,
14532         cgraph_function_versioning): update prototypes.
14533         (clone_function_name): Declare.
14534         * ipa-cp.c (ipcp_insert_stage): Update call of
14535         cgraph_create_virtual_clone.
14536         * omp-low.c (create_omp_child_function_name): Use
14537         cgraph_create_virtual_clone.
14538         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
14539         (cgraph_function_versioning): Take SUFFIX argument; produce new name
14540         and make decl local.
14541
14542 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14543
14544         * vec.h: Include statistics.h
14545         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
14546         with VEC_H.
14547
14548 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14549
14550         * c-lex.c: Do not include c-tree.h.
14551         * c-pretty-print.c: Likewise.
14552         * c-opts.c: Likewise.
14553         * c-gimplify.c: Likewise.
14554         * c-common.c: Likewise.
14555         * c-dump.c: Likewise.  Include c-common.h.
14556
14557 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14558
14559         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
14560         before including diagnostic-core.h.
14561         (c_cpp_error): New prototype moved from c-tree.h.
14562         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
14563         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
14564         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
14565         (c_cpp_error): Prototype moved to c-common.h.
14566         * Makefile.in: Update dependency for C_COMMON_H.
14567
14568 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14569
14570         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
14571         * c-common.c (c_register_addr_space): Remove here.
14572         * c-decl.c (c_register_addr_space): Re-add here.
14573
14574 2010-05-28  Mike Stump  <mikestump@comcast.net>
14575
14576         * config/darwin-c.c: Remove c-tree.h include.
14577
14578 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14579
14580         * gcc.c: Include diagnostic.h.
14581         (error_count): Remove.  All users changed to use errorcount.
14582         (programname): Remove.  All users changed to use progname.
14583         (fancy_abort, internal_error, fatal_error, error, warning, inform,
14584         fnotice): Remove.
14585         (execute): Don't include "Internal error" and bug reporting
14586         information in argument of internal_error call.
14587         (process_command): Don't increment error_count after calling
14588         perror_with_name.
14589         (input_filename): Rename to gcc_input_filename.  All users
14590         changed.
14591         (main): Call diagnostic_initialize.  Register delete_temp_files
14592         with atexit.  Use seen_error to test for errors.
14593         * gcc.h: Include diagnostic-core.h.
14594         (fatal_error, error, warning): Remove.
14595         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
14596         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
14597         (gcc.o): Update dependencies.
14598
14599 2010-05-28  Jeff Law  <law@redhat.com>
14600
14601         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
14602         functions.
14603         * ira.h (ira_bad_reload_regno): Declare
14604         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
14605
14606         * ira-color.c (update_curr_costs): Free updated hard reg costs.
14607         (ira_reassign_conflict_allocnos): Remove bogus asserts.
14608         (allocno_reload_assign): Likewise.
14609
14610 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
14611
14612         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
14613         build1_stat.
14614
14615 2010-05-28  Richard Guenther  <rguenther@suse.de>
14616
14617         PR lto/44312
14618         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
14619         Stream fixed-point constants mode.
14620         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
14621         and TYPE_PRECISION.
14622         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
14623         Stream fixed-point constants mode.
14624         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
14625         and TYPE_PRECISION.
14626
14627 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
14628
14629         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
14630         only place it was called from.
14631         (number_of_latch_executions): Do not return chrec_dont_know when the
14632         may_be_zero is a runtime condition: instead, return a COND_EXPR
14633         including the may_be_zero condition.
14634         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
14635         of nb_iterations.
14636         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
14637         COND_EXPRs.
14638
14639 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
14640
14641         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
14642         generate COND_EXPRs for degenerate_phi_result.
14643
14644 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
14645
14646         PR middle-end/44293
14647         * tree-if-conv.c (if_convertible_loop_p): Check the
14648         if-convertibility of phi nodes in non predicated BBs.
14649
14650 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14651
14652         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
14653
14654 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14655
14656         PR driver/15303
14657         * gcc.c (inform, warning, inform): New functions.
14658         (fatal_ice): Rename to internal_error; change cmsgid parameter to
14659         gmsgid.  All callers changed.
14660         (notice): Rename to fnotice; add parameter fp.  All callers changed.
14661         (fatal_error): Rename to fatal_signal.  All users changed.
14662         (fatal): Rename to fatal_error; change cmsgid parameter to
14663         gmsgid.  All callers changed.
14664         (process_command): Use warning instead of error for warnings.
14665         (end_going_arg): Don't use _() around argument of error.
14666         (do_spec_1): Use inform for message from %n specs.  Use warning
14667         instead of error for warnings.
14668         (main): Use inform for comparison messages.  Use warning for
14669         message about unused linker input.
14670         (error): Increment error_count.  Print "error: ".
14671         * gcc.h (fatal): Change to fatal_error.
14672         (warning): Declare.
14673         * config/darwin-driver.c (darwin_default_min_version): Use warning
14674         instead of fprintf for warnings.
14675         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
14676
14677 2010-05-28  Julian Brown  <julian@codesourcery.com>
14678
14679         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
14680         (*thumb2_addsi3_compare0_scratch): New.
14681         * config/arm/constraints.md (Pv): New.
14682         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
14683         for ARM mode only.
14684         (*addsi3_compare0_scratch): Likewise.
14685
14686 2010-05-28  Jan Hubicka  <jh@suse.cz>
14687
14688         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
14689         check.
14690         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
14691         only on local statics.
14692
14693 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
14694
14695         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
14696
14697 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
14698
14699         PR bootstrap/44314
14700         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
14701         (OPTION_GLIBC): Define.
14702
14703 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
14704
14705         PR debug/41048
14706         * dwarf2out.c (double_int_type_size_in_bits): New function.
14707         (round_up_to_align): Change first argument and return value to
14708         double_int.
14709         (field_byte_offset): Work internally on double_ints.
14710
14711         PR target/43636
14712         * builtins.c (expand_movstr): Use a temporary pseudo instead
14713         of target even when target is not NULL and not const0_rtx, but
14714         fails movstr predicate.
14715         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
14716
14717 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14718
14719         * final.c (rest_of_clean_state): Use %m in errors instead of
14720         strerror (errno).
14721         * gengtype.c (read_input_list, close_output_files): Use xstrerror
14722         instead of strerror.
14723         * toplev.c (process_options): Use %m in errors instead of strerror
14724         (errno).
14725         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
14726         (errno).
14727
14728 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
14729
14730         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
14731         (ix86_canonical_va_list_type): Make static.  Add declaration.
14732         (ix86_enum_va_list): Make static.  Reindent.
14733         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
14734         (ix86_canonical_va_list_type): Ditto.
14735         (ix86_enum_va_list): Ditto.
14736
14737 2010-05-28  Richard Guenther  <rguenther@suse.de>
14738
14739         * lto-wrapper.c (run_gcc): With -save-temps generate a
14740         user-visible ltrans filename.  Fixup ltrans unit numbering.
14741
14742 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
14743
14744         * c-common.c (c_common_nodes_and_builtins): Replace use
14745         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
14746         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
14747         to ix86_enum_va_list.
14748         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
14749         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
14750         (TARGET_ENUM_VA_LIST_P): Add hook description.
14751         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
14752         * target.h (gcc_target): Add enum_va_list hook.
14753
14754         PR bootstrap/44299
14755         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
14756         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
14757         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
14758
14759 2010-05-28  Alan Modra  <amodra@gmail.com>
14760
14761         PR target/44266
14762         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
14763         emit_library_call machinery to set up __tls_get_addr calls.
14764
14765 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14766
14767         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
14768
14769 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
14770
14771         Revert fix for PR c++/44188
14772         * c-common.c (is_typedef_decl): Revert the moving of  this
14773         definition ...
14774         * tree.c (is_typedef_decl): ... here.
14775         (typdef_variant_p): Revert the moving of this  definition
14776         here from cp/tree.c.
14777         * c-common.h (is_typedef_decl): Revert the moving of this
14778         declaration ...
14779         * tree.h (is_typedef_decl): ... here.
14780         (typedef_variant_p): Revert the moving of this  declaration here
14781         from cp/cp-tree.h
14782         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
14783         (gen_tagged_type_die): Revert the splitting out of ...
14784         (gen_type_die_with_usage): ... this function. Revert the anonymous
14785         tagged type handling.
14786         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
14787         typedefs naming anonymous tagged types.
14788
14789 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
14790
14791         * config/rs6000/rs6000-modes.def (PSImode): Delete.
14792
14793 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
14794
14795         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
14796         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
14797         throughout.
14798         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
14799         "xer" to "ca".
14800         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
14801         XER_REGS to CA_REGS throughout.
14802         * config/rs6000/rs6000.h: Same.
14803         (ADDITIONAL_REGISTER_NAMES): Add "xer".
14804         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
14805         that mode_iterator "P" is the size for arithmetic carries as well.
14806         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
14807
14808 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
14809
14810         PR bootstrap/44255
14811         * combine.c (struct rtx_subst_pair): Define unconditionally.
14812         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
14813         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
14814         Call make_compound_operation on pair->to.
14815         (propagate_for_debug): Don't call make_compound_operation here.
14816         Always use simplify_replace_fn_rtx.
14817
14818 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
14819
14820         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
14821         * config/xtensa/xtensa.c (override_options): Check
14822           TARGET_FORCE_NO_PIC and set flag_pic.
14823         * config/xtensa/xtensa.opt: Document -mforce-no-pic
14824
14825 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
14826
14827         PR bootstrap/44299
14828         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
14829         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
14830
14831 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
14832
14833         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
14834         toplev.h.
14835         * diagnostic.c: Don't include toplev.h.
14836         (progname): Define.  Moved from toplev.c.
14837         (seen_error): New function.
14838         * diagnostic.h: Include diagnostic-core.h.
14839         (diagnostic_t, emit_diagnostic): Don't declare here.
14840         * toplev.c (progname): Move to toplev.c.
14841         (emit_debug_global_declarations, compile_file, finalize,
14842         do_compile, toplev_main): Use seen_error.
14843         * toplev.h: Include diagnostic-core.h.
14844         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
14845         internal_error, warning, warning_at, error, error_n, error_at,
14846         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
14847         verbatim, fnotice, progname): Move to diagnostic-core.h.
14848         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
14849         (expand_builtin_expect): Use seen_error.
14850         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
14851         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
14852         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
14853         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
14854         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
14855         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
14856         errorcount for errors.
14857         * c-opts.c (c_common_finish): Use seen_error.
14858         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
14859         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
14860         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
14861         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
14862         (get_coverage_counts): Use seen_error.
14863         * dwarf2out.c (dwarf2out_finish): Use seen_error.
14864         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
14865         gimplify_body): Use seen_error.
14866         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
14867         * ipa-pure-const.c (gate_pure_const): Use seen_error.
14868         * ipa-reference.c (gate_reference): Use seen_error.
14869         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
14870         * lambda-code.c: Include diagnostic-core.h instead of
14871         diagnostic.h.
14872         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
14873         * lto-compress.c: Include diagnostic-core.h instead of
14874         diagnostic.h.
14875         * lto-section-in.c: Include diagnostic-core.h instead of
14876         diagnostic.h.
14877         * lto-streamer-out.c: Include diagnostic-core.h instead of
14878         diagnostic.h.
14879         * lto-streamer.c: Include diagnostic-core.h instead of
14880         diagnostic.h.
14881         (gate_lto_out): Use seen_error.
14882         * matrix-reorg.c: Include diagnostic-core.h instead of
14883         diagnostic.h.
14884         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
14885         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
14886         (gate_expand_omp, lower_omp_1): Use seen_error.
14887         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
14888         (rest_of_decl_compilation, rest_of_type_compilation,
14889         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
14890         * tree-cfg.c (label_to_block_fn): Use seen_error.
14891         * tree-inline.c (optimize_inline_calls): Use seen_error.
14892         * tree-mudflap.c (mudflap_finish_file): Use
14893         seen_error.
14894         * tree-optimize.c (gate_all_optimizations,
14895         gate_all_early_local_passes, gate_all_early_optimizations): Use
14896         seen_error.
14897         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
14898         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
14899         (varpool_remove_unreferenced_decls,
14900         varpool_assemble_pending_decls): Use seen_error.
14901         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
14902         (TOPLEV_H, DIAGNOSTIC_H): Update.
14903         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
14904         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
14905         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
14906         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
14907         coverage.o, lambda-code.o): Update dependencies.
14908
14909 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
14910
14911         PR c++/44188
14912         * c-common.c (is_typedef_decl): Move this definition ...
14913         * tree.c (is_typedef_decl): ... here.
14914         (typdef_variant_p): Move definition here from cp/tree.c.
14915         * c-common.h (is_typedef_decl): Move this declaration ...
14916         * tree.h (is_typedef_decl): ... here.
14917         (typedef_variant_p): Move declaration here from cp/cp-tree.h
14918         * dwarf2out.c (is_naming_typedef_decl): New function.
14919         (gen_tagged_type_die): Split out of ...
14920         (gen_type_die_with_usage): ... this function. When an anonymous
14921         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
14922         is emitted for the typedef.
14923         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
14924         anonymous tagged types.
14925
14926 2010-05-27  Jason Merrill  <jason@redhat.com>
14927
14928         * print-tree.c (debug_vec_tree): New fn.
14929         (print_vec_tree): New fn.
14930         * tree.h: Declare them.
14931         * gdbinit.in (pvt): New command.
14932
14933         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
14934
14935         * gdbinit.in (pdd): New command.
14936
14937 2010-05-27  Jan Hubicka  <jh@suse.cz>
14938
14939         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
14940         (update_caller_keys): Return early if there are no callers;
14941         only update fibheap when decresing the key.
14942         (update_callee_keys): Avoid recursion.
14943         (decide_inlining_of_small_functions): When badness does not match;
14944         re-insert into fibheap.
14945
14946 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
14947
14948         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
14949         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
14950         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
14951         (ALL_HOST_OBJS): Now a union of the above two.
14952         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
14953         all files in ALL_HOST_FRONTEND_OBJS.
14954         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
14955
14956         * c-common.c: Pretend to be a backend file by undefining
14957         IN_GCC_FRONTEND (still need rtl.h here).
14958
14959 2010-05-27  Jan Hubicka  <jh@suse.cz>
14960
14961         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
14962         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
14963
14964 2010-05-27  Jan Hubicka  <jh@suse.cz>
14965
14966         * sched-ebb.c: Rename struct deps to struct deps_desc.
14967         * ddg.c: Likewise.
14968         * sel-sched-ir.c: Likewise.
14969         * sched-deps.c: Likewise.
14970         * sched-int.h: Likewise.
14971         * sched-rgn.c: Likewise.
14972
14973 2010-05-27  Jon Beniston  <jon@beniston.com>
14974
14975         PR 43726
14976         * config/lm32/lm32.h: Remove definition of
14977         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
14978
14979 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
14980
14981         PR lto/44230
14982         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
14983
14984 2010-05-27  Richard Guenther  <rguenther@suse.de>
14985
14986         PR tree-optimization/44284
14987         * tree-vect-stmts.c (vectorizable_assignment): Handle
14988         sign-changing conversions as simple copy.
14989
14990 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14991
14992         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
14993         Bionic C library.
14994         (__gthread_active_p): Check for pthread_create if compiling against
14995         Bionic C library.
14996
14997 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14998
14999         Support compilation for Android platform.  Reimplement -mandroid.
15000
15001         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
15002         (*android*): Set ANDROID_DEFAULT.
15003         (arm*-*-linux*): Include linux-android.h.
15004         (arm*-*-eabi*): Don't include previous -mandroid implementation.
15005         * config/arm/eabi.h: Remove, move Android-specific parts ...
15006         * config/linux-android.h: ... here.  New file.
15007         * config/arm/eabi.opt: Rename to ...
15008         * config/linux-android.opt: ... this.
15009         (mandroid): Allow -mno-android option.  Initialize based on
15010         ANDROID_DEFAULT.
15011         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
15012         Move logic to corresponding LINUX_TARGET_* macros.
15013         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
15014         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
15015         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
15016         Android definitions.
15017         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
15018         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
15019         Document.
15020
15021 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15022
15023         Add support for Bionic C library
15024
15025         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
15026         macro.
15027         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
15028         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
15029
15030         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
15031         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
15032         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
15033         to support multiple C libraries.  Handle Bionic.
15034         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
15035         (BIONIC_DYNAMIC_LINKER64): Define.
15036         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
15037         Update.
15038         (TARGET_HAS_SINCOS): Enable for Bionic.
15039
15040         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
15041         the last option specified on command line take effect.
15042         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
15043         (mbionic): New.
15044         (mglibc, muclibc): Update.
15045
15046         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
15047         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
15048         DEFAULT_LIBC.
15049
15050         * doc/invoke.texi (-mglibc, -muclibc): Update.
15051         (-mbionic): Document.
15052
15053 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15054
15055         * c-common.h (c_register_addr_space): Add prototype.
15056         (ADDR_SPACE_KEYWORD): Remove.
15057         * c-common.c (c_register_addr_space): New function.
15058         (c_addr_space_name): Reimplement.
15059         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
15060
15061         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
15062         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
15063
15064         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
15065         Remove TARGET_ADDR_SPACE_KEYWORDS.
15066
15067 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
15068
15069         * input.c: New file.
15070         * input.h (main_input_filename): Move declaration to toplev.h.
15071         * toplev.c (input_location, line_table): Move to input.c
15072         * toplev.h (main_input_filename): Move declaration from input.h.
15073         * tree.c (expand_location): Move to input.c.
15074         * Makefile.in (OBJS-common): Add input.o.
15075         (input.o): Add dependencies.
15076
15077 2010-05-27  Richard Guenther  <rguenther@suse.de>
15078
15079         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
15080         for non-existant files.
15081         (fork_execute): Mark args_name file as deleted.
15082
15083 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
15084
15085         PR bootstrp/44287
15086         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
15087         (narrow_signed_type): Likewise.
15088
15089 2010-05-26  Jan Hubicka  <jh@suse.cz>
15090
15091         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
15092         edge only when checking is enabled; check using former_clone_of;
15093         check inline clones too.
15094         (cgraph_materialize_clone): Record former_clone_of pointer.
15095         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
15096         combining redirections; dump args_to_skip bitmap
15097         (cgraph_materialize_all_clones): Do no redirection here.
15098         * ipa-inline.c (inline_transform): Do redirection here.
15099         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
15100         cheking only).
15101
15102 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15103
15104         * config/avr/avr-c.c: Do not include regs.h.
15105         Include cpplib.h for cpp_define and tree.h for c-common.h.
15106         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
15107         * config/avr/t-avr: Fix dependencies for avr-c.o.
15108
15109 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15110
15111         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
15112         string instead of SYMBOL_REF rtx.
15113         * rtl.h (set_stack_check_libfunc): Move prototype from here...
15114         * libfuncs.h: ...to here.  Adjust for explow.c change.
15115
15116 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
15117
15118         * pretty-print.c: Don't include ggc.h.
15119         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
15120         (identifier_to_locale): Use them for allocation.
15121         * pretty-print.h (identifier_to_locale_alloc,
15122         identifier_to_locale_free): Declare.
15123         * toplev.c (alloc_for_identifier_to_locale): New.
15124         (general_init): Set identifier_to_locale_alloc and
15125         identifier_to_locale_free.
15126         * Makefile.in (pretty-print.o): Update dependencies.
15127
15128 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
15129
15130         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
15131         pointer types if they have different alignment or mode.
15132
15133 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
15134
15135         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15136         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15137         * config/sparc/sparc-protos.h (function_value): Remove declaration.
15138         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
15139         sparc_function_value_regno_p): New functions.
15140         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15141         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15142         (function_value): Rename to...
15143         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
15144         argument to 'outgoing'.
15145         (function_arg_record_value, function_arg_union_value,
15146         function_arg_vector_value): Update comment.
15147
15148 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
15149
15150         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
15151         (fde_needed_for_eh_p): New predicate.
15152         (output_call_frame_info): Use it throughout to decide whether FDEs
15153         are needed for EH purpose.
15154         (dwarf2out_begin_prologue): Reorder assignments.
15155
15156 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15157
15158         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
15159         special case loop->header.
15160         (is_predicated): New.
15161         (if_convertible_loop_p): Call it.
15162
15163 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15164
15165         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
15166         iterator in parameter.  Do not generate code during the analysis.
15167         (tree_if_convert_cond_stmt): Removed.
15168         (tree_if_convert_stmt): Removed.
15169         (predicate_bbs): New.
15170         (if_convertible_loop_p): Call predicate_bbs.
15171         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
15172         now contains all the analysis part.
15173
15174 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15175
15176         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
15177         statements in the analysis part.
15178         (tree_if_convert_stmt): Update comment.
15179         (remove_conditions_and_labels): New.
15180         (combine_blocks): Call remove_conditions_and_labels.
15181         (tree_if_conversion): Update comment.
15182
15183 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15184
15185         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
15186         than 2 predecessors or more than 2 successors.
15187
15188 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15189
15190         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
15191         of loops in which the data dependence analysis fails.
15192
15193 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15194
15195         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
15196         CDI_POST_DOMINATORS.
15197         (tree_if_conversion): Same.
15198
15199 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15200
15201         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
15202
15203 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15204
15205         * tree-if-conv.c: Update copyright years.  Fix comments.
15206         Fix indentation.
15207
15208 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
15209
15210         * builtin-types.def (BT_INT128): New primitive type.
15211         (BT_UINT128): Likewise.
15212         * c-common.c (c_common_r): Add __int128 keyword.
15213         (c_common_type_for_size): Handle __int128.
15214         (c_common_type_for_mode): Likewise.
15215         (c_common_signed_or_unsigned_type): Likewise.
15216         (c_common_nodes_and_builtins): Add builtin type
15217         if target supports 128-bit integer scalar.
15218         * c-common.h (enum rid): Add RID_INT128.
15219         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
15220         if target supports 128-bit integer scalar.
15221         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
15222         (finish_declspecs): Likewise.
15223         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
15224         (c_token_starts_declspecs): Likewise.
15225         (c_parser_declspecs): Likewise.
15226         (c_parser_attributes): Likewise.
15227         (c_parser_objc_selector): Likewise.
15228         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
15229         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
15230         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
15231         * tree.c (make_or_reuse_type): Likewise.
15232         (make_unsigned_type): Likewise.
15233         (build_common_tree_nodes_2): Likewise.
15234         * tree.h (enum integer_type_kind): Add itk_int128 and
15235         itk_unsigned_int128.
15236         (int128_integer_type_node): New define.
15237         (int128_unsigned_type_node): New define.
15238         * doc/extend.texi: Add documentation about __int128 type.
15239
15240 2010-05-26  Richard Guenther  <rguenther@suse.de>
15241
15242         * tree-ssa-sccvn.c (copy_nary): Adjust.
15243         (copy_phis): Rename to ...
15244         (copy_phi): ... this.  Adjust.
15245         (copy_references): Rename to ...
15246         (copy_reference): ... this.  Adjust.
15247         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
15248         result into the valid table.
15249
15250 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15251
15252         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
15253         insn-config.h, insn-codes.h, recog.h, and optabs.h.
15254
15255 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15256
15257         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
15258
15259 2010-05-26  Richard Guenther  <rguenther@suse.de>
15260
15261         * opts.c (common_handle_option): Handle OPT_Ofast.
15262
15263 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
15264
15265         * diagnostic.c: Don't include opts.h.
15266         (permissive_error_option): Define.
15267         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
15268         for classify_diagnostic.  Don't use memset for
15269         classify_diagnostic.  Initialize new and recently added fields.
15270         (diagnostic_classify_diagnostic): Use context->n_opts instead of
15271         N_OPTS.
15272         (diagnostic_report_diagnostic): Pass context parameter to
15273         diagnostic_report_warnings_p.  Use option_enabled and option_name
15274         hooks from context.
15275         (emit_diagnostic): Use permissive_error_option.
15276         (permerror): Likewise.
15277         * diagnostic.h: Don't include options.h.
15278         (struct diagnostic_context): Add n_opts, opt_permissive,
15279         inhibit_warnings, warn_system_headers, option_enabled and
15280         option_name fields.  Change classify_diagnostic to a pointer.
15281         * opts-diagnostic.h: New file.
15282         * opts.c: Include opts-diagnostic.h.
15283         (common_handle_option): Set global_dc fields for -Wfatal-errors,
15284         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
15285         (option_name): New function.
15286         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
15287         (c_common_handle_option): Set global_dc->permissive for
15288         -fpermissive.
15289         * c-common.c (c_cpp_error): Save and restore
15290         global_dc->warn_system_headers, not variable warn_system_headers.
15291         * toplev.c: Include opts-diagnostic.h.
15292         (general_init): Update call to diagnostic_initialize.  Set
15293         global_dc->show_column, global_dc->option_enabled and
15294         global_dc->option_name.
15295         (process_options): Don't set global_dc fields here.
15296         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
15297         (diagnostic.o, opts.o, toplev.o): Update dependencies.
15298
15299 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
15300
15301         * config/picochip/picochip.md (movsi): Split a movsi from a
15302         const after reload.
15303
15304 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15305
15306         * ggc-zone.c: Update copyright year.
15307         (poison_region): Mark memory for Valgrind as undefined before
15308         memset () call and inaccessible afterwards.
15309         (ggc_pch_total_size): Change type of i to int.
15310
15311 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15312
15313         * ggc-common.c (ggc_free_overhead): Allow empty slot.
15314
15315 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15316
15317         * ggc-common.c: Update copyright year.
15318         (ggc_rlimit_bound): Remove prototype.  Compile only if
15319         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
15320         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
15321         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
15322         (ggc_min_heapsize_heuristic): Likewise.
15323
15324 2010-05-26  Richard Guenther  <rguenther@suse.de>
15325
15326         PR rtl-optimization/44164
15327         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
15328         no-common access-path disambiguation.
15329         (indirect_ref_may_alias_decl_p): Adjust.
15330         (indirect_refs_may_alias_p): Likewise.
15331         (refs_may_alias_p_1): Likewise.
15332
15333 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15334
15335         * c-typeck.c: Do not include expr.h.
15336
15337 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15338
15339         * rtl.h (decl_default_tls_model): Move prototype from here...
15340         * output.h: ...to here.
15341         * c-decl.c: Do not include rtl.h.
15342         * c-pragma.c: Likewise.
15343         * c-parser.c: Likewise.
15344         * c-gimplify.c: Likewise.  And also not hard-reg-set.
15345         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
15346         FIXME note for it.  Add a FIXME note for expr.h.
15347         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
15348         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
15349         defined.
15350
15351 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
15352
15353         PR target/44199
15354         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
15355         or total_size is larger than red zone size for non-V4 ABI, emit a
15356         stack_tie resp. frame_tie insn before stack pointer restore.
15357         * config/rs6000/rs6000.md (frame_tie): New insn.
15358
15359 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15360
15361         * function.h (struct function): Add can_throw_non_call_exceptions bit.
15362         * lto-streamer-in.c (input_function): Stream it in.
15363         * lto-streamer-out.c (output_function): Stream it out.
15364         * function.c (allocate_struct_function): Set it.
15365         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
15366         for flag_non_call_exceptions.
15367         * cfgbuild.c (control_flow_insn_p): Likewise.
15368         (make_edges): Likewise.
15369         * cfgexpand.c (expand_stack_alignment): Likewise.
15370         * combine.c (distribute_notes): Likewise.
15371         * cse.c (cse_extended_basic_block): Likewise.
15372         * except.c (insn_could_throw_p): Likewise.
15373         * gcse.c (simple_mem): Likewise.
15374         * ipa-pure-const.c (check_call): Likewise.
15375         (check_stmt ): Likewise.
15376         * lower-subreg.c (lower-subreg.c): Likewise.
15377         * optabs.c (emit_libcall_block): Likewise.
15378         (prepare_cmp_insn): Likewise.
15379         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
15380         * postreload.c (rest_of_handle_postreload): Likewise.
15381         * reload1.c (reload_as_needed): Likewise.
15382         (emit_input_reload_insns): Likewise.
15383         (emit_output_reload_insns): Likewise.
15384         (fixup_abnormal_edges): Likewise.
15385         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
15386         * store-motion.c (find_moveable_store): Likewise.
15387         * tree-eh.c (stmt_could_throw_p): Likewise.
15388         (tree_could_throw_p): Likewise.
15389         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
15390         * config/arm/arm.c (arm_expand_prologue): Likewise.
15391         (thumb1_expand_prologue): Likewise.
15392         * config/rx/rx.md (cbranchsf4): Likewise.
15393         (cmpsf): Likewise.
15394         * config/s390/s390.c (s390_emit_prologue): Likewise.
15395         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
15396         (inline_forbidden_into_p): New predicate.
15397         (expand_call_inline): Use it to forbid inlining.
15398         (tree_can_inline_p): Likewise.
15399
15400 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
15401
15402         * config/i386/i386-c.c: Do not include rtl.h.
15403         * config/i386/t-i386: Update dependencies.
15404
15405 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
15406
15407         * attribs.c: Do not include rtl.h.
15408         * Makefile.in: Update dependencies.
15409
15410 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
15411
15412         * double-int.h (double_int_and): New.
15413         * combine.c (try_combine): Clean up, use double_int_* and
15414         immed_double_int_const functions.
15415
15416 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15417
15418         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
15419         stderr to /dev/null instead of grep -q.
15420         * configure: Regenerate.
15421
15422 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
15423
15424         * Makefile.in (EXCEPT_H): Fix typo.
15425
15426 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
15427
15428         * ira-build.c (update_conflict_hard_reg_costs): New.
15429         (ira_build): Call update_conflict_hard_reg_costs.
15430
15431 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
15432
15433         PR debug/41371
15434         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
15435         ENABLE_CHECKING.
15436         (intersect_loc_chains): Walk the s2var's loc_chain together
15437         with s1node chain as long as the locations are equal, don't
15438         call find_loc_in_1pdv in that case.
15439
15440         PR debug/42801
15441         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
15442         (copy_bind_expr): ... instead of here.
15443         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
15444         if the block hasn't been remapped.
15445         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
15446         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
15447
15448 2010-05-25  Richard Guenther  <rguenther@suse.de>
15449
15450         PR middle-end/44069
15451         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
15452         out-of-bounds array accesses.
15453
15454 2010-05-25  Richard Guenther  <rguenther@suse.de>
15455
15456         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
15457         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
15458         (run_gcc): Re-organize to make cleanup easier.
15459
15460 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15461
15462         * config/s390/s390.c (optimization_options): Fix and move the
15463         flag_prefetch_loop_arrays override ...
15464         (override_options): ... here.
15465
15466 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
15467
15468         * diagnostic.c: Don't include plugin.h.
15469         (diagnostic_report_diagnostic): Don't handle plugins specially
15470         here.  Pass context to internal_error callback.
15471         * diagnostic.h (struct diagnostic_context): Add context parameter
15472         to internal_error callback.
15473         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
15474         * plugin.h (struct diagnostic_context): Declare.
15475         (warn_if_plugins, plugins_internal_error_function): Declare.
15476         * toplev.c (general_init): Set global_dc->internal_error.
15477         * Makefile.in (diagnostic.o): Update dependencies.
15478
15479 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
15480
15481         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
15482         * config/rs6000/t-darwin64: New.
15483         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
15484         build crt2.
15485
15486 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
15487
15488         PR 44203
15489         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
15490         match the original (and intended) behaviour before r159557.  This
15491         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
15492         in two ways.
15493
15494 2010-05-25  Richard Guenther  <rguenther@suse.de>
15495
15496         * doc/invoke.texi: Document -Ofast.
15497         * target.h (struct gcc_target): Add handle_ofast.
15498         * target-def.h (TARGET_HANDLE_OFAST): Add.
15499         (TARGET_INITIALIZER): Adjust.
15500         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
15501         * common.opt (Ofast): Add.
15502
15503 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
15504
15505         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
15506         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
15507
15508 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
15509
15510         PR target/43610
15511         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
15512         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
15513         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
15514         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
15515
15516 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
15517
15518         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
15519         DW_OP_minus with negated offset instead of DW_OP_plus.
15520         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
15521
15522 2010-05-25  Wei Guozhi  <carrot@google.com>
15523
15524         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
15525         tst instruction and a new alternative.
15526         * config/arm/constraints.md (Pu): New constraint.
15527
15528 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
15529
15530         * function.c (assign_stack_local_1): Initialize variable
15531         to avoid warning when bootstrapping at -O3.
15532
15533 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
15534
15535         * configure.ac (all_lang_makefiles): Remove everything related to it.
15536         * configure: Regenerate.
15537         * Makefile.in: Fix reference to ada Make-lang.in.
15538         Remove support for LANG_MAKEFILES.
15539
15540 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
15541             Sandra Loosemore  <sandra@codesourcery.com>
15542
15543         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
15544         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
15545         description.  Add arm_neon_fp16_ok.
15546         (Add Options): Add arm_neon and arm_neon_fp16.
15547
15548 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
15549
15550         * diagnostic.c: Don't include flags.h.
15551         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
15552         context parameters.  Check flags in the context passed as a parameter.
15553         (diagnostic_build_prefix): Add context parameter.  Check
15554         show_column flag in context.
15555         (diagnostic_action_after_output): Check fatal_errors flag in context.
15556         (diagnostic_report_current_module): Check show_column flag in context.
15557         (default_diagnostic_starter): Update call to
15558         diagnostic_build_prefix.
15559         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
15560         (emit_diagnostic): Pass context to permissive_error_kind.
15561         (permerror): Pass context to permissive_error_kind.
15562         * diagnostic.h (struct diagnostic_context): Add show_column,
15563         pedantic_errors, permissive and fatal_errors fields.
15564         (diagnostic_build_prefix): Update prototype.
15565         * langhooks.c
15566         * toplev.c (process_options): Set flags in global_dc from
15567         flag_show_column, flag_pedantic_errors, flag_permissive,
15568         flag_fatal_errors.
15569         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
15570         to diagnostic_build_prefix.
15571         * Makefile.in (diagnostic.o): Update dependencies.
15572
15573 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15574
15575         * config/i386/ia32intrin.h (__crc32q): Define only if
15576         __SSE4_2__ is defined.
15577
15578 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
15579
15580         PR target/44132
15581         PR middle-end/43602
15582         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
15583         DECL_VISIBILITY_SPECIFIED.
15584         (emutls_decl): Set DECL_PRESERVE_P and copy
15585         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
15586         (emutls_finalize_control_var): New callback.
15587         (emutls_finish): Finalize emutls control variables.
15588         * toplev.c (compile_file): Move the call to emutls_finish ()
15589         before varpool_assemble_pending_decls ().
15590
15591 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
15592
15593         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
15594         added to the preprocessor condition.
15595
15596 2010-05-24  Paul Brook  <paul@codesourcery.com>
15597
15598         * gengtype-lex.l: Add HARD_REG_SET.
15599         * expr.c (expand_expr_real_1): Record writes to hard registers.
15600         * function.c (rtl_data): Add asm_clobbers.
15601         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
15602         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
15603         Use crtl->asm_clobbers.
15604
15605 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15606
15607         * doc/makefile.texi (Makefile): Mention stages 'profile'
15608         and 'feedback' for profiledbootstrap.
15609
15610 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
15611
15612         PR target/44245
15613         * config/i386/i386.c (def_builtin): Properly check
15614         OPTION_MASK_ISA_64BIT.
15615
15616 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
15617
15618         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
15619         typedefs with different but compatible types.  Allow duplicate
15620         typedefs with the same type except for pedantic non-C1X, but give
15621         warning for variably modified types.
15622         * c-typeck.c (tagged_types_tu_compatible_p,
15623         function_types_compatible_p, type_lists_compatible_p,
15624         comptypes_internal): Add parameter different_types_p; set
15625         *different_types_p for different but compatible types.  All
15626         callers changed.
15627         (comptypes_check_different_types): New.
15628         * c-tree.h (comptypes_check_different_types): Declare.
15629
15630 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
15631
15632         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
15633         * jump.c: Include basic-block.h.
15634         * profile.c: Likewise.
15635         * tree-profile.c: Likewise.
15636         * coverage.c: Likewise.
15637         * basic-block.h (optimize_function_for_size_p): Move to function.h.
15638         (optimize_function_for_speed_p): Likewise.
15639         * function.h (optimize_function_for_size_p,
15640         optimize_function_for_speed_p): Moved here from basic-block.h.
15641         * Makefile.in: Update dependencies.
15642
15643 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15644
15645         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
15646         before calling make; allow override through $MAKE.
15647         * doc/invoke.texi (Optimize Options): Document override.
15648
15649 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
15650
15651         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
15652         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15653         (rs6000_mode_dependent_address_ptr): Make static.
15654         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15655         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
15656         Remove.
15657
15658 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
15659
15660         PR target/43869
15661         * config/i386/i386.c: Make sure that the correct regparm is passed.
15662
15663 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
15664
15665         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
15666         * sbitmap.c: ...to here to internalize sbitmap element access.
15667         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
15668         Explain why basic-block.h is included.
15669         * function.h: Include tm.h for CUMULATIVE_ARGS.
15670         * Makefile.in: Update dependencies.
15671
15672 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
15673
15674         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
15675         New core types.
15676         * sbitmap.h (struct sbitmap_def): Do not typedef here.
15677         * sbitmap.c: Include sbitmap.h.
15678         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
15679         hard-reg-set.h.  Split everything related to regsets out from here...
15680         * regset.h: ...to here.  New file.
15681         * df.h: Include regset.h and sbitmap.h.
15682         * tree-flow.h: Likewise.
15683         * cfgloop.h: Likewise.
15684         * except.h: Do not include sbitmap.h.  Include hashtab.h.
15685         * cgraph.h: Include vec.h and function.h.
15686         * reload.h (struct insn_chain): Change types of live_throughout
15687         and dead_or_set from regset_head to bitmap_head.
15688         (compute_use_by_pseudos): Be defined also if regset.h is not included.
15689         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
15690         spilled_regs from regset_head to bitmap_head to avoid dependency
15691         in regset.h.
15692         * sel-sched-ir.h: Include regset.h.
15693         * reload.c: Include df.h before reload.h.
15694         * caller-save.c: Likewise.
15695         * reload1.c: Likewise.
15696         * ira.c: Likewise.
15697         (mark_elimination): Update type of r to bitmap, consistent with
15698         DF_LR_IN.
15699         * dominance.c: Include bitmap.h.
15700         * modulo-sched.c: Include df.h.
15701         * cfganal.c: Include bitmap.h and sbitmap.h.
15702         * cfgbuild.c: Include sbitmap.h.
15703         * lcm.c: Include sbitmap.h.
15704         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
15705         * domwalk.c: Include sbitmap.h, exclude ggc.h.
15706         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
15707         * cselib.c: Include bitmap.h.
15708         * tree-optimize.c: Include regset.h.
15709         * stmt.c: Include bitmap.h.
15710         * Makefile.in: Update dependencies.
15711
15712 2010-05-22  Jan Hubicka  <jh@suse.cz>
15713
15714         * cgraph.h (struct varpool_node): Add same_comdat_group.
15715         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
15716         pointer.
15717         (output_varpool): Update call of lto_output_varpool_node.
15718         (input_varpool): Read same_comdat_group pointer.
15719         (input_varpool_1): Fixup same_comdat_group pointer.
15720         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
15721         group is needed, all are.
15722         * varpool.c (varpool_remove_node): Remove node from same comdat group
15723         linklist too.
15724         (varpool_analyze_pending_decls): Walk same comdat groups.
15725
15726 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
15727
15728         * rtl.h (union rtunion_def): Remove rt_bit member.
15729         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
15730         * print-rtl (print_rtx): Do not print the member.
15731         * gengtype.c (adjust_field_rtx_def): Do not handle it.
15732         * gengenrtl.c (type_from_format): Likewise.
15733         (accessor_from_format): Likewise.
15734
15735 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
15736
15737         * dbgcnt.c: Include toplev.h instead of errors.h.
15738         * ira-emit.c: Don't include errors.h.
15739         * ira.c: Include toplev.h instead of errors.h.
15740         * lto-compress.c: Include toplev.h instead of errors.h.
15741         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
15742         ira.o, dbgcnt.o): Update dependencies.
15743
15744 2010-05-22  Richard Guenther  <rguenther@suse.de>
15745
15746         * gimple.c (gimple_types_compatible_p): Check type qualifications
15747         before merging pointer to complete and pointer to incomplete type.
15748         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
15749         we use our own resolution algorithm.  The gold linker plugin
15750         doesn't do the job we want it to do here.
15751
15752 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
15753
15754         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15755         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15756         (sparc_mode_dependent_address_p): New function.
15757
15758 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
15759
15760         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
15761
15762         * timevar.c: Do not include any core headers.
15763         (timevar_print): De-i18n-ize.
15764         (print_time): Likewise.
15765         * timevar.h (timevar_push, timevar_pop): Make inline functions.
15766
15767 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
15768
15769         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
15770         langhooks-def.h.
15771         (diagnostic_initialize): Initialize x_data not last_function.
15772         (diagnostic_report_current_function): Move to tree-diagnostic.c.
15773         (default_diagnostic_starter): Call
15774         diagnostic_report_current_module not
15775         diagnostic_report_current_function.
15776         (diagnostic_report_diagnostic): Initialize x_data not
15777         abstract_origin.
15778         (verbatim): Likewise.
15779         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
15780         x_data.
15781         (struct diagnostic_context): Change last_function to x_data.
15782         (diagnostic_auxiliary_data): Replace with
15783         diagnostic_context_auxiliary_data and
15784         diagnostic_info_auxiliary_data.
15785         (diagnostic_last_function_changed, diagnostic_set_last_function,
15786         diagnostic_report_current_function): Move to tree-diagnostic.h.
15787         (print_declaration, dump_generic_node, print_generic_stmt,
15788         print_generic_stmt_indented, print_generic_expr,
15789         print_generic_decl, debug_c_tree, dump_omp_clauses,
15790         print_call_name, debug_generic_expr, debug_generic_stmt,
15791         debug_tree_chain, default_tree_printer): Move to
15792         tree-pretty-print.h.
15793         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
15794         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
15795         gimple-pretty-print.h.
15796         * pretty-print.c: Don't include tree.h
15797         (pp_base_format): Don't handle %K here.
15798         (pp_base_tree_identifier): Move to tree-pretty-print.c.
15799         * pretty-print.h (text_info): Change abstract_origin to x_data.
15800         (pp_tree_identifier, pp_unsupported_tree,
15801         pp_base_tree_identifier): Move to tree-pretty-print.h.
15802         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
15803         tree-pretty-print.h: New files.
15804         * tree-pretty-print.c: Include tree-pretty-print.h.
15805         (percent_K_format): New.  Moved from pretty-print.c.
15806         (pp_base_tree_identifier): Move from pretty-print.c.
15807         * c-objc-common.c: Include tree-pretty-print.h.
15808         (c_tree_printer): Handle %K here.
15809         * langhooks.c: Include tree-diagnostic.h.
15810         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
15811         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
15812         (default_tree_printer): Handle %K using percent_K_format.
15813         (general_init): Use default_tree_diagnostic_starter.
15814         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
15815         (free_lang_data): Use default_tree_diagnostic_starter.
15816         * c-pretty-print.c: Include tree-pretty-print.h.
15817         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15818         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15819         * dwarf2out.c: Include tree-pretty-print.h.
15820         * except.c: Include tree-pretty-print.h.
15821         * gimple-pretty-print.c: Include tree-pretty-print.h and
15822         gimple-pretty-print.h.
15823         * gimplify.c: Include tree-pretty-print.h.
15824         * graphite-poly.c: Include tree-pretty-print.h and
15825         gimple-pretty-print.h.
15826         * ipa-cp.c: Include tree-pretty-print.h.
15827         * ipa-inline.c: Include gimple-pretty-print.h.
15828         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15829         * ipa-pure-const.c: Include gimple-pretty-print.h.
15830         * ipa-struct-reorg.c: Include tree-pretty-print.h and
15831         gimple-pretty-print.h.
15832         * ipa-type-escape.c: Include tree-pretty-print.h.
15833         * print-rtl.c: Include tree-pretty-print.h.
15834         * print-tree.c: Include gimple-pretty-print.h.
15835         * sese.c: Include tree-pretty-print.h.
15836         * tree-affine.c: Include tree-pretty-print.h.
15837         * tree-browser.c: Include tree-pretty-print.h.
15838         * tree-call-cdce.c: Include gimple-pretty-print.h.
15839         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15840         * tree-chrec.c: Include tree-pretty-print.h.
15841         * tree-data-ref.c: Include tree-pretty-print.h and
15842         gimple-pretty-print.h.
15843         * tree-dfa.c: Include tree-pretty-print.h.
15844         * tree-if-conv.c: Include tree-pretty-print.h and
15845         gimple-pretty-print.h.
15846         * tree-inline.c: Include tree-pretty-print.h.
15847         * tree-into-ssa.c: Include tree-pretty-print.h and
15848         gimple-pretty-print.h.
15849         * tree-nrv.c: Include tree-pretty-print.h.
15850         * tree-object-size.c: Include tree-pretty-print.h and
15851         gimple-pretty-print.h.
15852         * tree-outof-ssa.c: Include tree-pretty-print.h and
15853         gimple-pretty-print.h.
15854         * tree-parloops.c: Include tree-pretty-print.h and
15855         gimple-pretty-print.h.
15856         * tree-predcom.c: Include tree-pretty-print.h and
15857         gimple-pretty-print.h.
15858         * tree-scalar-evolution.c: Include tree-pretty-print.h and
15859         gimple-pretty-print.h.
15860         * tree-sra.c: Include tree-pretty-print.h.
15861         * tree-ssa-address.c: Include tree-pretty-print.h.
15862         * tree-ssa-alias.c: Include tree-pretty-print.h.
15863         * tree-ssa-ccp.c: Include tree-pretty-print.h and
15864         gimple-pretty-print.h.
15865         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
15866         * tree-ssa-copy.c: Include tree-pretty-print.h and
15867         gimple-pretty-print.h.
15868         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
15869         * tree-ssa-dce.c: Include tree-pretty-print.h and
15870         gimple-pretty-print.h.
15871         * tree-ssa-dom.c: Include tree-pretty-print.h and
15872         gimple-pretty-print.h.
15873         * tree-ssa-dse.c: Include gimple-pretty-print.h.
15874         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
15875         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
15876         * tree-ssa-live.c: Include tree-pretty-print.h and
15877         gimple-pretty-print.h.
15878         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
15879         gimple-pretty-print.h.
15880         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
15881         gimple-pretty-print.h.
15882         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
15883         gimple-pretty-print.h.
15884         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
15885         gimple-pretty-print.h.
15886         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
15887         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
15888         * tree-ssa-operands.c: Include tree-pretty-print.h and
15889         gimple-pretty-print.h.
15890         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
15891         gimple-pretty-print.h.
15892         * tree-ssa-pre.c: Include tree-pretty-print.h and
15893         gimple-pretty-print.h.
15894         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
15895         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
15896         gimple-pretty-print.h.
15897         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
15898         gimple-pretty-print.h.
15899         * tree-ssa-sink.c: Include gimple-pretty-print.h.
15900         * tree-ssa-ter.c: Include tree-pretty-print.h and
15901         gimple-pretty-print.h.
15902         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
15903         * tree-ssa.c: Include tree-pretty-print.h and
15904         gimple-pretty-print.h.
15905         * tree-stdarg.c: Include gimple-pretty-print.h.
15906         * tree-switch-conversion.c: Include gimple-pretty-print.h.
15907         * tree-tailcall.c: Include tree-pretty-print.h and
15908         gimple-pretty-print.h.
15909         * tree-vect-data-refs.c: Include tree-pretty-print.h and
15910         gimple-pretty-print.h.
15911         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
15912         gimple-pretty-print.h.
15913         * tree-vect-loop.c: Include tree-pretty-print.h and
15914         gimple-pretty-print.h.
15915         * tree-vect-patterns.c: Include gimple-pretty-print.h.
15916         * tree-vect-slp.c: Include tree-pretty-print.h and
15917         gimple-pretty-print.h.
15918         * tree-vect-stmts.c: Include tree-pretty-print.h and
15919         gimple-pretty-print.h.
15920         * tree-vectorizer.c: Include tree-pretty-print.h.
15921         * tree-vrp.c: Include tree-pretty-print.h and
15922         gimple-pretty-print.h.
15923         * value-prof.c: Include tree-pretty-print.h and
15924         gimple-pretty-print.h.
15925         * var-tracking.c: Include tree-pretty-print.h.
15926         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
15927         (tree-diagnostic.o): New dependencies.
15928         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
15929         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
15930         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
15931         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
15932         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
15933         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
15934         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
15935         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
15936         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
15937         tree-ssa-address.o, tree-ssa-loop-niter.o,
15938         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
15939         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
15940         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
15941         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
15942         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
15943         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
15944         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
15945         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
15946         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
15947         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
15948         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
15949         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
15950         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
15951         tree-switch-conversion.o, var-tracking.o, value-prof.o,
15952         cfgexpand.o, pretty-print.o): Update dependencies.
15953
15954 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
15955
15956         * tree-ssa-structalias.c: Remove tm_p.h from include.
15957
15958 2010-05-21  Jeff Law  <law@redhat.com>
15959
15960         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
15961
15962 2010-05-21  Jason Merrill  <jason@redhat.com>
15963
15964         * tree-eh.c (cleanup_is_dead_in): New.
15965         (lower_try_finally): Don't generate a dead cleanup region.
15966         (lower_cleanup): Likewise.
15967
15968 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
15969
15970         PR debug/44223
15971         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
15972         unchain each use from the cyclic next_regno_use chain first.
15973
15974 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
15975
15976         * real: Do not include gmp.h, mpfr.h, and mpc.h.
15977         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
15978         (real_value_negate, real_value_abs): New prototypes.
15979         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
15980         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
15981         new include file for interface between MPFR and REAL_VALUE_TYPE.
15982         * real.c: Include realmpfr.h.
15983         (real_arithmetic2): Remove legacy function.
15984         (real_value_negate): New.
15985         (real_value_abs): New.
15986         (mfpr_from_real, real_from_mpfr): Move from here...
15987         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
15988         * builtins.c: Include realmpfr.h.
15989         * fold-const.c: Include realmpfr.h.
15990         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
15991         (fold_negate_const): Likewise.
15992         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
15993         * toplev.c: Include realmpfr.h.
15994         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
15995         and real_value_negate.
15996         * fixed-value.c (check_real_for_fixed_mode): Likewise.
15997         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
15998         (vfp3_const_double_index): Likewise.
15999         (arm_print_operand): Likewise.
16000         * Makefile.in: Update dependencies.
16001
16002 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16003
16004         * config/s390/s390.c (override_options): Increase the default
16005         of max-completely-peel-times.
16006
16007 2010-05-21  Julian Brown  <julian@codesourcery.com>
16008             Mark Mitchell  <mark@codesourcery.com>
16009
16010         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
16011         sibling calls for Thumb-1.
16012         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
16013         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
16014         Thumb-2.
16015         (*call_insn, *call_value_insn): Don't use for Thumb-2.
16016         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
16017         for Thumb-2.
16018         (return): New expander.
16019         (*arm_return): New name for ARM return insn.
16020         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
16021
16022 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
16023
16024         * config.gcc (sparc64-*-rtems*): New target.
16025
16026 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
16027
16028         * tree.c (build_function_decl_skip_args): Fix grammar.
16029         (build_function_type_list_1): Fix typos, adjust formatting.
16030
16031 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
16032
16033         * tree.h: Include real.h and fixed-value.h as basic datatypes.
16034         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
16035         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
16036         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
16037         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
16038         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
16039         tree-pretty-print.c, tree-loop-distribution.c,
16040         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
16041         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
16042         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
16043         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
16044         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
16045         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
16046         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
16047         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
16048         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
16049         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
16050         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
16051         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
16052         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
16053         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
16054         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
16055         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
16056         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
16057         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
16058         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
16059         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
16060         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
16061         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
16062         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
16063         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
16064         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
16065         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
16066         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
16067         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
16068         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
16069         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
16070         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
16071         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
16072         config/score/score7.c, config/score/score.c, config/arm/arm.c,
16073         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
16074         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
16075         config/bfin/bfin.c: Clean up redundant includes.
16076         * Makefile.in: Update accordingly.
16077
16078 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
16079
16080         PR middle-end/44204
16081         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
16082         statement has no arguments.
16083
16084 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
16085
16086         PR/44139
16087         * varasm.c (emutls_decl): Merge attributes to new decl.
16088
16089 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
16090
16091         PR middle-end/44101
16092         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
16093         around the uniquized constructor if its type requires a conversion.
16094
16095 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
16096
16097         PR debug/44205
16098         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
16099         at -O0 goto_locus of any of the incoming edges differs from
16100         goto_locus of outgoing edge, or gimple_location of any of the
16101         labels differs.
16102
16103 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
16104
16105         * ira.c (ira_non_ordered_class_hard_regs): Define.
16106         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
16107         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
16108         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
16109         cost of unaligned hard regs when allocating multi-reg pseudos.
16110
16111 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
16112
16113         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
16114         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
16115         for TARGET_NO_FLOAT.
16116         * config/mips/mips.c (mips_file_start): Expand conditional expression
16117         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
16118         (mips_override_options): Move -mno-float override -msoft-float and
16119         -mhard-float.
16120         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
16121         Condition(TARGET_SUPPORTS_NO_FLOAT).
16122         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
16123         __mips_no_float here.
16124         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
16125         (TARGET_SUPPORTS_NO_FLOAT): Define.
16126         * config/mips/sdemtk.opt: Delete.
16127
16128 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
16129
16130         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
16131
16132 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
16133
16134         PR target/43733
16135         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
16136         * configure: Regenerate.
16137         * config.in: Regenerate.
16138         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
16139         instead of sahf only for 64bit targets.
16140
16141 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
16142
16143         PR debug/44178
16144         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
16145         setup_ref_regs for DEBUG_INSNs.
16146
16147 2010-05-20  Jan Hubicka  <jh@suse.cz>
16148
16149         PR middle-end/44197
16150         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
16151
16152 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
16153
16154         PR bootstrap/43870
16155         * df-scan.c (df_ref_compare): Stabilize sort.
16156
16157 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
16158
16159         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
16160         argument.  Don't use DW_OP_piece if offset is non-zero,
16161         put offset into second DW_OP_bit_piece argument.
16162         (dw_sra_loc_expr): Adjust callers.  For memory expressions
16163         compute offset.
16164
16165 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
16166
16167         PR target/44202
16168         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
16169         settings for 16-bit-constant "addo" alternative.
16170
16171 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
16172
16173         * config/mips/mips-dsp.md (add<DSPV:mode>3,
16174         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
16175
16176         PR target/43764
16177         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
16178         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
16179         Use it.
16180
16181 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
16182
16183         * diagnostic.c (FLOAT, FFS): Don't undefine.
16184         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
16185         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
16186         include ordering.
16187
16188 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
16189
16190         * combine.c (propagate_for_debug): Call make_compound_operation
16191         on the source value.
16192         (try_combine): When implementing a split chosen by find_split_point,
16193         either copy i2src or set it to null.  Assert that i2src is not null
16194         before substituting into CALL_INSN_FUNCTION_USAGE.
16195
16196 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
16197
16198         * double-int.h (double_int_ior): New function.
16199         * tree.h (build_int_cst_wide_type): Remove.
16200         * tree.c (build_int_cst_wide_type): Remove.
16201         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
16202         of build_int_cst_wide_type.
16203         * stor-layout.c (set_sizetype): (Ditto.).
16204         * dojump.c (do_jump): Use build_int_cstu instead of
16205         build_int_cst_wide_type.
16206
16207 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
16208
16209         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
16210         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
16211         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
16212         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
16213         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
16214         propagate the 'data' argument to copy_tree_r.
16215         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
16216         Propagate 'data' argument to walk_tree.
16217         (copy_if_shared): New function.
16218         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
16219         (unmark_visited): New function.
16220         (unshare_body): Call copy_if_shared instead of doing it manually.
16221         (unvisit_body): Call unmark_visited instead of doing it manually.
16222
16223 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
16224
16225         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
16226         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
16227         * hooks.c: Likewise.
16228         * target-def.h (TARGET_FOLD_BUILTIN): Define to
16229         hook_tree_tree_int_treep_bool_null.
16230         * target.h (struct gcc_target): Update signature of fold_builtin
16231         field.
16232         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
16233         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
16234         instead of the call expression.
16235         (fold_builtin_call_array): Pass n and argarray directly.
16236         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
16237         consing a list.
16238         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
16239         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
16240         `i' and use it in place of `arity'.
16241         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
16242         Dereference `args' directly.
16243         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
16244
16245 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16246
16247         * doc/sourcebuild.texi (Effective-Target Keywords): Document
16248         3dnow, sse3, sse2.
16249         (Directives): Document optional dg-require-effective-target
16250         selector.
16251
16252 2010-05-19  Richard Guenther  <rguenther@suse.de>
16253
16254         PR lto/44196
16255         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
16256
16257 2010-05-19  Richard Guenther  <rguenther@suse.de>
16258
16259         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
16260         * common.opt (fwhopr=): New.
16261         * opts.c (common_handle_option): Handle OPT_fwhopr.
16262         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
16263         * collect2.c (main): Match -fwhopr*.
16264         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
16265         Execute ltrans stage in parallel when jobs is bigger than 1.
16266
16267 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16268
16269         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
16270         pentiumpro on Solaris 8/x86 with Sun as.
16271         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
16272         hidden alias bug.
16273         (gcc_cv_as_ix86_quad): Check for .quad directive.
16274         * configure: Regenerate.
16275         * config.in: Regenerate.
16276         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
16277
16278 2010-05-19  Martin Jambor  <mjambor@suse.cz>
16279
16280         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
16281         also for indirect edges.  Actual printing moved...
16282         (ipa_print_node_jump_functions_for_edge): ...here.
16283         (ipa_compute_jump_functions): Renamed to
16284         ipa_compute_jump_functions_for_edge and made static.
16285         (ipa_compute_jump_functions): New function.
16286         (make_edge_direct_to_target): Check if the number of arguments on
16287         the newly direct edge is the same as the number of parametrs of
16288         the callee.
16289         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
16290         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
16291         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
16292         analysis functions unconditionally, call the new
16293         ipa_analyze_params_uses on the node instead of every edge.
16294
16295 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
16296
16297         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
16298         to tree.
16299         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
16300         also checks for a constant int vs.  non-constant but
16301         loop-invariant steps.
16302         (find_or_create_group): Change the sort algorithm to only consider
16303         steps that are constant ints.
16304         (idx_analyze_ref): Adopt code to handle a tree instead of a
16305         HOST_WIDE_INT for step.
16306         (gather_memory_references_ref): Handle tree instead of int and be
16307         prepared to see a NULL_TREE.
16308         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
16309         prefetches if the step cannot be calculated at compile time.
16310         (issue_prefetch_ref): Issue prefetches for non-constant but
16311         loop-invariant steps.
16312
16313 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
16314
16315         Revert:
16316         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
16317
16318         * tree.h (build_call_list): Remove.
16319         * tree.c (build_call_list): Remove.
16320
16321 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
16322
16323         * tree.h (build_call_list): Remove.
16324         * tree.c (build_call_list): Remove.
16325
16326 2010-05-18  Jan Hubicka  <jh@suse.cz>
16327
16328         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
16329
16330 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
16331
16332         PR rtl-optimization/43332
16333         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
16334
16335 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
16336
16337         * tree.h (build_int_cstu): Implement as static inline.
16338         * tree.c (build_int_cstu): Remove function.
16339         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
16340         sign extended.
16341
16342 2010-05-18  Richard Guenther  <rguenther@suse.de>
16343
16344         PR lto/44143
16345         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
16346         (debug): Initialize from -save-temps.
16347         (collect_execute): Print command-line when verbose.
16348         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
16349         for ltrans invocation.  Produce -dumpbase flag again.
16350         (process_args): Remove.
16351         (main): Simplify.
16352         * collect2.c (maybe_run_lto_and_relink): Only pass object
16353         files to lto-wrapper.
16354         * gcc.c (LINK_COMMAND_SPEC): Likewise.
16355
16356 2010-05-18  Jan Hubicka  <jh@suse.cz>
16357
16358         * opts.c (decode_options): Do not disable whopr at ipa_cp.
16359         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
16360
16361 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
16362
16363         PR lto/44184
16364         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
16365         in a GIMPLE_ASM.
16366         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
16367         in a GIMPLE_ASM.
16368
16369 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
16370
16371         PR debug/41371
16372         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
16373         rtx_equal_p inline.
16374
16375 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
16376
16377         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
16378         lto-macho as lto_binary_reader.
16379
16380         * darwin.c (darwin_asm_named_section): Do not add assembler comment
16381         after .section directive; just print it before the directive instead.
16382
16383 2010-05-17  Jan Hubicka  <jh@suse.cz>
16384
16385         * cgraph.c (cgraph_create_virtual_clone): Only check
16386         versionable_function_p when not in wpa and checking is enabled.
16387         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
16388         there are no more functions to materialize.
16389
16390 2010-05-17  Jan Hubicka  <jh@suse.cz>
16391
16392         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
16393         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
16394         New functions.
16395         (output_cgraph): Call output_cgraph_opt_summary.
16396         (input_cgrpah): Call input_cgraph_opt_summary.
16397         (output_cgraph_opt_summary_p, output_node_opt_summary,
16398         input_node_opt_summary, input_cgraph_opt_section): New functions.
16399         * lto-section-in.c (lto_section_name): Add cgraphopt.
16400         * tree-inline.c (tree_function_versioning): Handle parm_num.
16401         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
16402         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
16403
16404 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
16405
16406         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
16407         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
16408         the insn to prefetch ratio heuristic to loops with known trip count.
16409
16410 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
16411
16412         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
16413         (schedule_prefetches): Do not generate a prefetch if the unroll factor
16414         is far from what is required by the prefetch.
16415
16416 2010-05-17  Jan Hubicka  <jh@suse.cz>
16417
16418         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
16419         (ipcp_estimate_growth): Likewise.
16420         (ipcp_const_param_count): Likewise.
16421         (ipcp_insert_stage): Likewise.
16422         * ipa-prop.c (visit_load_for_mod_analysis): New function.
16423         (visit_store_addr_for_mod_analysis): Set used flag.
16424         (ipa_detect_param_modifications): Set used flag for SSE params;
16425         update use of walk_stmt_load_store_addr_ops.
16426         (ipa_print_node_params): Print used flag.
16427         (ipa_write_node_info): Stream used flag.
16428         (ipa_read_node_info): Likewise.
16429         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
16430         (ipa_is_param_used): New function.
16431         (lto_ipa_fixup_call_notes): Remove unused declaration.
16432
16433 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16434
16435         PR target/44074
16436         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
16437         * configure: Regenerate.
16438         * config.in: Regenerate.
16439         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
16440         !HAVE_AS_IX86_REP_LOCK_PREFIX.
16441         Don't emit whitespace.
16442         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
16443         (*rep_movsi): Likewise.
16444         (*rep_movsi_rex64): Likewise.
16445         (*rep_movqi): Likewise.
16446         (*rep_movqi_rex64): Likewise.
16447         (*rep_stosdi_rex64): Likewise.
16448         (*rep_stossi): Likewise.
16449         (*rep_stossi_rex64): Likewise.
16450         (*rep_stosqi): Likewise.
16451         (*rep_stosqi_rex64): Likewise.
16452         (*cmpstrnqi_nz_1): Use {%;} after repz.
16453         (*cmpstrnqi_nz_rex_1): Likewise.
16454         (*cmpstrnqi_1): Likewise.
16455         (*cmpstrnqi_rex_1): Likewise.
16456         (*strlenqi_1): Use {%;} after repnz.
16457         (*strlenqi_rex_1): Likewise.
16458         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
16459         (*sync_compare_and_swap<mode>): Likewise.
16460         (sync_double_compare_and_swap<mode>): Likewise.
16461         (*sync_double_compare_and_swapdi_pic): Likewise.
16462         (sync_old_add<mode>): Likewise.
16463         (sync_add<mode>): Likewise.
16464         (sync_sub<mode>): Likewise.
16465         (sync_<code><mode>): Likewise.
16466
16467 2010-05-17  Martin Jambor  <mjambor@suse.cz>
16468
16469         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
16470         otr_token and polymorphic.
16471         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
16472         (cgraph_clone_edge): Copy the above fields.
16473         * tree.c (get_binfo_at_offset): New function.
16474         * tree.h (get_binfo_at_offset): Declare.
16475         * ipa-prop.h (enum jump_func_type): Added known_type jump function
16476         type, reordered items, updated comments.
16477         (union jump_func_value): Added base_type field, reordered fields.
16478         (enum ipa_lattice_type): Moved down in the file.
16479         (struct ipa_param_descriptor): New field polymorphic.
16480         (ipa_is_param_polymorphic): New function.
16481         * ipa-prop.c: Include gimple.h and gimple-fold.h.
16482         (ipa_print_node_jump_functions): Print known type jump functions.
16483         (compute_complex_pass_through): Renamed to...
16484         (compute_complex_assign_jump_func): this.
16485         (compute_complex_ancestor_jump_func): New function.
16486         (compute_known_type_jump_func): Likewise.
16487         (compute_scalar_jump_functions): Create known type and complex ancestor
16488         jump functions.
16489         (ipa_note_param_call): New parameter polymorphic, set the corresponding
16490         flag in the call note accordingly.
16491         (ipa_analyze_call_uses): Renamed to...
16492         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
16493         variable var only in the block where it is used.
16494         (ipa_analyze_virtual_call_uses): New function.
16495         (ipa_analyze_call_uses): Likewise.
16496         (combine_known_type_and_ancestor_jfs): Likewise.
16497         (update_jump_functions_after_inlining): Implemented handling of a
16498         number of new jump function types combination.
16499         (print_edge_addition_message): Removed.
16500         (make_edge_direct_to_target): New function.
16501         (try_make_edge_direct_simple_call): Likewise.
16502         (try_make_edge_direct_virtual_call): Likewise.
16503         (update_call_notes_after_inlining): Renamed to...
16504         (update_indirect_edges_after_inlining): this.  Moved edge creation for
16505         indirect calls to try_make_edge_direct_simple_call, also calls
16506         try_make_edge_direct_virtual_call for virtual calls.
16507         (ipa_print_node_params): Changed the header message.
16508         (ipa_write_jump_function): Stream also known type jump functions.
16509         (ipa_read_jump_function): Likewise.
16510         (ipa_write_indirect_edge_info): Stream new fields in
16511         cgraph_indirect_call_info.
16512         (ipa_read_indirect_edge_info): Likewise.
16513         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
16514         GIMPLE_FOLD_H.
16515
16516 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16517
16518         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
16519
16520 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
16521
16522         * tree.h (CALL_EXPR_ARGS): Delete.
16523         (call_expr_arglist): Delete.
16524         * tree.c (call_expr_arglist): Delete.
16525         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
16526         targetm.fold_builtin.
16527         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
16528         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
16529         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
16530         arglist parameter.  Use CALL_EXPR_ARG.
16531         (picochip_expand_builtin_3op): Likewise.
16532         (picochip_expand_builtin_2opvoid): Likewise.
16533         (picochip_expand_array_get): Likewise.
16534         (picochip_expand_array_put): Likewise.
16535         (picochip_expand_array_testport): Likewise.
16536         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
16537         rather than arglist.
16538         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
16539         CALL_EXPR_ARGS.
16540         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
16541         than TREE_VALUE and TREE_CHAIN.
16542         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16543         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
16544         the arglist.
16545
16546 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
16547
16548         PR bootstrap/42347
16549         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
16550         to have no fallthru edge.
16551
16552         PR middle-end/44102
16553         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
16554         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
16555         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
16556         add BARRIER after previous bb if needed.
16557
16558 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
16559
16560         * tree.c (build_function_type_list_1): Remove bogus assert condition.
16561
16562 2010-05-17  Alan Modra  <amodra@gmail.com>
16563
16564         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
16565         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
16566         with copy_reg rtx param.
16567         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
16568         Correct cases where code for ABI_V4 did not initialise the reg
16569         used to access frame.  Also leave frame_reg_rtx as sp for large
16570         frames that save no regs.
16571
16572 2010-05-17  Martin Jambor  <mjambor@suse.cz>
16573
16574         PR middle-end/44133
16575         * tree-sra.c (create_access_replacement): New parameter rename, mark
16576         the replaement for renaming only when it is true.
16577         (get_access_replacement): Pass true in the rename parameter of
16578         create_access_replacement.
16579         (get_unrenamed_access_replacement): New function.
16580         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
16581         replacement declaration from it.
16582
16583 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
16584
16585         * function.c (try_fit_stack_local, add_frame_space): New static
16586         functions.
16587         (assign_stack_local_1): Use them.  Look for opportunities to use
16588         space previously wasted on alignment.
16589         * function.h (struct frame_space): New.
16590         (struct rtl_data): Add FRAME_SPACE_LIST member.
16591         * reload1.c (something_was_spilled): New static variable.
16592         (alter_reg): Set it.
16593         (reload): Test it in addition to testing if the frame size changed.
16594
16595 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
16596
16597         * config/s390/s390.c: Define sane prefetch settings and activate
16598         flag_prefetch_loop_arrays on -O3.
16599         * config/s390/s390.h: Declare that read can use write prefetch.
16600
16601 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
16602
16603         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
16604         build.
16605
16606 2010-05-16  Jan Hubicka  <jh@suse.cz>
16607
16608         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
16609         function body; do not check stdarg field of struct function.
16610
16611 2010-05-16  Jan Hubicka  <jh@suse.cz>
16612
16613         * cgraph.c (dump_cgraph_node): Dump versionable flag.
16614         * cgraph.h (cgraph_local_info): Add versionable flag.
16615         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
16616         (ipcp_versionable_function_p): Use it.
16617         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
16618         versionable flag.
16619
16620 2010-05-16  Jan Hubicka  <jh@suse.cz>
16621
16622         * cgraph.c (cgraph_clone_node): Take decl argument and insert
16623         clone into hash when it is different from orig.
16624         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
16625         * cgraph.h (cgraph_clone_node): Update prototype.
16626         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
16627         (lto_cgraph_encoder_delete): Delete body map.
16628         (lto_cgraph_encoder_size): Move to header.
16629         (lto_cgraph_encoder_encode_body_p,
16630         lto_set_cgraph_encoder_encode_body): New.
16631         (lto_output_node): Do not take written_decls argument; output clone_of
16632         pointer.
16633         (add_node_to): Add include_body_argument; call
16634         lto_set_cgraph_encoder_encode_body on master of the clone.
16635         (add_references): Update use of add_node_to.
16636         (compute_ltrans_boundary): Likewise.
16637         (output_cgraph): Do not create written_decls bitmap.
16638         (input_node): Take nodes argument; stream in clone_of correctly.
16639         (input_cgraph_1): Update use of input_node.
16640         * lto-streamer-out.c (lto_output): Use encoder info to decide
16641         what bodies to output.
16642         * ipa-inline.c (cgraph_clone_inlined_nodes,
16643         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
16644         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
16645         (lto_cgraph_encoder_size): Define here.
16646         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
16647         Declare.
16648
16649 2010-05-16  Richard Guenther  <rguenther@suse.de>
16650
16651         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
16652         -fipa-type-escape.
16653         * ipa-type-escape.c (gate_type_escape_vars): Run when
16654         -fipa-struct-reorg runs.
16655         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
16656         * common.opt (fipa-type-escape): Remove.
16657
16658 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
16659
16660         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
16661         (decode_options): Likewise.
16662         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
16663
16664 2010-05-16  Jan Hubicka  <jh@suse.cz>
16665
16666         * ipa.c (function_and_variable_visibility): Also bring local all
16667         aliases.
16668
16669 2010-05-16  Richard Guenther  <rguenther@suse.de>
16670
16671         * alias.c (nonoverlapping_memrefs_p): Remove use of
16672         IPA type-escape information.
16673
16674 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
16675
16676         * c-common.c (c_common_reswords): Add _Static_assert for C.
16677         * c-parser.c (c_token_starts_declaration,
16678         c_parser_next_token_starts_declaration,
16679         c_parser_static_assert_declaration_no_semi,
16680         c_parser_static_assert_declaration): New.
16681         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
16682         Handle static assertions if static_assert_ok.
16683         (c_parser_external_declaration, c_parser_declaration_or_fndef,
16684         c_parser_compound_statement_nostart, c_parser_label,
16685         c_parser_for_statement, c_parser_objc_methodprotolist,
16686         c_parser_omp_for_loop): All callers of
16687         c_parser_declaration_or_fndef changed.
16688         (c_parser_struct_declaration): Handle static assertions.
16689         (c_parser_compound_statement_nostart): Use
16690         c_parser_next_token_starts_declaration and
16691         c_token_starts_declaration to detect start of declarations.
16692         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
16693         Likewise.
16694
16695 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
16696
16697         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
16698         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16699         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16700         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16701         (mmix_function_outgoing_value): Rename to...
16702         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
16703         (mmix_function_value_regno_p): Make static.
16704         (mmix_libcall_value): New function.
16705         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
16706         mmix_function_value_regno_p): Remove declaration.
16707
16708 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
16709
16710         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
16711         BUILT_IN_ALLOCA if stack checking is enabled.
16712
16713 2010-05-16  Richard Guenther  <rguenther@suse.de>
16714
16715         * var-tracking.c (vars_copy_1): Inline ...
16716         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
16717         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
16718         (variable_merge_over_cur): Adjust.  Merge asserts.
16719         (variable_merge_over_src): Likewise.
16720         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
16721         (variable_post_merge_new_vals): Merge asserts.
16722         (variable_post_merge_perm_vals): Likewise.
16723         (find_mem_expr_in_1pdv): Likewise.
16724         (dataflow_set_different_value): Remove.
16725         (onepart_variable_different_p): Merge asserts.
16726         (variable_different_p): Likewise.
16727         (dataflow_set_different_1): Inline ...
16728         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
16729         (emit_notes_for_differences_1): Merge asserts.
16730
16731 2010-05-16  Richard Guenther  <rguenther@suse.de>
16732
16733         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
16734         * optabs.c (libfunc_decl_hash): Likewise.
16735         * varasm.c (emutls_decl): Likewise.
16736
16737 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
16738
16739         * c-decl.c: Don't include gimple.h.
16740         (merge_decls): Do not copy gimple_body.
16741
16742 2010-05-15  Jason Merrill  <jason@redhat.com>
16743
16744         * c.opt: Add -fnothrow-opt.
16745
16746 2010-05-15  Jan Hubicka  <jh@suse.cz>
16747
16748         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
16749         analyzed.
16750         * passes.c (ipa_write_summaries): Write all analyzed nodes.
16751
16752 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
16753
16754         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
16755         * Makefile.in: Add it.
16756         Fix all other Makefile dependencies for changes below.
16757         * tree.h: Include it instead of defining VEC primitives here.
16758         * gimple.h: Likewise.
16759         * rtl.h: Likewise.
16760         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
16761         * except.h: Include vecir.h, break dependence on tree.h.
16762
16763         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
16764         Move from here...
16765         * tree-iterator.c: ...to here.
16766         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
16767
16768         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
16769         tm_p.h.
16770         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
16771         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
16772         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
16773         tree-mudflap.h, and target.h.
16774         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
16775         predict.h, tree-inline.h, gimple.h, and langhooks.h.
16776         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
16777         Add FIXME for why gimple.h is still included (should be unnecessary
16778         since GCC 4.5 gimplification unit-at-a-time).
16779         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
16780         * c-pragma.c: Add FIXME for why function.h needs to be included just
16781         for cfun, at front-end level.
16782         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
16783         Do not include ggc.h, but include vecprim.h for VEC(char).
16784         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
16785         Explain why target.h is included.
16786         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
16787         Explain why gimple.h is included.
16788         * c-ppoutput.c: Do not include tm.h.
16789         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
16790         * c-parses.c: Explain why rtl.h is included, and that this (and only
16791         this) is also why tm.h must be included.
16792         Do not include except.h.
16793         * c-lang.c: Do not include ggc.h.
16794
16795 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
16796
16797         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
16798
16799 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
16800
16801         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
16802         unions by default if those structs and unions have no tags.  Do
16803         not condition anonymous struct and unions handling on flag_iso.
16804         Allow anonymous structs and unions for C1X.
16805         (finish_struct): Do not diagnose lack of named fields when
16806         anonymous structs and unions present for C1X.  Accept flexible
16807         array members in structure with anonymous structs or unions but no
16808         directly named fields.
16809         * doc/extend.texi (Unnamed Fields): Update.
16810
16811 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
16812
16813         * gimple.h (compare_field_offset): Rename into...
16814         (gimple_compare_field_offset): ...this.
16815         * gimple.c (compare_field_offset): Rename into...
16816         (gimple_compare_field_offset): ...this.  Compare the full access if
16817         the offset is self-referential.
16818         (gimple_types_compatible_p): Adjust for above renaming.
16819         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
16820         DECL_NONADDRESSABLE_P flag of fields before merging them.
16821
16822 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
16823
16824         * tree.h (ctor_to_list): Delete.
16825         * tree.c (ctor_to_list): Delete.
16826
16827 2010-05-15  Jan Hubicka  <jh@suse.cz>
16828
16829         * ipa-reference.c: Include toplev.h
16830         (is_proper_for_analysis): Only add to all_module_statics
16831         if it is allocated.
16832         (write_node_summary_p, stream_out_bitmap,
16833         ipa_reference_write_optimization_summary,
16834         ipa_reference_read_optimization_summary): New.
16835         (struct ipa_opt_pass_d pass_ipa_reference): Add
16836         optimization summary streaming.
16837         * lto-cgraph.c (referenced_from_this_partition_p,
16838         reachable_from_this_partition_p): New functions.
16839         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
16840         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
16841         * opts.c (decode_options): Enable ipa_reference.
16842         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
16843         * lto-streamer.h (referenced_from_this_partition_p,
16844         reachable_from_this_partition_p): Declare.
16845
16846 2010-05-15  Richard Guenther  <rguenther@suse.de>
16847
16848         PR tree-optimization/44038
16849         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
16850         taking the address of a V_C_E of a constant.
16851
16852 2010-05-14  Jan Hubicka  <jh@suse.cz>
16853
16854         * tree.h (memory_identifier_string): Remove.
16855         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
16856         (ipa_reference_global_vars_info_d): Remove statics_not_read and
16857         statics_not_written.
16858         (ipa_reference_optimization_summary_d): New structure.
16859         (ipa_reference_optimization_summary_t): New type and vector.
16860         (ipa_reference_vars_info_d): Embedd structures instead of using
16861         pointers.
16862         (reference_vars_to_consider): Remove out of GGC space.
16863         (module_statics_escape): Remove.
16864         (global_info_obstack): Rename to ...
16865         (optimization_summary_obstack): ... this one.
16866         (initialization_status_t): Remove.
16867         (memory_identifier_string): Remove.
16868         (get_reference_vars_info): Fix indenting.
16869         (set_reference_vars_info): Likewise.
16870         (get_reference_optimization_summary): New.
16871         (set_reference_optimization_summary): New.
16872         (get_global_reference_vars_info): Remove.
16873         (ipa_reference_get_read_global): Remove.
16874         (ipa_reference_get_written_global): Remove.
16875         (ipa_reference_get_not_read_global): Update.
16876         (ipa_reference_get_not_written_global): Update.
16877         (is_proper_for_analysis): Outlaw addressable.
16878         (propagate_bits): Update for new datastructures.
16879         (analyze_variable): Remove.
16880         (init_function_info): Update for new datastructures.
16881         (clean_function_local_data): Remove.
16882         (clean_function): Remove.
16883         (copy_global_bitmap): Use optimizations_summary_obstack.
16884         (duplicate_node_data): Duplicate optimization summary only.
16885         (remove_node_data): Remove optimization summary only.
16886         (generate_summary): Do not analyze variables; do not compute
16887         module_statics_escape; do not prune solutions by it.
16888         (read_write_all_from_decl): Fix typos in comments.
16889         (propagate): Doscover readonly and nonaddressable first;
16890         update for new datastructures; share global bitmaps.
16891         * ipa-reference.h (ipa_reference_get_read_global,
16892         ipa_reference_get_written_global): Remove.
16893         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
16894         * Makefile.in: Remove ipa-refereference from GT files.
16895
16896 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
16897
16898         PR debug/44112
16899         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
16900         for all SYMBOL_REF_DECLs.
16901
16902 2010-05-14  Jan Hubicka  <jh@suse.cz>
16903
16904         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
16905         (varpool_all_refs_explicit_p): New inline function.
16906         * ipa-reference.c: Update comment.
16907         (module_statics_written): Remove.
16908         (get_static_decl): Remove.
16909         (ipa_init): Do not initialize module_statics_written.
16910         (analyze_function): Likewise.
16911         (generate_summary): Likewise; do not compute module_statics_readonly
16912         and do not update variable flags.
16913         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
16914         * ipa.c: Inlucde flags.h
16915         (cgraph_local_node_p): New.
16916         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
16917         promote functions to local.
16918         (ipa_discover_readonly_nonaddressable_vars): New function.
16919         (function_and_variable_visibility): Use cgraph_local_node_p.
16920         * varpool.c (varpool_finalize_decl): Set force_output for
16921         DECL_PRESERVE_P vars.
16922
16923 2010-05-14  Jan Hubicka  <jh@suse.cz>
16924
16925         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
16926
16927 2010-05-14  Richard Guenther  <rguenther@suse.de>
16928
16929         PR tree-optimization/44119
16930         * tree-ssa-pre.c (eliminate): Properly mark replacement of
16931         a PHI node necessary.
16932
16933 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
16934
16935         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
16936
16937 2010-05-14  Jason Merrill  <jason@redhat.com>
16938
16939         PR c++/44127
16940         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
16941         (gimple_call_set_nothrow): New.
16942         * gimple.c (gimple_build_call_from_tree): Call it.
16943         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
16944
16945         PR c++/44127
16946         * gimplify.c (gimplify_seq_add_stmt): No longer static.
16947         * gimple.h: Declare it.
16948         * gimple.c (gimple_build_eh_filter): No ops.
16949
16950 2010-05-14  Jan Hubicka  <jh@suse.cz>
16951
16952         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
16953         nodes already in queue.
16954         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
16955         re-enqueueing node.
16956
16957 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
16958
16959         PR debug/44136
16960         * cfgexpand.c (expand_debug_expr): If non-memory op0
16961         has BLKmode, return NULL.
16962
16963 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
16964
16965         * config.gcc: Add support for --with-cpu option for bdver1.
16966         * config/i386/i386.h (TARGET_BDVER1): New macro.
16967         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
16968         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
16969         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
16970         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
16971         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
16972         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
16973         (processor_type): Add PROCESSOR_BDVER1.
16974         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
16975         processor_type in config/i386/i386.h.
16976         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
16977         movaps <reg, reg> instead of movapd <reg, reg> when replacing
16978         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
16979         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
16980         to emit packed xor instead of packed double/packed integer
16981         xor for SSE and AVX when moving a zero value.
16982         * config/i386/sse.md: Add check for
16983         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
16984         movapd/movdqa for SSE and AVX.
16985         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
16986         single logical operations i.e and, or and xor instead of packed double
16987         logical operations for SSE and AVX.
16988         * config/i386/i386-c.c (ix86_target_macros_internal):
16989         Add PROCESSOR_BDVER1.
16990         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
16991         (has_fma4, has_xop): New.
16992         * config/i386/i386.c (bdver1_cost): New variable.
16993         (m_BDVER1): New macro.
16994         (m_AMD_MULTIPLE): Add m_BDVER1.
16995         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
16996         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
16997         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
16998         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
16999         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
17000         x86_tune_sse_partial_reg_dependency,
17001         x86_tune_sse_unaligned_load_optimal,
17002         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
17003         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
17004         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
17005         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
17006         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
17007         Enable/disable for bdver1.
17008         (processor_target_table): Add bdver1_cost.
17009         (cpu_names): Add bdver1.
17010         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
17011          processor_alias_table.
17012         (ix86_expand_vector_move_misalign): Change.
17013         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
17014         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
17015         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
17016         of movupd/movdqu for SSE and AVX.
17017         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
17018         (ix86_tune_adjust_cost): Add code for bdver1.
17019         (standard_sse_constant_opcode): Add check for
17020         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
17021         of packed double xor for SSE and AVX.
17022
17023 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
17024
17025         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
17026         result to unsigned.
17027
17028 2010-05-14  Tristan Gingold  <gingold@adacore.com>
17029
17030         * toplev.c (default_debug_hooks): Remove this variable.
17031         (process_options): Remove assignments to default_debug_hooks.
17032
17033 2010-05-14  Martin Jambor  <mjambor@suse.cz>
17034
17035         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
17036         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
17037         * langhooks.h (struct lang_hooks_for_decls): Removed field
17038         fold_obj_type_ref.
17039         * tree.c (free_lang_data): Remove assignment to
17040         lang_hooks.fold_obj_type_ref.
17041         * tree.def (OBJ_TYPE_REF): Update comment.
17042
17043 2010-05-14  Richard Guenther  <rguenther@suse.de>
17044
17045         PR tree-optimization/44124
17046         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
17047
17048 2010-05-14  Alan Modra  <amodra@gmail.com>
17049
17050         PR target/44075
17051         * config/rs6000/rs6000.c (struct machine_function): Reorder
17052         fields for better packing.  Add lr_save_state.
17053         (rs6000_ra_ever_killed): Return lr_save_state if set.
17054         (rs6000_emit_eh_reg_restore): Set lr_save_state.
17055
17056 2010-05-13  Jan Hubicka  <jh@suse.cz>
17057
17058         * varpool.c (decide_is_variable_needed): Drop code checking
17059         TREE_SYMBOL_REFERENCED.
17060
17061 2010-05-13  Jan Hubicka  <jh@suse.cz>
17062
17063         * final.c (output_addr_const): Do not call mark_decl_referenced.
17064         * cgraphunit.c (process_function_and_variable_attributes): Use
17065         mark_needed_node dirrectly.
17066         (assemble_thunk): Do not call mark_decl_referenced.
17067
17068 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
17069
17070         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
17071
17072 2010-05-13  Jeff Law  <law@redhat.com>
17073
17074         * ira-conflicts.c (print_allocno_conflicts): New function broken out
17075         from...
17076         (print_conflicts): Call print_allocno_conflicts.
17077
17078 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
17079
17080         PR debug/44104
17081         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
17082         if it is NULL.
17083
17084 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
17085
17086         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
17087         t-mingw-w64 or t-mingw-w32 for multilib configuration.
17088         * config/i386/t-mingw-w32: New.
17089         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
17090
17091 2010-05-13  Martin Jambor  <mjambor@suse.cz>
17092
17093         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
17094         gimple-fold.c).
17095         * gimple-fold.c (get_base_binfo_for_type): New function.
17096         (gimple_get_relevant_ref_binfo): Likewise.
17097         (gimple_fold_obj_type_ref_known_binfo): Likewise.
17098         (gimple_fold_obj_type_ref): Likewise.
17099         (fold_gimple_call): Simplify condition for folding virtual calls
17100         and call gimple_fold_obj_type_ref.
17101         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
17102         (gimple_fold_obj_type_ref_known_binfo): Likewise.
17103
17104 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
17105
17106         * config/rs6000/rs6000-protos.h
17107         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
17108         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
17109         (rs6000_debug_mode_dependent_address)
17110         (rs6000_mode_dependent_address_ptr): Likewise.
17111
17112 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
17113
17114         PR debug/43983
17115         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
17116         by SRA.
17117         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
17118         * tree-sra.c (create_access_replacement): Call unshare_expr before
17119         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
17120         * dwarf2out.c: Include tree-flow.h.
17121         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
17122         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
17123         Handle DW_OP_bit_piece.
17124         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
17125         construct_piece_list, adjust_piece_list): New functions.
17126         (add_var_loc_to_decl): Handle SRA optimized variables.
17127         Adjust for var_loc_note to loc field renaming.
17128         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
17129         in VAR_LOCATION note.
17130         (new_loc_descr_op_bit_piece): New function.
17131         (dw_sra_loc_expr): New function.
17132         (dw_loc_list): Use it.  Don't handle the last range after the
17133         loop, handle it inside of the loop.  Adjust for var_loc_note
17134         to loc field renaming.
17135         (add_location_or_const_value_attribute): Only special case
17136         single entry loc lists if loc is NOTE_P.  Adjust for
17137         var_loc_note to loc field renaming.
17138         (dwarf2out_var_location): Don't set newloc->var_loc_note
17139         and newloc->next here.
17140
17141 2010-05-12  Jan Hubicka  <jh@suse.cz>
17142
17143         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
17144         flag.
17145         * cgraph.h (cgraph_only_called_directly_p,
17146         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
17147         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
17148         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
17149         (assemble
17150         * ipa.c (cgraph_remove_unreachable_nodes): Use
17151         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
17152         flags.
17153         * tree-inline.c (copy_bb): Check address_taken flag.
17154         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
17155         externally_visible flag.
17156
17157 2010-05-12  Jason Merrill  <jason@redhat.com>
17158
17159         PR bootstrap/44048
17160         PR target/44099
17161         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
17162         * sdbout.c (plain_type_1): Likewise.
17163         * dwarf2out.c (is_base_type): Likewise.
17164         (gen_type_die_with_usage): Likewise.  Generate
17165         DW_TAG_unspecified_type for any LANG_TYPE.
17166
17167 2010-05-12  Jan Hubicka  <jh@suse.cz>
17168
17169         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
17170         indrect edges too.
17171         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
17172         (cgraph_clone_edge): Update.
17173         (cgraph_node_remove_callees): Remove indirect calls too.
17174         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
17175         (cgraph_create_indirect_edge): Update prototype.
17176         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
17177         is_proper_for_analysis.
17178         (add_new_function, visited_nodes, function_insertion_hook_holder,
17179         get_local_reference_vars_info, mark_address_taken, mark_address,
17180         mark_load, mark_store, check_asm_memory_clobber, check_call,
17181         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
17182         (ipa_init): Do not initialize visited_nodes;
17183         function_insertion_hook_holder.
17184         (analyze_variable): Rewrite.
17185         (analyze_function): Rewrite.
17186         (copy_local_bitmap): Remove.
17187         (duplicate_node_dat): Do not duplicate local info.
17188         (generate_summary): Simplify to only walk cgraph.
17189         (write_node_summary_p, ipa_reference_write_summary,
17190         ipa_reference_read_summary): Remove.
17191         (propagate): Do not remove function insertion;
17192         generate summary.
17193         (pass_ipa_reference): NULLify summary handling fields.
17194         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
17195         (input_edge): Input ecf_flags.
17196         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
17197         (update_indirect_edges_after_inlining): Ignore edges with unknown
17198         param.
17199
17200 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
17201
17202         * implicit-zee.c: New file.
17203         * tree-pass.h (pass_implicit_zee): Declare.
17204         * passes.c (init_optimization_passes): Add zee pass.
17205         * common.opt (fzee): New flag.
17206         * timevar.def (TV_ZEE): Define.
17207         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
17208         and beyond.
17209         * Makefile.in (implicit-zee.o): Add new build file.
17210
17211 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
17212             Nathan Froyd  <froydnj@codesourcery.com>
17213
17214         * c-common.c (sync_resolve_params): Remove write-only variable.
17215
17216 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
17217
17218         * target.h (struct gcc_target): Add mode_dependent_address_p field.
17219         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
17220         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
17221         * targhooks.c (default_mode_dependent_address_p): New function.
17222         * targhooks.h (default_mode_dependent_address_p): Declare function.
17223         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
17224         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
17225         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
17226         target hook. Change return type to bool.
17227         * recog.h (mode_dependent_address_p): Change return type to bool.
17228
17229 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
17230             Nathan Froyd  <froydnj@codesourcery.com>
17231
17232         * tree-mudflap.c (build_function_type_0, build_function_type_1,
17233         build_function_type_2, build_function_type_3): Remove.
17234         (mudflap_init): Use build_function_type_list.
17235
17236 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
17237             Nathan Froyd  <froydnj@codesourcery.com>
17238
17239         * coverage.c (build_fn_info_value): Call build_constructor instead of
17240         build_constructor_from_list.
17241         (build_ctr_info_value): Likewise.
17242         (build_gcov_info): Likewise.
17243
17244 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
17245
17246         * tree.c (build_constructor): Compute TREE_CONSTANT for the
17247         resultant constructor.
17248         (build_constructor_single): Don't set TREE_CONSTANT.
17249         (build_constructor_from_list): Don't compute TREE_CONSTANT.
17250
17251 2010-05-12  Jan Hubicka  <jh@suse.cz>
17252
17253         * cgraph.h (struct varpool_node): Add aux.
17254         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
17255         * varpool.c (varpool_remove_node): Do not remove initializer.
17256         (varpool_reset_queue): Export.
17257         (varpool_finalize_decl): Volatile vars are forced to be output.
17258         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
17259         replaced decl.
17260         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
17261         process_references, varpool_can_remove_if_no_refs): New functions.
17262         (cgraph_remove_unreachable_nodes): Handle variables too.
17263
17264 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
17265
17266         PR target/44088
17267         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
17268
17269 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
17270
17271         PR middle-end/44085
17272         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
17273         change value of ORT_TASK.
17274         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
17275         (omp_notice_threadprivate_variable): New function.
17276         (omp_notice_variable): Call it for threadprivate variables.
17277         If enclosing ctx is a task, print enclosing task rather than
17278         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
17279         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
17280         if task has untied clause.
17281
17282         PR debug/42278
17283         * dwarf2out.c (base_type_die): Don't add name attribute here.
17284         (modified_type_die): Instead of sizetype use
17285         its underlying original type.  If a DW_TAG_base_type doesn't
17286         have name added, add __unknown__.
17287         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
17288         always call force_type_die instead.
17289
17290 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
17291
17292         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
17293         for __stack_chk_guard.
17294
17295 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
17296
17297         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
17298         don't call start_source_file debug hook here...
17299         (finish_options): ... but here, after outputting predefined and
17300         command line defines and undefs.
17301
17302         PR middle-end/44071
17303         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
17304         no fallthru edge.
17305         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
17306         optimizing away empty bb with no successors, move over its
17307         footer chain to fallthru predecessor.
17308         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
17309         (rtl_split_edge): For asm goto call patch_jump_insn even if
17310         splitting fallthru edge.
17311
17312         PR c++/44059
17313         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
17314         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
17315         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
17316         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
17317         on DW.ref.* decls.
17318
17319         PR c++/44062
17320         * c-parser.c (c_parser_expression): Mark LHS of a comma
17321         expression as read if it is a decl, handled component or
17322         COMPOUND_EXPR with that on the RHS.
17323         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
17324         if it is a decl or handled component.
17325
17326 2010-05-11  Jan Hubicka  <jh@suse.cz>
17327
17328         * lto-symtab.c (lto_symtab_free): New function.
17329         * lto-streamer.h (lto_symtab_free): Declare.
17330
17331 2010-05-11  Jan Hubicka  <jh@suse.cz>
17332
17333         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
17334         that if function is needed it is reachable.
17335         (lto_output_node): See if it the function is reachable or referenced.
17336         (output_cgraph): Update call of lto_output_node.
17337         * lto-streamer.h (reachable_from_other_partition_p): Declare.
17338
17339 2010-05-11  Jan Hubicka  <jh@suse.cz>
17340
17341         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
17342         Mark as used.
17343
17344 2010-05-11  Jan Hubicka  <jh@suse.cz>
17345
17346         PR tree-optimize/44063
17347         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
17348         queue.
17349         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
17350         limits.
17351         (estimate_function_body_sizes): Compute sizes even when disregarding.
17352
17353 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
17354
17355         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
17356
17357 2010-05-11  Jan Hubicka  <jh@suse.cz>
17358
17359         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
17360         into every boundary.
17361
17362 2010-05-11  Jan Hubicka  <jh@suse.cz>
17363
17364         * matrix-reorg.c (matrix_reorg): Rebuild edges.
17365
17366 2010-05-11  Jan Hubicka  <jh@suse.cz>
17367
17368         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
17369         lto_streamer_cache_delete): Put nodes into heap.
17370         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
17371         heap.
17372
17373 2010-05-11  Jan Hubicka  <jh@suse.cz>
17374
17375         * cgraphbuild.c (cgraph_rebuild_references): New.
17376         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
17377         out extern inlines.
17378         * cgraph.h (cgraph_rebuild_references): Declare.
17379         * tree-inline.c (tree_function_versioning): Use it.
17380         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
17381
17382 2010-05-11  Jan Hubicka  <jh@suse.cz>
17383
17384         * cgraph.c: Include ipa-utils.h
17385         (cgraph_create_virtual_clone): Update references.
17386         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
17387
17388 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
17389
17390         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
17391         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
17392         cache size.
17393
17394 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
17395
17396         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
17397
17398 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
17399
17400         * gcc.c (execute): For -### don't quote arguments that
17401         contain just alphanumerics and _/-. characters.
17402         * doc/invoke.texi: Document that change for -###.
17403
17404         PR debug/44023
17405         * df-problems.c (struct dead_debug): Add to_rescan field.
17406         (dead_debug_init): Clear to_rescan field.
17407         (dead_debug_finish): Rescan all debug insns in to_rescan
17408         bitmap and free the bitmap.
17409         (dead_debug_insert_before): Instead of rescanning debug insns
17410         immediately queue their rescanning until dead_debug_finish.
17411         (df_note_bb_compute): After dead_debug_add do continue instead
17412         of break.
17413
17414 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
17415
17416         PR debug/44028
17417         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
17418         clear also INSN_REG_USE_LIST.
17419
17420 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17421
17422         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
17423
17424 2010-05-10  Jan Hubicka  <jh@suse.cz>
17425
17426         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
17427         commited change.
17428
17429 2010-05-10  Jan Hubicka  <jh@suse.cz>
17430
17431         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
17432         Allocate encoders.
17433         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
17434         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
17435         (lto_streamer_cache_create): Init alloc pool.
17436         (lto_streamer_cache_delete): Free alloc pool.
17437         * lto-streamer.h: Include alloc pool.
17438         (lto_streamer_cache_d): Use alloc pool.
17439         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
17440
17441 2010-05-10  Jan Hubicka  <jh@suse.cz>
17442
17443         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
17444         * cgraphbuild.c: Include except.h
17445         (record_type_list, record_eh_tables): New function.
17446         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
17447
17448 2010-05-10  Jan Hubicka  <jh@suse.cz>
17449
17450         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
17451         __frame_dummy_init_array_entry, force_to_data): Attribute as used
17452         rather than unused.
17453
17454 2010-05-10  Michael Matz  <matz@suse.de>
17455
17456         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
17457         (can_reassociate_p): Use FLOAT_TYPE_P.
17458         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
17459         (vect_force_simple_reduction): ... this.
17460         * tree-parloops.c (gather_scalar_reductions): Use
17461         vect_force_simple_reduction.
17462         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
17463         vect_is_simple_reduction, add modify argument, if true rewrite
17464         "a-b" into "a+(-b)".
17465         (vect_is_simple_reduction, vect_force_simple_reduction): New
17466         functions.
17467         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
17468
17469 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
17470             Vladimir Makarov  <vmakarov@redhat.com>
17471
17472         PR rtl-optimization/44012
17473         * ira-build.c (remove_unnecessary_allocnos): Nullify
17474         regno_allocno_map of the removed allocno.
17475
17476 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17477
17478         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
17479         to /dev/null.
17480         * configure: Regenerate.
17481
17482 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17483
17484         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
17485         unused.
17486         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
17487         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
17488         support in Sun ld.
17489         * configure: Regenerate.
17490
17491 2010-05-10  Richard Guenther  <rguenther@suse.de>
17492
17493         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
17494         marked if the entry identifier is marked.
17495
17496 2010-05-10  Richard Guenther  <rguenther@suse.de>
17497
17498         * c-common.c (struct c_common_attributes): Add fnspec attribute.
17499         (handle_fnspec_attribute): New function.
17500         * gimple.h (gimple_call_return_flags): Declare.
17501         (gimple_call_arg_flags): Likewise.
17502         * gimple.c (gimple_call_arg_flags): New function.
17503         (gimple_call_return_flags): Likewise.
17504         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
17505         New argument flags.
17506         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
17507         return value flags.
17508         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
17509         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
17510         main work to ...
17511         (make_heapvar_for): ... this new function.
17512         (handle_rhs_call): Handle fnspec attribute argument specifiers.
17513         (handle_lhs_call): Likewise.
17514         (find_func_aliases): Adjust.
17515
17516 2010-05-10  Richard Guenther  <rguenther@suse.de>
17517
17518         PR tree-optimization/44050
17519         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
17520
17521 2010-05-10  Wei Guozhi  <carrot@google.com>
17522
17523         PR target/42879
17524         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
17525
17526 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
17527
17528         PR c/10676
17529         * c-typeck.c (lookup_field): Take a type directly.  Update
17530         recursive calls.
17531         (build_component_ref): Update call to lookup_field.
17532         (set_init_label): Use lookup_field to find initialized field.
17533         Handle returned list of fields like a sequence of designators.
17534
17535 2010-05-09  Richard Guenther  <rguenther@suse.de>
17536
17537         PR middle-end/44024
17538         * fold-const.c (tree_single_nonzero_warnv_p): Properly
17539         handle &FUNCTION_DECL.
17540
17541 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
17542
17543         PR c/4784
17544         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
17545         structures and unions recursively.
17546         (detect_field_duplicates): Move duplicate detection with a hash to
17547         detect_field_duplicates_hash.  Always use a hash if anonymous
17548         structures or unions are present.
17549         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
17550         give errors.
17551
17552 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
17553
17554         PR target/44046
17555         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
17556         detect Atom, Core 2 and Core i7.
17557
17558 2010-05-09  Richard Guenther  <rguenther@suse.de>
17559
17560         * gcc.c (store_arg): Handle temporary file deletion for
17561         joined arguments.
17562
17563 2010-05-09  Richard Guenther  <rguenther@suse.de>
17564
17565         PR middle-end/44043
17566         * ipa-inline.c (estimate_function_body_sizes): Return after
17567         disregarding inline limits.
17568
17569 2010-05-09  Richard Guenther  <rguenther@suse.de>
17570
17571         * gcc.c (store_arg): Revert last change.
17572
17573 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
17574
17575         PR middle-end/28685
17576         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
17577         (optimize_ops_list): Call it.
17578
17579 2010-05-08  Richard Guenther  <rguenther@suse.de>
17580
17581         PR tree-optimization/44030
17582         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
17583         NECESSARY flag if we propagate from a inserted expression.
17584
17585 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
17586
17587         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
17588         domain types as equal if they are both PLACEHOLDER_EXPRs.
17589
17590 2010-05-08  Richard Guenther  <rguenther@suse.de>
17591
17592         * lto-wrapper.c (run_gcc): Remove linker output from
17593         command line for LTRANS invocation.
17594
17595 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
17596
17597         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
17598         lto-macho as lto_binary_reader.
17599         * target.h (struct gcc_target): New hooks lto_start and lto_end.
17600         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
17601         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
17602         in lto_start and lto_end calls.
17603         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
17604         magic numbers.
17605         (scan_prog_file): Update is_elf_or_coff call.
17606         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
17607
17608         * collect2.c (main): Fix enum comparison.
17609
17610         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
17611         Add prototypes.
17612         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
17613         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
17614         and TARGET_ASM_LTO_END.
17615         * darwin.c: Include obstack.h and lto-streamer.h.
17616         (lto_section_names_offset, lto_section_names_obstack,
17617         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
17618         global variables.
17619         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
17620         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
17621         to a temporary file.
17622         (darwin_asm_lto_end): New function.  Restore asm_out_file.
17623         (darwin_asm_named_section): For LTO sections, replace the name with
17624         the offset of the section name in a string table, and build this
17625         table.
17626         (darwin_file_start): Initialize global vars for LTO support.
17627         (darwin_file_end): If output to asm_out_file was redirected, append it
17628         to the proper asm_out_file here.  Add the section names section.
17629
17630 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
17631
17632         * c-pragma.c (pending_weak_d, pending_weak): New.
17633         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
17634         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
17635         handle_pragma_weak): Update the uses of pending_weaks.
17636
17637 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17638
17639         PR documentation/44016
17640         * doc/standards.texi (Standards): Link to unversioned
17641         cxx0x_status.html page.
17642
17643 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
17644
17645         PR target/43708
17646         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
17647         in addition to TREE_USED, to avoid "set but unused" warnings.
17648
17649 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
17650
17651         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
17652         (is_loop_prefetching_profitable): Do not insert prefetches
17653         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
17654         times the prefetch ahead distance.
17655
17656 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
17657
17658         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
17659         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
17660         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
17661         the unroll_factor.
17662
17663 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
17664
17665         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
17666         a diagnostic info when the insn-to-mem ratio is too small.
17667
17668 2010-05-07  Richard Guenther  <rguenther@suse.de>
17669
17670         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
17671         the linker plugin.
17672         (store_arg): Queue temp_filename for deletion instead of
17673         the whole argument.
17674
17675 2010-05-07  Richard Guenther  <rguenther@suse.de>
17676
17677         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
17678         (run_gcc): Handle LTRANS phase invocation.
17679         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
17680
17681 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
17682
17683         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
17684         this is also meaningful on PARM_DECLs and RESULT_DECLs.
17685
17686 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17687
17688         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
17689
17690 2010-05-07  Richard Guenther  <rguenther@suse.de>
17691
17692         PR tree-optimization/44020
17693         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
17694         code when PRE is not yet initialized.
17695
17696 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17697
17698         * config/mips/dbxmdebug.h: Remove.
17699         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
17700
17701 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
17702
17703         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
17704         with null pointer and also warn about ordered comparison of zero with
17705         pointer if -Wextra.
17706
17707 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17708
17709         * graphite-blocking.c
17710         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
17711         * graphite-clast-to-gimple.c
17712         (clast_to_gcc_expression): Same.
17713         (precision_for_value): Same.
17714         (precision_for_interval): Same.
17715         (gcc_type_for_interval): Same.
17716         (graphite_create_new_guard): Same.
17717         (compute_bounds_for_level): Same.
17718         (graphite_create_new_loop_guard): Same.
17719         * graphite-interchange.c
17720         (build_linearized_memory_access): Same.
17721         (pdr_stride_in_loop): Same.
17722         (memory_strides_in_loop_1): Same.
17723         (memory_strides_in_loop): Same.
17724         (extend_scattering): Same.
17725         (psct_scattering_dim_for_loop_depth): Same.
17726         (pbb_number_of_iterations): Same.
17727         * graphite-poly.h
17728         (debug_iteration_domains): Same.
17729         * graphite-ppl.c
17730         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17731         (ppl_set_inhomogeneous_gmp): Same.
17732         (ppl_strip_loop): Same.
17733         (ppl_lexico_compare_linear_expressions): Same.
17734         (ppl_read_polyhedron_matrix): Same.
17735         (ppl_max_for_le_pointset): Same.
17736         * graphite-ppl.h
17737         (ppl_read_polyhedron_matrix): Same.
17738         (tree_int_to_gmp): Same.
17739         (gmp_cst_to_tree): Same.
17740         (ppl_set_inhomogeneous): Same.
17741         (ppl_set_inhomogeneous_tree): Same.
17742         (ppl_set_coef): Same.
17743         (ppl_set_coef_tree): Same.
17744         * graphite-sese-to-poly.c
17745         (build_pbb_scattering_polyhedrons): Same.
17746         (build_scop_scattering): Same.
17747         (scan_tree_for_params_right_scev): Same.
17748         (scan_tree_for_params): Same.
17749         (find_params_in_bb): Same.
17750         (find_scop_parameters): Same.
17751         (add_upper_bounds_from_estimated_nit): Same.
17752         (build_loop_iteration_domains): Same.
17753         (add_condition_to_domain): Same.
17754         (pdr_add_memory_accesses): Same.
17755
17756 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17757
17758         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
17759         CLooG's value_* macros to their respective mpz_* counterparts.
17760         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
17761         (graphite_create_new_loop_guard): Same.
17762         * graphite-interchange.c (build_linearized_memory_access): Same.
17763         (pdr_stride_in_loop): Same.
17764         (memory_strides_in_loop_1): Same.
17765         (1st_interchange_profitable_p): Same.
17766         * graphite-poly.c (extend_scattering): Same.
17767         (psct_scattering_dim_for_loop_depth): Same.
17768         (pbb_number_of_iterations): Same.
17769         (pbb_number_of_iterations_at_time): Same.
17770         * graphite-poly.h (new_1st_loop): Same.
17771         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
17772         (oppose_constraint): Same.
17773         (insert_constraint_into_matrix): Same.
17774         (ppl_set_inhomogeneous_gmp): Same.
17775         (ppl_set_coef_gmp): Same.
17776         (ppl_strip_loop): Same.
17777         (ppl_lexico_compare_linear_expressions): Same.
17778         (ppl_max_for_le_pointset): Same.
17779         (ppl_min_for_le_pointset): Same.
17780         (ppl_build_realtion): Same.
17781         * graphite-ppl.h (gmp_cst_to_tree): Same.
17782         (ppl_set_inhomogeneous): Same.
17783         (ppl_set_inhomogeneous_tree): Same.
17784         (ppl_set_coef): Same.
17785         (ppl_set_coef_tree): Same.
17786         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
17787         (build_scop_scattering): Same.
17788         (add_value_to_dim): Same.
17789         (scan_tree_for_params_right_scev): Same.
17790         (scan_tree_for_params_int): Same.
17791         (scan_tree_for_params): Same.
17792         (find_params_in_bb): Same.
17793         (find_scop_parameters): Same.
17794         (add_upper_bounds_from_estimated_nit): Same.
17795         (build_loop_iteration_domains): Same.
17796         (create_linear_expr_from_tree): Same.
17797         (add_condition_to_domain): Same.
17798         (pdr_add_memory_accesses): Same.
17799
17800 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
17801             Jason Merrill  <jason@redhat.com>
17802
17803         * c-common.c (c_common_reswords): Add nullptr.
17804         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
17805         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
17806         (gen_type_die_with_usage): Likewise.
17807         * dbxout.c (dbxout_type): Likewise.
17808         * sdbout.c (plain_type_1): Likewise.
17809
17810 2010-05-06  Jason Merrill  <jason@redhat.com>
17811
17812         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
17813         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
17814         ret appropriately.
17815         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
17816
17817         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
17818         stripping WITH_SIZE_EXPR.
17819         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
17820         change.
17821
17822 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17823
17824         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
17825         list of obsolete configurations.
17826         Disabled check for obsolete configurations.
17827         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
17828         Removed support for previous versions.
17829         * config/mips/iris.h: Removed.
17830         * config/mips/iris5.h: Removed.
17831         * config/mips/iris6.h: Merged old iris.h contents.
17832         (TARGET_IRIX): Removed.
17833         (DRIVER_SELF_SPECS): Removed mabi=32.
17834         (IDENT_ASM_OP): Removed undef.
17835         (STARTFILE_SPEC): Removed mabi=32.
17836         (ENDFILE_SPEC): Likewise.
17837         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
17838         (MACHINE_TYPE): Update for IRIX 6.5.
17839         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
17840         TARGET_IRIX by TARGET_IRIX6.
17841         (mips_file_start): Likewise.
17842         (mips_output_external): Remove IRIX 5/6 O32 support.
17843         (mips_output_function_prologue): Likewise.
17844         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
17845         TARGET_IRIX6.
17846         (TARGET_CPU_CPP_BUILTINS): Likewise.
17847         (TARGET_IRIX): Removed.
17848         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
17849         (MULTILIB_DIRNAMES): Removed 32.
17850         (MULTILIB_OSDIRNAMES): Removed ../lib.
17851         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
17852         (Specific, mips-sgi-irix5): Document removal.
17853         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
17854         Remove references to older IRIX 6 releases and the O32 ABI.
17855
17856 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
17857
17858         PR bootstrap/43994
17859         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
17860         instead of DF_REF_REAL_REG.
17861
17862 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
17863
17864         PR target/43888
17865         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
17866         handling to still return true for x64 targets.
17867
17868 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
17869
17870         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
17871
17872 2010-05-06  Jan Hubicka  <jh@suse.cz>
17873
17874         PR tree-optimization/43791
17875         * ipa-inline.c (update_caller_keys): Remove bogus
17876         disregard_inline_limits check.
17877
17878 2010-05-06  Michael Matz  <matz@suse.de>
17879
17880         PR tree-optimization/43984
17881         * tree-ssa-pre.c (inserted_phi_names): Remove.
17882         (inserted_exprs): Change to bitmap.
17883         (create_expression_by_pieces): Set bits, don't append to vector.
17884         (insert_into_preds_of_block): Don't handle inserted_phi_names.
17885         (eliminate): Don't look at inserted_phi_names, remove deleted
17886         insns from inserted_exprs.
17887         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
17888         (init_pre, fini_pre): Allocate and free bitmaps.
17889         (execute_pre): Insert insns on edges before elimination.
17890
17891 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
17892
17893         * tree.c (initializer_zerop): Handle STRING_CST.
17894
17895 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17896
17897         PR 40989
17898         * doc/invoke.texi (Wimplicit): Document as C only.
17899         * opts.c (common_handle_option): Add argument kind.
17900         (handle_option): Rename as read_cmdline_option. Factor out code to...
17901         (handle_option): ... here. New.
17902         (handle_options): Rename as read_cmdline_options.
17903         (decode_options): Update call.
17904         (set_option): Use option index instead of option pointer. Classify
17905         diagnostics correctly.
17906         (enable_warning_as_error): Call handle_option.
17907         * opts.h (set_option): Update declaration.
17908         (handle_option): Declare.
17909         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
17910         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
17911         * c-opts.c (set_Wimplicit): Delete.
17912         (c_family_lang_mask): New static constant.
17913         (c_common_handle_option): Add argument kind. Use handle_option
17914         instead of set_Wimplicit.
17915         (c_common_post_options): warn_implicit and warn_implicit_int
17916         are disabled by default.
17917         * c-common.c (warn_implicit): Do not define here.
17918         * c-common.h (warn_implicit): Do not declare here.
17919         (c_common_handle_option): Update declaration.
17920         * lto-opts.c (lto_reissue_options): Update call to set_option.
17921
17922 2010-05-06  Richard Guenther  <rguenther@suse.de>
17923
17924         PR tree-optimization/43571
17925         * domwalk.c (walk_dominator_tree): Walk the dominator
17926         sons in more optimal order.
17927
17928 2010-05-06  Richard Guenther  <rguenther@suse.de>
17929
17930         PR tree-optimization/43934
17931         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
17932         (stmt_cost): Likewise.
17933         (extract_true_false_args_from_phi): New helper.
17934         (determine_max_movement): For PHI nodes verify we can hoist them
17935         and compute their cost.
17936         (determine_invariantness_stmt): Handle PHI nodes.
17937         (move_computations_stmt): Likewise.  Hoist PHI nodes in
17938         if-converted form using COND_EXPRs.
17939         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
17940         (tree_ssa_lim): Likewise.
17941         * tree-flow.h (tree_ssa_lim): Adjust prototype.
17942         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
17943
17944 2010-05-06  Richard Guenther  <rguenther@suse.de>
17945
17946         PR tree-optimization/43987
17947         * tree-ssa-structalias.c (could_have_pointers): For possibly
17948         address-taken variables force pointers to be recorded.
17949         (create_variable_info_for_1): Likewise.
17950         (push_fields_onto_fieldstack): Pass in wheter all fields
17951         must have pointers.
17952         (find_func_aliases): Query types instead of vars whether
17953         they contain pointers where appropriate.
17954
17955 2010-05-06  Jan Hubicka  <jh@suse.cz>
17956
17957         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
17958         (record_reference, mark_address, mark_load, mark_store): Record
17959         references.
17960         (record_references_in_initializer): Update call of record_references.
17961         (rebuild_cgraph_edges): Remove all references before rebuiding.
17962         * cgraph.c (cgraph_create_node): Clear ref list.
17963         (cgraph_remove_node): Remove references.
17964         (dump_cgraph_node): Dump references.
17965         (cgraph_clone_node): Clone references.
17966         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
17967         (struct cgraph_node, varpool_node): Add ref_lst.
17968         * ipa-ref.c: New file.
17969         * ipa-ref.h: New file.
17970         * ipa-ref-inline.h: New file.
17971         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
17972         (referenced_from_other_partition_p): New function.
17973         (lto_output_varpool_node): Take set arugment; call
17974         referenced_from_other_partition.
17975         (lto_output_ref): New.
17976         (add_references): New.
17977         (output_refs): New.
17978         (output_cgraph): Compute boundary based on references; output refs.
17979         (output_varpool): Accept cgraph_node_set argument.
17980         (input_ref): New.
17981         (input_refs): New.
17982         (input_cgraph): Call input_refs.
17983         * lto-section-in.c (lto_section_name): Add refs.
17984         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
17985         (ipa-ref.o): New file.
17986         * varpool.c (varpool_node): Clear ipa ref list.
17987         (varpool_remove_node): Remove references.
17988         (dump_varpool_node): Dump references.
17989         (varpool_assemble_decl): Only compile finalized ones.
17990         (varpool_extra_name_alias): Initialize ref list.
17991         * lto-streamer.c (lto-get_section_name): Add .refs section.
17992         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
17993         (referenced_from_other_partition_p): Declared.
17994
17995 2010-05-06  Ira Rosen  <irar@il.ibm.com>
17996
17997         PR tree-optimization/43901
17998         * tree-vect-stmts.c (vectorizable_call): Assert that vector
17999         type is not NULL if it's transformation phase, and return
18000         FALSE if it's analysis.
18001         (vectorizable_conversion, vectorizable_operation,
18002         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
18003
18004 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
18005
18006         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
18007         Delete.
18008         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
18009         New define.
18010         * config/mips/mips-protos.h
18011         (mips_small_register_classes_for_mode_p): Delete prototype.
18012
18013 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
18014
18015         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
18016         * config/arm/arm.c (multiple_operation_profitable_p,
18017         compute_offset_order): New static functions.
18018         (load_multiple_sequence, store_multiple_sequence): Use them.
18019         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
18020         memory offsets, not register numbers.
18021         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
18022
18023 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
18024
18025         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
18026         (get_pending_sizes, put_pending_size, put_pending_sizes):
18027         Update the uses of pending_sizes.
18028         * c-decl.c (store_parm_decls): Likewise.
18029         * c-tree.h (struct c_arg_info): Likewise.
18030         * tree.h: Update the prototype for get_pending_sizes and
18031         put_pending_sizes.
18032
18033 2010-05-05  Jason Merrill  <jason@redhat.com>
18034
18035         PR debug/43370
18036         * c-common.c (handle_aligned_attribute): Respect
18037         ATTR_FLAG_TYPE_IN_PLACE.
18038
18039         PR testsuite/43758
18040         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
18041         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18042         (TARGET_INITIALIZER): Use it.
18043         * c-common.c (attribute_takes_identifier_p): Call it.
18044         * c-common.h: Update prototype.
18045         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
18046         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18047
18048 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
18049
18050         PR debug/43950
18051         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
18052         DW_ID_down_case for Fortran compilation units.
18053
18054 2010-05-05  Jan Hubicka  <jh@suse.cz>
18055
18056         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
18057         handle aliases.
18058
18059 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
18060
18061         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
18062         a variable-sized RESULT_DECL.
18063
18064 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
18065
18066         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
18067
18068 2010-05-05  Jason Merrill  <jason@redhat.com>
18069
18070         PR c++/43787
18071         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
18072         returns GS_OK.
18073         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
18074
18075 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
18076             Jakub Jelinek  <jakub@redhat.com>
18077
18078         PR debug/43478
18079         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
18080         (dead_debug_init, dead_debug_finish): New functions.
18081         (dead_debug_add, dead_debug_insert_before): Likewise.
18082         (df_note_bb_compute): Initialize a dead_debug object, add dead
18083         debug uses to it, insert debug bind insns before death insns,
18084         reset debug insns that refer to pending uses at the end.
18085         * rtl.h (make_debug_expr_from_rtl): New prototype.
18086         * varasm.c (make_debug_expr_from_rtl): New function.
18087
18088 2010-05-05  Jan Hubicka  <jh@suse.cz>
18089
18090         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
18091         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
18092         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
18093         lto_varpool_encoder_deref, lto_varpool_encoder_size,
18094         lto_varpool_encoder_encode_initializer_p,
18095         lto_set_varpool_encoder_encode_initializer): New functions.
18096         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
18097         call output_varpool.
18098         (input_varpool_node): Do not always set analyzed.
18099         (input_cgraph_1): Return vector of cgraph nodes.
18100         (input_varpool_1): Return vector of varpools.
18101         (input_cgraph): Free the vectors.
18102         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18103         output only initializers needed.
18104         (lto_output): Only call output_cgraph.
18105         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
18106         * lto-section-out.c (lto_new_out_decl_state): Initialize
18107         state->varpool_node_encoder.
18108         * lto-streamer.h (lto_varpool_encoder_d): New.
18109         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
18110         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
18111         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
18112         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
18113         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
18114         Declare.
18115         (output_varpool, input_varpool): Remove declarations.
18116
18117 2010-05-05  Jan Hubicka  <jh@suse.cz>
18118
18119         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
18120         with body can prevail.
18121
18122 2010-05-05  Jan Hubicka  <jh@suse.cz>
18123
18124         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
18125         size.
18126
18127 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18128
18129         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
18130
18131         * gengtype.h (erro_at_line): Constify pos argument.
18132
18133         * gengtype.c: Include hashtab.h.
18134         (enum gc_used): Document GC_MAYBE_POINTED_TO.
18135         (error_at_line): Constify pos argument.
18136         (do_typedef): Initialize p->opt field.
18137         (get_file_gtfilename): Fix comment typo.
18138         (struct walk_type_data): Constify line field.
18139         (get_output_file_for_structure): New function.
18140         (write_local_func_for_structure): Constify orig_s argument.
18141         Use get_output_file_for_structure.
18142         (write_func_for_structure): Use get_output_file_for_structure.
18143         (INDENT): New define.
18144         (dump_pair, dump_type, dump_type_list, dump_typekind)
18145         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
18146         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
18147         functions.
18148         (seen_types): New variable.
18149         (main): New variable do_dump.  Process "-d" command line option.
18150         Call dump_everything if dump requested.
18151
18152 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
18153
18154         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
18155         in a temporary instead of invoking the macro multiple times.
18156         (track_expr_p): Likewise.
18157
18158 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
18159
18160         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
18161         per new semantics.
18162         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
18163         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
18164         conditions for printing notes.
18165         * common.opt (-Wcoverage-mismatch): Allow negative, default to
18166         true, update documentation.
18167         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
18168
18169 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
18170
18171         PR c/43981
18172         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
18173         on dimen.
18174
18175 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
18176
18177         PR target/43799
18178         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
18179         (*sse_prologue_save_insn1): Likewise.
18180         (SSE prologue save splitter): Likewise.
18181
18182 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
18183
18184         * tree.c (free_lang_data_in_one_sizepos): New inline function.
18185         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
18186         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
18187         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
18188         all decls.  Call it on DECL_FIELD_OFFSET of fields.
18189         (find_decls_types_r): Follow DECL_VALUE_EXPR.
18190         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
18191
18192 2010-05-04  Martin Jambor  <mjambor@suse.cz>
18193
18194         * tree-sra.c (build_access_from_expr_1): The first parameter type
18195         changed to simple tree.
18196         (build_access_from_expr): Likewise, gsi parameter was eliminated.
18197         (scan_assign_result): Renamed to assignment_mod_result, enum elements
18198         renamed as well.
18199         (build_accesses_from_assign): Removed all parameters except for a
18200         simple gimple statement.  Now returns a simple bool.
18201         (scan_function): All non-analysis parts moved to separate functions
18202         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
18203         parameters and updated both callers.
18204         (sra_modify_expr): Removed parameter data.
18205         (sra_modify_function_body): New function.
18206         (perform_intra_sra): Call sra_modify_function_body to modify the
18207         function body.
18208         (replace_removed_params_ssa_names): Parameter data changed into
18209         adjustments vector.
18210         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
18211         changed the parameter dont_convert to convert with the opposite
18212         meaning.
18213         (sra_ipa_modify_assign): Parameter data changed into adjustments
18214         vector, return value changed to bool.
18215         (ipa_sra_modify_function_body): New function.
18216         (sra_ipa_reset_debug_stmts): Updated a comment.
18217         (modify_function): Use ipa_sra_modify_function_body to modify function
18218         body.
18219
18220 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
18221
18222         PR middle-end/43671
18223         * alias.c (true_dependence): Handle the same VALUE in x and mem.
18224         (canon_true_dependence): Likewise.
18225         (write_dependence_p): Likewise.
18226
18227 2010-05-04  Jan Hubicka  <jh@suse.cz>
18228
18229         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
18230         * cgraphbuild.c: Include ipa-utils.h
18231         (record_reference_ctx): New struct.
18232         (record_reference): Simplify to work on initializers; not statements.
18233         (mark_address, mark_load, mark_store): New.
18234         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
18235         walk PHI nodes too.
18236         (record_references_in_initializer): Update use of record_reference.
18237         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
18238         walk PHI nodes too.
18239
18240 2010-05-04  Jan Hubicka  <jh@suse.cz>
18241
18242         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
18243         node will be removed anyway.
18244         (lto_varpool_replace_node): Allow also unanalyzed nodes;
18245         relink aliases of node into prevailing node.
18246         * varpool.c (varpool_remove_node): Remove aliases properly;
18247         when removing node, remove all its aliases too; remove DECL_INITIAL
18248         of removed node; ggc_free the varpool node.
18249
18250 2010-05-04  Richard Guenther  <rguenther@suse.de>
18251
18252         PR tree-optimization/43879
18253         * tree-ssa-structalias.c (alias_get_name): Use
18254         DECL_ASSEMBLER_NAME if available.
18255         (create_function_info_for): Return the varinfo node.
18256         (ipa_pta_execute): Associate same-body aliases and extra names
18257         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
18258
18259 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
18260
18261         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
18262
18263 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
18264
18265         PR bootstrap/43964
18266         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
18267         only if HONOR_REG_ALLOC_ORDER is not defined.
18268
18269 2010-05-04  Richard Guenther  <rguenther@suse.de>
18270
18271         PR tree-optimization/43949
18272         * tree-vrp.c (extract_range_from_binary_expr): Only handle
18273         TRUNC_MOD_EXPR.
18274
18275 2010-04-26  Jason Merrill  <jason@redhat.com>
18276
18277         * c.opt (-fstrict-enums): New.
18278         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
18279
18280 2010-05-03  David Ung  <davidu@mips.com>
18281             James E. Wilson  <wilson@codesourcery.com>
18282
18283         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
18284         emit the trap instruction before the divide for TUNE_74K.
18285
18286 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
18287
18288         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
18289         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
18290         based on the above, for new target hook.
18291
18292         * hooks.c (hook_bool_mode_true): New generic hook.
18293         * hooks.h (hook_bool_mode_true): Add prototype.
18294
18295         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
18296         target hook.
18297         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
18298         target hook, set to hook_bool_mode_false.
18299         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
18300         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
18301         with targetm.small_register_classes_for_mode_p.
18302         (find_reusable_reload): Likewise.
18303         (combine_reloads): Likewise.
18304         * reload1.c (reload_as_needed): Likewise.
18305         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
18306         * ifcvt.c (noce_process_if_block, check_cond_move_block,
18307         dead_or_predicable): Likewise.
18308         * regmove.c (optimize_reg_copy_1): Likewise.
18309         * calls.c (prepare_call_address): Likewise.
18310         (precompute_register_parameters): Likewise.
18311
18312         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
18313         hook definition.
18314         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
18315         implementation of the hook that considers all register classes
18316         small except for SH64.
18317         (sh_override_options): Use the new hook.
18318         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
18319         Add prototype.
18320
18321         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
18322         hook definition.
18323         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
18324         implementation of the hook that considers all register classes
18325         small for THUMB1.
18326         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
18327         Add prototype.
18328
18329         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
18330         hook definition.
18331         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
18332         implementation of the hook that considers all register classes
18333         small for MIPS16.
18334         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
18335         Add prototype.
18336
18337         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
18338         hook definition.
18339         * config/m32c/m32c.h: Likewise.
18340         * config/pdp11/pdp11.h: Likewise.
18341         * config/avr/avr.h: Likewise.
18342         * config/xtensa/xtensa.h: Likewise.
18343         * config/m68hc11/m68hc11.h: Likewise.
18344         * config/mn10300/mn10300.h: Likewise.
18345         * config/mcore/mcore.h: Likewise.
18346         * config/h8300/h8300.h: Likewise.
18347         * config/bfin/bfin.h: Likewise.
18348
18349         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
18350         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
18351
18352 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
18353
18354         * double-int.h (tree_to_double_int): Remove macro.
18355         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
18356         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
18357         (tree_to_double_int): New function.
18358         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
18359         Move ...
18360         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
18361
18362 2010-05-03  Richard Guenther  <rguenther@suse.de>
18363
18364         PR tree-optimization/43971
18365         * tree-ssa-structalias.c (get_constraint_for_1): Fix
18366         constraints in the !flag_delete_null_pointer_checks case.
18367
18368 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
18369
18370         PR debug/43972
18371         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
18372         result mode matches original rtl mode.
18373
18374 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
18375
18376         PR target/43888
18377         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
18378
18379 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18380
18381         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
18382         when processing flag options.
18383
18384 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18385
18386         * gcov-iov.c (main): Change format string placeholder
18387         from %#08x to 0x%08x.
18388         * genchecksum.c (dosum): Change format string placeholder
18389         from %#02x to 0x%02x.
18390
18391 2010-05-02  Richard Guenther  <rguenther@suse.de>
18392
18393         PR tree-optimization/43879
18394         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
18395
18396 2010-05-02  Bruno Haible  <bruno@clisp.org>
18397
18398         * doc/extend.texi (Function Attributes): Fix a typo.
18399
18400 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18401
18402         Revert:
18403         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
18404         placeholder from 0x%x to %#x.
18405         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
18406         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
18407         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
18408         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
18409         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
18410         * config/i386/i386.c (ix86_target_string): Ditto.
18411         * config/i386/i386.c (output_pic_addr_const): Ditto.
18412         (print_operand): Ditto.
18413
18414 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18415
18416         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
18417         placeholder from 0x%x to %#x.
18418         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
18419         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
18420         (ASM_OUTPUT_DEBUG_DATA): Ditto.
18421         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
18422         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
18423         * optc-gen.awk: Ditto.
18424         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
18425         (HOST_WIDE_INT_PRINT_HEX): Ditto.
18426         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
18427         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
18428
18429 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
18430
18431         * target.h (struct calls): Add function_value_regno_p field.
18432         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
18433         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
18434         * targhooks.c (default_function_value_regno_p): New function.
18435         * targhooks.h (default_function_value_regno_p): Declare function.
18436         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
18437         * builtins.c. (apply_result_size): (Ditto.).
18438         * combine.c. (likely_spilled_retval_p): (Ditto.).
18439         * mode-switching.c. Include 'target.h'.
18440         (create_pre_exit): Use function_value_regno_p hook.
18441         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
18442         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
18443         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
18444
18445         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
18446         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
18447         (ix86_function_value_regno_p): Declare as static, change argument
18448         type to const unsigned int.
18449         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
18450
18451 2010-05-01  Richard Guenther  <rguenther@suse.de>
18452
18453         PR tree-optimization/43949
18454         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
18455         types.
18456         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
18457
18458 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
18459
18460         * rtl.h (CONST_DOUBLE_P): Define.
18461         (rtx_to_double_int): Declare.
18462         * emit-rtl.c (rtx_to_double_int): New function.
18463         * dwarf2out.c (insert_double): New function.
18464         (loc_descriptor, add_const_value_attribute): Clean up, use
18465         rtx_to_double_int and insert_double functions.
18466
18467 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
18468
18469         * doc/extend.texi (Inline): Add missing return keyword to examples.
18470         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
18471         "command-line".
18472
18473 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
18474
18475         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
18476         the variable part of the offset as well.  Use highest_pow2_factor for
18477         all alignment checks.
18478
18479 2010-04-30  Richard Guenther  <rguenther@suse.de>
18480
18481         PR tree-optimization/43879
18482         * tree-ssa-structalias.c (type_could_have_pointers): Functions
18483         can have pointers.
18484
18485 2010-04-30  Jan Hubicka  <jh@suse.cz>
18486
18487         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
18488         varpool.
18489         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
18490
18491 2010-04-30  Jan Hubicka  <jh@suse.cz>
18492
18493         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
18494         New.
18495         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
18496         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
18497         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
18498         cgraph_node_set_needs_ltrans_p): Remove.
18499
18500 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
18501
18502         * sdbout.c: Include vec.h, do not include varray.h.
18503         (deferred_global_decls, sdbout_global_decl,
18504         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
18505         * toplev.c: Do not include varray.h.
18506         (dump_memory_report): Do not dump VARRAY statistics.
18507         * gengtype.c (open_base_file): Ignore varray.h.
18508         * Makefile.in: Update for abovementioned changes.
18509         Remove all traces of varray.c and varray.h.
18510         * varray.c: Remove file.
18511         * varray.h: Remove file.
18512
18513 2010-04-30  Jan Hubicka  <jh@suse.cz>
18514
18515         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
18516         references.
18517
18518 2010-04-30  Jan Hubicka  <jh@suse.cz>
18519
18520         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
18521         needed.
18522
18523 2010-04-30  Richard Guenther  <rguenther@suse.de>
18524
18525         * tree-ssa-structalias.c (get_constraint_for_1): Generate
18526         constraints for CONSTRUCTOR.
18527
18528 2010-04-30  Richard Guenther  <rguenther@suse.de>
18529
18530         PR lto/43946
18531         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
18532         first after all lowering passes.
18533
18534 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
18535
18536         * toplev.c: Include varray.h for statistics dumping.
18537         * tree.h: Do not declare varray_head_tag.
18538         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
18539         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
18540         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
18541         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
18542         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
18543         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
18544         c-common.c, c-common.h, reg-stack.c, basic-block.h,
18545         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
18546         include varray.h.
18547         * Makefile.in: Update for abovementioned changes.
18548
18549 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
18550
18551         PR debug/43942
18552         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
18553
18554 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
18555
18556         * config/picochip/picochip.c (picochip_legitimize_address): Define.
18557         Use this function to do machine-specific conversion.
18558         (picochip_legitimize_reload_address): Likewise.
18559         (picochip_legitimate_address_p): Check valid base register only if
18560         strict.
18561         (picochip_check_conditional_copy): Check for modw only if opnd is
18562         register.
18563         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
18564         to call the function in c.
18565         * config/picochip/picochip-protos.h
18566         (picochip_legitimize_reload_address): Define.
18567         * config/picochip/picochip.md (supported_compare1): Define.
18568
18569 2010-04-30  Jan Hubicka  <jh@suse.cz>
18570
18571         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
18572         (cgraph_global_info): Remove inlined.
18573         (LTO_cgraph_tag_names): Remove.
18574         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
18575         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
18576         simplify cgraph tags and document.
18577         (lto_output_node): Use only LTO_cgraph_unavail_node and
18578         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
18579         for_functions_valid, global info, process and output flags.
18580         (input_overwrite_node): Initialize estimated stack size and
18581         estimated growth.  Do not read flags we no longer store.
18582         (input_node): Likewise do not read info no longer stored.
18583         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
18584         flag.
18585
18586 2010-04-30  Richard Guenther  <rguenther@suse.de>
18587
18588         PR tree-optimization/43879
18589         * tree-ssa-structalias.c (get_constraint_for_1): Properly
18590         handle non-zero initializers.
18591
18592 2010-04-30  Richard Guenther  <rguenther@suse.de>
18593
18594         * builtins.c (fold_builtin_1): Delete free (0).
18595
18596 2010-04-29  Jan Hubicka  <jh@suse.cz>
18597
18598         * gengtype.c (open_base_files): Add lto-streamer.h
18599         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
18600         (pass_ipa_cp): GGC collect.
18601         * toplev. (compile_file): Do not output symbols.
18602         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
18603         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
18604         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
18605         * lto-section-in.c: Include ggc.h
18606         (lto_new_in_decl_state): Alloc in GGC.
18607         (lto_delete_in_decl_state): Likewise.
18608         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
18609         Collect.
18610
18611 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
18612
18613         PR target/42895
18614         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
18615         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
18616         (HONOR_REG_ALLOC_ORDER): Describe new macro.
18617         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
18618         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
18619         account only if HONOR_REG_ALLOC_ORDER is not defined.
18620         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
18621         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
18622
18623 2010-04-29  Jon Grant  <04@jguk.org>
18624
18625         * collect2.c (vflag): Change type from int to bool.
18626         (debug): Likewise.
18627         (helpflag): New global bool.
18628         (main): Set vflag and debug with boolean, not integer truth values.
18629         Accept new "--help" option and output usage text if found.
18630         * collect2.h (vflag): Update prototype.
18631         (debug): Likewise.
18632
18633 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
18634
18635         PR bootstrap/43936
18636         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
18637
18638 2010-04-29  Richard Guenther  <rguenther@suse.de>
18639
18640         PR bootstrap/43935
18641         * plugin.h (invoke_plugin_callbacks): Annotate arguments
18642         with ATTRIBUTE_UNUSED.
18643
18644 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
18645
18646         PR target/43921
18647         * config/i386/i386.c (get_some_local_dynamic_name): Replace
18648         INSN_P with NONDEBUG_INSN_P.
18649         (distance_non_agu_define): Likewise.
18650         (distance_agu_use): Likewise.
18651
18652 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
18653
18654         From Dominique d'Humieres  <dominiq@lps.ens.fr>
18655         PR bootstrap/43858
18656         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
18657         test_set.
18658
18659 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
18660
18661         * plugin.h (invoke_plugin_callbacks): New inline function.
18662         * plugin.c (flag_plugin_added): New global flag.
18663         (add_new_plugin): Initialize above flag.
18664         (invoke_plugin_callbacks): Rename to ...
18665         (invoke_plugin_callbacks_full): ... this.
18666
18667 2010-04-28  Jan Hubicka  <jh@suse.cz>
18668
18669         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
18670         (lto_varpool_replace_node): New.
18671         (lto_symtab_resolve_symbols): Resolve varpool nodes.
18672         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
18673         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
18674         * cgraph.h (varpool_node_ptr): New type.
18675         (varpool_node_ptr): New vector.
18676         (varpool_node_set_def): New structure.
18677         (varpool_node_set): New type.
18678         (varpool_node_set): New vector.
18679         (varpool_node_set_element_def): New structure.
18680         (varpool_node_set_element, const_varpool_node_set_element): New types.
18681         (varpool_node_set_iterator): New type.
18682         (varpool_node): Add prev pointers, add used_from_other_partition,
18683         in_other_partition.
18684         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
18685         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
18686         varpool_get_node, varpool_remove_node): Declare.
18687         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
18688         varpool_node_set_size): New inlines.
18689         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
18690         * tree-pass.h (varpool_node_set_def): Forward declare.
18691         (ipa_opt_pass_d): Summary writting takes vnode sets too.
18692         (ipa_write_optimization_summaries): Update prototype.
18693         * ipa-cp.c (ipcp_write_summary): Update.
18694         * ipa-reference.c (ipa_reference_write_summary): Update.
18695         * lto-cgraph.c (lto_output_varpool_node): New static function.
18696         (output_varpool): New function.
18697         (input_varpool_node): New static function.
18698         (input_varpool_1): New function.
18699         (input_cgraph): Input varpool.
18700         * ipa-pure-const.c (pure_const_write_summary): Update.
18701         * lto-streamer-out.c (lto_output): Update, output varpool too.
18702         (write_global_stream): Kill WPA hack.
18703         (produce_asm_for_decls): Update.
18704         (output_alias_pair_p): Handle variables.
18705         (output_unreferenced_globals): Output only needed partition of varpool.
18706         * ipa-inline.c (inline_write_summary): Update.
18707         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
18708         cgraph.
18709         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
18710         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
18711         varpool_node_set_new, varpool_node_set_add,
18712         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
18713         debug_varpool_node_set): New functions.
18714         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
18715         (execute_one_pass): Process new decls too.
18716         (ipa_write_summaries_2): Pass around vsets.
18717         (ipa_write_summaries_1): Likewise.
18718         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
18719         to add.
18720         (ipa_write_optimization_summaries_1): Pass around vsets.
18721         (ipa_write_optimization_summaries): Likewise.
18722         * varpool.c (varpool_get_node): New.
18723         (varpool_node): Update doubly linked lists.
18724         (varpool_remove_node): New.
18725         (dump_varpool_node): More dumping.
18726         (varpool_enqueue_needed_node): Update doubly linked lists.
18727         (decide_is_variable_needed): Kill ltrans hack.
18728         (varpool_finalize_decl): Kill lto hack.
18729         (varpool_assemble_decl): Skip decls in other partitions.
18730         (varpool_assemble_pending_decls): Update doubly linkes lists.
18731         (varpool_empty_needed_queue): Likewise.
18732         (varpool_extra_name_alias): Likewise.
18733         * lto-streamer.c (lto_get_section_name): Add vars section.
18734         * lto-streamer.h (lto_section_type): Update.
18735         (output_varpool, input_varpool): Declare.
18736
18737 2010-04-28  Mike Stump  <mikestump@comcast.net>
18738
18739         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
18740
18741 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18742
18743         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
18744         record or union type with RECORD_OR_UNION_TYPE_P predicate.
18745         (lto_input_ts_type_tree_pointers): Likewise.
18746         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
18747         (lto_output_ts_type_tree_pointers): Likewise.
18748
18749 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18750
18751         Uniquization of constants at the Tree level
18752         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
18753         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
18754         bit to the end.
18755         (tree_output_constant_def): Declare.
18756         * gimplify.c (gimplify_init_constructor): When using block copy, first
18757         uniquize the constant constructor on the RHS.
18758         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
18759         DECL_IN_CONSTANT_POOL flag.
18760         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
18761         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
18762         constant pool.
18763         (assemble_variable): Deal with symbols belonging to the tree constant
18764         pool.
18765         (get_constant_section): Add ALIGN parameter and simplify.
18766         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
18767         (assemble_constant_contents): Use the expression of the VAR_DECL.
18768         (output_constant_def_contents): Use the alignment of the VAR_DECL.
18769         (tree_output_constant_def): New global function.
18770         (mark_constant): Use the expression of the VAR_DECL.
18771         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
18772         its expression.
18773         (output_object_block): Likewise and assemble the expression.
18774
18775 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18776
18777         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
18778         hash_tree, eq_tree): New tree hash table.
18779         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
18780         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
18781         lto_orig_address_remove): Reimplement.
18782
18783 2010-04-28  Xinliang David Li  <davidxl@google.com>
18784
18785         PR c/42643
18786         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
18787         (compute_uninit_opnds_pos): New function.
18788         (is_non_loop_exit_postdominating): New function.
18789         (compute_control_dep_chain): New function.
18790         (find_pdom): New function.
18791         (convert_control_dep_chain_into_preds): New function.
18792         (find_predicates): New function.
18793         (find_control_equiv_block): New function.
18794         (collect_phi_def_edges): New function.
18795         (find_def_preds): New function.
18796         (find_dom): New function.
18797         (dump_predicates): New function.
18798         (get_cmp_code): New function.
18799         (is_value_included_in): New function.
18800         (find_matching_predicate_in_rest_chains): New function.
18801         (use_pred_not_overlap_with_undef_path_pred): New function.
18802         (is_use_properly_guarded): New function.
18803         (normalize_cond_1): New function.
18804         (is_and_or_or): New function.
18805         (normalize_cond): New function.
18806         (is_gcond_subset_of): New function.
18807         (is_subset_of_any): New function.
18808         (is_or_set_subset_of): New function.
18809         (is_and_set_subset_of): New function.
18810         (is_norm_cond_subset_of): New function.
18811         (is_pred_expr_subset_of): New function.
18812         (is_pred_chain_subset_of): New function.
18813         (is_included_in): New function.
18814         (is_superset_of): New function.
18815         (find_uninit_use): New function.
18816         (warn_uninitialized_phi): New function.
18817         (compute_possibly_undefined_names): New function.
18818         (ssa_undefined_value_p): New function.
18819         (execute_late_warn_uninitialized): New function.
18820         * tree-ssa.c (ssa_undefined_value_p): Removed.
18821         (warn_uninit): Changed to extern.
18822         (warn_uninitialized_phi): Removed.
18823         (warn_uninitialized_vars): Changed to extern.
18824         (execute_late_warn_uninitialized): Removed
18825         * tree-flow.h: Add new prototypes.
18826         * timevar.def: Add new time variable.
18827         * Makefile.in: Add new build file.
18828
18829 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
18830
18831         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
18832         type if available.
18833
18834 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18835
18836         PR target/22224
18837         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
18838
18839 2010-04-28  Martin Jambor  <mjambor@suse.cz>
18840
18841         * cgraph.h (struct cgraph_node): New field indirect_calls.
18842         (struct cgraph_indirect_call_info): New type.
18843         (struct cgraph_edge): Removed field indirect_call. New fields
18844         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
18845         (cgraph_create_indirect_edge): Declare.
18846         (cgraph_make_edge_direct): Likewise.
18847         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
18848         * ipa-prop.h (struct ipa_param_call_note): Removed.
18849         (struct ipa_node_params): Removed field param_calls.
18850         (ipa_create_all_structures_for_iinln): Declare.
18851         * cgraph.c: Described indirect edges and uids in initial comment.
18852         (cgraph_add_edge_to_call_site_hash): New function.
18853         (cgraph_edge): Search also among the indirect edges, use
18854         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
18855         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
18856         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
18857         site hash.
18858         (initialize_inline_failed): Assign a reason to indirect edges.
18859         (cgraph_create_edge_1): New function.
18860         (cgraph_create_edge): Moved some functionality to
18861         cgraph_create_edge_1.
18862         (cgraph_create_indirect_edge): New function.
18863         (cgraph_edge_remove_callee): Add an assert checking for
18864         non-indirectness.
18865         (cgraph_edge_remove_caller): Special-case indirect edges.
18866         (cgraph_remove_edge): Likewise.
18867         (cgraph_set_edge_callee): New function.
18868         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
18869         (cgraph_make_edge_direct): New function.
18870         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
18871         the declaration of the call statement matches.
18872         (cgraph_node_remove_callees): Special-case indirect edges.
18873         (cgraph_clone_edge): Likewise.
18874         (cgraph_clone_node): Clone also the indirect edges.
18875         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
18876         indirect_call, dump count of indirect_calls edges.
18877         * ipa-prop.c (iinlining_processed_edges): New variable.
18878         (ipa_note_param_call): Create indirect edges instead of
18879         creating notes.  New parameter node.
18880         (ipa_analyze_call_uses): New parameter node, pass it on to
18881         ipa_note_param_call.
18882         (ipa_analyze_stmt_uses): Likewise.
18883         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
18884         (print_edge_addition_message): Work on edges rather than on notes.
18885         (update_call_notes_after_inlining): Likewise, renamed to
18886         update_indirect_edges_after_inlining.
18887         (ipa_create_all_structures_for_iinln): New function.
18888         (ipa_free_node_params_substructures): Do not free notes.
18889         (ipa_edge_duplication_hook): Propagate bits within
18890         iinlining_processed_edges bitmap.
18891         (ipa_node_duplication_hook): Do not duplicate notes.
18892         (free_all_ipa_structures_after_ipa_cp): Renamed to
18893         ipa_free_all_structures_after_ipa_cp.
18894         (free_all_ipa_structures_after_iinln): Renamed to
18895         ipa_free_all_structures_after_iinln.
18896         (ipa_write_param_call_note): Removed.
18897         (ipa_read_param_call_note): Removed.
18898         (ipa_write_indirect_edge_info): New function.
18899         (ipa_read_indirect_edge_info): Likewise.
18900         (ipa_write_node_info): Do not stream notes, do stream information
18901         in indirect edges.
18902         (ipa_read_node_info): Likewise.
18903         (lto_ipa_fixup_call_notes): Removed.
18904         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
18905         * ipa-inline.c (pass_ipa_inline): Likewise.
18906         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
18907         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
18908         * tree-inline.c (copy_bb): Removed an unnecessary double check for
18909         is_gimple_call.
18910         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
18911         edges.
18912         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
18913         (output_cgraph): Stream also indirect edges.
18914         (lto_output_edge): Added capability to stream indirect edges.
18915         (input_edge): Likewise.
18916         (input_cgraph_1): Likewise.
18917         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
18918         of indirect edges.
18919
18920 2010-04-28  Richard Guenther  <rguenther@suse.de>
18921
18922         PR tree-optimization/43879
18923         PR tree-optimization/43909
18924         * tree-ssa-structalias.c (struct variable_info): Add
18925         only_restrict_pointers flag.
18926         (new_var_info): Initialize it.  Increment stats.total_vars here.
18927         (create_function_info_for): Do not increment stats.total_vars here.
18928         (get_function_part_constraint): Fix build with C++.
18929         (insert_into_field_list): Remove.
18930         (push_fields_onto_fieldstack): Properly merge fields.
18931         (create_variable_info_for): Split and simplify.
18932         (create_variable_info_for_1): New piece.
18933         (intra_create_variable_infos): Properly make restrict constraints
18934         from parameters.
18935
18936 2010-04-28  Richard Guenther  <rguenther@suse.de>
18937
18938         PR c++/43880
18939         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
18940
18941 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18942             Jan Hubicka  <hubicka@ucw.cz>
18943
18944         * doc/invoke.texi (-Wsuggest-attribute=const,
18945         -Wsuggest-attribute=pure): Document.
18946         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
18947         (function_always_visible_to_compiler_p,
18948         suggest_attribute, warn_function_pure, warn_function_const):
18949         New functions.
18950         (check_call): Improve debug info.
18951         (analyze_function): Do not check availability.
18952         (add_new_function): Check availability.
18953         (propagate): Output warnings.
18954         (skip_function_for_local_pure_const): New function.
18955         (local_pure_const): Use it; output warnings.
18956         * common.opt (Wsuggest-attribute=const,
18957         Wsuggest-attribute=pure): New.
18958
18959 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
18960
18961         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
18962         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
18963         or DW_CFA_def_cfa_offset{,_sf}.
18964
18965 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
18966
18967         * tree.h: Fix truncated long macros.
18968
18969 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
18970
18971         * collect2.c (TARGET_64BIT): Redefine to target's default.
18972         * tlink.c: Likewise.
18973         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
18974         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
18975         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
18976         for underscoring __USER_LABEL_PREFIX__.
18977         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
18978         (SUB_LINK_ENTRY32): New.
18979         (SUB_LINK_ENTRY64): New.
18980         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
18981         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
18982         (SUB_LINK_ENTRY64): New.
18983         (SUB_LINK_ENTRY): New.
18984         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
18985         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
18986         x64 target is choosen.
18987         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
18988         * configure: Regenerated.
18989         * configure.ac (leading-mingw64-underscores): Option added.
18990
18991 2010-04-27  Jan Hubicka  <jh@suse.cz>
18992
18993         * doc/invoke.texi (-fipa-profile): Document.
18994         * opts.c (decode_options): Enable ipa-profile at -O1.
18995         * timevar.def (TV_IPA_PROFILE): Define.
18996         * common.opt (fipa-profile): Add.
18997         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
18998         flag for clones.
18999         (cgraph_propagate_frequency): Handle only local ones.
19000         * tree-pass.h (pass_ipa_profile): Declare.
19001         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
19002         (pass_ipa_profile): Use TV_IPA_PROFILE.
19003         * ipa.c (ipa_profile): New function.
19004         (gate_ipa_profile): Likewise.
19005         (pass_ipa_profile): New global variable.
19006         * passes.c (pass_ipa_profile): New.
19007
19008 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
19009
19010         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
19011
19012 2010-04-27  Martin Jambor  <mjambor@suse.cz>
19013
19014         PR middle-end/43812
19015         * ipa.c (dissolve_same_comdat_group_list): New function.
19016         (function_and_variable_visibility): Call
19017         dissolve_same_comdat_group_list when comdat group contains external or
19018         newly local nodes.
19019         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
19020         lists are circular and that they contain only DECL_ONE_ONLY nodes.
19021
19022 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
19023
19024         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
19025         (const_hash_1) <VECTOR_CST>: New case.
19026         (compare_constant) <VECTOR_CST>: Likewise.
19027         <ADDR_EXPR>: Deal with LABEL_REFs.
19028         (copy_constant) <VECTOR_CST>: New case.
19029
19030 2010-04-27  Jan Hubicka  <jh@suse.cz>
19031
19032         * cgraph.c (cgraph_propagate_frequency): New function.
19033         * cgraph.h (cgraph_propagate_frequency): Declare.
19034         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
19035         cgraph_propagate_frequency.
19036
19037 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
19038
19039         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
19040
19041 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
19042
19043         PR target/40657
19044         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
19045         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
19046         here to determine which regs to push and how much stack to reserve.
19047
19048 2010-04-27  Jie Zhang  <jie@codesourcery.com>
19049
19050         * doc/gimple.texi (gimple_statement_with_ops): Remove
19051         addresses_taken field.
19052         (gimple_statement_with_memory_ops): Likewise.
19053
19054 2010-04-27  Jan Hubicka  <jh@suse.cz>
19055
19056         * tree-inline.c (eni_inlining_weights): Remove.
19057         (estimate_num_insns): Special case more builtins.
19058
19059 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
19060
19061         PR c/32207
19062         * c-typeck.c (build_binary_op): Move forward check for comparison
19063         pointer with null pointer constant and adjust the diagnostic message.
19064
19065 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
19066
19067         PR lto/42776
19068         * configure.ac (gcc_cv_as_section_has_align): Set if installed
19069         binutils supports extended .section directive needed by LTO, or
19070         warn if older binutils found.
19071         (LTO_BINARY_READER): New AC_SUBST'd variable.
19072         (LTO_USE_LIBELF): Likewise.
19073         * config.gcc (lto_binary_reader): New target-specific configure
19074         variable.
19075         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
19076         (LTO_USE_LIBELF): Likewise.
19077         * configure: Regenerate.
19078
19079         * collect2.c (is_elf): Rename from this ...
19080         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
19081          object files in addition to ELF-formatted ones.
19082         (scan_prog_file): Caller updated.  Also allow for LTO info marker
19083         symbol to be prefixed or not by an extra underscore.
19084
19085         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
19086         * config/i386/winnt.c: Also #include lto-streamer.h
19087         (i386_pe_asm_named_section): Specify 1-byte section alignment for
19088         LTO named sections.
19089         (i386_pe_asm_output_aligned_decl_common): Add comment.
19090         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
19091
19092 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
19093
19094         PR target/43889
19095         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
19096         Add missing earlyclobber for second alternative.
19097
19098 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
19099
19100         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
19101         bits for artificial defs at the top of the block.
19102         * fwprop.c (single_def_use_enter_block): Don't call it.
19103
19104 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
19105
19106         PR 43715
19107         * configure.ac: Use "$gcc_cv_nm -g" on darwin
19108         instead of "$gcc_cv_objdump -T".
19109         Use "-undefined dynamic_lookup" on darwin.
19110         * configure: Regenerate.
19111
19112 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
19113
19114         PR c/43893
19115         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
19116
19117 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
19118
19119         * c-parser.c (struct c_token): Move location field up.
19120         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
19121         (struct c_declspecs): Convert typespec_word, storage_class, and
19122         default_int_p into bitfields.
19123         (struct c_declarator): Move loc field up.
19124
19125 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
19126
19127         * cfgloop.h (struct loop): Move can_be_parallel field up.
19128         * ipa-prop.h (struct ip_node_params): Move bitfields up.
19129         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
19130         down.
19131         (struct iv_cand): Convert pos field into a bitfield.
19132         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
19133         field up.
19134         (struct _stmt_vec_info): Shuffle fields for better packing.
19135
19136 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
19137
19138         * varasm.c (IN_NAMED_SECTION): Remove guard.
19139         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
19140         (IN_NAMED_SECTION_P): ...this.
19141         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
19142         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
19143
19144 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
19145
19146         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
19147         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
19148         of shadowing it.  Fix comments.
19149
19150 2010-04-26  Jan Hubicka  <jh@suse.cz>
19151
19152         * cgraph.c (cgraph_create_node): Set node frequency to normal.
19153         (cgraph_clone_node): Copy function frequency.
19154         * cgraph.h (node_frequency): New enum
19155         (struct cgraph_node): Add.
19156         * final.c (rest_of_clean_state): Update.
19157         * lto-cgraph.c (lto_output_node): Output node frequency.
19158         (input_overwrite_node): Input node frequency.
19159         * tre-ssa-loop-ivopts (computation_cost): Update.
19160         * lto-streamer-out.c (output_function): Do not output function
19161         frequency.
19162         * predict.c (maybe_hot_frequency_p): Update and handle functions
19163         executed once.
19164         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
19165         attribute lookup.
19166         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
19167         (compute_function_frequency): Set noreturn functions to be executed
19168         once.
19169         (choose_function_section): Update.
19170         * lto-streamer-in.c (input_function): Do not input function frequency.
19171         * function.c (allocate_struct_function): Do not initialize function
19172         frequency.
19173         * function.h (function_frequency): Remove.
19174         (struct function): Remove function frequency.
19175         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
19176         (try_update): Update.
19177         * tree-inline.c (initialize_cfun): Do not update function frequency.
19178         * passes.c (pass_init_dump_file): Update.
19179         * i386.c (ix86_compute_frame_layout): Update.
19180         (ix86_pad_returns): Update.
19181
19182 2010-04-26  Jie Zhang  <jie@codesourcery.com>
19183
19184         PR tree-optimization/43833
19185         * tree-vrp.c (range_int_cst_p): New.
19186         (range_int_cst_singleton_p): New.
19187         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
19188         when both operands are constants.  Use range_int_cst_p in
19189         BIT_IOR_EXPR case.
19190
19191 2010-04-26  Jan Hubicka  <jh@suse.cz>
19192
19193         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
19194
19195 2010-04-26  Richard Guenther  <rguenther@suse.de>
19196
19197         PR lto/43080
19198         * gimple.c (gimple_decl_printable_name): Deal gracefully
19199         with a NULL DECL_NAME.
19200
19201 2010-04-26  Richard Guenther  <rguenther@suse.de>
19202
19203         PR lto/42425
19204         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
19205         if emitting debug information and it is either a function
19206         or a namespace decl.
19207
19208 2010-04-26  Ira Rosen  <irar@il.ibm.com>
19209
19210         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
19211         determine if the statement is vectorizable, and a macro to access it.
19212         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19213         Skip statements that can't be vectorized. If the analysis fails,
19214         mark the statement as unvectorizable if vectorizing basic block.
19215         (vect_compute_data_refs_alignment): Likewise.
19216         (vect_verify_datarefs_alignment): Skip statements marked as
19217         unvectorizable. Add print.
19218         (vect_analyze_group_access): Skip statements that can't be
19219         vectorized. If the analysis fails, mark the statement as
19220         unvectorizable if vectorizing basic block.
19221         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
19222         * tree-vect-stmts.c (vectorizable_store): Fix the number of
19223         generated stmts for SLP.
19224         (new_stmt_vec_info): Initialize the new field.
19225         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
19226         statements marked as unvectorizable.
19227
19228 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
19229
19230         * c-common.c (flag_isoc1x): New.
19231         (flag_isoc99): Update comment.
19232         * c-common.h (flag_isoc1x): New.
19233         (flag_isoc99): Update comment.
19234         * c-cppbuiltin.c (builtin_define_float_constants): Also define
19235         __<type>_DECIMAL_DIG__.
19236         * c-opts.c (set_std_c1x): New.
19237         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
19238         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
19239         * c.opt (-std=c1x, -std=gnu1x): New options.
19240         * doc/cpp.texi: Mention -std=c1x.
19241         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
19242         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
19243         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
19244         * doc/standards.texi: Mention C1X.
19245         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
19246         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
19247         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
19248         Define for C1X.
19249
19250 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
19251
19252         * config/i386/gmon-sol2.c (_mcleanup): Change format string
19253         placeholder from 0x%x to %#x.
19254         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
19255         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
19256         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
19257         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
19258         * config/i386/i386.c (ix86_target_string): Ditto.
19259         (output_pic_addr_const): Ditto.
19260         (print_operand): Ditto.
19261
19262 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
19263
19264         * combine.c (find_split_point): Add third argument.  Use it
19265         to find nested multiply-accumulate instructions.  Adjust calls.
19266         (try_combine): Adjust call to find_split_point.
19267
19268 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
19269
19270         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
19271
19272 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
19273
19274         PR tree-optimization/41442
19275         * fold-const.c (merge_truthop_with_opposite_arm): New function.
19276         (fold_binary_loc): Call it.
19277
19278 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19279
19280         * toplev.c (general_init): Set default for fdiagnostics-show-option.
19281         * opts.c (common_handle_option): Allow disabling it.
19282         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
19283
19284 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
19285
19286         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
19287         between modes if both types are integral.
19288
19289 2010-04-23  Richard Guenther  <rguenther@suse.de>
19290
19291         PR tree-optimization/43572
19292         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
19293
19294 2010-04-23  Richard Guenther  <rguenther@suse.de>
19295
19296         PR lto/43455
19297         * tree-inline.c (tree_can_inline_p): Also check compatibility
19298         of return types.
19299
19300 2010-04-23  Martin Jambor  <mjambor@suse.cz>
19301
19302         PR tree-optimization/43846
19303         * tree-sra.c (struct access): New flag grp_assignment_read.
19304         (build_accesses_from_assign): Set grp_assignment_read.
19305         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
19306         (enum mark_read_status): New type.
19307         (analyze_access_subtree): Propagate grp_assignment_read, create
19308         accesses also if both direct_read and root->grp_assignment_read.
19309
19310 2010-04-23  Martin Jambor  <mjambor@suse.cz>
19311
19312         PR middle-end/43835
19313         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
19314         function does not have type attributes.
19315
19316 2010-04-23  Richard Guenther  <rguenther@suse.de>
19317
19318         PR lto/42653
19319         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
19320         of FUNCTION_DECLs.
19321
19322 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19323
19324         * sese.h (create_if_region_on_edge): Remove.
19325
19326         * sese.c (create_if_region_on_edge): Make static.
19327
19328         * tree-inline.c: Do not include ggc.h.
19329
19330         * expr.c: Do not include ggc.h.
19331
19332         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
19333         dependencies.
19334
19335 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
19336
19337         PR target/43744
19338         * config/sh/sh.c (find_barrier): Don't emit a constant pool
19339         in the middle of insns for casesi_worker_2.
19340
19341 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
19342
19343         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
19344
19345 2010-04-22  Ira Rosen  <irar@il.ibm.com>
19346
19347         PR tree-optimization/43842
19348         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
19349         loop unrolling in update of exit phis. Fix comment.
19350         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
19351         least two reduction statements in the loop before starting SLP
19352         analysis.
19353
19354 2010-04-22  Nick Clifton  <nickc@redhat.com>
19355
19356         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
19357
19358 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
19359
19360         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
19361         to simplify a + ~a.
19362
19363 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19364
19365         * tree-parloops.c (loop_parallel_p): New argument
19366         parloop_obstack.  Pass it down.
19367         (parallelize_loops): New variable parloop_obstack.  Initialize it,
19368         pass it down, free it.
19369
19370         * tree-loop-linear.c (linear_transform_loops): Pass down
19371         lambda_obstack.
19372
19373         * tree-data-ref.h (lambda_compute_access_matrices): New argument
19374         of type struct obstack *.
19375
19376         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
19377         scratch_obstack.  Initialize it, pass down, free it.
19378
19379         * lambda.h (lambda_loop_new): Remove.
19380         (lambda_matrix_new, lambda_matrix_inverse)
19381         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
19382         argument of type struct obstack *.
19383
19384         * lambda-trans.c (lambda_trans_matrix_new): New argument
19385         lambda_obstack.  Pass it down, use obstack allocation for ret.
19386         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
19387         it down.
19388
19389         * lambda-mat.c (lambda_matrix_get_column)
19390         (lambda_matrix_project_to_null): Remove.
19391         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
19392         allocation for mat.
19393         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
19394         lambda_obstack.
19395
19396         * lambda-code.c (lambda_loop_new): New function.
19397         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
19398         (lambda_compute_auxillary_space, lambda_compute_target_space)
19399         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
19400         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
19401         (build_access_matrix): New argument lambda_obstack.  Use obstack
19402         allocation for am.
19403         (lambda_compute_step_signs, lambda_compute_access_matrices): New
19404         argument lambda_obstack.  Pass it down.
19405
19406 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
19407
19408         * optabs.h (expand_widening_mult): Declare.
19409
19410 2010-04-22  Richard Guenther  <rguenther@suse.de>
19411
19412         PR tree-optimization/43845
19413         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
19414         lookup the CALL_EXPR function and arguments.
19415
19416 2010-04-22  Nick Clifton  <nickc@redhat.com>
19417
19418         * config/stormy16/stormy16.c
19419         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
19420         * config/stormy16/stormy16.h: Tidy up formatting.
19421         (DONT_USE_BUILTIN_SETJMP): Remove definition.
19422         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
19423         (ineqbranchsi): Delete pattern.
19424         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
19425         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
19426         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
19427         stormy16-lib2-ucmpsi2.c.
19428
19429 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
19430
19431         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
19432         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
19433         extra set merge_set_noclobber, and use it to relax the final test
19434         slightly.
19435         * df.h (df_simulate_find_noclobber_defs): Declare.
19436         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
19437         conditional defs.
19438         (df_simulate_find_noclobber_defs): New function.
19439
19440 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
19441
19442         * config/i386/i386.md: Use {} around multi-line preparation statements.
19443
19444 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19445
19446         * c-tree.h (push_init_level, pop_init_level, set_init_index)
19447         (process_init_element): New argument of type struct obstack *.
19448
19449         * c-typeck.c (push_init_level, pop_init_level, set_designator)
19450         (set_init_index, set_init_label, set_nonincremental_init)
19451         (set_nonincremental_init_from_string, find_init_member)
19452         (output_init_element, output_pending_init_elements)
19453         (process_init_element): New argument braced_init_obstack.  Pass it
19454         down.
19455         (push_range_stack, add_pending_init): New argument
19456         braced_init_obstack.  Use obstack allocation.
19457
19458         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
19459         braced_init_obstack.  Pass it down.
19460         (c_parser_braced_init): New variables ret, braced_init_obstack.
19461         Initialize obstack, pass it down and finally free it.
19462
19463 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
19464
19465         PR middle-end/29274
19466         * tree-pass.h (pass_optimize_widening_mul): Declare.
19467         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
19468         gate_optimize_widening_mul): New static functions.
19469         (pass_optimize_widening_mul): New.
19470         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
19471         <case MULT_EXPR>: Remove support for widening multiplies.
19472         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
19473         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
19474         simplify_gen_unary rather than directly building extensions.
19475         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
19476         WIDEN_MULT_EXPR.
19477         * expmed.c (expand_widening_mult): New function.
19478         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
19479
19480 2010-04-21  Jan Hubicka  <jh@suse.cz>
19481
19482         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
19483         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
19484         * lto-wpa-fixup.c: Remove.
19485         * Makefile.in (lto-wpa-fixup.o): Remove.
19486         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
19487         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
19488         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
19489
19490 2010-04-21  Jan Hubicka  <jh@suse.cz>
19491
19492         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
19493         add write_optimization_summary, read_optimization_summary.
19494         (ipa_write_summaries_of_cgraph_node_set): Remove.
19495         (ipa_write_optimization_summaries): Declare.
19496         (ipa_read_optimization_summaries): Declare.
19497         * ipa-cp.c (pass_ipa_cp): Update.
19498         * ipa-reference.c (pass_ipa_reference): Update.
19499         * ipa-pure-const.c (pass_ipa_pure_const): Update.
19500         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
19501         Update.
19502         * ipa-inline.c (pass_ipa_inline): Update.
19503         * ipa.c (pass_ipa_whole_program): Update.
19504         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
19505         * passes.c (ipa_write_summaries_1): Do not test wpa.
19506         (ipa_write_optimization_summaries_1): New.
19507         (ipa_write_optimization_summaries): New.
19508         (ipa_read_summaries): Do not test ltrans.
19509         (ipa_read_optimization_summaries_1): New.
19510         (ipa_read_optimization_summaries): New.
19511
19512 2010-04-21  Jan Hubicka  <jh@suse.cz>
19513
19514         * lto-cgraph.c (lto_output_node): Do not output comdat groups
19515         for boundary nodes.
19516         (output_cgraph): Do not arrange comdat groups for boundary nodes.
19517
19518 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
19519
19520         PR debug/40040
19521         * dwarf2out.c (add_name_and_src_coords_attributes): Add
19522         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
19523
19524 2010-04-21  Jan Hubicka  <jh@suse.cz>
19525
19526         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
19527
19528 2010-04-21  Jan Hubicka  <jh@suse.cz>
19529
19530         * varpool.c (decide_is_variable_needed): Variable is always needed
19531         during ltrans.
19532
19533 2010-04-21  Jan Hubicka  <jh@suse.cz>
19534
19535         * opts.c (decode_options): Enable pure-const pass for whopr.
19536
19537 2010-04-21  Jan Hubicka  <jh@suse.cz>
19538
19539         * cgraph.c (dump_cgraph_node): Dump also assembler name.
19540         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
19541         at WPA dumping.
19542         (cgraph_decide_inlining): Do not expect callee to be removed in all
19543         cases.
19544
19545 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
19546
19547         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
19548
19549 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
19550
19551         * config/i386/i386.md (x86_shrd): Add athlon_decode and
19552         amdfam10_decode attributes.
19553
19554 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
19555
19556         PR middle-end/43570
19557         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
19558         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
19559         (lower_copyprivate_clauses): Use private var in outer
19560         context instead of original var.  Make sure the types
19561         are correct for VLAs.
19562
19563 2010-04-21  Richard Guenther  <rguenther@suse.de>
19564
19565         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
19566         to non-pointer objects.
19567
19568 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
19569
19570         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
19571         last chain entry if it starts with the still current label.
19572         (add_location_or_const_value_attribute): Check that
19573         loc_list->first->next is NULL instead of comparing ->first with ->last.
19574         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
19575         to add_var_loc_to_decl.
19576
19577         * dwarf2out.c (output_call_frame_info): For dw_cie_version
19578         >= 4 add also address size and segment size fields into CIE header.
19579
19580         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
19581         long as address size is the same as sizeof (void *) and
19582         segment size is 0.
19583         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
19584         address size or segment size is unexpected, return DW_EH_PE_omit.
19585         (classify_object_over_fdes): If get_cie_encoding returned
19586         DW_EH_PE_omit, return -1.
19587         (init_object): If classify_object_over_fdes returned -1,
19588         pretend there were no FDEs at all.
19589
19590 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
19591
19592         * config/i386/i386.md (bswap<mode>2): Macroize expander from
19593         bswap{si,di}2 using SWI48 mode iterator.
19594         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
19595         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
19596         set modrm attribute of bswap insn to 0 and remove length attribute.
19597         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
19598         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
19599         set mode attribute to <MODE> and remove length attribute.
19600
19601 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
19602
19603         PR rtl-optimization/43520
19604         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
19605         zero available registers.
19606
19607 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19608
19609         * builtins.c (fold_builtin_cproj): Fold more cases.
19610
19611 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19612
19613         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
19614         (fold_builtin_1): Fold builtin cproj.
19615         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
19616         Use ATTR_CONST_NOTHROW_LIST.
19617
19618 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
19619
19620         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
19621         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
19622         ffsi2_no_cmove for !TARGET_CMOVE.
19623         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
19624         (ffssi2): Remove expander.
19625         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
19626         mode iterator.
19627         (ctz<mode>2): Ditto from ctz{si,di}2.
19628         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
19629         mode iterator.
19630         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
19631         mode iterator.
19632
19633 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
19634
19635         * dwarf2out.c (AT_linkage_name): Define.
19636         (clone_as_declaration): Handle DW_AT_linkage_name.
19637         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
19638         of DW_AT_MIPS_linkage_name.
19639         (move_linkage_attr): Likewise.
19640         (dwarf2out_finish): Likewise.
19641
19642 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
19643
19644         PR middle-end/41952
19645         * fold-const.c (fold_comparison): New folding rule.
19646
19647 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
19648
19649         * double-int.h (double_int_setbit): Declare.
19650         * double-int.c (double_int_setbit): New function.
19651         * rtl.h (immed_double_int_const): Declare.
19652         * emit-rtl.c (immed_double_int_const): New function.
19653         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
19654         and immed_double_int_const functions.
19655         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
19656         expand_copysign_bit): (Ditto.).
19657         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
19658         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
19659         * dojump.c (prefer_and_bit_test): (Ditto.).
19660         * expr.c (convert_modes, reduce_to_bit_field_precision,
19661         const_vector_from_tree): (Ditto.).
19662         * expmed.c (mask_rtx, lshift_value): (Ditto.).
19663
19664 2010-04-20  Jan Hubicka  <jh@suse.cz>
19665
19666         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
19667         (dump_cgraph_node): Dump new flags.
19668         * cgraph.h (struct cgraph_node): Add flags
19669         reachable_from_other_partition and in_other_partition.
19670         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
19671         other partition can not be removed.
19672         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
19673         the other partition must be output; silence sanity checking on
19674         leaking functions bodies from other paritition.
19675         * lto-cgraph.c (reachable_from_other_partition_p): New function.
19676         (lto_output_node): Output new flags; do not sanity check that inline
19677         clones are output; drop lto_forced_extern_inline_p code; do not mock
19678         visibility flags at partition boundaries.
19679         (add_node_to): New function.
19680         (output_cgraph): Use it to sort functions so masters appear before
19681         clones.
19682         (input_overwrite_node): Input new flags.
19683         * passes.c (ipa_write_summaries): Do not call
19684         lto_new_extern_inline_states.
19685         * lto-section-out.c (forced_extern_inline,
19686         lto_new_extern_inline_states lto_delete_extern_inline_states,
19687         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
19688         * lto-streamer.h (lto_new_extern_inline_states,
19689         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
19690         lto_forced_extern_inline_p): Kill.
19691
19692 2010-04-20  Richard Guenther  <rguenther@suse.de>
19693
19694         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
19695         from vars that can have pointers.
19696         (process_constraint): Dump useless constraints.
19697
19698 2010-04-20  Richard Guenther  <rguenther@suse.de>
19699
19700         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
19701         (dump_sa_points_to_info): Remove asserts.
19702         (init_base_vars): nothing_id isn't an escape point nor does it
19703         have pointers.
19704
19705 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
19706
19707         * tree.h (TYPE_REF_IS_RVALUE): Define.
19708         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
19709         should_move_die_to_comdat, prune_unused_types_walk): Handle
19710         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
19711         (modified_type_die, gen_reference_type_die): Emit
19712         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
19713         if TYPE_REF_IS_RVALUE and -gdwarf-4.
19714
19715 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19716
19717         PR target/43635
19718         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
19719         calls for -fpic -m31 if they have been sibcall optimized.
19720
19721 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
19722
19723         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
19724         ar.lc fixed and call-used.
19725
19726         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
19727
19728 2010-04-19  Jan Hubicka  <jh@suse.cz>
19729
19730         * opts.c (decode_options): Disable whpr incompatible passes.
19731         * lto/lto.c (lto_1_to_1_map): Skip clones.
19732         (read_cgraph_and_symbols): Do not mark everything as needed.
19733         (do_whole_program_analysis): Do map only after optimizing;
19734         set proper cgraph_state; use passmanager.
19735
19736 2010-04-19  DJ Delorie  <dj@redhat.com>
19737
19738         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
19739         POINTER_PLUS_EXPR and fix them.
19740
19741 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
19742
19743         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
19744         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
19745         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
19746         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
19747         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
19748         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
19749         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
19750         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
19751         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
19752         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
19753         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
19754
19755 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
19756
19757         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
19758         (check_cond_move_block): Likewise.
19759         (cond_move_process_if_block): Likewise.
19760         (noce_find_if_block): Improve formatting.
19761         (find_if_header): Pass 0 to memset and tweak conditions.
19762         (cond_exec_find_if_block): Fix long lines and tweak conditions.
19763
19764 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
19765
19766         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
19767         for -gdwarf-4.
19768
19769         PR middle-end/43337
19770         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
19771         with non-local decl doesn't need chain.
19772
19773 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
19774
19775         * ira-color.c (allocno_reload_assign): Avoid accumulating
19776         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
19777
19778 2010-04-19  Martin Jambor  <mjambor@suse.cz>
19779
19780         * gimple.h (create_tmp_reg): Declare.
19781         * gimplify.c (create_tmp_reg): New function.
19782         (gimplify_return_expr): Use create_tmp_reg.
19783         (gimplify_omp_atomic): Likewise.
19784         (gimple_regimplify_operands): Likewise.
19785         * tree-dfa.c (make_rename_temp): Likewise.
19786         * tree-predcom.c (predcom_tmp_var): Likewise.
19787         (reassociate_to_the_same_stmt): Likewise.
19788         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
19789         (get_replaced_param_substitute): Likewise.
19790         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
19791         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
19792         * tree-ssa-pre.c (get_representative_for): Likewise.
19793         (create_expression_by_pieces): Likewise.
19794         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
19795         (create_tailcall_accumulator): Likewise.
19796
19797 2010-04-19  Martin Jambor  <mjambor@suse.cz>
19798
19799         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
19800         new_stmt.
19801         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
19802
19803 2010-04-19  Richard Guenther  <rguenther@suse.de>
19804
19805         PR tree-optimization/43796
19806         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
19807         from SCEV in the lattice.
19808         (vrp_visit_phi_node): Dump change.
19809
19810 2010-04-19  Richard Guenther  <rguenther@suse.de>
19811
19812         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
19813         * configure: Re-generated.
19814
19815 2010-04-19  Richard Guenther  <rguenther@suse.de>
19816
19817         PR tree-optimization/43783
19818         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
19819         constant ARRAY_REF operands two and three if possible.
19820
19821 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
19822
19823         PR target/43766
19824         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
19825
19826 2010-04-19  Jie Zhang  <jie@codesourcery.com>
19827
19828         PR target/43662
19829         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
19830
19831 2010-04-19  Ira Rosen  <irar@il.ibm.com>
19832
19833         PR tree-optimization/37027
19834         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
19835         and macro to access it.
19836         (vectorizable_reduction): Add argument.
19837         (vect_get_slp_defs): Likewise.
19838         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
19839         statements for possible use in SLP.
19840         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
19841         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
19842         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
19843         add new argument.
19844         (vectorizable_reduction): Likewise.
19845         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
19846         vect_get_slp_defs.
19847         (vectorizable_type_demotion, vectorizable_type_promotion,
19848         vectorizable_store): Likewise.
19849         (vect_analyze_stmt): Update call to vectorizable_reduction.
19850         (vect_transform_stmt): Likewise.
19851         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
19852         (vect_build_slp_tree): Fix indentation. Check that there are no loads
19853         from different interleaving chains in same node.
19854         (vect_slp_rearrange_stmts): New function.
19855         (vect_supported_load_permutation_p): Allow load permutations for
19856         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
19857         inside SLP nodes if necessary.
19858         (vect_analyze_slp_instance): Handle reductions.
19859         (vect_analyze_slp): Try to build SLP instances originating from groups
19860         of reductions.
19861         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
19862         (vect_get_constant_vectors): Create initial vectors for reductions
19863         according to reduction code. Add new argument.
19864         (vect_get_slp_defs): Add new argument, pass it to
19865         vect_get_constant_vectors.
19866         (vect_schedule_slp_instance): Remove SLP tree root statements.
19867
19868 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
19869
19870         * tree.h (ENUM_IS_SCOPED): Define.
19871         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
19872         for ENUM_IS_SCOPED enums.
19873
19874 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19875
19876         * fold-const.c (fold_comparison): Use ssizetype.
19877         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
19878         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
19879         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
19880         * tree-object-size.c (compute_object_sizes): Use size_type_node.
19881
19882         * tree.h (initialize_sizetypes): Remove parameter.
19883         (build_common_tree_nodes): Remove second parameter.
19884         * stor-layout.c (initialize_sizetypes): Remove parameter.
19885         Always create an unsigned type.
19886         (set_sizetype): Assert that the passed type is unsigned and simplify.
19887         * tree.c (build_common_tree_nodes): Remove second parameter.
19888         Adjust call to initialize_sizetypes.
19889         * c-decl.c (c_init_decl_processing): Remove second argument in call to
19890         build_common_tree_nodes.
19891
19892 2010-04-18  Matthias Klose  <doko@ubuntu.com>
19893
19894         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
19895
19896 2010-04-18  Ira Rosen  <irar@il.ibm.com>
19897
19898         PR tree-optimization/43771
19899         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
19900         load permutation doesn't have gaps.
19901
19902 2010-04-18  Jan Hubicka  <jh@suse.cz>
19903
19904         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
19905         (sse_prologue_save_insn expander): Use new pattern.
19906         (sse_prologue_save_insn1): New pattern and splitter.
19907         (sse_prologue_save_insn): Update to deal also with 64bit aligned
19908         blocks.
19909         * i386.c (setup_incoming_varargs_64): Do not compute jump
19910         destination here.
19911         (ix86_gimplify_va_arg): Update alignment needed.
19912         (ix86_local_alignment): Do not align all local arrays to 128bit.
19913
19914 2010-04-17  Jan Hubicka  <jh@suse.cz>
19915
19916         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
19917
19918 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19919
19920         * arm.md (negdi2): Remove redundant code to force values into a
19921         register.
19922
19923 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19924
19925         * arm/bpabi.S: Add EABI alignment attributes to objects.
19926         * arm/bpabi-v6m.S: Likewise.
19927         * arm/crti.asm: Likewise.
19928         * arm/crtn.asm: Likewise.
19929         * arm/lib1funcs.asm: Likewise.
19930         * arm/libunwind.S: Likewise.
19931
19932 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19933
19934         * arm-protos.h (tune_params): New structure.
19935         * arm.c (current_tune): New variable.
19936         (arm_constant_limit): Delete.
19937         (struct processors): Add pointer to the tune parameters.
19938         (arm_slowmul_tune): New tuning option.
19939         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
19940         (all_cores): Adjust to pick up the tuning model.
19941         (arm_constant_limit): New function.
19942         (arm_override_options): Select the appropriate tuning model.  Delete
19943         initialization of arm_const_limit.
19944         (arm_split_constant): Use the new constant-limit model.
19945         (arm_rtx_costs): Pick up the current tuning model.
19946         * arm.md (is_strongarm, is_xscale): Delete.
19947         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
19948         for Xscale variant architectures.
19949         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
19950
19951 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19952
19953         * config/arm/arm.c (arm_gen_constant): Remove unused variable
19954         can_shift.
19955         (arm_rtx_costs_1): Remove unused variable extra_cost.
19956         (arm_unwind_emit_set): Use variable offset.
19957         (thumb1_output_casesi): Remove unused variable flags.
19958
19959 2010-04-16  Jeff Law  <law@redhat.com>
19960
19961         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
19962         needing assignment rather than doing a two-phase assignment.  Remove
19963         unused variable 'm'.
19964
19965 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
19966
19967         PR bootstrap/43767
19968         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
19969
19970 2010-04-16  Doug Kwan  <dougkwan@google.com>
19971
19972         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
19973         (next_operand_entry_id): New static variable.
19974         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
19975         (add_to_ops_vec): Assigned unique ID to operand entry.
19976         (struct oecount_s): New field ID.
19977         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
19978         (undistribute_ops_list): Assign unique IDs to oecounts.
19979         (init_reassoc): reset next_operand_entry_id.
19980
19981 2010-04-16  Doug Kwan  <dougkwan@google.com>
19982
19983         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
19984         missing left parenthesis.
19985
19986 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
19987
19988         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
19989         *btdi_rex64 using SWI48 mode iterator.
19990         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
19991         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
19992         *jcc_btdi_mask_rex64.
19993
19994 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
19995
19996         * double-int.h (tree_to_double_int): Convert to macro.
19997         * double-int.c (tree_to_double_int): Remove.
19998
19999 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
20000
20001         PR debug/43762
20002         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
20003         with want_address 2 and in case a single element list might be
20004         possible, call it again with want_address 0.
20005
20006 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
20007
20008         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
20009         case 'W' print operands for HI mode.
20010         * config/h8300/h8300.h (Y0, Y2) : New constraints.
20011         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
20012         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
20013         * config/h8300/predicate.md (bit_register_indirect_operand): New.
20014
20015         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
20016
20017         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
20018         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
20019         #xx:3 and #xx:4 mode.
20020
20021         * config/h8300/h8300.md (inverted load with HImode dest): Add
20022         support for H8300SX.
20023
20024         * config/h8300/predicate.md (bit_operand): Allow immediate values that
20025         satisfy 'U' constraint.
20026
20027 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20028
20029         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
20030         * configure: Regenerate.
20031         * config.in: Regenerate.
20032         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
20033         works.
20034
20035 2010-04-16  Richard Guenther  <rguenther@suse.de>
20036
20037         * tree.h (struct tree_decl_minimal): Move pt_uid ...
20038         (struct tree_decl_common): ... here.
20039         (DECL_PT_UID): Adjust.
20040         (SET_DECL_PT_UID): Likewise.
20041         (DECL_PT_UID_SET_P): Likewise.
20042
20043 2010-04-16  Richard Guenther  <rguenther@suse.de>
20044
20045         PR tree-optimization/43572
20046         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
20047         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
20048         * tree-flow.h (is_call_clobbered): Remove.
20049         * tree-flow-inline.h (is_call_clobbered): Likewise.
20050         * tree-dfa.c (dump_variable): Do not dump call clobber state.
20051         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
20052         (execute_return_slot_opt): Adjust.
20053         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
20054         check for call clobbered vars here.
20055         (find_tail_calls): Move tailcall verification to the
20056         proper place.
20057
20058 2010-04-16  Diego Novillo  <dnovillo@google.com>
20059
20060         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
20061
20062 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
20063
20064         PR target/40603
20065         * config/arm/arm.md (cbranchqi4): New pattern.
20066         * config/arm/predicates.md (const0_operand,
20067         cbranchqi4_comparison_operator): New predicates.
20068
20069 2010-04-16  Richard Guenther  <rguenther@suse.de>
20070
20071         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
20072         (dump_gimple_stmt): Likewise.
20073
20074 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
20075
20076         * recog.h (struct recog_data): New field is_operator.
20077         (struct insn_operand_data): New field is_operator.
20078         * recog.c (extract_insn): Set recog_data.is_operator.
20079         * genoutput.c (output_operand_data): Emit code to set the
20080         is_operator field.
20081         * reload.c (find_reloads): Use it rather than testing for an
20082         empty constraint string.
20083
20084         PR target/41514
20085         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
20086         If the previous insn is a cbranchsi4_insn with the same arguments,
20087         omit the compare instruction.
20088
20089         * config/arm/arm.md (addsi3_cbranch): If destination is a high
20090         register, inputs must be low registers and we need a low register
20091         scratch.  Handle alternative 2 like alternative 3.
20092
20093 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
20094
20095         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
20096         don't call get_addr on both.  If one expression is a VALUE and
20097         the other a REG, check VALUE's locs if the REG isn't among them.
20098
20099 2010-04-16  Christian Bruel  <christian.bruel@st.com>
20100
20101         * config/sh/sh.h (sh_frame_pointer_required): New function.
20102         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
20103         (flag_omit_frame_pointer) Set.
20104         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
20105         (rounded_frame_size): Adjust size with outgoing_args_size.
20106         (sh_set_return_address): Must return from stack pointer.
20107         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
20108         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
20109         (ACCUMULATE_OUTGOING_ARGS): Define.
20110         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
20111         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
20112
20113 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
20114
20115         PR target/43471
20116         * config/sh/sh.c (sh_legitimize_reload_address): Use
20117         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
20118         Remove a unneeded check for offset_base.
20119
20120 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
20121
20122         * configure: Regenerated.
20123
20124 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20125
20126         * config/s390/s390.c (s390_call_save_register_used): Switch back
20127         to HARD_REGNO_NREGS.
20128
20129 2010-04-15  Richard Guenther  <rguenther@suse.de>
20130
20131         * alias.c (alias_set_subset_of): Handle alias-set zero
20132         child properly.
20133
20134 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
20135             Julian Brown  <julian@codesourcery.com>
20136
20137         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
20138         alternatives according to use of high and low regs.
20139         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
20140         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
20141         optimizing for size on Thumb-2.
20142
20143 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
20144
20145         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
20146
20147 2010-04-15  Richard Guenther  <rguenther@suse.de>
20148
20149         * tree-ssa-structalias.c (struct variable_info): Add
20150         is_fn_info flag.
20151         (new_var_info): Initialize it.
20152         (dump_constraints): Support printing last added constraints.
20153         (debug_constraints): Adjust.
20154         (dump_constraint_graph): Likewise.
20155         (make_heapvar_for): Check for NULL cfun.
20156         (get_function_part_constraint): New function.
20157         (get_fi_for_callee): Likewise.
20158         (find_func_aliases): Properly implement IPA PTA constraints.
20159         (process_ipa_clobber): New function.
20160         (find_func_clobbers): Likewise.
20161         (insert_into_field_list_sorted): Remove.
20162         (create_function_info_for): Properly allocate vars for IPA mode.
20163         Do not use insert_into_field_list_sorted.
20164         (create_variable_info_for): Properly generate constraints for
20165         global vars in IPA mode.
20166         (dump_solution_for_var): Always dump the solution.
20167         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
20168         (find_what_var_points_to): Adjust.
20169         (pt_solution_set): Change.
20170         (pt_solution_ior_into): New function.
20171         (pt_solution_empty_p): Export.
20172         (pt_solution_includes_global): Adjust.
20173         (pt_solution_includes_1): Likewise.
20174         (pt_solutions_intersect_1): Likewise.
20175         (dump_sa_points_to_info): Check some invariants.
20176         (solve_constraints): Move constraint dumping ...
20177         (compute_points_to_sets): ... here.
20178         (ipa_pta_execute): ... and here.
20179         (compute_may_aliases): Do not re-compute points-to info
20180         locally if IPA info is available.
20181         (ipa_escaped_pt): New global var.
20182         (ipa_pta_execute): Properly implement IPA PTA.
20183         * tree-into-ssa.c (dump_decl_set): Support dumping
20184         decls not in referenced-vars.
20185         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
20186         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
20187         (dump_points_to_solution): Likewise.
20188         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
20189         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
20190         (remap_gimple_stmt): Reset call clobber/use information if necessary.
20191         (copy_decl_to_var): Copy DECL_PT_UID.
20192         (copy_result_decl_to_var): Likewise.
20193         * tree.c (make_node_stat): Initialize DECL_PT_UID.
20194         (copy_node_stat): Copy it.
20195         * tree.h (DECL_PT_UID): New macro.
20196         (SET_DECL_PT_UID): Likewise.
20197         (DECL_PT_UID_SET_P): Likewise.
20198         (struct tree_decl_minimal): Add pt_uid member.
20199         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
20200         (pt_solution_empty_p): Declare.
20201         (pt_solution_set): Adjust.
20202         (ipa_escaped_pt): Declare.
20203         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
20204         * gimple-pretty-print.c (pp_points_to_solution): New function.
20205         (dump_gimple_call): Dump call clobber/use information.
20206         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
20207         * tree-pass.h (TDF_ALIAS): New dump option.
20208         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
20209         * doc/invoke.texi (-fipa-pta): Update documentation.
20210
20211 2010-04-15  Richard Guenther  <rguenther@suse.de>
20212
20213         * Makefile.in (OBJS-common): Add gimple-fold.o.
20214         (gimple-fold.o): New rule.
20215         * tree.h (maybe_fold_offset_to_reference,
20216         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
20217         prototypes ...
20218         * gimple.h: ... here.
20219         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
20220         may_propagate_address_into_dereference): Move prototypes ...
20221         * gimple.h: ... here.
20222         * tree-ssa-ccp.c (get_symbol_constant_value,
20223         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
20224         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
20225         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
20226         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
20227         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
20228         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
20229         gimplify_and_update_call_from_tree): Move ...
20230         * gimple-fold.c: ... here.  New file.
20231         (ccp_fold_builtin): Rename to ...
20232         (gimple_fold_builtin): ... this.
20233         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
20234
20235 2010-04-15  Richard Guenther  <rguenther@suse.de>
20236
20237         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
20238         fit_double_type, force_fit_type_double, add_double_with_sign,
20239         neg_double, mul_double_with_sign, lshift_double, rshift_double,
20240         lrotate_double, rrotate_double, div_and_round_double): Move ...
20241         * double-int.c: ... here.
20242         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
20243         add_double, neg_double, mul_double_with_sign, mul_double,
20244         lshift_double, rshift_double, lrotate_double, rrotate_double,
20245         div_and_round_double): Move prototypes ...
20246         * double-int.h: ... here.
20247
20248 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
20249
20250         PR target/43742
20251         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
20252         matching constraints to ensure inputs match the output.
20253
20254 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
20255
20256         PR target/43742
20257         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
20258         in an input-only operand.
20259
20260 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
20261
20262         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
20263         (double_int_not, double_int_lshift, double_int_rshift): Declare.
20264         (double_int_negative_p): Convert to static inline function.
20265         * double-int.c (double_int_lshift, double_int_lshift): New functions.
20266         (double_int_negative_p): Remove.
20267         * tree.h (lshift_double, rshift_double):
20268         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
20269         * fold-const.c (fold_convert_const_int_from_real,
20270         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
20271         (lshift_double): Change type of arith argument to bool.
20272         (rshift_double): Change type of arith argument to bool. Correct
20273         comment.
20274         * expmed.c (mask_rtx, lshift_value): (Ditto.).
20275
20276 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
20277
20278         PR target/21803
20279         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
20280         at the start and end of the then/else blocks, and omit them from the
20281         conversion.
20282         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
20283         argument; all callers changed.  Pass zero to old_insns_match_p instead.
20284         (flow_find_head_matching_sequence): New function.
20285         (old_insns_match_p): Check REG_EH_REGION notes for calls.
20286         * basic-block.h (flow_find_cross_jump,
20287         flow_find_head_matching_sequence): Declare functions.
20288
20289 2010-04-14  Jason Merrill  <jason@redhat.com>
20290
20291         PR c++/36625
20292         * c-common.c (attribute_takes_identifier_p): New fn.
20293         * c-common.h: Declare it.
20294
20295 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20296
20297         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
20298         splitter condition.
20299         (*udivmod<mode>4): Ditto.
20300
20301 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20302
20303         * config/i386/i386.md (maxmin_int): Rename code attribute from
20304         maxminiprefix and update all users.
20305         (maxmin_float): Ditto from maxminfprefix.
20306         (logic): Ditto from logicprefix.
20307         (absneg_mnemonic): Ditto from absnegprefix.
20308         * config/i386/mmx.md: Update all users of maxminiprefix,
20309         maxminfprefix and logicprefix for rename.
20310         * config/i386/sse.md: Ditto.
20311         * config/i386/sync.md (sync_<code><mode>): Update for
20312         logicprefix rename.
20313
20314 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20315
20316         PR 42966
20317         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
20318         warnings converted to errors.
20319
20320 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20321
20322         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
20323         used insn_type variable.
20324         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
20325         to avoid set-but-not-used warning.
20326
20327 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20328
20329         * df-core.c (df_ref_debug): Change format string placeholder
20330         from 0x%x to %#x.
20331         * dwarf2asm.c (dw2_asm_output_data_raw,
20332         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
20333         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
20334         * dwarf2out.c (output_cfi, output_cfi_directive,
20335         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
20336         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
20337         Ditto.
20338         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
20339         * print-rtl.c (print_rtx): Ditto.
20340
20341 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20342
20343         PR middle-end/42694
20344         * builtins.c (expand_builtin_pow_root): New function to expand pow
20345         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
20346         series of sqrt and cbrt calls under -ffast-math.
20347         (expand_builtin_pow): Call it.
20348
20349 2010-04-14  Michael Matz  <matz@suse.de>
20350
20351         PR tree-optimization/42963
20352         * tree-cfg.c (touched_switch_bbs): New static variable.
20353         (group_case_labels_stmt): New function broken out from ...
20354         (group_case_labels): ... here, use the above.
20355         (start_recording_case_labels): Allocate touched_switch_bbs.
20356         (end_recording_case_labels): Deallocate it, call
20357         group_case_labels_stmt.
20358         (gimple_redirect_edge_and_branch): Remember index of affected BB.
20359
20360 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20361
20362         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
20363         from insn template.
20364
20365 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20366
20367         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
20368
20369 2010-04-13  Jan Hubicka  <jh@suse.cz>
20370
20371         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
20372         of optimized out static functions.
20373         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
20374         cost computation.  Also sanity check for overflows.
20375         (update_caller_keys): Update cgraph_edge_badness call; properly
20376         update fibheap and sanity check that it is up to date.
20377         (add_new_edges_to_heap): Update cgraph_edge_badness.
20378         (cgraph_decide_inlining_of_small_function): Likewise;
20379         add sanity checking that badness in heap is up to date;
20380         improve dumping of reason; Update badness of calls to the
20381         offline copy of function currently inlined; dump badness
20382         of functions not inlined because of unit growth limits.
20383
20384 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
20385
20386         PR middle-end/32628
20387         * c-common.c (pointer_int_sum): Disregard overflow that occured only
20388         because of sign-extension change when converting to sizetype here...
20389         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
20390
20391         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
20392         the folding to constants.  Remove redundant final conversion.
20393         (fold_binary) <associate>: Do not associate if the re-association of
20394         constants alone overflows.
20395         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
20396         to the end of the list.
20397         (multiple_of_p) <COND_EXPR>: New case.
20398
20399 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20400
20401         * opt-functions.awk (opt_sanitized_name): New.
20402         (opt_enum): New.
20403         * optc-gen.awk: Use it
20404         * opth-gen.awk: Use it.
20405
20406 2010-04-13  Martin Jambor  <mjambor@suse.cz>
20407
20408         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
20409         (sra_modify_assign): Delete stmts loading dead data even if racc has no
20410         children.  Call replace_uses_with_default_def_ssa_name to handle
20411         SSA_NAES on lhs.
20412
20413 2010-04-13  Michael Matz  <matz@suse.de>
20414
20415         PR middle-end/43730
20416         * builtins.c (expand_builtin_interclass_mathfn): Also create
20417         a register if the predicate doesn't match.
20418
20419 2010-04-13  Diego Novillo  <dnovillo@google.com>
20420
20421         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
20422         * c-pch.c: Include timevar.h.
20423         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
20424         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
20425         * ggc-common.c: Include timevar.h.
20426         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
20427         * timevar.def (TV_PCH_SAVE): Define.
20428         (TV_PCH_CPP_SAVE): Define.
20429         (TV_PCH_PTR_REALLOC): Define.
20430         (TV_PCH_PTR_SORT): Define.
20431         (TV_PCH_RESTORE): Define.
20432         (TV_PCH_CPP_RESTORE): Define.
20433
20434 2010-04-13  Michael Matz  <matz@suse.de>
20435
20436         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
20437         into MINUS_EXPRs.
20438         (can_reassociate_p): New function.
20439         (break_up_subtract_bb, reassociate_bb): Use it.
20440
20441 2010-04-13  Richard Guenther  <rguenther@suse.de>
20442
20443         PR bootstrap/43737
20444         * builtins.c (c_readstr): Fix assert.
20445
20446 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
20447
20448         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
20449         when generating cltd insn.
20450
20451         (*ashl<mode>3_1): Remove special handling for register operand 2.
20452         (*ashlsi3_1_zext): Ditto.
20453         (*ashlhi3_1): Ditto.
20454         (*ashlhi3_1_lea): Ditto.
20455         (*ashlqi3_1): Ditto.
20456         (*ashlqi3_1_lea): Ditto.
20457         (*<shiftrt_insn><mode>3_1): Ditto.
20458         (*<shiftrt_insn>si3_1_zext): Ditto.
20459         (*<shiftrt_insn>qi3_1_slp): Ditto.
20460         (*<rotate_insn><mode>3_1): Ditto.
20461         (*<rotate_insn>si3_1_zext): Ditto.
20462         (*<rotate_insn>qi3_1_slp): Ditto.
20463
20464 2010-04-13  Richard Guenther  <rguenther@suse.de>
20465
20466         * tree-ssa-structalias.c (callused_id): Remove.
20467         (call_stmt_vars): New.
20468         (get_call_vi): Likewise.
20469         (lookup_call_use_vi): Likewise.
20470         (lookup_call_clobber_vi): Likewise.
20471         (get_call_use_vi): Likewise.
20472         (get_call_clobber_vi): Likewise.
20473         (make_transitive_closure_constraints): Likewise.
20474         (handle_const_call): Adjust to do per-call call-used handling.
20475         (handle_pure_call): Likewise.
20476         (find_what_var_points_to): Remove general callused handling.
20477         (init_base_vars): Likewise.
20478         (init_alias_vars): Initialize call_stmt_vars.
20479         (compute_points_to_sets): Process call-used and call-clobbered
20480         vars for call statements.
20481         (delete_points_to_sets): Free call_stmt_vars.
20482
20483 2010-04-13  Richard Guenther  <rguenther@suse.de>
20484
20485         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
20486         Only add RW dependence for dependence distance zero.
20487         Adjust maximal vectorization factor according to dependences.
20488         Move alignment handling ...
20489         (vect_find_same_alignment_drs): ... here.  New function.
20490         (vect_analyze_data_ref_dependences): Adjust.
20491         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
20492         (vect_analyze_data_refs): Adjust minimal vectorization factor
20493         according to data references.
20494         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
20495         dependences before determining the vectorization factor.
20496         Analyze alignment after determining the vectorization factor.
20497         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
20498         dependences before alignment.
20499         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
20500         Adjust prototype.
20501         (vect_analyze_data_refs): Likewise.
20502         (MAX_VECTORIZATION_FACTOR): New define.
20503
20504 2010-04-13  Duncan Sands  <baldrick@free.fr>
20505
20506         * except.h (lang_eh_type_covers): Remove.
20507         * except.c (lang_eh_type_covers): Likewise.
20508
20509 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20510             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20511
20512         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
20513         * config/s390/s390.c: Replace UNTIS_PER_WORD with
20514         UNITS_PER_LONG where it is ABI relevant.
20515         (s390_return_addr_rtx): Likewise.
20516         (s390_back_chain_rtx): Likewise.
20517         (s390_frame_area): Likewise.
20518         (s390_frame_info): Likewise.
20519         (s390_initial_elimination_offset): Likewise.
20520         (save_gprs): Likewise.
20521         (s390_emit_prologue): Likewise.
20522         (s390_emit_epilogue): Likewise.
20523         (s390_function_arg_advance): Likewise.
20524         (s390_function_arg): Likewise.
20525         (s390_va_start): Likewise.
20526         (s390_gimplify_va_arg): Likewise.
20527         (s390_function_profiler): Likewise.
20528         (s390_optimize_prologue): Likewise.
20529         (s390_rtx_costs): Likewise.
20530         (s390_secondary_reload): Likewise.
20531         (s390_promote_function_mode): Likewise.
20532         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
20533         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
20534         registers available.
20535         (s390_unwind_word_mode): New function.
20536         (s390_function_value): Split 64 bit values into register pair if
20537         used as return value.
20538         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
20539         function call parameters.  Handle parallels.
20540         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
20541         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
20542         (DWARF_CIE_DATA_ALIGNMENT): New macro.
20543         (s390_expand_setmem): Remove unused variable src_addr.
20544         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
20545         deal with 64 bit registers.
20546         * config/s390/s390.h: Define __zarch__ predefined macro.
20547         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
20548         (UNITS_PER_LONG): New macro.
20549         * libjava/include/s390-signal.h: Define extended ucontext
20550         structure containing the upper halfs of the 64 bit registers.
20551
20552 2010-04-13  Simon Baldwin  <simonb@google.com>
20553
20554         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
20555
20556 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
20557
20558         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
20559         rvalue on the RHS if the LHS is of a non-renamable type.
20560         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
20561
20562 2010-04-13  Matthias Klose  <doko@ubuntu.com>
20563
20564         * gcc.c (cc1_options): Handle -iplugindir before processing
20565         the cc1 spec. Only add -iplugindir once.
20566         (cpp_unique_options): Add -iplugindir option if -fplugin* options
20567         found.
20568         * common.opt (iplugindir): Remove `Separate' property, initialize.
20569         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
20570         option.
20571         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
20572         (distclean): Remove plugin dir.
20573         * doc/invoke.texi: Document -iplugindir.
20574
20575 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
20576
20577         * doc/plugins.texi (Loading Plugins): Document short
20578         -fplugin=foo option.
20579         (Plugin API): Mention default_plugin_dir_name function.
20580
20581         * gcc.c (find_file_spec_function): Add new declaration.
20582         (static_spec_func): Use it for "find-file".
20583         (find_file_spec_function): Add new function.
20584         (cc1_options): Add -iplugindir option if -fplugin* options found.
20585
20586         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
20587
20588         * plugin.c (add_new_plugin): Updated comment, and handle short
20589         plugin name.
20590         (default_plugin_dir_name): Added new function.
20591
20592         * common.opt (iplugindir): New option to set the plugin directory.
20593
20594 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
20595
20596         * config/i386/i386.md (any_rotate): New code iterator.
20597         (rotate_insn): New code attribute.
20598         (rotate): Ditto.
20599         (SWIM124): New mode iterator.
20600         (<rotate_insn>ti3): New expander.
20601         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
20602         any_rotate code iterator.
20603         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
20604         using any_rotate code iterator and SWIM124 mode iterator.
20605         (ix86_rotlti3): New insn_and_split pattern.
20606         (ix86_rotrti3): Ditto.
20607         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
20608         ix86_rotl{di,ti}3 patterns.
20609         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
20610         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
20611         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
20612         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
20613         code iterator and SWI mode iterator.
20614         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
20615         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
20616         code iterator.
20617         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
20618         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
20619         (bswap rotatert splitter): Add splitter.
20620         (bswap splitter): Macroize splitter using any_rotate code iterator.
20621         Add insn predicate to split only for TARGET_USE_XCHGB or when
20622         optimizing function for size.
20623
20624 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
20625
20626         * config/pa/pa.c (emit_move_sequence): Remove use of
20627         deleted variable flag_argument_noalias.
20628
20629 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20630
20631         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
20632         configurations.
20633         Add to unsupported targets list.
20634         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
20635         sparc*-sun-solaris2.[567]* from target lists.
20636         * configure: Regenerate.
20637         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
20638         removal.
20639         Remove Solaris 7 patch references.
20640         (Specific, sparc-sun-solaris2.7): Removed.
20641         (sparc-sun-solaris2*): Update Solaris 7 example.
20642         (sparc64-*-solaris2*): Likewise.
20643
20644 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20645
20646         * config.build (alpha*-dec-osf4*): Remove.
20647         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
20648         of obsolete configurations.
20649         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
20650         support.
20651         * config/alpha/t-osf4: Renamed to ...
20652         * config/alpha/t-osf5: ... this.
20653         * config/alpha/osf.h: Renamed to ...
20654         * config/alpha/osf5.h: ... this.
20655         Merged old osf5.h contents.
20656         Update comments.
20657         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
20658         (EXTRA_SPECS): Removed.
20659         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
20660         reflect removal of Tru64 UNIX V4.0/V5.0 support.
20661         Document that.
20662
20663 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20664
20665         * doc/contrib.texi (Contributors, Rainer Orth): Update.
20666
20667 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
20668
20669         PR/43702
20670         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
20671         __thiscall convention.
20672
20673 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
20674
20675         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
20676         orig_base.
20677         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
20678
20679 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
20680
20681         * function.c (assign_parms_initialize_all): Add unused attribute
20682         to fntype.
20683
20684 2010-04-12  Richard Guenther  <rguenther@suse.de>
20685
20686         * gsstruct.def (GSS_CALL): New.
20687         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
20688         * gimple.h: Include tree-ssa-alias.h.
20689         (struct gimple_statement_call): New.
20690         (union gimple_statement_struct_d): Add gimple_call member.
20691         (gimple_call_reset_alias_info): Declare.
20692         (gimple_call_use_set): New function.
20693         (gimple_call_clobber_set): Likewise.
20694         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
20695         * gimple.c (gimple_call_reset_alias_info): New function.
20696         (gimple_build_call_1): Call it.
20697         * lto-streamer-in.c (input_gimple_stmt): Likewise.
20698         * tree-inline.c (remap_gimple_stmt): Likewise.
20699         (expand_call_inline): Remove callused handling.
20700         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
20701         * tree-dfa.c (dump_variable): Likewise.
20702         * tree-parloops.c (parallelize_loops): Likewise.
20703         * tree-ssa.c (init_tree_ssa): Likewise.
20704         (delete_tree_ssa): Likewise.
20705         * tree-flow-inline.h (is_call_used): Remove.
20706         * tree-flow.h (struct gimple_df): Remove callused member.
20707         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
20708         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
20709         (ref_maybe_used_by_call_p_1): Simplify.
20710         (call_may_clobber_ref_p_1): Likewise.
20711         * tree-ssa-structalias.c (compute_points_to_sets): Set
20712         the call stmt used and clobbered sets.
20713         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
20714         (find_tail_calls): Verify the tail call.
20715
20716 2010-04-12  Richard Guenther  <rguenther@suse.de>
20717
20718         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
20719         single-iteration always-inline inlining.
20720         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
20721         (cgraph_decide_inlining): Do not handle always-inline specially.
20722         (try_inline): Remove always-inline cycle detection special case.
20723         Do not recurse on always-inlines.
20724         (cgraph_early_inlining): Do not iterate if not optimizing.
20725         (cgraph_gate_early_inlining): remove.
20726         (pass_early_inline): Run unconditionally.
20727         (gate_cgraph_decide_inlining): New function.
20728         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
20729         not inlining or optimizing.
20730         (cgraph_decide_inlining_of_small_functions): Also consider
20731         always-inline functions.
20732         (cgraph_default_inline_p): Return true for nodes which should
20733         disregard inline limits.
20734         (estimate_function_body_sizes): Assume zero size and time for
20735         nodes which are marked as disregarding inline limits.
20736         (cgraph_decide_recursive_inlining): Do not perform recursive
20737         inlining on always-inline nodes.
20738
20739 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
20740
20741         PR bootstrap/43699
20742         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
20743         for exprs satisfying handled_component_p.
20744
20745 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
20746
20747         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
20748         non-constant aggregate elements.
20749
20750         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
20751         is a real initialization.
20752
20753 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
20754
20755         PR c/36774
20756         * c-decl.c (start_function): Move forward check for nested function.
20757
20758 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
20759
20760         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
20761         * config/sh/sh.c: Include reload.h.
20762         (sh_legitimize_reload_address): New.
20763         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
20764         sh_legitimize_reload_address.
20765
20766 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
20767
20768         * config/sh/sh.md (*movqi_pop): New insn pattern.
20769         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
20770
20771 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
20772
20773         * config/i386/i386.md (any_shiftrt): New code iterator.
20774         (shiftrt_insn): New code attribute.
20775         (shiftrt): Ditto.
20776         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
20777         using any_shiftrt code iterator.
20778         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
20779         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
20780         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
20781         pattern from corresponding peephole2 patterns.
20782         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
20783         using any_shiftrt code iterator.
20784         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
20785         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
20786         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
20787         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
20788         *{ashr,lshr}<mode>3_cmp_zext.
20789         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
20790
20791 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
20792
20793         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
20794         scratch register.
20795         (*lshr<mode>3_cconly): Ditto.
20796
20797 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
20798
20799         * config/i386/i386.md (lshr<mode>3): Macroize expander from
20800         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
20801         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
20802         pattern from *lshr{di,ti}3_1 and corresponding splitters using
20803         DWI mode iterator.
20804         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
20805         from corresponding peephole2 patterns.
20806         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
20807         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
20808         and *lshrdi3_1_rex64 using SWI mode iterator.
20809         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
20810         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
20811         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
20812         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
20813         and *lshrdi3_cmp_rex64 using SWI mode iterator.
20814         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
20815         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
20816         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
20817         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
20818         SWI mode iterator.
20819
20820 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
20821
20822         * config/i386/i386.md (ashr<mode>3): Macroize expander from
20823         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
20824         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
20825         pattern from *ashr{di,ti}3_1 and corresponding splitters using
20826         DWI mode iterator.
20827         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
20828         from corresponding peephole2 patterns.
20829         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
20830         (ashrsi3_cvt): Rename from ashrsi3_31.
20831         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
20832         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
20833         and x86_64_shift_adj_3 using SWI48 mode iterator.
20834         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
20835         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
20836         and *ashrdi3_1_rex64 using SWI mode iterator.
20837         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
20838         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
20839         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
20840         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
20841         and *ashrdi3_cmp_rex64 using SWI mode iterator.
20842         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
20843         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
20844         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
20845         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
20846         SWI mode iterator.
20847         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
20848         * config/i386/i386.c (ix86_split_ashr): Update for renamed
20849         x86_shift<mode>_adj_3 expanders.
20850
20851 2010-04-10  Wei Guozhi  <carrot@google.com>
20852
20853         PR target/42601
20854         * config/arm/arm.c (arm_pic_static_addr): New function.
20855         (legitimize_pic_address): Call arm_pic_static_addr when it detects
20856         a static symbol.
20857         (arm_output_addr_const_extra): Output expression for new pattern.
20858         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
20859
20860 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
20861
20862         * ira-costs.c (record_reg_classes): Ignore alternatives that are
20863         not enabled.
20864
20865         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
20866         * web.c: Include "insn-config.h" and "recog.h".
20867         (union_match_dups): New function.
20868         (web_main): Call it.
20869         (union_defs): Don't try to recognize match_dups.
20870
20871         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
20872         if doing so would replace the entire pattern.
20873
20874 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
20875
20876         PR target/43707
20877         PR target/43709
20878         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
20879         and splitter pattern.  Change splitter operand 1 predicate to
20880         nonmemory_operand.
20881
20882 2010-04-09  Martin Jambor  <mjambor@suse.cz>
20883
20884         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
20885         lattices are addresses of CONST_DECLs with the same initial value.
20886         (ipcp_print_all_lattices): Print values of CONST_DECLs.
20887         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
20888
20889 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
20890             Bernd Schmidt  <bernds@codesourcery.com>
20891
20892         * loop-invariant.c (replace_uses): New static function.
20893         (move_invariant_reg): Use it to ensure we can replace the uses.
20894
20895 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
20896
20897         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
20898         function template.
20899         (picochip_override_options): Enable section anchors only above -O1.
20900         (picochip_reorg): Fixed a couple of build warnings.
20901
20902 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20903
20904         * configure.ac (plugin -rdynamic test): Log result.
20905         * configure: Regenerate.
20906         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
20907         (RDYNAMIC_SPEC): Define.
20908         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
20909
20910 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20911
20912         * configure.ac: Determine Sun ld version numbers.
20913         (comdat_group): Restrict GNU ld version checks to gld.
20914         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
20915         (enable_comdat): Support --enable-comdat.
20916         * configure: Regenerate.
20917         * doc/install.texi (Configuration): Document --enable-comdat.
20918
20919 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20920
20921         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
20922         * config/sol2-gld.h: ... here.
20923         * config.gcc (sparc*-*-solaris2*): Reflect this.
20924         (i[34567]86-*-solaris2*): Use it.
20925
20926 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
20927
20928         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
20929         setup_clocks_p.
20930         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
20931
20932 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20933
20934         PR 42965
20935         * diagnostic.c (diagnostic_initialize): Initialize
20936         some_warnings_are_errors.
20937         (diagnostic_finish): New.
20938         (diagnostic_action_after_output): Call it before exiting.
20939         (diagnostic_report_diagnostic): Do not print message here. Set
20940         some_warnings_are_errors.
20941         * diagnostic.h (diagnostic_context): Delete
20942         issue_warnings_are_errors_message. Add some_warnings_are_errors.
20943         (diagnostic_finish): Declare.
20944         * toplev.c (toplev_main): Call it before exit.
20945
20946 2010-04-09  Jason Merrill  <jason@redhat.com>
20947
20948         PR c++/42623
20949         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
20950         for incomplete type.
20951
20952         PR c++/41788
20953         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
20954         based on a warning flag.
20955
20956 2010-04-09  Richard Guenther  <rguenther@suse.de>
20957
20958         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
20959
20960 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
20961
20962         PR bootstrap/43684
20963         * varasm.c (default_assemble_visibility): Wrap vars that are
20964         set, but unused, by targets without GAS.
20965         * config/rs6000/rs6000.c (paired_emit_vector_compare):
20966         Remove set, but unused, vars.
20967         (rs6000_legitimize_tls_address): Likewise.
20968         (altivec_expand_dst_builtin): Likewise.
20969         * config/darwin.c (machopic_classify_symbol): Likewise.
20970         (machopic_indirection_name): Likewise.
20971
20972 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
20973
20974         * config/i386/i386.md (DWI): New mode iterator.
20975         (S): New mode attribute.
20976         (shift_operand): Ditto.
20977         (shift_immediate_operand): Ditto.
20978         (ashl_input_operand): Ditto.
20979         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
20980         using SDWIM mode iterator.
20981         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
20982         pattern from *ashl{di,ti}3_1 and corresponding splitters using
20983         DWI mode iterator.
20984         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
20985         from corresponding peephole2 patterns.
20986         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
20987         and x86_64_shift_adj_1 using SWI48 mode iterator.
20988         (x86_shift<mode>_adj_2): Ditto.
20989         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
20990         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
20991         using SWI48 mode iterator.
20992         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
20993         *ashldi3_cmp_rex64 using SWI mode iterator.
20994         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
20995         *ashldi3_cconly_rex64 using SWI mode iterator.
20996         * config/i386/i386.c (ix86_split_ashl): Update for renamed
20997         x86_shift<mode>_adj_{1,2}.
20998         (ix86_split_ashr): Ditto.
20999         (ix86_split_lshr): Ditto.
21000
21001 2010-04-09  Richard Guenther  <rguenther@suse.de>
21002
21003         * target.h (builtin_conversion): Pass in input and output types.
21004         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
21005         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
21006         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
21007         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
21008
21009         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
21010         Handle AVX modes.
21011         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
21012
21013 2010-04-09  Richard Guenther  <rguenther@suse.de>
21014
21015         PR target/43152
21016         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
21017
21018 2010-04-09  Richard Guenther  <rguenther@suse.de>
21019
21020         * tree-vectorizer.h (struct _stmt_vec_info): Document
21021         that vectype is the type of the LHS.
21022         (supportable_widening_operation, supportable_narrowing_operation):
21023         Get both input and output vector types as arguments.
21024         (vect_is_simple_use_1): Declare.
21025         (get_same_sized_vectype): Likewise.
21026         * tree-vect-loop.c (vect_determine_vectorization_factor):
21027         Set STMT_VINFO_VECTYPE to the vector type of the def.
21028         (vectorizable_reduction): Adjust.
21029         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
21030         Adjust.  Specify the output vector type.
21031         (vect_pattern_recog_1): Adjust.
21032         * tree-vect-stmts.c (get_same_sized_vectype): New function.
21033         (vectorizable_call): Adjust.
21034         (vectorizable_conversion): Likewise.
21035         (vectorizable_operation): Likewise.
21036         (vectorizable_type_demotion): Likewise.
21037         (vectorizable_type_promotion): Likewise.
21038         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
21039         the def.
21040         (vect_is_simple_use_1): New function.
21041         (supportable_widening_operation): Get both input and output
21042         vector types.
21043         (supportable_narrowing_operation): Likewise.
21044         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
21045
21046 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
21047
21048         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
21049         __thiscall and _thiscall as predefined macros.
21050         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
21051         thiscall attribute handling.
21052         (ix86_comp_type_attributes): Likewise.
21053         (ix86_function_regparm): Likewise.
21054         (ix86_return_pops_args): Likewise.
21055         (init_cumulative_args): Likewise.
21056         (find_drap_reg): Likewise.
21057         (ix86_static_chain): Likewise.
21058         (x86_this_parameter): Likewise.
21059         (x86_output_mi_thunk): Likewise.
21060         (ix86_attribute_table): Add description for thiscall attribute.
21061         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
21062         * doc/extend.texi: Add documentation for thiscall.
21063
21064 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21065
21066         PR c++/28584
21067         * c.opt (Wint-to-pointer-cast): Available in C++.
21068         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
21069
21070 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
21071
21072         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
21073         * calls.c (expand_call): Pass the function type to aggregate_value_p.
21074         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
21075         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
21076         function type instead.  Reorder and simplify checks.
21077
21078         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
21079
21080 2010-04-08  Jing Yu  <jingyu@google.com>
21081             Zdenek Dvorak  <ook@ucw.cz>
21082
21083         PR tree-optimization/42720
21084         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
21085         loop unswitch conditions here from ...
21086         (tree_unswitch_single_loop): ... here.
21087
21088 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
21089
21090         * tree-if-conv.c: Fix comments and simplify logic.
21091
21092 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
21093
21094         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
21095         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
21096         (main_tree_if_conversion): Update call to tree_if_conversion.
21097
21098 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21099
21100         PR 42485
21101         * doc/invoke.texi (-b,-V): Delete.
21102         * doc/tm.texi: Do not mention -b.
21103         * gcc.c (display_help): Delete -b and -V.
21104         (process_command): Delete -b and -V.
21105         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
21106
21107 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
21108             Wolfgang Gellerich  <gellerich@de.ibm.com>
21109
21110         Implement target hook for loop unrolling
21111         * target.h (loop_unroll_adjust): Add a new target hook function.
21112         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
21113         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
21114         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
21115         (s390_loop_unroll_adjust): Implement the new target hook for s390.
21116         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
21117         target hook.
21118         (decide_unroll_stupid): Likewise.
21119
21120 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21121
21122         PR target/43643
21123         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
21124
21125 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21126
21127         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
21128         (Specific, *-*-solaris2*): Likewise.
21129         Don't prefer Sun as over GNU as.
21130
21131 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
21132
21133         * config/s390/s390.c (override_options): Adjust the z10 defaults
21134         for max-unroll-times, max-completely-peeled-insns
21135         and max-completely-peel-times.
21136
21137 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21138
21139         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
21140         instructions for z10.
21141         (s390_expand_setmem): Likewise.
21142         (s390_expand_cmpmem): Likewise.
21143
21144 2010-04-08  Richard Guenther  <rguenther@suse.de>
21145
21146         PR tree-optimization/43679
21147         * tree-ssa-pre.c (eliminate): Only propagate copies.
21148
21149 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
21150
21151         PR bootstrap/43681
21152         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
21153         set but not used variable warning.
21154
21155 2010-04-08  Wei Guozhi  <carrot@google.com>
21156
21157         PR target/41653
21158         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
21159         (arm_size_rtx_costs): Call the new function when optimized for size.
21160
21161 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
21162
21163         PR debug/43670
21164         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
21165         op0 is not a MEM, just return NULL instead of assertion
21166         failure.
21167         (discover_nonconstant_array_refs): Don't walk debug stmts.
21168
21169 2010-04-08  Doug Kwan  <dougkwan@google.com>
21170
21171         * configure.ac: Recognize gold and do not use its version number
21172         to test ld features.
21173         * configure: Regenerate.
21174
21175 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
21176
21177         PR middle-end/40815
21178         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
21179         (negate_value): Move code to push elements to broken_up_substracts ...
21180         (eliminate_plus_minus_pair): ... here.  Push operands that have no
21181         negative pair to plus_negates.
21182         (repropagate_negates, init_reassoc, fini_reassoc): Update.
21183
21184 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21185
21186         * doc/install.texi (Configuration): Move description of
21187         --enable-lto, --with-libelf*, --enable-gold from Java section to
21188         general section.
21189
21190         * doc/generic.texi (Working with declarations)
21191         (Function Properties, C and C++ Trees): Fix typos.
21192         * doc/sourcebuild.texi (Top Level): Likewise.
21193
21194 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
21195
21196         PR c/18624
21197         * tree.h (DECL_READ_P): Define.
21198         (struct tree_decl_common): Add decl_read_flag.
21199         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
21200         a set but not used warning.
21201         (merge_decls): Merge DECL_READ_P flag.
21202         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
21203         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
21204         * c-common.c (handle_used_attribute, handle_unused_attribute):
21205         Likewise.
21206         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
21207         New prototypes.
21208         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
21209         New functions.
21210         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
21211         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
21212         c_parser_binary_expression, c_parser_cast_expression,
21213         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
21214         Call default_function_array_read_conversion instead of
21215         default_function_array_conversion where needed.
21216         (c_parser_unary_expression, c_parser_conditional_expression,
21217         c_parser_postfix_expression_after_primary, c_parser_initelt):
21218         Likewise.  Call mark_exp_read where needed.
21219         (c_parser_statement_after_labels, c_parser_asm_operands,
21220         c_parser_typeof_specifier, c_parser_sizeof_expression,
21221         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
21222         where needed.
21223         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
21224         New.
21225         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
21226         (warn_unused_but_set_parameter): Default to warn_unused
21227         && extra_warnings.
21228         * doc/invoke.texi: Document -Wunused-but-set-variable and
21229         -Wunused-but-set-parameter.
21230
21231         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
21232         used count variable.
21233         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
21234         when operandN variables aren't used in the body of the expander
21235         or splitter.
21236         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
21237         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
21238         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
21239         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
21240         FOR_EACH_IMM_USE_ON_STMT): Likewise.
21241         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
21242         * tree.c (PROCESS_ARG): Likewise.
21243
21244 2010-04-07  Simon Baldwin  <simonb@google.com>
21245
21246         * diagnostic.h (diagnostic_override_option_index): New macro to
21247         set a diagnostic's option_index.
21248         * c-tree.h (c_cpp_error): Add warning reason argument.
21249         * opts.c (_warning_as_error_callback): New.
21250         (register_warning_as_error_callback): Store callback for
21251         warnings enabled via enable_warning_as_error.
21252         (enable_warning_as_error): Call callback, minor code tidy.
21253         * opts.h (register_warning_as_error_callback): Declare.
21254         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
21255         response to -Werror=.
21256         (c_common_init_options): Register warning_as_error_callback in opts.c.
21257         * common.opt: Add -Wno-cpp option.
21258         * c-common.c (struct reason_option_codes_t): Map cpp warning
21259         reason codes to gcc option indexes.
21260         * (c_option_controlling_cpp_error): New function, lookup the gcc
21261         option index for a cpp warning reason code.
21262         * (c_cpp_error): Add warning reason argument, call
21263         c_option_controlling_cpp_error for diagnostic_override_option_index.
21264         * doc/invoke.texi: Document -Wno-cpp.
21265
21266 2010-04-07  Richard Guenther  <rguenther@suse.de>
21267
21268         * ipa-reference.c (mark_load): Use get_base_address.
21269         (mark_store): Likewise.
21270
21271         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
21272         inserting GIMPLE_NOPs into the IL.
21273         * tree-ssa-structalias.c (get_constraint_for_component_ref):
21274         Explicitly strip handled components and indirect references.
21275
21276         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
21277         folding address expressions.
21278         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
21279         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
21280         operand_equal_p to compare decls.
21281         (ptr_deref_may_alias_decl_p): Likewise.
21282         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
21283         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
21284         Handle reversed comparison ops.
21285         * tree-sra.c (asm_visit_addr): Use get_base_address.
21286         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
21287         * ipa-reference.c (mark_address): Use get_base_address.
21288
21289 2010-04-07  Richard Guenther  <rguenther@suse.de>
21290
21291         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
21292         Propagate constants everywhere.
21293
21294 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
21295
21296         PR debug/43516
21297         * tree.c (MAX_INT_CACHED_PREC): Define.
21298         (nonstandard_integer_type_cache): New array.
21299         (build_nonstandard_integer_type): Cache results for precision
21300         <= MAX_INT_CACHED_PREC.
21301
21302 2010-04-07  Richard Guenther  <rguenther@suse.de>
21303
21304         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
21305         -fargument-noalias-global, -fargument-noalias-anything): Remove.
21306         * common.opt: Likewise.
21307         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
21308         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
21309         (nonoverlapping_memrefs_p): Likewise.
21310         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
21311         * opts.c (common_handle_option): Handle OPT_fargument_alias,
21312         OPT_fargument_noalias, OPT_fargument_noalias_anything and
21313         OPT_fargument_noalias_global for backward compatibility.
21314
21315 2010-04-07  Richard Guenther  <rguenther@suse.de>
21316
21317         PR tree-optimization/43270
21318         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
21319         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
21320         * tree-ssa-pre.c (phi_translate_1): Adjust.
21321         (fully_constant_expression): Split out vn_reference handling to ...
21322         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
21323         Fold reads from constant strings.
21324         (vn_reference_lookup): Handle fully constant references.
21325         (vn_reference_lookup_pieces): Likewise.
21326         * Makefile.in (expmed.o-warn): Add -Wno-error.
21327
21328 2010-04-07  Martin Jambor  <mjambor@suse.cz>
21329
21330         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
21331
21332 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
21333
21334         PR driver/41594
21335         * gcc.c: Add -static-libstdc++ to list of recognized options.
21336
21337 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21338
21339         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
21340
21341 2010-04-07  Richard Guenther  <rguenther@suse.de>
21342
21343         PR middle-end/42617
21344         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
21345         bases build simple mem attributes to retain points-to information.
21346
21347 2010-04-07  Richard Guenther  <rguenther@suse.de>
21348
21349         PR middle-end/42617
21350         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
21351         preserve points-to related information.
21352
21353 2010-04-07  Richard Guenther  <rguenther@suse.de>
21354
21355         PR middle-end/42617
21356         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
21357         discard plain indirect references.
21358         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
21359         * tree.c (tree_nop_conversion): Likewise.
21360
21361 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
21362
21363         PR debug/43628
21364         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
21365
21366 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
21367
21368         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
21369         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
21370
21371 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
21372
21373         * tree-if-conv.c: Fix indentation and comments.
21374
21375 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
21376
21377         * tree-if-conv.c: Sort static functions in topological order.
21378
21379 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
21380
21381         * tree-if-conv.c: Fix indentation and comments.
21382
21383 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21384
21385         PR middle-end/43519
21386         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
21387         lang_hooks.types.type_for_size instead of
21388         build_nonstandard_integer_type.
21389         When converting an unsigned type to signed, double its precision.
21390         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
21391         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
21392         (graphite_create_new_loop_guard): When ub + 1 wraps around,
21393         use lb <= ub.
21394
21395 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21396
21397         PR middle-end/43519
21398         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
21399         POINTER_PLUS_EXPR for pointer types.
21400
21401 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21402
21403         PR middle-end/43519
21404         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
21405         * graphite-clast-to-gimple.c: Include langhooks.h.
21406         (max_signed_precision_type): New.
21407         (max_precision_type): Takes two types as arguments.
21408         (precision_for_value): New.
21409         (precision_for_interval): New.
21410         (gcc_type_for_interval): New.
21411         (gcc_type_for_value): New.
21412         (gcc_type_for_clast_term): New.
21413         (gcc_type_for_clast_red): New.
21414         (gcc_type_for_clast_bin): New.
21415         (gcc_type_for_clast_expr): Split up into several functions.
21416         (gcc_type_for_clast_eq): Rewritten.
21417         (compute_bounds_for_level): New.
21418         (compute_type_for_level_1): New.
21419         (compute_type_for_level): New.
21420         (gcc_type_for_cloog_iv): Removed.
21421         (gcc_type_for_iv_of_clast_loop): Rewritten.
21422         (graphite_create_new_loop): Compute the lower and upper bound types
21423         with gcc_type_for_clast_expr.
21424         (graphite_create_new_loop_guard): Same.
21425         (find_cloog_iv_in_expr): Removed.
21426         (compute_cloog_iv_types_1): Removed.
21427         (compute_cloog_iv_types): Removed.
21428         (gloog): Do not call compute_cloog_iv_types.
21429         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
21430         GBB_CLOOG_IV_TYPES.
21431         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
21432         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
21433         (GBB_CLOOG_IV_TYPES): Removed.
21434
21435 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21436
21437         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
21438         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
21439         (detect_commutative_reduction): Same.
21440
21441 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21442
21443         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
21444         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
21445         argument.
21446         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
21447         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
21448         (rewrite_commutative_reductions_out_of_ssa): Same.
21449         * passes.c (execute_function_todo): Call verify_ssa for every pass
21450         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
21451         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
21452         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
21453         with an extra argument.
21454         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
21455         verify_ssa only when the extra argument is true.
21456         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
21457         with an extra argument.
21458         (tree_transform_and_unroll_loop): Same.
21459
21460 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21461
21462         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
21463         for all the passes of the LNO having LOOP_CLOSED_SSA.
21464         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
21465         * tree-loop-distribution.c (pass_loop_distribution): Same.
21466         * tree-pass.h (TODO_verify_loops): Removed.
21467         * tree-ssa-loop.c (pass_tree_loop_init): Same.
21468         (pass_lim): Same.
21469         (pass_tree_unswitch): Same.
21470         (pass_predcom): Same.
21471         (pass_vectorize): Same.
21472         (pass_linear_transform): Same.
21473         (pass_graphite_transforms): Same.
21474         (pass_iv_canon): Same.
21475         (pass_complete_unroll): Same.
21476         (pass_complete_unrolli): Same.
21477         (pass_parallelize_loops): Same.
21478         (pass_loop_prefetch): Same.
21479         (pass_iv_optimize): Same.
21480
21481 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
21482
21483         PR middle-end/32824
21484         * passes.c (init_optimization_passes): Move pass_lim before
21485         pass_copy_prop and pass_dce_loop.
21486
21487 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
21488
21489         PR target/43667
21490         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
21491         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
21492         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
21493         MULTI_* defines for 4 argument vpermil2p* builtins.
21494
21495 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
21496
21497         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
21498         * config/i386/i386.c (x86_maybe_negate_const_int): New.
21499         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
21500         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
21501         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
21502         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
21503         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
21504         Use x86_maybe_negate_const_int to output insn mnemonic.
21505         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
21506         check from instruction predicate.  Update comments.
21507         * config/i386/sync.md (sync_add<mode>): Use
21508         x86_maybe_negate_const_int to output insn mnemonic.
21509
21510 2010-04-06  Jan Hubicka  <jh@suse.cz>
21511
21512         PR tree-optimization/42906
21513         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
21514         IGNORE_SELF argument.  Set visited_control_parents for fully
21515         processed BBs.
21516         (find_obviously_necessary_stmts): Update call of
21517         mark_control_dependent_edges_necessary.
21518         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
21519
21520 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
21521
21522         * config/i386/i386.md: Remove comment about 'e' and 'E'
21523         operand modifier.
21524
21525 2010-04-06  Richard Guenther  <rguenther@suse.de>
21526
21527         PR tree-optimization/43627
21528         * tree-vrp.c (extract_range_from_unary_expr): Widenings
21529         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
21530         not varying.
21531
21532 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
21533
21534         * BASE-VER: Change to 4.6.0.
21535
21536         PR target/43638
21537         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
21538         handling.
21539
21540 2010-04-06  Richard Guenther  <rguenther@suse.de>
21541
21542         PR middle-end/43661
21543         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
21544
21545 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21546
21547         * doc/invoke.texi (Optimize Options): Document that LTO
21548         won't remove object access purely due to incompatible
21549         declarations.
21550
21551 2010-04-04  Matthias Klose  <doko@ubuntu.com>
21552
21553         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
21554         Initialize variable.
21555
21556 2010-04-03  Richard Guenther  <rguenther@suse.de>
21557
21558         PR middle-end/42509
21559         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
21560         require a non-NULL MEM_OFFSET.
21561
21562 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
21563
21564         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
21565         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
21566         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
21567         config/alpha/predicates.md, config/arm/arm.md,
21568         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
21569         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
21570         config/darwin9.h, config/darwin.c, config/darwin.h,
21571         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
21572         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
21573         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
21574         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
21575         config/mips/mips.md, config/mn10300/mn10300.c,
21576         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
21577         config/rs6000/aix.h, config/rs6000/dfp.md,
21578         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
21579         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
21580         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
21581         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
21582         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
21583         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
21584         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
21585         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
21586         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
21587         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
21588         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
21589         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
21590         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
21591         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
21592         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
21593         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
21594         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
21595         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
21596         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
21597         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
21598         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
21599         opt-functions.awk, opth-gen.awk, params.def, passes.c,
21600         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
21601         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
21602         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
21603         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
21604         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
21605         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
21606         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
21607         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
21608         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
21609         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
21610         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
21611         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
21612         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
21613         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
21614
21615 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21616
21617         PR other/43620
21618         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
21619         * aclocal.m4: Regenerate.
21620
21621 2010-04-02  Richard Guenther  <rguenther@suse.de>
21622
21623         PR tree-optimization/43629
21624         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
21625         if we have seen a constant value.
21626
21627 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
21628
21629         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
21630
21631 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
21632
21633         PR target/43469
21634         * arm.c (legitimize_tls_address): Adjust call to
21635         gen_tls_load_dot_plus_four.
21636         (arm_note_pic_base): New function.
21637         (arm_cannot_copy_insn_p): Use it.
21638         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
21639         constraint.
21640
21641 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21642
21643         PR bootstrap/43531
21644
21645         Revert:
21646         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21647
21648         * Makefile.in ($(out_object_file)): Depend on
21649         gt-$(basename $(notdir $(out_file))).h.
21650
21651 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
21652
21653         * config.gcc (lm32-*-rtems*): Add t-lm32.
21654
21655 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
21656
21657         * config.gcc: Add lm32-*-rtems*.
21658         * config/lm32/rtems.h: New file.
21659
21660 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
21661
21662         PR target/42609
21663         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
21664
21665 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
21666
21667         * dwarf2out.c (output_compilation_unit_header): For
21668         -gdwarf-4 use version 4 instead of version 3.
21669         (output_line_info): For version 4 and above emit additional
21670         maximum ops per insn header field.
21671         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
21672
21673         * dwarf2out.c (is_c_family, is_java): Remove.
21674         (lower_bound_default): New function.
21675         (add_bound_info, gen_descr_array_type_die): Use it.
21676
21677 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
21678
21679         PR debug/43325
21680         * dwarf2out.c (gen_variable_die): Allow debug info for variable
21681         re-declaration when it happens in a function.
21682
21683 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
21684
21685         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
21686         (cgraph_remove_function_insertion_hook): Same.
21687         (cgraph_call_function_insertion_hooks): Same.
21688
21689 2010-04-01  Richard Guenther  <rguenther@suse.de>
21690
21691         PR middle-end/43614
21692         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
21693         and TREE_THIS_VOLATILE.
21694         (copy_ref_info): Likewise.
21695         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
21696         * tree.c (build6_stat): Ignore side-effects of all but arg5
21697         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
21698         TARGET_MEM_REF.
21699
21700 2010-04-01  Richard Guenther  <rguenther@suse.de>
21701
21702         PR tree-optimization/43607
21703         * ipa-type-escape.c (check_call): Do not access non-existing
21704         arguments.
21705
21706 2010-04-01  Richard Guenther  <rguenther@suse.de>
21707
21708         PR middle-end/43602
21709         Revert
21710         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
21711                     Jack Howarth  <howarth@bromo.med.uc.edu>
21712
21713         * tree-profile.c (tree_init_ic_make_global_vars): Make static
21714         variables TLS.
21715
21716 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21717
21718         * doc/install.texi (Prerequisites): Document libelf usability on
21719         IRIX 5/6 and Solaris 2.
21720         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
21721         Update GNU as, GNU ld requirements.
21722         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
21723         Document Sun Studio compiler download.
21724         Update and simplify as, ld recommendations.
21725         (Specific, *-*-solaris2.7): Note obsoletion, removal.
21726
21727 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21728
21729         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
21730         with_tune_32 to pentium4.
21731
21732 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
21733
21734         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
21735
21736 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21737
21738         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
21739         obsoletion, removal.
21740         Update IDO URL.
21741         Document GNU as requirement.
21742         Update configure requirements.
21743         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
21744         Recomment IRIX 6.5.18+.
21745         Document IDF/IDL requirement.
21746         Document GNU as requirement.
21747         Document GNU ld bootstrap failure.
21748         Remove freeware.sgi.com reference.
21749
21750 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21751
21752         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
21753         UNIX V4.0, V5.0 obsoletion, removal.
21754         Remove --with-gc=simple reference.
21755         Update VM requirements during bootstrap.
21756         Remove -oldas bootstrap description.
21757         Update binutils reference.
21758         Remove comparison failure note.
21759
21760 2010-03-31  Richard Guenther  <rguenther@suse.de>
21761             Zdenek Dvorak  <ook@ucw.cz>
21762             Sebastian Pop  <sebastian.pop@amd.com>
21763
21764         PR middle-end/43464
21765         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
21766         with multiple arguments.
21767         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
21768
21769 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21770
21771         * graphite-dependences.c (print_pddr): Call print_pdr with an
21772         extra argument.
21773         * graphite-poly.c (debug_pdr): Add an extra argument for the
21774         verbosity level.
21775         (print_pdr): Same.
21776         (print_pbb_domain): Same.
21777         (print_pbb): Same.
21778         (print_scop_context): Same.
21779         (print_scop): Same.
21780         (print_cloog): Same.
21781         (debug_pbb_domain): Same.
21782         (debug_pbb): Same.
21783         (print_pdrs): Same.
21784         (debug_pdrs): Same.
21785         (debug_scop_context): Same.
21786         (debug_scop): Same.
21787         (debug_cloog): Same.
21788         (print_scop_params): Same.
21789         (debug_scop_params): Same.
21790         (print_iteration_domain): Same.
21791         (print_iteration_domains): Same.
21792         (debug_iteration_domain): Same.
21793         (debug_iteration_domains): Same.
21794         (print_scattering_function): Same.
21795         (print_scattering_functions): Same.
21796         (debug_scattering_function): Same.
21797         (debug_scattering_functions): Same.
21798         * graphite-poly.h (debug_pdr): Update declaration.
21799         (print_pdr): Same.
21800         (print_pbb_domain): Same.
21801         (print_pbb): Same.
21802         (print_scop_context): Same.
21803         (print_scop): Same.
21804         (print_cloog): Same.
21805         (debug_pbb_domain): Same.
21806         (debug_pbb): Same.
21807         (print_pdrs): Same.
21808         (debug_pdrs): Same.
21809         (debug_scop_context): Same.
21810         (debug_scop): Same.
21811         (debug_cloog): Same.
21812         (print_scop_params): Same.
21813         (debug_scop_params): Same.
21814         (print_iteration_domain): Same.
21815         (print_iteration_domains): Same.
21816         (debug_iteration_domain): Same.
21817         (debug_iteration_domains): Same.
21818         (print_scattering_function): Same.
21819         (print_scattering_functions): Same.
21820         (debug_scattering_function): Same.
21821         (debug_scattering_functions): Same.
21822
21823 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21824
21825         * graphite-poly.c (print_scattering_function_1): New.
21826         (print_scattering_function): Call it.
21827         (print_scop_params): Remove spaces at the end of lines.
21828         (print_cloog): New.
21829         (debug_cloog): New.
21830         * graphite-poly.h (print_cloog): Declared.
21831         (debug_cloog): Declared.
21832
21833 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21834
21835         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
21836         in loop->header.
21837         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
21838         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
21839         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
21840         to switch between adding the IV bump in loop->latch or in loop->header.
21841
21842 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21843
21844         * graphite-poly.c (print_scattering_function): Pretty print following
21845         the scoplib format.
21846         (print_pdr): Same.
21847         (print_pbb_domain): Same.
21848         (dump_gbb_cases): Same.
21849         (dump_gbb_conditions): Same.
21850         (print_pdrs): Same.
21851         (print_pbb): Same.
21852         (print_scop_params): Same.
21853         (print_scop_context): Same.
21854         (print_scop): Same.
21855         (print_pbb_body): New.
21856         (lst_indent_to): New.
21857         (print_lst): Start new lines with a #.
21858         * graphite-poly.h (pbb_bb): New.
21859         (pbb_index): Use pbb_bb.
21860         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
21861         disjuncts.
21862         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
21863
21864 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
21865
21866         * dwarf2out.c (size_of_die): For -gdwarf-4 use
21867         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
21868         and 0 instead of 1 for dw_val_class_flag.
21869         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
21870         dw_val_class_range_list, dw_val_class_loc_list,
21871         dw_val_class_lineptr and dw_val_class_macptr, use
21872         DW_FORM_flag_present for dw_val_class_flag and
21873         DW_FORM_exprloc for dw_val_class_loc.
21874         (output_die): For -gdwarf-4 print dw_val_class_loc
21875         size as uleb128 instead of 1 or 2 bytes and don't print
21876         anything for dw_val_class_flag.
21877
21878         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
21879         instead of cselib_lookup following by tweaking locs->setting_insn.
21880
21881         PR bootstrap/43596
21882         * cselib.c (cselib_process_insn): Clear cselib_current_insn
21883         even before returning from label, setjmp call or volatile asm
21884         handling.
21885
21886 2010-03-31  Richard Guenther  <rguenther@suse.de>
21887
21888         PR middle-end/43600
21889         * cgraphunit.c (cgraph_output_in_order): Do not allocate
21890         temporary data on stack.
21891
21892 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21893
21894         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
21895         (PUSHSECTION_ASM_OP): Remove.
21896         (POPSECTION_ASM_OP): Remove.
21897         (PUSHSECTION_FORMAT): Remove.
21898         * config/sol2.h (PUSHSECTION_FORMAT): Define.
21899         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
21900         * config/sol2.c (solaris_output_init_fini): Use it.
21901
21902 2010-03-31  Jie Zhang  <jie@codesourcery.com>
21903
21904         PR 43574
21905         * opt-functions.awk (var_type_struct): Use signed char type
21906         for simple variables.
21907
21908 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21909
21910         * config/sol2.c: Include output.h.
21911         (solaris_assemble_visibility): New function.
21912         * config/t-sol2 (sol2.o): Add output.h dependency.
21913         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
21914         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
21915         Redefine.
21916
21917 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
21918
21919         PR target/43580
21920         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
21921         V2SImode or XFmode on PRE_DEC.
21922
21923         PR debug/43557
21924         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
21925         BLKmode.
21926
21927 2010-03-31  Jie Zhang  <jie@codesourcery.com>
21928
21929         PR 43562
21930         * reload.h (caller_save_initialized_p): Declare.
21931         * toplev.c (backend_init_target): Don't call
21932         init_caller_save but set caller_save_initialized_p to false.
21933         * caller-save.c (caller_save_initialized_p): Define.
21934         (init_caller_save): Check caller_save_initialized_p.
21935         * ira.c (ira): Call init_caller_save if flag_caller_saves.
21936
21937 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21938
21939         PR target/39048
21940         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
21941         and soft-fp/t-softfp to tmake_file.
21942         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
21943         (LIBGCC2_TF_CEXT): Define.
21944         (TF_SIZE): Define.
21945
21946 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
21947
21948         PR debug/42977
21949         * cselib.c (n_useless_values): Document handling of debug locs.
21950         (n_useless_debug_values, n_debug_values): New variables.
21951         (new_elt_loc_list): Don't add to debug values, keep count.
21952         (promote_debug_loc): New.
21953         (cselib_reset_table): Zero new variables.
21954         (entry_and_rtx_equal_p): Promote debug locs.
21955         (discard_useless_locs): Increment n_useless_debug_values for
21956         debug values.
21957         (remove_useless_values): Adjust n_useless_values and n_debug_values
21958         with n_useless_debug_values.
21959         (add_mem_for_addr): Promote debug locs.
21960         (cselib_lookup_mem): Likewise.
21961         (cselib_lookup_addr): Renamed to...
21962         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
21963         (cselib_log_lookup): ... this.  Turn into...
21964         (cselib_lookup_addr): ... new wrapper.
21965         (cselib_lookup_from_insn): New.
21966         (cselib_invalidate_regno): Increment n_useless_debug_values for
21967         debug values.
21968         (cselib_invalidate_mem): Likewise.
21969         (cselib_process_insn): Take n_deleted and n_debug_values into
21970         account to guard remove_useless_value call.
21971         (cselib_finish): Zero n_useless_debug_values.
21972         * cselib.h (cselib_lookup_from_insn): Declare.
21973         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
21974         (sched_analyze_2): Likewise.
21975
21976 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
21977
21978         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
21979         functions.
21980         (adjust_mems): Replace narrowing SUBREG of expression containing
21981         just PLUS, MINUS, MULT and ASHIFT of registers and constants
21982         with operations in the narrower mode.
21983
21984         PR debug/43593
21985         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
21986         regs_invalidated_by_call instead all call_used_reg_set registers.
21987
21988 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
21989
21990         PR middle-end/43430
21991         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
21992         pointer comparisons with types_compatible_p.
21993         * tree-vect-stmts.c (vectorizable_call): Same.
21994         (vectorizable_condition): Same.
21995
21996 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21997
21998         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
21999         stack check if the mask would be zero.
22000
22001 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
22002             Jack Howarth  <howarth@bromo.med.uc.edu>
22003
22004         * tree-profile.c (tree_init_ic_make_global_vars): Make static
22005         variables TLS.
22006
22007 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
22008
22009         PR other/25232
22010         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
22011         and __unordtf2.
22012         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
22013         Include ___unordxf2 and ___unordtf2.
22014         * config/i386/libgcc-glibc.ver: Do not define inheritance from
22015         GCC_4.4.0 here.
22016
22017 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
22018
22019         * config/lm32/t-lm32: New file.
22020         * config.gcc: Use the above file when targetting lm32.
22021
22022 2010-03-28  Duncan Sands  <baldrick@free.fr>
22023
22024         * Makefile.in (PLUGIN_HEADERS): Add except.h.
22025
22026 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
22027
22028         PR middle-end/43431
22029         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
22030         Improve vectorization cost model diagnostic.
22031
22032 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
22033
22034         PR middle-end/43436
22035         * tree-vect-data-refs.c (vect_analyze_data_refs): When
22036         compute_data_dependences_for_loop returns false, early exit
22037         and output an extra diagnostic for the failed data reference
22038         analysis.
22039
22040 2010-03-29  Richard Guenther  <rguenther@suse.de>
22041
22042         PR tree-optimization/43560
22043         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
22044         (can_sm_ref_p): Treat stores to readonly locations as trapping.
22045
22046 2010-03-29  Jie Zhang  <jie@codesourcery.com>
22047
22048         PR 43564
22049         * toplev.c (process_options): Set optimization_default_node
22050         and optimization_current_node.
22051         * opts.c (decode_options): Don't set optimization_default_node
22052         and optimization_current_node.
22053
22054 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
22055
22056         * config/rtems.h: Abandon -qrtems_debug.
22057
22058 2010-03-28  Jan Hubicka  <jh@suse.cz>
22059
22060         PR tree-optimization/43505
22061         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
22062         map should not be copied.
22063
22064 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22065
22066         PR middle-end/41674
22067         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
22068         cdtors, set DECL_PRESERVE_P.
22069         * ipa.c (cgraph_externally_visible_p): Return true if declaration
22070         should be preseved.
22071
22072 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
22073
22074         PR tree-optimization/43528
22075         * stor-layout.c (place_field): Check that constant fits into
22076         unsigned HWI when skipping calculation of MS bitfield layout.
22077
22078 2010-03-27  Jan Hubicka  <jh@suse.cz>
22079
22080         PR middle-end/43391
22081         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
22082         notice_global_symbol work.
22083
22084 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
22085
22086         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
22087         instead of dwarf2out_decl.
22088         (struct var_loc_node): Remove section_label field.
22089         (dwarf2out_function_decl): New function.
22090         (dwarf2out_var_location): Don't set section_label field.
22091         (dwarf2out_begin_function): Don't empty decl_loc_table here.
22092
22093 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
22094
22095         PR tree-optimization/43544
22096         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
22097         First argument for builtin vectorized function hook is now a
22098         tree to be able to distinguish between machine specific and
22099         standard builtins.
22100         * targhooks.c (default_builtin_vectorized_function): Ditto.
22101         * targhooks.h (default_builtin_vectorized_function): Ditto.
22102         * target.h (struct gcc_target): Ditto.
22103         * tree-vect-stmts.c (vectorizable_function): Ditto.
22104         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
22105         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
22106         Ditto.
22107
22108 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
22109
22110         PR c/43381
22111         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
22112         nested binding iff it is a FUNCTION_DECL.
22113         (store_parm_decls_newstyle): Pass nested=true to bind for
22114         FUNCTION_DECLs amongst parameters.
22115
22116 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
22117
22118         * var-tracking.c (vt_expand_loc_callback): Don't run
22119         cselib_expand_value_rtx_cb in dummy mode if
22120         cselib_dummy_expand_value_rtx_cb returned false.
22121
22122         * var-tracking.c (emit_note_insn_var_location): For one part
22123         notes with offset 0, don't add EXPR_LIST around the location.
22124         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
22125         add_location_or_const_value_attribute): Adjust for that change.
22126
22127         PR debug/43540
22128         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
22129         into first operand and location into second.
22130         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
22131         dw_cfi_oprnd_loc for DW_CFA_expression.
22132         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
22133         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
22134         assume first argument is regnum and second argument is location.
22135
22136 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
22137
22138         PR target/42113
22139         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
22140         of scratch register to DImode.  Split to DImode comparison operator.
22141         Use SImode subreg of scratch register in the multiplication.
22142         (*cmp_sadd_sidi): Ditto.
22143         (*cmp_ssub_si): Ditto.
22144         (*cmp_ssub_sidi): Ditto.
22145
22146 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
22147
22148         PR target/43524
22149         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
22150         Remove invalid assert and wrong comment.
22151
22152 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
22153
22154         PR debug/43516
22155         * flags.h (final_insns_dump_p): New extern.
22156         * final.c (final_insns_dump_p): New variable.
22157         (rest_of_clean_state): Set it before -fdump-final-insns=
22158         dumping, clear afterwards.
22159         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
22160         MEM_ALIAS_SET on MEMs.
22161
22162 2010-03-26  David S. Miller  <davem@davemloft.net>
22163
22164         * configure.ac: Fix sparc GOTDATA_OP bug check.
22165         * configure: Rebuild.
22166
22167 2010-03-26  Alan Modra  <amodra@gmail.com>
22168
22169         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
22170
22171 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22172
22173         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
22174         TLS_SECTION_ASM_FLAG.
22175
22176 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
22177
22178         PR bootstrap/43511
22179         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
22180         Clear first_function_block_is_cold.
22181
22182         PR c/43385
22183         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
22184         argument if the argument is truth_value_p.
22185
22186 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
22187
22188         * config/rs6000/constraints.md: Update copyright year for my changes.
22189
22190         PR target/43484
22191         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
22192         used in reg+reg addressing, swap registers.
22193
22194 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
22195
22196         PR debug/43293
22197         * target.h (struct gcc_target): Add code_end hook.
22198         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
22199         if not yet defined.
22200         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
22201         * toplev.c (compile_file): Call targetm.asm_out.code_end
22202         hook before unwind info/debug info output.
22203         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
22204         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
22205         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
22206         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
22207         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
22208         * config/i386/i386.c (ix86_file_end): Renamed to...
22209         (ix86_code_end): ... this.  Make static.  Don't call
22210         file_end_indicate_exec_stack.  Emit unwind info using
22211         final_start_function/final_end_function.
22212         (darwin_x86_file_end): Remove.
22213         (TARGET_ASM_CODE_END): Define.
22214         * config/i386/i386.h (TARGET_ASM_FILE_END,
22215         NEED_INDICATE_EXEC_STACK): Don't define.
22216         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
22217         (TARGET_ASM_FILE_END): Define to darwin_file_end.
22218         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
22219         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
22220
22221         PR target/43498
22222         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
22223         at the beginning and final_end_function at the end.
22224         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
22225
22226 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22227
22228         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
22229         and Sun as TLS syntax.
22230         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
22231         * configure: Regenerate.
22232         * config.in: Regenerate.
22233         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
22234         (default_elf_asm_named_section): Use it.
22235         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
22236         (i386_output_dwarf_dtprel): Likewise.
22237         (output_addr_const_extra): Likewise.
22238         (output_pic_addr_const): Lowercase @GOTTPOFF.
22239         (output_addr_const_extra): Likewise.
22240         (output_pic_addr_const): Lowercase @GOTNTPOFF.
22241         (output_addr_const_extra): Likewise.
22242         (output_pic_addr_const): Lowercase @INDNTPOFF.
22243         (output_addr_const_extra): Likewise.
22244         (output_pic_addr_const): Lowercase @NTPOFF.
22245         (output_addr_const_extra): Likewise.
22246         (output_pic_addr_const): Lowercase @TPOFF.
22247         (output_addr_const_extra): Likewise.
22248         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
22249         (*tls_global_dynamic_64): Likewise.
22250         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
22251         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
22252
22253         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
22254         (ASM_OUTPUT_TLS_COMMON): Use it.
22255         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
22256
22257         PR target/38118
22258         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
22259         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22260         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
22261         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
22262         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
22263         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
22264
22265 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22266
22267         * config/i386/i386.c (override_options): Don't accept
22268         -mtls-dialect=sun any longer.
22269         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
22270         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
22271         (*tls_local_dynamic_base_32_sun): Likewise.
22272         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
22273
22274 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
22275
22276         PR debug/43508
22277         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
22278         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
22279
22280         PR debug/43479
22281         * ira.c (adjust_cleared_regs): New function.
22282         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
22283
22284         PR debug/19192
22285         PR debug/43479
22286         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
22287         from gimple_block.
22288         * expr.c (expand_expr_real): Restore previous
22289         curr_insn_source_location and curr_insn_block after
22290         expand_expr_real_1 call.
22291         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
22292         instead of expand_expr_real_1.
22293
22294 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
22295
22296         PR rtl-optimization/43413
22297         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
22298         hard regs too.
22299
22300 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
22301
22302         PR target/43348
22303         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
22304         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
22305
22306 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
22307
22308         * config/i386/i386.c (ix86_target_string): Add -mfma.
22309         Fix a typo in comment.
22310
22311 2010-03-22  Mike Stump  <mikestump@comcast.net>
22312
22313         PR target/23071
22314         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
22315         Don't overly align based upon packed packed fields.
22316
22317 2010-03-22  Jason Merrill  <jason@redhat.com>
22318
22319         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
22320         Use () rather than [], and move before the element type.
22321
22322 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22323
22324         * doc/configfiles.texi (Configuration Files): Removed
22325         fixinc/Makefile*, intl/Makefile.*.
22326         * doc/makefile.texi: Fixed markup. Abstract from version
22327         control system used.
22328         (Makefile): Removed obsolete java/parse.y example.
22329         * doc/sourcebuild.texi: Likewise.
22330         (Top Level): Added config, gnattools, libdecnumber, libgcc,
22331         libgomp, libssp.  Removed fastjar.
22332         (Miscellaneous Docs): Clarify location.
22333         Added COPYING3, COPYING3.LIB.
22334         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
22335
22336 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22337
22338         PR target/38085
22339         * config/i386/i386.c (x86_function_profiler)
22340         [!NO_PROFILE_COUNTERS]: Fix typo.
22341         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
22342         instead of callq.
22343
22344 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
22345             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22346
22347         * doc/sourcebuild.texi (Test Directives): Split into six
22348         subsections, with most of the current text in new subsections
22349         Directives, Selectors, and Final Actions.
22350         (Directives): Split list of test directives into multiple
22351         subsubsections.
22352         (Selectors): Describe use and syntax of selectors.
22353         (Effective-Target Keywords): Describe all existing keywords.
22354         (Add Options): Describe features for dg-add-options.
22355         (Require Support): Describe variants of dg-require-support.
22356         (Final Actions): Describe commands to use in dg-final.
22357
22358 2010-03-22  Michael Matz  <matz@suse.de>
22359
22360         PR middle-end/43475
22361         * recog.c (validate_replace_rtx_group): Replace also in
22362         REG_EQUAL and REG_EQUIV notes.
22363
22364 2010-03-22  Richard Guenther  <rguenther@suse.de>
22365
22366         PR tree-optimization/43390
22367         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
22368         sure vector extracts are type correct.
22369
22370 2010-03-22  Richard Guenther  <rguenther@suse.de>
22371
22372         PR middle-end/40106
22373         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
22374         x * sqrt (x) even when optimizing for size if the target
22375         has native support for sqrt.
22376
22377 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
22378
22379         * varasm.c (make_decl_rtl_for_debug): Also clear
22380         flag_mudflap for the duration of make_decl_rtl call.
22381
22382         PR debug/43443
22383         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
22384         locs from preserved VALUEs.
22385
22386 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22387
22388         PR middle-end/42718
22389         * pa.md (movmemsi): Set align to one if zero.
22390         (movmemdi): Likewise.
22391
22392 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
22393
22394         PR target/42321
22395         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
22396         with their corresponding prologue pushes.
22397
22398 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
22399
22400         PR target/43156
22401         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
22402         at the begining or end.
22403         (spu_expand_epilogue): Likewise.
22404
22405 2010-03-20  Richard Guenther  <rguenther@suse.de>
22406
22407         PR rtl-optimization/43438
22408         * combine.c (make_extraction): Properly zero-/sign-extend an
22409         extraction of the low part of a CONST_INT.  Also handle
22410         CONST_DOUBLE.
22411
22412 2010-03-19  Mike Stump  <mikestump@comcast.net>
22413
22414         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
22415         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
22416         (override_options): Use SUBTARGET32_DEFAULT_CPU.
22417
22418 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
22419
22420         PR c/43211
22421         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
22422         an error.
22423
22424 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
22425
22426         PR rtl-optimization/42258
22427         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
22428         use that may match DEF.
22429
22430         PR target/40697
22431         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
22432         the cost of loading the constant rather than assuming
22433         COSTS_N_INSNS (1).
22434         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
22435         outer code is AND, do the same tests as the andsi3 expander and
22436         return COSTS_N_INSNS (1) if and is cheap.
22437
22438         * optabs.c (avoid_expensive_constant): Fix formatting.
22439
22440 2010-03-19  Michael Matz  <matz@suse.de>
22441
22442         PR c++/43116
22443         * attribs.c (decl_attributes): When rebuilding a function pointer
22444         type use the same qualifiers as the original pointer type.
22445
22446 2010-03-19  Martin Jambor  <mjambor@suse.cz>
22447
22448         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
22449         and is_gimple_ip_invariant_address.
22450
22451 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22452
22453         Revert
22454         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22455
22456         * config/arm/arm.c (arm_override_options): Turn off
22457         flag_dwarf2_cfi_asm for AAPCS variants.
22458
22459 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22460
22461         PR target/43399
22462         * config/arm/arm.c (emit_multi_reg_push): Update comments.
22463         Use PRE_MODIFY instead of PRE_DEC.
22464         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
22465         (vfp_emit_fstmd): Likewise.
22466
22467 2010-03-19  Michael Matz  <matz@suse.de>
22468
22469         PR target/43305
22470         * builtins.c (expand_builtin_interclass_mathfn,
22471         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
22472         if that fails.
22473
22474 2010-03-19  Richard Guenther  <rguenther@suse.de>
22475
22476         PR tree-optimization/43415
22477         * tree-ssa-pre.c (phi_translate): Split out worker to ...
22478         (phi_translate_1): ... this.
22479         (phi_translate): Move all caching here.  Cache all NARY
22480         and REFERENCE translations.
22481
22482 2010-03-19  David S. Miller  <davem@davemloft.net>
22483
22484         With help from Eric Botcazou.
22485         * config/sparc/sparc.c: Include dwarf2out.h.
22486         (emit_pic_helper): Delete.
22487         (pic_helper_symbol_name): Delete.
22488         (pic_helper_emitted_p): Delete.
22489         (pic_helper_needed): New.
22490         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
22491         (get_pc_thunk_name): New.
22492         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
22493         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
22494         Set pic_helper_needed to true.  Don't call emit_pic_helper.
22495         (sparc_expand_prologue): Update load_pic_register call.
22496         (sparc_output_mi_thunk): Likewise.
22497         (sparc_file_end): Emit a hidden comdat symbol for the PIC
22498         thunk if possible.  Output CFI information as needed.
22499
22500 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
22501             Jack Howarth  <howarth@bromo.med.uc.edu>
22502
22503         PR target/36399
22504         * config/i386/i386.h: Fix ABI on darwin x86-32.
22505
22506 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
22507
22508         * tree.h: Declare make_decl_rtl_for_debug.
22509         * varasm.c (make_decl_rtl_for_debug): New.
22510         * dwarf2out.c (rtl_for_decl_location): Call it.
22511         * cfgexpand.c (expand_debug_expr): Call it.
22512
22513 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
22514
22515         PR bootstrap/43399
22516         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
22517         mem_mode.
22518
22519         PR bootstrap/43403
22520         * var-tracking.c (vt_init_cfa_base): Do nothing if
22521         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
22522
22523 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
22524
22525         PR debug/42873
22526         * var-tracking.c (canonicalize_vars_star): New.
22527         (dataflow_post_merge_adjust): Use it.
22528
22529 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
22530
22531         PR debug/43058
22532         * var-tracking.c (non_suitable_const): New function.
22533         (add_uses): For DEBUG_INSNs with constants, don't record any
22534         value, instead just the constant value itself.
22535         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
22536         is not VAR_LOC_UNKNOWN_P, set var to the constant.
22537         (emit_notes_in_bb): Likewise.
22538         (emit_note_insn_var_location): For onepart variables if
22539         cur_loc is a VOIDmode constant, use DECL_MODE.
22540
22541 2010-03-18  Martin Jambor  <mjambor@suse.cz>
22542
22543         PR middle-end/42450
22544         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
22545         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
22546         all non-clones.  Moved call redirection...
22547         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
22548         (cgraph_materialize_all_clones): Dispose of all
22549         combined_args_to_skip bitmaps.
22550         (verify_cgraph_node): Do not check for edges pointing to wrong
22551         nodes in inline clones.
22552         * tree-inline.c (copy_bb): Call
22553         cgraph_redirect_edge_call_stmt_to_callee.
22554         * ipa.c (cgraph_remove_unreachable_nodes): Call
22555         cgraph_node_remove_callees even when there are used clones.
22556
22557 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
22558
22559         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
22560
22561 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
22562
22563         PR target/43383
22564         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
22565         for 32bit.
22566
22567 2010-03-18  Michael Matz  <matz@suse.de>
22568
22569         PR middle-end/43419
22570         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
22571         into sqrt(x) if we need to preserve signed zeros.
22572
22573 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
22574             Eric Botcazou  <ebotcazou@adacore.com>
22575
22576         PR rtl-optimization/43360
22577         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
22578         note if we don't know its invariant status.
22579
22580 2010-03-18  Michael Matz  <matz@suse.de>
22581
22582         PR tree-optimization/43402
22583         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
22584         PHI chains of ssa names registered for update.
22585
22586 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
22587
22588         PR target/42427
22589         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
22590         non-offsettable and pre_modify update addressing.
22591         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
22592         and "2" alternatives "#".
22593         (*movdd_softfloat32): Make all alternatives "#";
22594         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
22595         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
22596         (*movdf_softfloat32): Make all alternatives "#";
22597         (movdi): Use the new DIFD mode iterator to create a common splitter
22598         for movdi, movdf and movdd patterns.
22599
22600 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
22601
22602         * common.opt (dumpdir): Remove redundant tab.
22603
22604 2010-03-17  Martin Jambor  <mjambor@suse.cz>
22605
22606         PR tree-optimization/43347
22607         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
22608         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
22609
22610 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
22611
22612         PR rtl-optimization/42216
22613         * regrename.c (create_new_chain): New function, broken out from...
22614         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
22615         appending a use to an empty chain.
22616         (build_def_use): Remove previous changes that convert OP_INOUT to
22617         OP_OUT operands; instead detect the case where an OP_INOUT operand
22618         uses a previously untracked register and create an empty chain for it.
22619
22620 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22621
22622         * doc/extend.texi (Function Attributes): Rewrite unfinished
22623         sentence in ms_abi documentation.
22624
22625 2010-03-17  Alan Modra  <amodra@gmail.com>
22626
22627         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
22628         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
22629         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
22630         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
22631
22632 2010-03-16  Richard Henderson  <rth@redhat.com>
22633
22634         PR middle-end/43365
22635         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
22636         (lower_try_finally): Save and restore eh_seq around the expansion
22637         of the try-finally.
22638
22639 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
22640
22641         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
22642         statements before splitting block.
22643
22644 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22645
22646         * doc/sourcebuild.texi (Testsuites): Fix markup.
22647         Use pathnames relative to gcc/testsuite.
22648         (Test Directives): Move description of how timeout is determined.
22649         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
22650         (C Tests): Correct gcc.misc-tests directory.
22651         Framework tests now live in gcc.test-framework.
22652
22653 2010-03-16  Richard Guenther  <rguenther@suse.de>
22654
22655         PR middle-end/43379
22656         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
22657         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
22658
22659 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
22660             Alexandre Oliva  <aoliva@redhat.com>
22661
22662         PR tree-optimization/42917
22663         * lambda-code.c (remove_iv): Skip debug statements.
22664         (lambda_loopnest_to_gcc_loopnest): Likewise.
22665         (not_interesting_stmt): Debug statements are not interesting.
22666
22667 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
22668
22669         PR debug/43051
22670         PR debug/43092
22671         * cselib.c (cselib_preserve_constants,
22672         cfa_base_preserved_val): New static variables.
22673         (preserve_only_constants): New function.
22674         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
22675         clear its REG_VALUES.  If cselib_preserve_constants, don't
22676         empty the whole hash table, but preserve there VALUEs with constants,
22677         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
22678         (cselib_preserve_cfa_base_value): New function.
22679         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
22680         (cselib_init): Change argument to int bitfield.  Set
22681         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
22682         is in it.
22683         (cselib_finish): Clear cselib_preserve_constants and
22684         cfa_base_preserved_val.
22685         * cselib.h (enum cselib_record_what): New enum.
22686         (cselib_init): Change argument to int.
22687         (cselib_preserve_cfa_base_value): New prototype.
22688         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
22689         * dse.c (dse_step1): Likewise.
22690         * cfgcleanup.c (thread_jump): Likewise.
22691         * sched-deps.c (sched_analyze): Likewise.
22692         * gcse.c (local_cprop_pass): Likewise.
22693         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
22694         If FN is non-NULL, call the callback always and whenever it returns
22695         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
22696         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
22697         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
22698         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
22699         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
22700         * var-tracking.c: Include recog.h.
22701         (bb_stack_adjust_offset): Remove.
22702         (vt_stack_adjustments): Don't call it, instead just gather the
22703         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
22704         (adjust_stack_reference): Remove.
22705         (compute_cfa_pointer): New function.
22706         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
22707         (struct adjust_mem_data): New type.
22708         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
22709         functions.
22710         (get_address_mode): New function.
22711         (replace_expr_with_values): Use it.
22712         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
22713         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
22714         (adjust_sets): Remove.
22715         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
22716         Use get_address_mode.
22717         (get_adjusted_src): Remove.
22718         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
22719         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
22720         (add_with_sets): Don't call adjust_sets.
22721         (fp_setter, vt_init_cfa_base): New functions.
22722         (vt_initialize): Change return type to bool.  Move most of pool etc.
22723         initialization to the beginning of the function from end.  Pass
22724         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
22725         If !frame_pointer_needed, call vt_stack_adjustment before mos
22726         vector is filled, call vt_init_cfa_base if argp/framep has been
22727         eliminated to sp.  If frame_pointer_needed and argp/framep has
22728         been eliminated to hard frame pointer, set
22729         hard_frame_pointer_adjustment and call vt_init_cfa_base after
22730         encountering fp setter in the prologue.  For MO_ADJUST, call
22731         log_op_type before pusing the op into mos vector, not afterwards.
22732         Call adjust_insn before cselib_process_insn/add_with_sets,
22733         call cancel_changes (0) afterwards.
22734         (variable_tracking_main_1): Adjust for vt_initialize calling
22735         vt_stack_adjustments and returning whether it succeeded or not.
22736
22737 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
22738
22739         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
22740         debug statements.
22741
22742 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
22743
22744         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
22745         has been set.
22746         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
22747         drap_reg has not been set.
22748
22749 2010-03-15  Michael Matz  <matz@suse.de>
22750
22751         PR middle-end/43300
22752         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
22753         use it to expand block copies.
22754         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
22755         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
22756         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
22757
22758 2010-03-15  Richard Guenther  <rguenther@suse.de>
22759
22760         PR tree-optimization/43367
22761         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
22762         elimination check.
22763
22764 2010-03-15  Richard Guenther  <rguenther@suse.de>
22765
22766         PR tree-optimization/43317
22767         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
22768
22769 2010-03-15  Martin Jambor  <mjambor@suse.cz>
22770
22771         PR tree-optimization/43141
22772         * tree-sra.c (create_abstract_origin): New function.
22773         (modify_function): Call create_abstract_origin.
22774
22775 2010-03-15  Chris Demetriou  <cgd@google.com>
22776
22777         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
22778         wasn't copied.
22779
22780 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22781
22782         PR middle-end/43354
22783         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
22784         call insert_out_of_ssa_copy for default definitions.
22785
22786 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22787
22788         * graphite-clast-to-gimple.c (my_long_long): Defined.
22789         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
22790         * graphite-sese-to-poly.c (my_long_long): Defined.
22791         (scop_ivs_can_be_represented): Use it.
22792
22793 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22794
22795         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
22796         graphite-max-bbs-per-function, and loop-block-tile-size.
22797         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
22798         with "maximum".
22799         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
22800
22801 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22802
22803         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
22804         forward declaration.
22805         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
22806         (add_upper_bounds_from_estimated_nit): New.
22807         (build_loop_iteration_domains): Use it.
22808
22809 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22810
22811         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
22812
22813 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22814
22815         PR middle-end/43306
22816         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
22817         should be an INTEGER_CST.  Also handle CASE_CONVERT.
22818
22819 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22820
22821         * graphite.c (graphite_initialize): To bound the number of bbs per
22822         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
22823         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
22824         * doc/invoke.texi: Document it.
22825
22826 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22827
22828         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
22829         * graphite-sese-to-poly.h (build_poly_scop): Same.
22830
22831 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22832
22833         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
22834         the number of parameters in the scop.  Use as an upper bound
22835         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
22836         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
22837         * doc/invoke.texi: Document it.
22838
22839 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
22840
22841         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
22842         * doc/c-tree.texi: Remove.
22843         * doc/generic.texi: Merge c-tree.texi here.
22844         * doc/gccint.texi (Trees): Remove menu entry.
22845         (c-tree.texi): Remove @include.
22846         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
22847         * doc/languages.texi (Reading RTL): Ditto.
22848
22849 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
22850
22851         PR target/42869
22852         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
22853
22854 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22855
22856         PR middle-end/42431
22857         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
22858         code added to work around reload clobbering CONST insns.
22859
22860 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
22861
22862         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
22863         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
22864         (cselib_preserve_only_values): Remove retain argument, don't
22865         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
22866         * cselib.h (cselib_preserve_only_values): Remove retain argument.
22867         * var-tracking.c (micro_operation): Move insn field before union.
22868         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
22869         (struct variable_tracking_info_def): Remove n_mos field, change
22870         mos into a vector of micro_operations.
22871         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
22872         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
22873         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
22874         changing into a vector.
22875         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
22876         come before all other uops generated by add_stores.
22877         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
22878         argument removal.
22879         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
22880         a vector.  Run just one pass over the bbs instead of separate counting
22881         and computation phase.
22882         (vt_finalize): Free VTI (bb)->mos vector instead of array.
22883
22884         PR debug/43329
22885         * tree-inline.c (remap_decls): Put old_var rather than origin_var
22886         into *nonlocalized_list vector.
22887         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
22888         even if origin is non-NULL.
22889         (gen_variable_die): Likewise.
22890         (process_scope_var): Don't change origin.
22891         (gen_decl_die): Likewise.
22892         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
22893         before adding new edges instead of after it, fix moving over
22894         debug stmts.
22895
22896 2010-03-11  David S. Miller  <davem@davemloft.net>
22897
22898         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
22899         of four.
22900         * configure: Rebuild.
22901
22902 2010-03-11  Martin Jambor  <mjambor@suse.cz>
22903
22904         PR tree-optimization/43257
22905         * tree.c (assign_assembler_name_if_neeeded): New function.
22906         (free_lang_data_in_cgraph): Assembler name assignment moved to the
22907         above new function.
22908         * tree.h (assign_assembler_name_if_neeeded): Declare.
22909         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
22910         the function if needed.
22911
22912 2010-03-11  Chris Demetriou  <cgd@google.com>
22913
22914         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
22915         include/stdint-gcc.h, and include/stdint.h world-readable.
22916
22917 2010-03-11  Richard Guenther  <rguenther@suse.de>
22918
22919         PR tree-optimization/43255
22920         * tree-vrp.c (process_assert_insertions_for): Do not insert
22921         asserts for trivial conditions.
22922
22923 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22924
22925         PR tree-optimization/43280
22926         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
22927         generation.  Move calculation of size out of the if branch.
22928         (find_bswap): Modify compare number generation.
22929
22930 2010-03-11  Richard Guenther  <rguenther@suse.de>
22931
22932         PR lto/43200
22933         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
22934         (input_gimple_stmt): Fixup handled component types during
22935         operand read.  Also fix up decls in ADDR_EXPRs.
22936
22937 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
22938
22939         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
22940         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
22941
22942 2010-03-10  Jan Hubicka  <jh@suse.cz>
22943
22944         PR c/43288
22945         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
22946         * varasm.c (get_variable_section): Don't do that here...
22947         (make_decl_rtl): ... and here.
22948         (do_assemble_alias): Produce decl RTL.
22949         (assemble_alias): Likewise.
22950
22951 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
22952
22953         PR debug/43290
22954         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
22955         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
22956         of fde->vdrap_reg.
22957         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
22958         (based_loc_descr): Only express drap or vdrap regno based expressions
22959         using DW_OP_fbreg when not optimizing.
22960         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
22961         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
22962         REG_CFA_SET_VDRAP note.
22963
22964 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
22965
22966         PR tree-optimization/43236
22967         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
22968         error in calculation of base address in reverse iteration case.
22969         (generate_builtin): Take number of latch executions if the statement
22970         is in the latch.
22971
22972 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
22973
22974         PR middle-end/42859
22975         * tree-eh.c: Include pointer-set.h.
22976         (lower_eh_dispatch): Filter out duplicate case labels and
22977         remove the unneeded edge when the label is unused.  Return
22978         true when some edges are removed.
22979         (execute_lower_eh_dispatch): When any lowering resulted in
22980         removing an edge, also delete unreachable blocks.
22981
22982 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
22983
22984         PR bootstrap/43287
22985         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
22986         UNSPEC_MACHOPIC_OFFSET.
22987
22988 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
22989
22990         PR target/43294
22991         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
22992         (m68k_delegitimize_address): New function.
22993
22994 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
22995
22996         PR debug/43299
22997         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
22998
22999         PR debug/43299
23000         * var-tracking.c (adjust_sets): New function.
23001         (count_with_sets, add_with_sets): Use it.
23002         (get_adjusted_src): New inline function.
23003         (add_stores): Use it.
23004
23005         PR debug/43304
23006         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
23007         call cselib_dummy_expand_value_rtx_cb instead of
23008         cselib_expand_value_rtx_cb.
23009
23010         PR debug/43293
23011         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
23012         * config/i386/i386.c: Include debug.h and dwarf2out.h.
23013         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
23014         and .cfi_endproc around the pic thunks.
23015         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
23016         all queued unwind info register saves are saved before the call.
23017         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
23018         considered as sp-=4 for unwind info and the pop as sp+=4 which
23019         also clobbers dest, but doesn't actually restore it.
23020
23021         PR debug/43290
23022         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
23023         RTX_FRAME_RELATED_P.
23024
23025 2010-03-09  Jie Zhang  <jie@codesourcery.com>
23026
23027         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
23028         whitespaces in output template.
23029
23030 2010-03-09  Jie Zhang  <jie@codesourcery.com>
23031
23032         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
23033         out array boundary.
23034
23035 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
23036
23037         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
23038         builtins.exp in a separate job.
23039
23040 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23041
23042         * graphite-sese-to-poly.c (add_param_constraints): Use
23043         lower_bound_in_type and upper_bound_in_type.
23044
23045 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23046
23047         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
23048         instead of unsigned_type_node.
23049
23050 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23051             Reza Yazdani  <reza.yazdani@amd.com>
23052
23053         PR middle-end/43065
23054         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
23055         on pointer type parameters.
23056
23057 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
23058
23059         PR middle-end/42644
23060         PR middle-end/42130
23061         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
23062         handle conversions from pointer to integers.
23063         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
23064         induction variable, to be able to work with code generated by CLooG.
23065         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
23066         (build_poly_scop): Bail out if we cannot codegen a loop.
23067
23068 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
23069
23070         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
23071         code generation with gloog_error.
23072
23073 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23074
23075         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
23076         Call fold_convert on all the returned values.
23077         (expand_scalar_variables_expr): Pass to
23078         expand_scalar_variables_ssa_name the type of the resulting expression.
23079
23080 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23081
23082         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
23083         ppl_min_for_le_pointset.
23084         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
23085         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
23086
23087 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23088
23089         * graphite-dependences.c (map_into_dep_poly): Removed.
23090         (dependence_polyhedron_1): Use combine_context_id_scat.
23091
23092 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23093
23094         * graphite-poly.h (struct poly_scattering): Add layout documentation.
23095         (struct poly_bb): Same.
23096         (combine_context_id_scat): New.
23097
23098 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23099
23100         PR middle-end/42326
23101         * sese.c (name_defined_in_loop_p): Return false for default
23102         definitions.
23103
23104 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23105
23106         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
23107         and clean up the logic.
23108
23109 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23110
23111         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
23112         early return.
23113
23114 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
23115
23116         * var-tracking.c (remove_cselib_value_chains): Define only for
23117         ENABLE_CHECKING.
23118         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
23119         delete_slot_part, emit_notes_for_differences_1): Don't call
23120         remove_cselib_value_chains here.
23121         (set_slot_part, emit_notes_for_differences_2): Don't call
23122         add_cselib_value_chains here.
23123         (preserved_values): New vector.
23124         (preserve_value): New function.
23125         (add_uses, add_stores, vt_add_function_parameters): Use it
23126         instead of cselib_preserve_value.
23127         (changed_values_stack): New vector.
23128         (check_changed_vars_0): New function.
23129         (check_changed_vars_1, check_changed_vars_2): Use it.
23130         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
23131         changed_values_stack VALUEs.
23132         (vt_emit_notes): For all preserved_values call
23133         add_cselib_value_chains.  If ENABLE_CHECKING call
23134         remove_cselib_value_chains before verifying value_chains is empty.
23135         Initialize and free changed_values_stack.
23136         (vt_initialize): Initialize preserved_values.
23137         (vt_finalize): Free preserved_values.
23138
23139 2010-03-08  Richard Guenther  <rguenther@suse.de>
23140
23141         PR tree-optimization/43269
23142         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
23143         region detection.
23144
23145 2010-03-08  Martin Jambor  <mjambor@suse.cz>
23146
23147         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
23148         (ipa_is_param_called): Removed.
23149         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
23150         (ipa_print_node_params): Do not print the called flag.
23151         (ipa_write_node_info): Do not stream the called flag.
23152         (ipa_read_node_info): Likewise.
23153
23154 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
23155
23156         PR debug/43176
23157         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
23158         * cselib.c (struct expand_value_data): Add dummy field.
23159         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
23160         dummy to false.
23161         (cselib_dummy_expand_value_rtx_cb): New function.
23162         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
23163         any rtl.
23164         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
23165         * var-tracking.c: Include pointer-set.h.
23166         (variable): Change n_var_parts to char from int.  Add
23167         cur_loc_changed and in_changed_variables fields.
23168         (variable_canonicalize): Remove.
23169         (shared_var_p): New inline function.
23170         (unshare_variable): Maintain cur_loc_changed and
23171         in_changed_variables fields.  If var was in changed_variables,
23172         replace it there with new_var.  Just copy cur_loc instead of
23173         resetting it to something else.
23174         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
23175         (dataflow_set_union): Don't call variable_canonicalize.
23176         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
23177         of their DEBUG_EXPR_TREE_DECLs.
23178         (canonicalize_loc_order_check): Verify that cur_loc is NULL
23179         and in_changed_variables and cur_loc_changed is false.
23180         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
23181         and cur_loc_changed.  Don't update cur_loc here.
23182         (variable_merge_over_src): Don't call variable_canonicalize.
23183         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
23184         removing loc that is equal to cur_loc, clear cur_loc,
23185         set cur_loc_changed and ensure variable_was_changed is called.
23186         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
23187         compare pointers in cur_loc check, if it is equal to loc,
23188         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
23189         (variable_different_p): Remove compare_current_location argument,
23190         don't compare cur_loc.
23191         (dataflow_set_different_1): Adjust variable_different_p caller.
23192         (variable_was_changed): If dv had some var in changed_variables
23193         already, reset in_changed_variables flag for it and propagate
23194         cur_loc_changed over to the new variable.  On empty var
23195         always set cur_loc_changed.  Set in_changed_variables on whatever
23196         var is added to changed_variables.
23197         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
23198         Use shared_var_p.  When removing loc that is equal to cur_loc,
23199         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
23200         end, don't set it to something else, just call variable_was_changed.
23201         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
23202         loc being removed, clear cur_loc and set cur_loc_changed.
23203         Set cur_loc_changed if all locations have been removed.
23204         (struct expand_loc_callback_data): New type.
23205         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
23206         allocated.  Always create SUBREGs if simplify_subreg failed.
23207         Prefer to use cur_loc, when that fails and still in
23208         changed_variables (and seen first time) recompute it.  Set
23209         cur_loc_changed of variables which had to change cur_loc and
23210         compute elcd->cur_loc_changed if any of the subexpressions used
23211         had to change cur_loc.
23212         (vt_expand_loc): Adjust to pass arguments in
23213         expand_loc_callback_data structure.
23214         (vt_expand_loc_dummy): New function.
23215         (emitted_notes): New variable.
23216         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
23217         that weren't used for any other decl in current
23218         emit_notes_for_changes call call vt_expand_loc_dummy to update
23219         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
23220         first loc_chain location if NULL before.  Always use just
23221         cur_loc instead of first loc_chain location.  When cur_loc_changed
23222         is false, when not --enable-checking=rtl just don't emit any note.
23223         When rtl checking, compute the note and assert it is the same
23224         as previous note.  Clear cur_loc_changed and in_changed_variables
23225         at the end before removing from changed_variables.
23226         (check_changed_vars_3): New function.
23227         (emit_notes_for_changes): Traverse changed_vars to call
23228         check_changed_vars_3 on each changed var.
23229         (emit_notes_for_differences_1): Clear cur_loc_changed and
23230         in_changed_variables.  Recompute cur_loc of new_var.
23231         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
23232         (vt_emit_notes): Initialize and destroy emitted_notes.
23233
23234 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
23235
23236         PR rtl-optimization/42220
23237         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
23238         Use verify_reg_tracked to determine if we should use OP_OUT rather
23239         than OP_INOUT.
23240         (build_def_use): If we see an in-out operand for a register that we
23241         know nothing about, treat is an output if possible, fail the block if
23242         not.
23243
23244 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
23245
23246         PR debug/42897
23247         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
23248         permanently.
23249
23250 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
23251
23252         PR debug/42897
23253         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
23254         uses of relevant DEFs that are dead outside the loop too.
23255
23256 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
23257
23258         * var-tracking.c (dataflow_set_merge): Swap src and src2.
23259         Reverted:
23260         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
23261         PR debug/41371
23262         * var-tracking.c (values_to_unmark): New variable.
23263         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23264         values_to_unmark vector.  Moved body to...
23265         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
23266         instead queue it into values_to_unmark vector.
23267         (vt_find_locations): Free values_to_unmark vector.
23268
23269 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
23270
23271         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
23272         (site.exp): Export them when plugins are enabled.
23273
23274 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
23275
23276         PR middle-end/42326
23277         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
23278         that contain scevs.
23279         (chrec_fold_multiply): Same.
23280
23281 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
23282
23283         PR c/43248
23284         * c-decl.c (build_compound_literal): Return early if init is
23285         an error_mark_node.
23286
23287 2010-03-04  Martin Jambor  <mjambor@suse.cz>
23288
23289         PR tree-optimization/43164
23290         PR tree-optimization/43191
23291         * tree-sra.c (type_consists_of_records_p): Reject records with
23292         zero-size bit-fields at the end.
23293
23294 2010-03-04  Mike Stump  <mikestump@comcast.net>
23295
23296         * Makefile.in (TAGS): Remove *.y.
23297
23298 2010-03-04  Richard Guenther  <rguenther@suse.de>
23299
23300         PR tree-optimization/40761
23301         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
23302         in reverse order.
23303         (my_rev_post_order_compute): New function.
23304         (init_pre): Call it.
23305
23306 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
23307
23308         PR middle-end/43209
23309         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
23310         decrease the cost of an IV candidate when the cost is infinite.
23311
23312 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23313
23314         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
23315         Use '3DNow!' for the extension of that name, ensure normal space
23316         after the string.
23317         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
23318
23319 2010-03-03  Jeff Law  <law@redhat.com>
23320
23321         * PR middle-end/32693
23322         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
23323         than gen_rtx_SUBREG.
23324         (extract_bit_field_1): Likewise.
23325
23326 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
23327
23328         * doc/sourcebuild.texi (Test directives): Document that arguments
23329         include-opts and exclude-opts are now optional for dg-skip-if,
23330         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
23331
23332 2010-03-03  Jason Merrill  <jason@redhat.com>
23333
23334         PR c++/12909
23335         * cgraph.h (varpool_node): Add extra_name field.
23336         * varpool.c (varpool_extra_name_alias): New.
23337         (varpool_assemble_decl): Emit extra name aliases.
23338         (varpool_mark_needed_node): Look past an extra name alias.
23339         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
23340         * lto-streamer-in.c (lto_input_tree): Read it.
23341         * lto-streamer-out.c (output_unreferenced_globals): Write it.
23342
23343 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
23344
23345         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
23346         (sparc*-*-solaris2*): ...this.
23347
23348 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
23349
23350         PR debug/43229
23351         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
23352         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
23353         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
23354         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
23355
23356         PR debug/43237
23357         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
23358         fallthrough to default handling, just with want_address 0 instead of 2.
23359         For single element lists, add_AT_loc directly, otherwise create an
23360         artificial variable DIE and stick location list to it.
23361
23362         PR debug/43177
23363         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
23364         (VAL_EXPR_HAS_REVERSE): Define.
23365         (reverse_op): New function.
23366         (add_stores): For reversible operations add an extra MO_VAL_USE.
23367
23368 2010-03-02  Jason Merrill  <jason@redhat.com>
23369
23370         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
23371
23372 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
23373
23374         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
23375         (sparc64-*-linux*): Likewise.
23376         (sparc64-*-solaris2*): Include assembler files before linker ones.
23377         (sparc-*-solaris2*): Simplify and reorder to match previous case.
23378         * config/sparc/gas.h: Delete.
23379         * config/sparc/sol2-64.h: Add copyright notice.
23380         * config/sparc/sol2-gas-bi.h: Likewise.
23381         * config/sparc/sol2-gld.h: Likewise.
23382         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
23383         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
23384         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
23385         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
23386         (sparc_elf_asm_named_section): Rename into...
23387         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
23388
23389 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
23390
23391         * config/alpha/alpha.c (override_options): Fix -mtune error message.
23392
23393 2010-03-02  Jeff Law  <law@redhat.com>
23394
23395         PR middle-end/42431
23396         * reload1.c (rtx_p, substitute_stack): Declare.
23397         (substitute): Record addresses of changed rtxs.
23398         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
23399         Restore the original rtx when complete.
23400         (reload): Free subsitute_stack when complete.
23401
23402 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
23403
23404         * doc/gccint.texi (menu): Add Testsuites as a chapter.
23405         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
23406         new chapter.
23407         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
23408         LTO Testing, gcov Testing, profopt Testing, compat Testing,
23409         Torture Tests): Change from subsection to section.
23410
23411 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
23412             Steven Bosscher  <steven@gcc.gnu.org>
23413
23414         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
23415         instead of bb.
23416
23417 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
23418
23419         PR middle-end/42640
23420         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
23421         the assignment from the new induction variable to the assignment
23422         of the value from the original loop PHI function.
23423
23424 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
23425             Daniel Jacobowitz  <dan@codesourcery.com>
23426
23427         * doc/sourcebuild.texi (Test directives): Clarify options to
23428         dg-skip-if.
23429
23430 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23431
23432         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
23433         Disable cfi directives unless GCC and gas agree on using read-only
23434         .eh_frame sections for 64-bit.
23435         * configure: Regenerate.
23436
23437 2010-03-01  Richard Guenther  <rguenther@suse.de>
23438
23439         PR tree-optimization/43220
23440         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
23441         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
23442
23443 2010-03-01  Richard Guenther  <rguenther@suse.de>
23444             Martin Jambor  <mjambor@suse.cz>
23445
23446         PR middle-end/41250
23447         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
23448         gimplified parameters.
23449
23450 2010-03-01  Christian Bruel  <christian.bruel@st.com>
23451
23452         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
23453
23454 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
23455
23456         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
23457
23458 2010-03-01  Richard Guenther  <rguenther@suse.de>
23459
23460         PR middle-end/43213
23461         * expr.c (expand_assignment): Use the alias-oracle to tell
23462         if the rhs aliases the result decl.
23463
23464 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23465
23466         PR pch/14940
23467         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
23468         to sol_gt_pch_get_address.
23469         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
23470         64-bit, SPARC and x86.
23471         (sol_gt_pch_get_address): New function.
23472
23473 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
23474
23475         * toplev.h (inform_n, error_n): Declare.
23476         * diagnostic.c (inform_n, error_n): New function.
23477
23478 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
23479
23480         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
23481         has no rtl yet when processing local_decls, queue it and recheck
23482         if deferred stack allocation hasn't assigned it rtl.
23483
23484 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
23485
23486         * config/sh/sh.c (unspec_bbr_uid): New.
23487         (gen_block_redirect): Use it instead of INSN_UID.
23488         (gen_far_branch): Likewise.
23489
23490 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
23491
23492         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
23493         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
23494
23495 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23496
23497         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
23498         (Warning Options): -Wno-conversion-null is valid for
23499         Objective-C++ as well.
23500         * doc/tm.texi (Named Address Spaces): Likewise.
23501         * doc/plugins.texi (Plugins): Replace TABs with spaces.
23502         * doc/tree-ssa.texi (Tree SSA): Likewise.
23503
23504 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23505
23506         PR bootstrap/43202
23507         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
23508         by default.  Don't set the default arch for
23509         i[34567]86-*-darwin*|x86_64-*-darwin*.
23510
23511 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23512
23513         PR bootstrap/43202
23514         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
23515         default.  Set the default 32bit/64bit archs with $with_arch
23516         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
23517
23518 2010-02-27  Richard Guenther  <rguenther@suse.de>
23519
23520         PR tree-optimization/43186
23521         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
23522         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
23523         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
23524         unroller iterations.
23525
23526 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23527
23528         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
23529         required and i[34567]86-*-* targets don't support 64bit ISA.
23530
23531 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
23532
23533         PR ada/43096
23534         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
23535         the same alias set.
23536
23537 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
23538
23539         * config.gcc: Set the default arch at least to Prescott for
23540         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
23541         if SSE math is enabled.
23542
23543 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23544
23545         * diagnostic.c (diagnostic_initialize): Update.
23546         (diagnostic_report_diagnostic): Test inhibit_notes_p for
23547         informative notes.
23548         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
23549         (diagnostic_inhibit_notes): New.
23550         * toplev.c (process_options): inhibit notes with -fcompare-debug.
23551
23552 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23553
23554         PR c/20631
23555         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
23556         * doc/standards.texi: Likewise.
23557         * doc/extend.texi: Likewise.
23558         * doc/trouble.texi: Likewise.
23559         * doc/cppopts.texi: Likewise.
23560         * doc/install.texi: Likewise.
23561         * c.opt (std=c90,std=gnu90): New options.
23562         * c-opts.c (c_common_handle_option): Handle them.
23563
23564 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23565
23566         PR c/24577
23567         * c-decl.c (undeclared_variable): Use an informative note.
23568
23569 2010-02-26  Richard Guenther  <rguenther@suse.de>
23570
23571         PR tree-optimization/43186
23572         * gimple.h (gimple_fold): Remove.
23573         * gimple.c (gimple_fold): Remove.  Inline into single user ...
23574         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
23575         Try harder for conditions.
23576
23577 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
23578
23579         PR debug/43190
23580         * function.c (used_types_insert): Don't skip through named pointer
23581         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
23582         and it is different from the main variant's type.
23583
23584 2010-02-26  Nick Clifton  <nickc@redhat.com>
23585
23586         * config/rx/rx.md (sminsi3): Remove bogus alternative.
23587
23588 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
23589
23590         * config.gcc: Support --with-fpmath=sse for x86.
23591
23592         * config/i386/ssemath.h: New.
23593
23594         * doc/install.texi (--with-fpmath=sse): Documented.
23595
23596 2010-02-26  Richard Guenther  <rguenther@suse.de>
23597
23598         PR tree-optimization/43188
23599         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
23600         vector types of over-aligned element type.
23601
23602 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
23603
23604         PR target/43175
23605         * config/i386/i386.c (expand_vec_perm_blend): Use correct
23606         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
23607
23608 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
23609
23610         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
23611
23612 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
23613
23614         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
23615         * var-tracking.c: Include diagnostic.h.
23616         (debug_dv): New function.
23617         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
23618
23619         PR debug/43160
23620         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
23621         (add_value_chain, add_value_chains, remove_value_chain,
23622         remove_value_chains): Handle DEBUG_EXPRs.
23623         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
23624
23625         PR debug/43161
23626         * regcprop.c (struct queued_debug_insn_change): New type.
23627         (struct value_data_entry): Add debug_insn_changes field.
23628         (struct value_data): Add n_debug_insn_changes field.
23629         (debug_insn_changes_pool): New variable.
23630         (free_debug_insn_changes, apply_debug_insn_changes,
23631         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
23632         (kill_value_one_regno): Call free_debug_insn_changes if needed.
23633         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
23634         fields.
23635         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
23636         changes for them.
23637         (copyprop_hardreg_forward_1): Don't call apply_change_group for
23638         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
23639         changes, call cprop_find_used_regs via note_stores.
23640         (copyprop_hardreg_forward): When copying vd from predecessor
23641         which has any queued DEBUG_INSN changes, make sure the pointers are
23642         cleared.  At the end call df_analyze and then if there are any
23643         DEBUG_INSN changes queued at the end of some basic block for still
23644         live registers, apply them.
23645         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
23646
23647 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
23648
23649         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
23650         (arm*-*-*): Ditto.
23651
23652 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
23653
23654         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
23655         targets.  Set the default with_cpu/with_arch from arch/cpu.
23656         Allow x86-64 and native for with_cpu/with_arch.
23657
23658 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
23659
23660         * ebitmap.c: Change calls to verify_popcount with calls to
23661         sbitmap_verify_popcount.
23662         (ebitmap_clear_bit): Fixed map->cacheindex test and
23663         map>cache update when bit clearing results in an empty
23664         element.
23665
23666 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
23667
23668         PR target/43154
23669         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
23670         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
23671         and support both V2DF and V2DI modes.
23672         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
23673         support both V2DF and V2DI modes.
23674         (general): Delete trailing whitespace from a few patterns.
23675
23676         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23677         V2DF/V2DI interleave high/low builtins.
23678
23679         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
23680         new VSX builtins.
23681
23682         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
23683         interleave high/low functions.
23684
23685 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
23686
23687         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
23688         #pragma extern_prefix.
23689
23690 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
23691
23692         PR debug/43166
23693         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
23694         BLKmode, assert op0 is a MEM and just adjust its mode.
23695
23696         PR debug/43165
23697         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
23698         if bitpos isn't multiple of mode's bitsize.
23699
23700 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23701
23702         * c.opt (-ftemplate-depth=): New.
23703         (-ftemplate-depth-): Deprecate.
23704         * optc-gen.awk: Handle -ftemplate-depth=.
23705         * opth-gen.awk: Likewise.
23706         * c-opts.c (c_common_handle_option): Likewise.
23707         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
23708
23709 2010-02-24  Jason Merrill  <jason@redhat.com>
23710
23711         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
23712
23713 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23714
23715         * cfg.c (alloc_aux_for_block): Remove inline.
23716         (alloc_aux_for_edge): Likewise.
23717
23718 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23719
23720         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
23721
23722 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23723
23724         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
23725         * config/i386/sol2-gas.h: New file.
23726         * config.gcc (i[34567]86-*-solaris2*): Use it.
23727
23728 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23729
23730         PR c/43128
23731         * c-typeck.c (ep_convert_and_check): New.
23732         (build_conditional_expr): Use it.
23733         (build_binary_op): Likewise.
23734
23735 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
23736
23737         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
23738
23739         PR debug/43150
23740         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
23741         bounds even for -O+.
23742         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
23743         expr needs to have DECL_NAME set.
23744
23745 2010-02-24  Nick Clifton  <nickc@redhat.com>
23746
23747         * config/mep/mep.c: Include gimple.h.
23748         (mep_function_uses_sp): Delete unused function.
23749         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
23750         parameters.  Use unsigned integers to count args.  Return a
23751         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
23752
23753 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
23754
23755         PR target/43107
23756         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
23757         greater or equal to nelt instead of 2 * nelt.
23758         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
23759         with nelt - 1.
23760
23761 2010-02-23  Jason Merrill  <jason@redhat.com>
23762
23763         PR debug/42800
23764         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
23765         in cfun->local_decls even if they have register types.
23766
23767         PR c++/42837
23768         * stor-layout.c (place_field): Don't warn about unnecessary
23769         DECL_PACKED if the type is packed.
23770
23771 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
23772
23773         PR target/43139
23774         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
23775         GOTOFF relocs, even when the base reg isn't pic pointer.
23776
23777 2010-02-23  Michael Matz  <matz@suse.de>
23778
23779         PR debug/43077
23780         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
23781         (expand_gimple_basic_block): Generate and use debug temps if there
23782         are debug uses left after the last real use of TERed ssa names.
23783         Unlink debug immediate uses when they are expanded.
23784
23785 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23786
23787         PR 43123
23788         * config/i386/i386.c (override_options): Reorganise to provide
23789         better error messages.
23790
23791 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23792
23793         PR middle-end/43083
23794         * graphite-scop-detection.c (create_single_exit_edge): Move
23795         the call to find_single_exit_edge to....
23796         (create_sese_edges): ...here.  Don't handle multiple edges
23797         exiting the function.
23798         (build_graphite_scops): Don't handle multiple edges
23799         exiting the function.
23800
23801 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23802
23803         PR middle-end/43097
23804         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
23805         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
23806
23807 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23808
23809         PR middle-end/43026
23810         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
23811
23812 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23813
23814         PR c++/43126
23815         * c-typeck.c (convert_arguments): Print declaration location.
23816         * c-common.c (validate_nargs): Rename as
23817         builtin_function_validate_nargs.
23818         (check_builtin_function_arguments): Update.
23819
23820 2010-02-22  Richard Guenther  <rguenther@suse.de>
23821
23822         PR lto/43045
23823         * tree-inline.c (declare_return_variable): Use the type of
23824         the call stmt lhs if available.
23825
23826 2010-02-22  Duncan Sands  <baldrick@free.fr>
23827
23828         * passes.c (register_pass): Always consider all pass lists when
23829         ref_pass_instance_number is zero.
23830
23831 2010-02-22  Richard Guenther  <rguenther@suse.de>
23832
23833         PR tree-optimization/42749
23834         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
23835         parameter.  Do arithmetic in the original type.
23836         (update_accumulator_with_ops): Likewise.
23837         (adjust_accumulator_values): Adjust.
23838
23839 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23840
23841         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
23842         (QI to BLKmode splitter): New splitter.
23843
23844 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
23845
23846         * config/i386/i386.c (initial_ix86_tune_features): Turn on
23847         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
23848
23849 2010-02-22  Richard Guenther  <rguenther@suse.de>
23850
23851         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
23852
23853 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
23854
23855         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
23856         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
23857         ($(T)crti.o, $(T)crtn.o): Remove rules.
23858
23859 2010-02-21  Tobias Burnus  <burnus@net-b.de>
23860
23861         PR fortran/35259
23862         * doc/invoke.texi (-fassociative-math): Document that this
23863         option is automatically enabled for Fortran.
23864
23865 2010-02-20  David S. Miller  <davem@davemloft.net>
23866
23867         * configure.ac: Test if linker and assembler properly support
23868         GOTDATA_OP relocations.
23869         * configure: Rebuild.
23870         * config.in: Likewise.
23871         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
23872         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
23873         (movsi_high_pic): Likewise.
23874         (movdi_lo_sum_pic): Likewise.
23875         (movdi_high_pic): Likewise.
23876         (movsi_pic_gotdata_op): New pattern.
23877         (movdi_pic_gotdata_op): Likewise.
23878         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
23879         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
23880
23881 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
23882
23883         PR target/43067
23884         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
23885         attribute to ssemul.
23886         (xop_mulv2div2di3_high): Ditto.
23887
23888 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23889
23890         PR c++/35669
23891         * c.opt (Wconversion-null): New option.
23892         * doc/invoke.texi (Wconversion-null): Document.
23893
23894 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23895
23896         * common.opt (Wlarger-than-): Add Undocumented.
23897
23898 2010-02-19  Mike Stump  <mikestump@comcast.net>
23899
23900         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
23901
23902 2010-02-19  Jason Merrill  <jason@redhat.com>
23903
23904         PR target/40332
23905         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
23906         * configure: Likewise.
23907
23908 2010-02-20  Alan Modra  <amodra@gmail.com>
23909
23910         PR middle-end/42344
23911         * cgraph.h (cgraph_make_decl_local): Declare.
23912         * cgraph.c (cgraph_make_decl_local): New function.
23913         (cgraph_make_node_local): Use it.
23914         * cgraphunit.c (cgraph_function_versioning): Likewise.
23915         * ipa.c (function_and_variable_visibility): Likewise.
23916
23917 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23918
23919         PR bootstrap/43121
23920         * except.c (sjlj_emit_function_enter): Don't call
23921         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
23922         directly.
23923         * rtl.h (add_reg_br_prob_note): Remove prototype.
23924
23925 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23926
23927         PR 41779
23928         * c-common.c (conversion_warning): Remove widening conversions
23929         before checking the conversion of integers to reals.
23930
23931 2010-02-19  Mike Stump  <mikestump@comcast.net>
23932
23933         PR middle-end/43125
23934         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
23935
23936         PR objc/43061
23937         * cgraphunit.c (process_function_and_variable_attributes): Check
23938         DECL_PRESERVE_P instead of looking up attribute "used".
23939         * ipa-pure-const.c (check_decl): Likewise.
23940         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
23941         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
23942         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
23943         instead of attribute "used".
23944         * config/sol2-c.c (solaris_pragma_init): Likewise.
23945         (solaris_pragma_fini): Likewise.
23946
23947 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23948
23949         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
23950         Use XCNEW instead of xcalloc.
23951         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
23952         XNEW instead of xmalloc.
23953         (get_fields): Use XNEWVEC instead of xmalloc.
23954
23955         PR debug/43084
23956         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
23957         populate vars array.
23958         (create_new_general_access): For debug stmts just reset value.
23959         (get_stmt_accesses): For accesses within debug stmts just record them
23960         using add_access_to_acc_sites instead of preventing the peeling or
23961         counting them as accesses.
23962
23963         PR middle-end/42233
23964         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
23965
23966 2010-02-19  Richard Guenther  <rguenther@suse.de>
23967
23968         PR tree-optimization/42916
23969         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
23970         instructions.
23971
23972 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
23973
23974         * configure.ac: Replace all uses of changequote in macro arguments
23975         with proper quoting.
23976
23977 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23978
23979         PR middle-end/42233
23980         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
23981
23982 2010-02-19  Richard Guenther  <rguenther@suse.de>
23983
23984         PR tree-optimization/42944
23985         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
23986         test for aliasing with errno.
23987
23988 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23989
23990         PR middle-end/42233
23991         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
23992         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
23993         * dojump.c: Include output.h.
23994         (inv): New inline function.
23995         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
23996         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
23997         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
23998         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
23999         argument, pass it down to other calls.
24000         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
24001         add REG_BR_PROB note to the conditional jump.
24002         * cfgexpand.c (add_reg_br_prob_note): Removed.
24003         (expand_gimple_cond): Don't call it, add the probability
24004         as last argument to jumpif_1/jumpifnot_1.
24005         * Makefile.in (dojump.o): Depend on output.h.
24006         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
24007         callers.
24008         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
24009         * stmt.c (do_jump_if_equal): Likewise.
24010         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
24011         * loop-unswitch.c (compare_and_jump_seq): Likewise.
24012         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
24013         Likewise.
24014         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
24015         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
24016         jumpifnot_1 callers.
24017         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
24018         callers.
24019         (store_expr): Adjust jumpifnot caller.
24020         (store_constructor): Adjust jumpif caller.
24021
24022         PR middle-end/42233
24023         * gimplify.c (gimple_boolify): For __builtin_expect call
24024         gimple_boolify also on its first argument.
24025
24026 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
24027
24028         * configure.ac (gnu-unique-object): Wrap regexps using [] in
24029         changequote block.
24030         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
24031         * configure: Regenerated.
24032
24033 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24034
24035         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
24036         lang_hooks.types_compatible_p instead of comptypes.
24037
24038 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24039
24040         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
24041         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
24042         if __prefer_thumb__ is defined.
24043
24044 2010-02-18  Martin Jambor  <mjambor@suse.cz>
24045
24046         PR tree-optimization/43066
24047         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
24048         array with zero-sized element type.
24049
24050 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
24051
24052         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
24053         rtx, allocate struct var_loc_node here and return it to the
24054         caller, and only if it is actually needed.
24055         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
24056         move it earlier and return immediately if it returns NULL.
24057
24058 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
24059
24060         * config/sparc/gas.h: New file.  Restore
24061         TARGET_ASM_NAMED_SECTION to its ELF default.
24062         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
24063         check !HAVE_GNU_AS.
24064         * config/sparc/sparc.c (sparc_elf_asm_named_section):
24065         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
24066         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
24067         after sparc/sysv4.h.
24068
24069 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
24070
24071         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
24072
24073 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
24074
24075         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
24076         patterns from predicated pattern.
24077
24078 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
24079
24080         PR target/43103
24081         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
24082         for insn mnemonic suffix.
24083
24084 2010-02-17  Richard Guenther  <rguenther@suse.de>
24085
24086         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
24087         to loop PHI nodes.
24088
24089 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
24090
24091         PR debug/42918
24092         * caller-save.c (save_call_clobbered_regs): If BB ends with
24093         a DEBUG_INSN, move any notes in between last real insn and the last
24094         DEBUG_INSN after the last DEBUG_INSN.
24095
24096 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
24097
24098         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
24099         Fix return type.  Fix argument type.  Explain meaning of return value.
24100
24101 2010-02-16  Richard Guenther  <rguenther@suse.de>
24102
24103         PR tree-optimization/41043
24104         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
24105         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
24106         statements ...
24107         (vrp_visit_phi_node): ... but only for loop PHI nodes.
24108
24109 2010-02-16  Ira Rosen  <irar@il.ibm.com>
24110
24111         PR tree-optimization/43074
24112         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
24113         * tree-vect-loop.c (vect_analyze_loop_operations): Add
24114         vectorizable cycles in hybrid SLP check.
24115         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
24116
24117 2010-02-16  Richard Guenther  <rguenther@suse.de>
24118
24119         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
24120         (true_dependence): If memrefs_conflict_p computes must-alias
24121         trust it.  Move TBAA check after offset-based disambiguation.
24122         (canon_true_dependence): Likewise.
24123
24124 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
24125
24126         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
24127         * doc/invoke.texi: Document it.
24128         * var-tracking.c: Include toplev.h and params.h.
24129         (vt_find_locations): Return bool indicating success.  Compute
24130         hash sizes unconditionally.  Check new parameter, report.
24131         (variable_tracking_main_1): Check vt_find_locations results and
24132         retry.  Renamed from...
24133         (variable_tracking_main): ... this.  New wrapper to preserve
24134         flag_var_tracking_assignments.
24135         * Makefile.in (var-tracking.o): Adjust dependencies.
24136
24137 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
24138             Jakub Jelinek  <jakub@redhat.com>
24139
24140         PR target/42854
24141         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
24142         if weak_import attribute is present.
24143         * config/darwin.c (machopic_select_section): Likewise.
24144
24145 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
24146
24147         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
24148         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
24149         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
24150         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
24151
24152         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
24153         types.
24154
24155         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
24156         Fix argument types.
24157
24158         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
24159         Rewrite text to refer to the names.
24160
24161 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
24162
24163         * config/i386/i386-builtin-types.def
24164         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
24165         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
24166         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
24167         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
24168         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
24169         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
24170         IX86_BUILTIN_VPERMIL2PS256.
24171         (MULTI_ARG_4_DF2_DI_I): Defined.
24172         (MULTI_ARG_4_DF2_DI_I1): Defined.
24173         (MULTI_ARG_4_SF2_SI_I): Defined.
24174         (MULTI_ARG_4_SF2_SI_I1): Defined.
24175         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
24176         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
24177         __builtin_ia32_vpermil2ps256.
24178         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
24179         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
24180         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
24181         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
24182         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
24183         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
24184         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
24185         CODE_FOR_xop_vpermil2v8sf3.
24186         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
24187         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
24188         * config/i386/xopintrin.h (_mm_permute2_pd): New.
24189         (_mm256_permute2_pd): New.
24190         (_mm_permute2_ps): New.
24191         (_mm256_permute2_ps): New.
24192
24193 2010-02-15  Nick Clifton  <nickc@redhat.com>
24194
24195         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
24196         boolean parameters.  Use emit_jump_insn when emitting a pop
24197         instruction containing a return insn.
24198         (push): Use 'true' rather than '1' as second parameter to F.
24199         (h8300_expand_prologue): Likewise.
24200         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
24201         (h8300_expand_epilogue): Likewise.
24202
24203 2010-02-15  Richard Guenther  <rguenther@suse.de>
24204
24205         PR middle-end/43068
24206         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
24207         if that is zero.
24208
24209 2010-02-15  Nick Clifton  <nickc@redhat.com>
24210
24211         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
24212         delta.
24213
24214 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
24215
24216         * intl.c (fake_ngettext): New function.
24217         * intl.h (fake_ngettext): Declare.
24218         (ngettext): Define macro.
24219         * collect2.c (notice_translated): New function.
24220         (main): Use notice_translated and ngettext.
24221         * collect2.h (notice_translated): Declare.
24222
24223 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
24224
24225         * reorg.c (delete_computation): Comment fixes.
24226         * caller-save.c (setup_save_areas): Idem.
24227         * sel-sched-dump.c (dump_lv_set): Idem.
24228         * rtl.def: Idem.
24229
24230 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24231
24232         * config/s390/s390.c (s390_sched_init): New function.
24233         (TARGET_SCHED_INIT): Target hook defined.
24234
24235 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
24236             Jack Howarth  <howarth@bromo.med.uc.edu>
24237             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
24238
24239         PR target/42982
24240         Partial revert of unintended change in fix for PR41605.
24241         * config/darwin.h: Fix typo.
24242         * config/darwin9.h: Same.
24243
24244 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
24245
24246         * c-pch.c (pch_init): Clear v.
24247
24248 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24249
24250         PR middle-end/42930
24251         * graphite-scop-detection.c (graphite_can_represent_scev): Call
24252         graphite_can_represent_init for MULT_EXPR.
24253
24254 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24255
24256         PR middle-end/42914
24257         PR middle-end/42530
24258         * graphite-sese-to-poly.c (remove_phi): New.
24259         (translate_scalar_reduction_to_array): Call remove_phi.
24260
24261 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24262
24263         PR middle-end/42771
24264         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
24265         * graphite-clast-to-gimple.h (gloog): Update declaration.
24266         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
24267         * graphite-poly.h (struct poly_bb): Add missing comments.
24268         (struct scop): Add poly_scop_p field.
24269         (POLY_SCOP_P): New.
24270         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
24271         * graphite.c (graphite_transform_loops): Build the polyhedral
24272         representation for each scop before code generation.
24273         * sese.c (rename_variables_in_operand): Removed.
24274         (rename_variables_in_expr): Return the renamed expression.
24275         (rename_sese_parameters): New.
24276         * sese.h (rename_sese_parameters): Declared.
24277
24278 2010-02-11  Richard Guenther  <rguenther@suse.de>
24279
24280         PR tree-optimization/42998
24281         * tree-ssa-pre.c (create_expression_by_pieces): Treat
24282         POINTER_PLUS_EXPR properly.
24283
24284 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24285             Changpeng Fang  <changpeng.fang@amd.com>
24286
24287         PR middle-end/40886
24288         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
24289         the cost of an IV candidate when the IV is used in a test against zero.
24290
24291         * gcc.dg/tree-ssa/ivopts-3.c: New.
24292
24293 2010-02-11  Richard Guenther  <rguenther@suse.de>
24294
24295         PR lto/41664
24296         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
24297         pointer-vs-decl case by swapping refs.  Handle some cases
24298         of pointer-vs-decl disambiguations more conservatively.
24299         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
24300         to false after expanding.
24301
24302 2010-02-11  Richard Guenther  <rguenther@suse.de>
24303
24304         PR driver/43021
24305         * gcc.c (process_command): Handle LTO file@offset case more
24306         appropriately.
24307
24308 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
24309
24310         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
24311         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
24312         of DEBUG_INSNs.
24313         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
24314
24315         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
24316         if MEM's mode size isn't DWARF2_ADDR_SIZE.
24317         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
24318         Optimize eq/ne comparisons when both arguments are known to be
24319         zero-extended.
24320         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
24321         Don't mask operands unnecessarily if they are known to be already
24322         zero-extended.
24323
24324 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
24325
24326         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
24327         instead of loop.
24328
24329 2010-02-10  Richard Guenther  <rguenther@suse.de>
24330
24331         PR tree-optimization/43017
24332         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
24333         for wrapping signed arithmetic.
24334
24335 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
24336
24337         PR debug/43010
24338         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
24339         if no debug info should be emitted for it.
24340
24341 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
24342
24343         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
24344         note when flag_exceptions is set.
24345
24346 2010-02-10  Duncan Sands  <baldrick@free.fr>
24347
24348         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
24349
24350 2010-02-10  Richard Guenther  <rguenther@suse.de>
24351
24352         PR c/43007
24353         * tree.c (get_unwidened): Handle constants.
24354         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
24355
24356 2010-02-10  Martin Jambor  <mjambor@suse.cz>
24357
24358         PR lto/42985
24359         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
24360         check for variable argument counts independently.
24361
24362 2010-02-10  Christian Bruel  <christian.bruel@st.com>
24363
24364         PR target/42841
24365         * config/sh/sh.c (find_barrier): Increase length for non delayed
24366         conditional branches.
24367
24368 2010-02-10  Christian Bruel  <christian.bruel@st.com>
24369
24370         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
24371
24372 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
24373
24374         * builtins.c (set_builtin_user_assembler_name): Also handle
24375         ffs if int is smaller than word.
24376
24377 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
24378
24379         PR middle-end/42973
24380         * ira-conflicts.c (get_dup): Remove.
24381         (process_reg_shuffles): Add new parameter.  Use it as an
24382         additional guard for copy generation.
24383         (add_insn_allocno_copies): Rewrite.
24384
24385 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
24386
24387         * common.opt (fsched2-use-traces): Preserved for backward
24388         compatibility.
24389         * doc/invoke.texi: Remove the documentation about option
24390         -fsched2-use-traces.
24391         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
24392         flag_sched2_use_traces.
24393         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
24394         the backward compatibility flag section.
24395
24396 2010-02-09  Richard Guenther  <rguenther@suse.de>
24397
24398         PR tree-optimization/43008
24399         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
24400         make HEAP variables initialized from global memory if they
24401         are not known builtin functions.
24402         (find_func_aliases): Adjust.
24403
24404 2010-02-09  Richard Guenther  <rguenther@suse.de>
24405
24406         PR tree-optimization/43000
24407         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
24408         arithmetic manually.
24409
24410 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
24411
24412         PR tree-optimization/42931
24413         * tree-loop-linear.c (try_interchange_loops): Don't call
24414         double_int_mul if estimated_loop_iterations failed.
24415
24416 2010-02-08  Martin Jambor  <mjambor@suse.cz>
24417
24418         PR middle-end/42898
24419         * tree-sra.c (build_accesses_from_assign): Do not mark in
24420         should_scalarize_away_bitmap if stmt has volatile ops.
24421         (sra_modify_assign): Do not process assigns piecemeal if if stmt
24422         has volatile ops.
24423
24424 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
24425
24426         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
24427
24428 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
24429
24430         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
24431         before the pattern.
24432
24433 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
24434
24435         PR middle-end/42946
24436         * df-core.c (df_finish_pass): Change type of saved_flags to int.
24437
24438 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
24439
24440         PR middle-end/42988
24441         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
24442         to unknown_dependence.
24443         (graphite_legal_transform_dr): Handle the unknown_dependence.
24444         (graphite_carried_dependence_level_k): Same.
24445
24446 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
24447
24448         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
24449
24450 2010-02-07  Richard Guenther  <rguenther@suse.de>
24451
24452         PR middle-end/42991
24453         * expr.c (get_inner_reference): Always initialize *pbitsize.
24454
24455 2010-02-07  Richard Guenther  <rguenther@suse.de>
24456
24457         PR middle-end/42956
24458         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
24459         new ARRAY_REFs on variable size element or minimal index arrays.
24460         Complete.
24461         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
24462         gimple_fold_indirect_ref.
24463
24464 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
24465
24466         PR target/42957
24467         * arm.c (arm_override_options): Just return if the user has specified
24468         an invalid fpu name.
24469
24470 2010-02-03  Jason Merrill  <jason@redhat.com>
24471
24472         PR c++/42870
24473         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
24474         i386_pe_maybe_record_exported_symbol.
24475
24476 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
24477
24478         PR target/42924
24479         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
24480         (pa_delegitimize_address): New function.
24481
24482 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
24483
24484         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
24485         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
24486
24487 2010-02-05  Richard Guenther  <rguenther@suse.de>
24488
24489         PR lto/42762
24490         * lto-streamer-in.c (get_resolution): Deal with references
24491         to undefined functions.
24492
24493 2010-02-05  Richard Guenther  <rguenther@suse.de>
24494
24495         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
24496         (fold_const_aggregate_ref): Likewise.
24497         (ccp_fold_stmt): Substitute loads.
24498         (maybe_fold_reference): Verify types before substituting.
24499         Unshare properly.
24500         (fold_gimple_assign): Unshare properly.
24501         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
24502
24503 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
24504
24505         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
24506         for rs6000_gen_cell_microcode.
24507
24508 2010-02-04  Richard Guenther  <rguenther@suse.de>
24509
24510         PR rtl-optimization/42952
24511         * dse.c (const_or_frame_p): Remove MEM handling.
24512
24513 2010-02-04  Nick Clifton  <nickc@redhat.com>
24514
24515         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
24516         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
24517         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
24518         (mn10300_asm_output_mi_thunk): New function.
24519         (mn10300_can_output_mu_thunk): New function.
24520         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
24521         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
24522         (FUNCTION_ARG): Delete incorrect comment.
24523
24524 2010-02-03  Jason Merrill  <jason@redhat.com>
24525
24526         PR c++/40138
24527         * fold-const.c (operand_equal_p): Handle erroneous types.
24528
24529 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24530
24531         * config/h8300/h8300.md (can_delay): Fix attibute condition.
24532
24533 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
24534
24535         PR rtl-optimization/42941
24536         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
24537         of xmalloc.
24538
24539 2010-02-03  Jason Merrill  <jason@redhat.com>
24540
24541         PR c++/35652
24542         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
24543
24544 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
24545
24546         PR debug/42896
24547         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
24548         (cselib_reset_table): Renamed from...
24549         (cselib_reset_table_with_next_value): ... this.
24550         (cselib_get_next_uid): Renamed from...
24551         (cselib_get_next_unknown_value): ... this.
24552         * cselib.c (next_uid): Renamed from...
24553         (next_unknown_value): ... this.
24554         (cselib_clear_table): Adjust.
24555         (cselib_reset_table): Adjust.  Renamed from...
24556         (cselib_reset_table_with_next_value): ... this.
24557         (cselib_get_next_uid): Adjust.  Renamed from...
24558         (cselib_get_next_unknown_value): ... this.
24559         (get_value_hash): Use hash.
24560         (cselib_hash_rtx): Likewise.
24561         (new_cselib_val): Adjust.  Set and dump uid.
24562         (cselib_lookup_mem): Pass next_uid as hash.
24563         (cselib_subst_to_values): Likewise.
24564         (cselib_log_lookup): Dump uid.
24565         (cselib_lookup): Pass next_uid as hash.  Adjust.
24566         (cselib_process_insn): Adjust.
24567         (cselib_init): Initialize next_uid.
24568         (cselib_finish): Adjust.
24569         (dump_cselib_table): Likewise.
24570         * dse.c (canon_address): Dump value uid.
24571         * print-rtl.c (print_rtx): Print value uid.
24572         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
24573         (dvuid): New type.
24574         (dv_uid): New function, sort of renamed from...
24575         (dv_htab_hash): ... this, reimplemented in terms of it and...
24576         (dv_uid2hash): ... this.  New.
24577         (variable_htab_eq): Drop excess assertions.
24578         (tie_break_pointers): Removed.
24579         (canon_value_cmp): Compare uids.
24580         (variable_post_merge_New_vals): Print uids.
24581         (vt_add_function_parameters): Adjust.
24582         (vt_initialize): Reset table.  Adjust.
24583
24584 2010-02-03  Richard Guenther  <rguenther@suse.de>
24585
24586         PR tree-optimization/42944
24587         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
24588         (call_may_clobber_ref_p_1): Likewise.  Properly handle
24589         malloc and calloc clobbering errno.
24590
24591 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
24592
24593         * doc/invoke.texi: Fix name of sched1 dump.
24594
24595         * opts.c (decode_options): Set flag_tree_switch_conversion
24596         only conditionally on optimize >= 2.
24597
24598         * gcse.c: Assorted comment fixes in pass description.
24599
24600 2010-02-03  Anthony Green  <green@moxielogic.com>
24601
24602         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
24603         nop padding in order to maintain alignment of storage location of
24604         target function address.
24605         (moxie_trampoline_init): Store target function address at newly
24606         aligned location.
24607         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
24608         to 32.
24609         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
24610
24611 2010-02-03  Richard Guenther  <rguenther@suse.de>
24612
24613         PR middle-end/42927
24614         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
24615
24616 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24617
24618         * config.gcc: Reenable check for obsolete targets.
24619         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
24620         mips-sgi-irix6.[0-4]*.
24621
24622 2010-02-02  Nick Clifton  <nickc@redhat.com>
24623
24624         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
24625         constant size of 4 as being the same as 0.
24626         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
24627         can take values in the range 0..4.
24628
24629 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
24630
24631         PR java/41991
24632         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
24633         as _darwin10_Unwind_FindEnclosingFunction().
24634         * libgcc-libsystem.ver: New.
24635
24636 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
24637
24638         PR target/41399
24639         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
24640         implicitly set registers.
24641
24642 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
24643
24644         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
24645         (arm_override_options): Allow automatic selection of the thread
24646         pointer register if thumb2.
24647         (legitimize_pic_address): Improve code sequences for Thumb2.
24648         (arm_call_tls_get_addr): Likewise.
24649         (legitimize_tls_address): Likewise.
24650         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
24651         (pic_load_addr_32bit): ... this.  New named pattern.
24652         * thumb2.md (pic_load_addr_thumb2): Delete.
24653         (pic_load_dot_plus_four): Delete.
24654         (tls_load_dot_plus_four): New named pattern.
24655
24656 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24657
24658         PR libgomp/29986
24659         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
24660         Document fix for TLS bug.
24661
24662 2010-01-31  Richard Guenther  <rguenther@suse.de>
24663
24664         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
24665         conservatively correct.
24666
24667 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24668
24669         PR target/42850
24670         Revert:
24671         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24672
24673         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
24674
24675 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24676
24677         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
24678
24679 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
24680
24681         * config.gcc: Adjust order of makefile fragments for mingw targets.
24682
24683 2010-01-31  Richard Guenther  <rguenther@suse.de>
24684
24685         PR middle-end/42898
24686         * gimplify.c (gimplify_init_constructor): For volatile LHS
24687         initialize a temporary.
24688
24689 2010-01-31  Matthias Klose  <doko@ubuntu.com>
24690
24691         * configure.ac: Fix __stack_chk_fail check for cross builds configured
24692         --with-headers
24693         * configure: Regenerate.
24694
24695 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
24696
24697         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
24698         the same alias set and their sizes different constantness.
24699         (aliasing_component_refs_p): Revert 2009-10-24 change.
24700
24701 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24702
24703         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
24704         unused.
24705
24706 2010-01-29  Richard Guenther  <rguenther@suse.de>
24707
24708         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
24709         Assert we successfully updated the call.
24710
24711 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
24712
24713         PR rtl-optimization/42889
24714         * df.h (df_set_bb_dirty_nonlr): New prototype.
24715         * df-core.c (df_set_bb_dirty_nonlr): New function.
24716         * df-scan.c (df_insn_rescan): Call it instead of
24717         df_set_bb_dirty for DEBUG_INSNs.
24718
24719 2010-01-29  Richard Guenther  <rguenther@suse.de>
24720
24721         PR middle-end/37448
24722         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
24723         quadratic behavior in most cases.
24724
24725 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
24726
24727         PR target/42891
24728         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
24729         in the call to gen_x86_movsicc_0_m1.
24730
24731 2010-01-28  Richard Guenther  <rguenther@suse.de>
24732
24733         PR tree-optimization/42871
24734         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
24735
24736 2010-01-28  Richard Guenther  <rguenther@suse.de>
24737
24738         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
24739         into call arguments.
24740
24741 2010-01-28  Richard Guenther  <rguenther@suse.de>
24742
24743         PR middle-end/42883
24744         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
24745         the forwarder if the destination is an EH landing pad.
24746
24747 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
24748
24749         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
24750         block list passed to gimple_duplicate_sese_tail.
24751         (parallelize_loops): Avoid parallelization when the function
24752         has_nonlocal_label.
24753         Avoid parallelization when the preheader is IRREDUCIBLE.
24754         Try to optimize when estimated_loop_iterations_int is unresolved.
24755         Add the loop's location to the dump file.
24756         * tree-cfg.c (add_phi_args_after_redirect): Remove.
24757         (gimple_duplicate_sese_tail): Remove the check for the latch.
24758         Redirect nexits to the exit block.
24759         Remove handling of the incoming edges to the latch.
24760         Redirect the backedge from the copied latch to the exit bb.
24761
24762 2010-01-28  Michael Matz  <matz@suse.de>
24763
24764         PR target/42881
24765         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
24766         Wrap force_reg into a sequence, emit it before user.
24767
24768 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
24769
24770         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
24771         (arm_rev): New.
24772         (arm_legacy_rev): Likewise.
24773         (thumb_legacy_rev): Likewise.
24774
24775 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
24776
24777         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
24778         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
24779         on MEM's address failed, try avoid_constant_pool_reference and
24780         recurse if it returned something different.
24781         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
24782         address, try avoid_constant_pool_reference and recurse if it
24783         returned something different.
24784         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
24785         address and avoid_constant_pool_reference returned something
24786         different, don't set have_address.
24787
24788 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
24789
24790         PR debug/42861
24791         * var-tracking.c (val_store): Add modified argument, obey it.
24792         Adjust callers.
24793         (count_uses): Move down logging of main.
24794         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
24795         don't need resolution.
24796         (emit_notes_in_bb): Likewise.
24797
24798 2010-01-27  Richard Guenther  <rguenther@suse.de>
24799
24800         PR middle-end/42878
24801         * tree-inline.c (remap_decl): Delay remapping of SSA name
24802         default definitions until we need them.
24803
24804 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
24805
24806         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
24807         (rs6000_delegitimize_address): New function.
24808
24809         * config/s390/s390.c (s390_delegitimize_address): Call
24810         delegitimize_mem_from_attrs.
24811
24812         PR middle-end/42874
24813         * tree-inline.c (cannot_copy_type_1): Removed.
24814         (copy_forbidden): Don't forbid copying of functions containing
24815         records/unions with variable length fields.
24816
24817 2010-01-27  Christian Bruel  <christian.bruel@st.com>
24818
24819         Revert:
24820         PR target/42841
24821         * config/sh/sh.c (find_barrier): Increase length for non delayed
24822         conditional branches.
24823
24824 2010-01-27  Matthias Klose  <doko@ubuntu.com>
24825
24826         * configure.ac (gnu-unique-object): Fix ldd version check.
24827         * configure: Regenerate.
24828
24829 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24830
24831         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
24832         HAVE_GNU_AS value.
24833         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
24834         Test for HAVE_GNU_AS value.
24835
24836 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24837
24838         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
24839         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
24840         INT64_TYPE): Define.
24841         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
24842         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24843         INT_LEAST64_TYPE): Define.
24844         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
24845         UINT_LEAST64_TYPE): Define.
24846         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
24847         INT_FAST64_TYPE): Define.
24848         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24849         UINT_FAST64_TYPE): Define.
24850         (INTMAX_TYPE, UINTMAX_TYPE): Define.
24851         (INTPTR_TYPE, UINTPTR_TYPE): Define.
24852         (SIG_ATOMIC_TYPE): Define.
24853
24854 2010-01-26  Richard Guenther  <rguenther@suse.de>
24855
24856         * df-scan.c (df_scan_set_bb_info): Remove assert.
24857         (df_insn_rescan_debug_internal): Merge asserts.
24858         (df_install_ref): Likewise.
24859         (df_mark_reg): Use bitmap_set_range.
24860         (df_hard_reg_used_p): Remove assert.
24861         (df_hard_reg_used_count): Likewise.
24862
24863 2010-01-26  Richard Guenther  <rguenther@suse.de>
24864
24865         PR rtl-optimization/42685
24866         * web.c (web_main): Ignore DEBUG_INSNs.
24867
24868 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
24869
24870         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
24871
24872         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
24873         Fix types of fndecl and arglist parameters.
24874
24875 2010-01-26  Richard Guenther  <rguenther@suse.de>
24876
24877         PR middle-end/42806
24878         * tree-eh.c (unsplit_eh): Skip debug insns.
24879
24880 2010-01-26  Richard Guenther  <rguenther@suse.de>
24881
24882         PR tree-optimization/42250
24883         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
24884
24885 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
24886
24887         PR fortran/42866
24888         * omp-low.c (expand_omp_sections): Only use single_pred if
24889         l2_bb is single_pred_p.
24890
24891 2010-01-25  Christian Bruel  <christian.bruel@st.com>
24892
24893         PR target/42841
24894         * config/sh/sh.c (find_barrier): Increase length for non delayed
24895         conditional branches.
24896         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
24897
24898 2010-01-24  David S. Miller  <davem@davemloft.net>
24899
24900         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
24901         define if not using GAS.
24902         * config/sparc/sparc.c (sparc_elf_asm_named_section):
24903         Likewise.  Delete SECTION_MERGE code, which is only applicable
24904         when using GAS.
24905
24906 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
24907
24908         PR c++/42748
24909         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
24910         mangling of va_list in system headers.
24911
24912 2010-01-23  Toon Moene  <toon@moene.org>
24913
24914         * tree-predcom.c (combine_chains): Return NULL, not false.
24915
24916 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
24917
24918         * tree-loop-distribution.c (distribute_loop): Fix declaration and
24919         initialization of variable res to agree with return type.
24920
24921 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
24922
24923         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
24924         * tree-sra.c: Add include of expr.h.
24925
24926 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
24927
24928         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
24929         insert the debug stmt on the single non-EH edge from the stmt.
24930
24931 2010-01-22  Richard Henderson  <rth@redhat.com>
24932
24933         PR tree-opt/42833
24934         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
24935         the RHS until after generate_subtree_copies has insertted its
24936         code before the current statement.
24937
24938 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
24939
24940         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
24941
24942         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
24943
24944 2010-01-21  Martin Jambor  <mjambor@suse.cz>
24945
24946         PR tree-optimization/42585
24947         * tree-sra.c (struct access): New field grp_total_scalarization.
24948         (dump_access): Dump the new field.
24949         (should_scalarize_away_bitmap): New variable.
24950         (cannot_scalarize_away_bitmap): Likewise.
24951         (sra_initialize): Allocate new bitmaps.
24952         (sra_deinitialize): Free new bitmaps.
24953         (create_access_1): New function.
24954         (create_access): Parts moved to create_access_1.
24955         (type_consists_of_records_p): New function.
24956         (completely_scalarize_record): Likewise.
24957         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
24958         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
24959         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
24960         access.
24961         (analyze_all_variable_accesses): Completely scalarize small eligible
24962         records.
24963
24964 2010-01-21  Martin Jambor  <mjambor@suse.cz>
24965
24966         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
24967
24968 2010-01-21  Andrew Haley  <aph@redhat.com>
24969
24970         * gcc.c (process_command): Move lang_specific_driver before
24971         setting cc_libexec_prefix.
24972
24973 2010-01-21  Richard Guenther  <rguenther@suse.de>
24974
24975         PR middle-end/19988
24976         * fold-const.c (negate_expr_p): Pretend only negative
24977         real constants are easily negatable.
24978
24979 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
24980             Jason Merrill  <jason@redhat.com>
24981
24982         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
24983         (TYPE_TRANSPARENT_AGGR): this, for union and record.
24984         * calls.c (initialize argument_information): Handle it.
24985         * c-common.c (handle_transparent_union_attribute): Use new name.
24986         * c-decl.c (finish_struct): Ditto.
24987         * c-typeck.c (type_lists_compatible_p): Ditto.
24988         (convert_for_assignment): Use new name and also handle record.
24989         * function.c (aggregate_value_p): Handle it.
24990         (pass_by_reference): Ditto.
24991         (assign_parm_data_types): Ditto.
24992         * print-tree.c (print_node): Ditto.
24993         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
24994         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
24995         * tree.c (first_field): New fn.
24996
24997 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
24998
24999         PR target/42818
25000         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
25001         even when linking statically, for now.
25002
25003 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
25004
25005         PR debug/42715
25006         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
25007         without a cselib val.
25008         (count_uses): Accept MO_VAL_SET with no val on stores.
25009         (add_stores): Likewise.
25010
25011 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25012
25013         * var-tracking.c (check_value_val): Add a compile time assertion.
25014         (dv_is_decl_p): Simplify.
25015         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
25016         gcc_assert if ENABLE_CHECKING.
25017
25018 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
25019
25020         PR debug/42782
25021         * var-tracking.c: Include tree-flow.h.
25022         (mem_dies_at_call): New.
25023         (dataflow_set_preserve_mem_locs): Use it.
25024         (dataflow_set_remove_mem_locs): Likewise.
25025         (dump_var): Renamed from dump_variable.  Adjust all callers.
25026         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
25027         * Makefile.in (var-tracking.o): Adjust deps.
25028
25029 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
25030
25031         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
25032
25033 2010-01-20  Richard Guenther  <rguenther@suse.de>
25034
25035         PR tree-optimization/42717
25036         * tree-ssa-dce.c (get_live_post_dom): Remove.
25037         (forward_edge_to_pdom): Take an arbitrary edge to copy
25038         degenerate PHI args from.
25039         (remove_dead_stmt): Use the first post-dominator even if it
25040         does not contain live statements as redirection destination.
25041
25042 2010-01-20  Richard Guenther  <rguenther@suse.de>
25043
25044         * tree-inline.c (estimate_num_insns): Handle EH builtins.
25045
25046 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25047
25048         * sel-sched.c (create_speculation_check): Remove set but not used
25049         variable twin.
25050         (try_transformation_cache): Remove set but not used variable ds.
25051         (calculate_privileged_insns): Remove set but not used variables
25052         cur_insn and min_spec_insn.
25053         (find_best_expr): Remove set but not used variable avail_n.
25054         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
25055         variable e.
25056         * cgraphunit.c (assemble_thunk): Remove set but not used variable
25057         false_label.
25058         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
25059         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
25060         new_scop_exit_edge.
25061
25062 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
25063
25064         PR bootstrap/42786
25065         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
25066         cpu types.  Add support for *-sse3 cpu types.
25067         (x86_64-*-*): Ditto.
25068
25069 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25070
25071         PR middle-end/42803
25072         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
25073         argument, call initializer_constant_valid_p_1 instead of
25074         initializer_constant_valid_p, pass CACHE to it, return NULL
25075         immediately if first call returns NULL.
25076         (initializer_constant_valid_p_1): New function.
25077         (initializer_constant_valid_p): Use it.
25078
25079 2010-01-20  Thomas Quinot  <quinot@adacore.com>
25080
25081         * tree.def (PLACEHOLDER_EXPR): Fix comment.
25082
25083 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25084
25085         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
25086         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
25087         (loc_list_from_tree): Don't handle unsigned division.  Handle
25088         signed modulo using DW_OP_{over,over,div,mul,minus}.
25089         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
25090         modulo instead of signed.
25091
25092 2010-01-20  DJ Delorie  <dj@redhat.com>
25093
25094         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
25095         (Fpa): Pass it
25096         (h8300_emit_stack_adjustment): Propogate it.
25097         (push): Pass it.
25098         (h8300_expand_prologue): Likewise.
25099         (h8300_expand_epilogue): Likewise.
25100
25101 2010-01-19  Michael Matz  <matz@suse.de>
25102
25103         PR tree-optimization/41783
25104         * tree-data-ref.c (toplevel): Include flags.h.
25105         (dump_data_dependence_relation):  Also dump the inputs if the
25106         result will be unknown.
25107         (split_constant_offset_1): Look through some conversions.
25108         * tree-predcom.c (determine_roots_comp): Restart a new chain if
25109         the offset from last element is too large.
25110         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
25111         (reassociate_to_the_same_stmt): Handle vector registers.
25112         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
25113         (e.g. conversions).
25114         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
25115         wide_prolog_niters argument, emit widening instructions.
25116         (vect_do_peeling_for_alignment): Adjust caller, use widened
25117         variant of the iteration cound.
25118         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
25119
25120 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25121
25122         PR target/38697
25123         * config/arm/neon-testgen.m (emit_automatics): New parameter
25124         features. Adjust for Fixed_return_reg feature.
25125         (test_intrinsic): Call emit_automatics with new feature.
25126         * config/arm/neon.ml: Update copyright years.
25127         (features): New Fixed_return_reg feature.
25128         (ops): Update feature for Vget_low.
25129
25130 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
25131
25132         PR tree-optimization/42719
25133         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
25134         stmt uses.
25135
25136         PR debug/42728
25137         * fwprop.c (all_uses_available_at): Return false if def_set dest
25138         is a REG that is used in def_insn.
25139
25140 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
25141
25142         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
25143
25144         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
25145         Add argument names.
25146
25147         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
25148
25149         * target.h (struct gcc_target) <secondary_reload>: Change type
25150         of last argument to secondary_reload_info *.
25151
25152 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
25153
25154         PR target/42774
25155         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
25156         memory references with unaligned offsets.  Remove CQImode handling.
25157         (unaligned_memory_operand): Return 1 for memory references with
25158         unaligned offsets.  Remove CQImode handling.
25159
25160 2010-01-18  Richard Guenther  <rguenther@suse.de>
25161
25162         PR middle-end/39954
25163         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
25164         builtin calls.
25165
25166 2010-01-18  Richard Guenther  <rguenther@suse.de>
25167
25168         PR tree-optimization/42781
25169         * tree-ssa-structalias.c (find_what_var_points_to): Skip
25170         restrict processing only if the original variable was artificial.
25171
25172 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
25173
25174         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
25175         find number of popped argument bytes.
25176
25177         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
25178         Fix the text that describes the return value for invalid insns.
25179
25180         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
25181
25182         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
25183         Clarify what 'cost of the -dependence' is.  Fix quoting.
25184
25185         * toplev.c (default_get_pch_validity): Rename argument to "sz".
25186         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
25187
25188 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
25189
25190         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
25191         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
25192
25193 2010-01-17  Richard Guenther  <rguenther@suse.de>
25194
25195         PR middle-end/42248
25196         * function.c (split_complex_args): Take a VEC to modify.
25197         (assign_parms_augmented_arg_list): Build a VEC instead of
25198         a chain of PARM_DECLs.
25199         (assign_parms_unsplit_complex): Take a VEC of arguments.
25200         Do not fixup unmodified parms.
25201         (assign_parms): Deal with the VEC.
25202         (gimplify_parameters): Likewise.
25203
25204 2010-01-17  Richard Guenther  <rguenther@suse.de>
25205
25206         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
25207         node existence check.
25208         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
25209         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
25210         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
25211         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
25212         (gimple_execute_on_growing_pred): Likewise.
25213
25214 2010-01-17  Richard Guenther  <rguenther@suse.de>
25215
25216         PR tree-optimization/42773
25217         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
25218         (compute_antic_aux): Likewise.
25219         (compute_partial_antic_aux): Likewise.
25220
25221 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
25222
25223         PR debug/42767
25224         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
25225         and US_TRUNCATE.
25226
25227 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
25228
25229         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
25230         appearance.
25231
25232         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
25233         Fix markup for strict argument.
25234
25235         (TARGET_SCHED_REORDER2): Fix argument types.
25236
25237         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
25238         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
25239
25240         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
25241         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
25242
25243         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
25244         Add argument name.
25245
25246         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
25247         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
25248         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
25249         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
25250         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
25251
25252         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
25253
25254         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
25255
25256         (TARGET_ASM_RELOC_RW_MASK): Add return type.
25257         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
25258
25259         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
25260
25261         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
25262         Use prototype.
25263
25264         (TARGET_ASM_NAMED_SECTION): Fix argument list.
25265
25266         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
25267         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
25268
25269         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
25270
25271         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
25272
25273         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
25274         referring to it.  Fix language.
25275
25276         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
25277
25278         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
25279
25280         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
25281
25282         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
25283
25284         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
25285         '@var{stream}.  Remove stray 'and'.
25286
25287         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
25288
25289         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
25290
25291         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
25292
25293         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
25294         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
25295
25296         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
25297         Fix description of return value.
25298         Rename argument "sz" to "len."
25299
25300         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
25301         Clarify meaning of 'true' return value.
25302
25303         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
25304
25305         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
25306         rep_mode versus mode_rep.
25307
25308         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
25309
25310         (TARGET_BUILTIN_DECL): Fix name.
25311
25312         (TARGET_COMMUTATIVE_P): Fix type of first argument.
25313
25314         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
25315
25316         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
25317
25318         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
25319
25320         (TARGET_RELAXED_ORDERING): Use @deftypevr.
25321
25322         (TARGET_GET_DRAP_RTX): Note that this is a hook.
25323         Clarify language.
25324
25325         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
25326         Rename argument tm_fn to md_fn.
25327
25328         (TARGET_OPTION_PRINT): Fix argument list.
25329
25330 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
25331
25332         PR target/42664
25333         * config/i386/i386.c (ix86_fixup_binary_operands):
25334         Revert FMA4 fixup of operands.
25335
25336 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25337
25338         PR gcc/42525
25339         * Makefile.in (write_entries_to_file, install-plugin):
25340         Use \012 instead of \n with tr.
25341
25342 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
25343
25344         * configure.ac (HAVE_AS_REF): New C macro.
25345         * configure: Regenerate.
25346         * config.in: Likewise.
25347         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
25348         if HAVE_AS_REF.
25349         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
25350         if HAVE_AS_REF.
25351
25352 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
25353
25354         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
25355
25356         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
25357
25358         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
25359
25360         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
25361
25362         (TARGET_IN_SMALL_DATA_P): Fix argument type.
25363
25364         (TARGET_BINDS_LOCAL_P): Fix argument type.
25365
25366         (TARGET_ASM_FILE_END): Use prototype.
25367
25368         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
25369
25370         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
25371
25372         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
25373
25374         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
25375
25376         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
25377         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
25378
25379         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
25380         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
25381
25382         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
25383         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
25384         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
25385         (TARGET_ADDR_SPACE_CONVERT): Likewise.
25386
25387         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
25388
25389         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
25390
25391         (TARGET_INIT_BUILTINS): Use prototype.
25392
25393         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
25394         Put 'const char *' in braces.  Fix parameter types.
25395         (TARGET_INVALID_CONVERSION): Fix parameter types.
25396         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
25397         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
25398
25399         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
25400         Fix argument type.
25401
25402         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
25403
25404         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
25405
25406 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
25407
25408         * doc/tm.texi (TARGET_HELP): Fix return type.
25409
25410         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
25411         in braces.  Fix argument types.
25412
25413         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
25414
25415         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
25416
25417         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
25418
25419         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
25420         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
25421
25422         (TARGET_MANGLE_TYPE): Fix argument types.
25423
25424         (TARGET_IRA_COVER_CLASSES): Use prototype.
25425
25426         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
25427
25428         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
25429
25430         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
25431
25432         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
25433
25434         (TARGET_CALLEE_COPIES): Fix argument types.
25435
25436         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
25437
25438         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
25439
25440         (TARGET_FUNCTION_VALUE): Fix argument types.
25441
25442         (TARGET_RETURN_IN_MSB): Fix argument type.
25443
25444         (TARGET_RETURN_IN_MEMORY): Fix argument types.
25445
25446         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
25447
25448         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
25449
25450         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
25451         agree with return type.
25452
25453         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
25454
25455 2010-01-15  Jing Yu  <jingyu@google.com>
25456
25457         PR rtl-optimization/42691
25458         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
25459         a pseudo to a constant and are merged, and adjust comments.
25460
25461 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
25462
25463         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
25464
25465 2010-01-15  Richard Guenther  <rguenther@suse.de>
25466
25467         PR middle-end/42739
25468         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
25469         labels of computed or non-local gotos to the destination.
25470         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
25471         landing pad label is the first label.
25472
25473 2010-01-15  Richard Guenther  <rguenther@suse.de>
25474
25475         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
25476
25477 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25478
25479         PR target/42747
25480         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
25481         to allow generation of the xssqrtdp instruction on power7.
25482         (sqrtdf2_fpr): Ditto.
25483
25484 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
25485
25486         PR middle-end/42674
25487         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
25488         functions with noreturn attribute.
25489
25490         PR c++/42608
25491         * varasm.c (declare_weak): Add weak attribute to decl if it
25492         doesn't have one already.
25493         (assemble_external): Only add decls to weak_decls if they also
25494         have weak attribute.
25495
25496 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
25497
25498         * var-tracking.c (var_reg_delete): Don't delete the association
25499         between REGs and values or one-part variables if the register
25500         isn't clobbered.
25501
25502 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
25503
25504         PR debug/42657
25505         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
25506         because its first operand is a non-localized variable.
25507
25508 2010-01-14  Martin Jambor  <mjambor@suse.cz>
25509
25510         PR tree-optimization/42706
25511         * tree-sra.c (encountered_recursive_call): New variable.
25512         (encountered_unchangable_recursive_call): Likewise.
25513         (sra_initialize): Initialize both new variables.
25514         (callsite_has_enough_arguments_p): New function.
25515         (scan_function): Call decl and flags check only for IPA-SRA, check
25516         whether there is a recursive call and whether it has enough arguments.
25517         (all_callers_have_enough_arguments_p): New function.
25518         (convert_callers): Look for recursive calls only when
25519         encountered_recursive_call is set.
25520         (ipa_early_sra): Bail out either if
25521         !all_callers_have_enough_arguments_p or
25522         encountered_unchangable_recursive_call.
25523
25524 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25525
25526         * sel-sched.c: Add 2010 to copyright years.
25527         * sel-sched-ir.c: Likewise.
25528         * sel-sched-ir.h: Likewise.
25529
25530 2010-01-14  Martin Jambor  <mjambor@suse.cz>
25531
25532         PR tree-optimization/42714
25533         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
25534         constructors specially.
25535
25536 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25537
25538         * config/i386/drivers-i386.c (detect_caches_intel):
25539         Add l2sizekb parameter and fill in.
25540         (host_detect_local_cpu): Add l2sizekb, fill in.
25541         Add Atom small cache heuristic.
25542
25543 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25544
25545         * config/i386/drivers-i386.c (detect_caches_cpuid4):
25546         Add level3 parameter and fill in.
25547         (detect_caches_intel): Handle level3 cache.
25548
25549 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25550
25551         * config/i386/drivers-i386.c (host_detect_local_cpu):
25552         Fix core duo detection.
25553
25554 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25555
25556         * config/i386/drivers-i386.c (host_detect_local_cpu):
25557         Fix Atom detection.
25558
25559 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25560
25561         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
25562         (rs6000_variable_issue_1): this.  Use...
25563         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
25564
25565 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25566
25567         * sel-sched-ir.c (sel_restore_other_notes): Rename to
25568         sel_restore_notes.  Update all callers.  Call reemit_notes
25569         for all insns.
25570
25571 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25572
25573         PR rtl-optimization/42246
25574         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
25575         loops.
25576
25577 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25578
25579         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
25580         all successors is the same as number of successors in current region.
25581
25582 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25583
25584         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
25585         to rename is not separable.  Otherwise check that its LHS is not NULL.
25586
25587 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25588
25589         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
25590
25591 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25592
25593         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
25594         available registers when failed to discover LHS register class.
25595         Fix indentation.  Update comment.
25596
25597 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25598             Alexander Monakov  <amonakov@ispras.ru>
25599
25600         PR rtl-optimization/42389
25601         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
25602         to can_issue_more.
25603         (advance_state_on_fence): Likewise.
25604         (sel_target_adjust_priority): Print debug output only when
25605         sched_verbose >= 4, not 2.
25606         (get_expr_cost): Do not issue all unique insns on the next cycle.
25607         (fill_insns): Initialize can_issue_more from the value saved
25608         with the fence.
25609         * sel-sched-ir.c (flist_add): New parameter issue_more.
25610         Init FENCE_ISSUE_MORE with it.
25611         (merge_fences): Likewise.
25612         (init_fences): Update call to flist_add.
25613         (add_to_fences, add_clean_fence_to_fences)
25614         (add_dirty_fence_to_fences): Likewise.
25615         (move_fence_to_fences): Update call to merge_fences.
25616         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
25617         sched groups.
25618         * sel-sched-ir.h (struct _fence): New field issue_more.
25619         (FENCE_ISSUE_MORE): New accessor macro.
25620
25621 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25622
25623         PR rtl-optimization/42388
25624         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
25625         that have no predecessors nor successors.  Do not call move_bb_info
25626         for empty blocks outside of current region.
25627
25628 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25629
25630         PR rtl-optimization/42294
25631         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
25632         * sel-sched.c (move_exprs_to_boundary): Transitively add all
25633         originators' originators.
25634
25635 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25636
25637         PR rtl-optimization/39453
25638         PR rtl-optimization/42246
25639         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
25640         for pipelining_p.
25641         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
25642
25643 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25644             Alexander Monakov  <amonakov@ispras.ru>
25645
25646         PR middle-end/42245
25647         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
25648         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
25649         argument.  Update all callers.
25650         (tidy_control_flow): ... and here.  Recompute topological order
25651         of basic blocks in region if necessary.
25652         (sel_redirect_edge_and_branch): Change return type.  Return true
25653         if topological order might have been invalidated.
25654         (purge_empty_blocks): Export and move from...
25655         * sel-sched.c (purge_empty_blocks): ... here.
25656         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
25657         (maybe_tidy_empty_bb): Delete prototype.
25658         (purge_empty_blocks): Declare.
25659
25660 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25661
25662         PR rtl-optimization/42249
25663         * sel-sched.c (try_replace_dest_reg): When chosen register
25664         and original register is the same, do not bail out early, but
25665         still check all original insns for validity of replacing destination
25666         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
25667         in this case.
25668
25669 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
25670
25671         PR c/42721
25672         Port from no-undefined-overflow branch:
25673         2009-03-09  Richard Guenther  <rguenther@suse.de>
25674
25675         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
25676
25677 2010-01-14  Richard Guenther  <rguenther@suse.de>
25678
25679         PR lto/42665
25680         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
25681
25682 2010-01-14  Ira Rosen  <irar@il.ibm.com>
25683
25684         PR tree-optimization/42709
25685         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
25686         as scalar type in creation of constant vector operand.
25687
25688 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25689
25690         PR testsuite/42414
25691         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
25692         (check-parallel-%): Match `testsuite' directory component only
25693         at the end.
25694
25695 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
25696
25697         PR translation/39521
25698         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
25699         strings with _().
25700
25701 2010-01-13  Richard Guenther  <rguenther@suse.de>
25702
25703         PR tree-optimization/42730
25704         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
25705         offset zero.
25706
25707 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
25708
25709         PR target/pr42542
25710         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
25711         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
25712         them signed.
25713
25714 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
25715
25716         * config/bfin/libgcc-bfin.ver: Regenerate based on current
25717         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
25718         ___umulsi3_highpart.
25719
25720         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
25721         rather than schedule_insns if the pass is enabled.
25722
25723 2010-01-13  Martin Jambor  <mjambor@suse.cz>
25724
25725         PR tree-optimization/42704
25726         * tree-sra.c (sra_modify_assign): Do not delete assignments to
25727         SSA_NAMEs.
25728
25729 2010-01-13  Martin Jambor  <mjambor@suse.cz>
25730
25731         PR tree-optimization/42703
25732         * tree-sra.c (analyze_access_subtree): Check that we can build a
25733         reference to the original data within the aggregate.
25734
25735 2010-01-13  Richard Guenther  <rguenther@suse.de>
25736
25737         PR tree-optimization/42705
25738         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
25739
25740 2010-01-13  Richard Guenther  <rguenther@suse.de>
25741
25742         PR middle-end/42716
25743         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
25744
25745 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
25746
25747         PR debug/41371
25748         * var-tracking.c (values_to_unmark): New variable.
25749         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
25750         values_to_unmark vector.  Moved body to...
25751         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
25752         instead queue it into values_to_unmark vector.
25753         (vt_find_locations): Free values_to_unmark vector.
25754
25755 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
25756
25757         * config/s390/s390.c (override_options): Set
25758         default of max-pending-list-length to 256
25759
25760 2010-01-13  Richard Guenther  <rguenther@suse.de>
25761
25762         PR lto/42678
25763         * tree-pass.h (PROP_gimple_lcx): New.
25764         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
25765         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
25766         before the final cleanup_eh.
25767         (dump_properties): Dump PROP_gimple_lcx.
25768         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
25769         (tree_lower_complex_O0): Remove.
25770         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
25771         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
25772         tree_lower_complex, schedule TODO_update_ssa.
25773         * lto-streamer-out.c (output_function): Stream the functions
25774         properties.
25775         * lto-streamer-in.c (input_function): Likewise.
25776         (lto_read_body): Do not override them here.
25777
25778 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
25779
25780         PR c/42708
25781         * c-typeck.c (build_c_cast): Fold value cast to union type before
25782         wrapping it in a CONSTRUCTOR.
25783
25784 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
25785
25786         PR rtl-optimization/42699
25787         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
25788         involved.
25789
25790 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25791
25792         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
25793         SUBTARGET_WARN_UNUSED_SPEC): Move ...
25794         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
25795         SUBTARGET_WARN_UNUSED_SPEC): ... here
25796         * config/mips/iris5.h (LIBGCC_SPEC): Define.
25797
25798 2010-01-12  Julian Brown  <julian@codesourcery.com>
25799
25800         * config/arm/neon-schedgen.ml (Utils): Don't try to
25801         open missing module.
25802         (find_with_result): New.
25803
25804 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
25805
25806         PR debug/42662
25807         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
25808         sharing when canonicalizing ({lt,ge}u (plus a b) b).
25809
25810         PR tree-optimization/42645
25811         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
25812         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
25813         decl_map, set processing_debug_stmt to -1 and return name without
25814         any remapping.
25815
25816 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
25817
25818         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
25819         binutils version, and reword target configuration description.
25820
25821 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
25822
25823         * config/avr/avr.h (LINKER_NAME): Remove.
25824
25825 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
25826
25827         PR target/42416
25828         * config/rs6000/rs6000.c (rs6000_override_options): On targets
25829         that support VSX, warn for -mno-altivec if vsx is not disabled,
25830         and disable vsx.
25831
25832 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
25833             Shujing Zhao  <pearly.zhao@oracle.com>
25834
25835         PR translation/42469
25836         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
25837         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
25838         character between option name and help text.
25839         * c.opt (imultilib): Likewise.
25840
25841 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
25842
25843         * lto-streamer-out.c (output_unreferenced_globals): Output static
25844         variables.
25845
25846 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
25847
25848         PR rtl-optimization/42621
25849         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
25850         optimizing for size.
25851         (duplicate_computed_gotos): Remove now-redundant check.
25852
25853 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
25854
25855         PR target/37454
25856         * configure.ac: Save and restore LDFLAGS and LIBS
25857         * configure: Regenerate.
25858
25859 2010-01-10  Richard Guenther  <rguenther@suse.de>
25860
25861         PR middle-end/42667
25862         * builtins.c (fold_builtin_strlen): Add type argument and
25863         convert the resulting length to it.
25864         (fold_builtin_1): Adjust.
25865
25866 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
25867
25868         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
25869         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
25870         1 insn.
25871         (num_insns_constant_wide): Adjust for that change.
25872
25873 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25874
25875         PR debug/42631
25876         * web.c (union_defs): Add used argument, to combine uses of
25877         uninitialized regs.
25878         (entry_register): Adjust type and tests of used argument.
25879         (web_main): Widen used for new use.  Pass it to union_defs.
25880         * df.h (union_defs): Adjust prototype.
25881
25882 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25883
25884         PR debug/42630
25885         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
25886         uses in new incoming argument.  Free body.
25887         (reset_debug_uses_in_loop): New.
25888         (analyze_insn_to_expand_var): Call the latter if the former found
25889         anything.  Fix whitespace.  Reject invalid dest overlaps before
25890         going through all insns in the loop.
25891
25892 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25893
25894         PR debug/42629
25895         * haifa-sched.c (dying_use_p): Debug insns don't count.
25896
25897 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25898
25899         PR middle-end/42363
25900         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
25901         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
25902         (verify_gimple_call): Reject LHS in noreturn calls.
25903
25904 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25905
25906         PR debug/42604
25907         PR debug/42395
25908         * tree-vect-loop-manip.c (adjust_info): New type.
25909         (adjust_vec): New pointer to vector.
25910         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
25911         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
25912         (slpeel_update_phis_for_duplicate_loop): Use them.
25913         (slpeel_update_phi_nodes_for_guard1): Likewise.
25914         (slpeel_update_phi_nodes_for_guard2): Likewise.
25915         (slpeel_tree_peel_loop_to_edge): Likewise.
25916         (vect_update_ivs_after_vectorizer): Likewise.
25917
25918 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25919
25920         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
25921         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
25922
25923 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25924
25925         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
25926         bogus uninitialized warning.
25927
25928 2010-01-09  Richard Guenther  <rguenther@suse.de>
25929
25930         PR middle-end/42512
25931         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
25932         the evolution is compatible with the initial condition.
25933
25934 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
25935
25936         * gcc.c (process_command): Update copyright notice dates.
25937         * gcov.c (print_version): Likewise.
25938         * gcov-dump.c (print_version): Likewise.
25939         * mips-tfile.c (main): Likewise.
25940         * mips-tdump.c (main): Likewise.
25941
25942 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
25943
25944         PR target/41885
25945         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
25946         (rotlhi3): Delete.
25947         (rotlhi3_8): Delete.
25948         (rotlsi3): Delete.
25949         (rotlsi3_8): Delete.
25950         (rotlsi3_16): Delete.
25951         (rotlsi3_24): Delete.
25952         (rotl<mode>3): New.
25953         (*rotw<mode>3): New.
25954         (*rotb<mode>3): New.
25955         * config/avr/avr.c (avr_rotate_bytes): New function.
25956         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
25957
25958 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
25959
25960         PR target/37454
25961         * configure.ac: Modify -rdynamic check.
25962         * configure: Regenerate.
25963
25964 2010-01-08  DJ Delorie  <dj@redhat.com>
25965
25966         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
25967         register popping order.
25968
25969 2010-01-08  Richard Guenther  <rguenther@suse.de>
25970
25971         PR lto/42528
25972         * c.opt (fsigned-char): Also let LTO handle this option.
25973         (funsigned-char): Likewise.
25974
25975 2010-01-07  Richard Guenther  <rguenther@suse.de>
25976
25977         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
25978         (gimple_op): Likewise.
25979         (gimple_op_ptr): Likewise.
25980         (gimple_assign_set_lhs): Remove gcc_assert.
25981         (gimple_assign_set_rhs1): Likewise.
25982         (gimple_assign_set_rhs2): Likewise.
25983         (gimple_call_set_lhs): Likewise.
25984         (gimple_call_set_fn): Likewise.
25985         (gimple_call_set_fndecl): Likewise.
25986         (gimple_call_fndecl): Likewise.
25987         (gimple_call_return_type): Likewise.
25988         (gimple_call_set_chain): Likewise.
25989         (gimple_call_num_args): Likewise.
25990         (gimple_call_set_arg): Likewise.
25991         (gimple_cond_set_code): Likewise.
25992         (gimple_cond_set_lhs): Likewise.
25993         (gimple_cond_set_rhs): Likewise.
25994         (gimple_cond_set_true_label): Likewise.
25995         (gimple_cond_set_false_label): Likewise.
25996         (gimple_label_set_label): Likewise.
25997         (gimple_goto_set_dest): Likewise.
25998         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
25999         (gimple_debug_bind_get_value): Likewise.
26000         (gimple_debug_bind_get_value_ptr): Likewise.
26001         (gimple_debug_bind_set_var): Likewise.
26002         (gimple_debug_bind_set_value): Likewise.
26003         (gimple_debug_bind_reset_value): Likewise.
26004         (gimple_debug_bind_has_value_p): Likewise.
26005         (gimple_return_retval_ptr): Remove gcc_assert.
26006         (gimple_return_retval): Likewise.
26007         (gimple_return_set_retval): Likewise.
26008         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
26009         (safe_referenced_var_iterator): Remove.
26010         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
26011         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
26012         (fill_referenced_var_vec): Remove.
26013         (first_readonly_imm_use): Remove redundant gcc_assert.
26014         (phi_arg_index_from_use): Combine gcc_asserts.
26015         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
26016         (first_imm_use_stmt): Remove redundant gcc_assert.
26017         * tree-cfg.c (verify_gimple_call): Verify function and chain
26018         operands.  Verify arguments.
26019         (verify_types_in_gimple_stmt): Verify condition code and labels.
26020
26021 2010-01-07  Richard Guenther  <rguenther@suse.de>
26022
26023         PR tree-optimization/42641
26024         * sese.c (rename_map_elt_info): Use the SSA name version, do
26025         not hash pointers.
26026
26027 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
26028
26029         PR tree-optimization/42625
26030         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
26031         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
26032
26033 2010-01-07  Duncan Sands  <baldrick@free.fr>
26034
26035         * Makefile.in (PLUGIN_HEADERS): Add version.h.
26036
26037 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
26038
26039         PR target/42511
26040         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
26041         note itself is not function_invariant_p.
26042
26043 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
26044
26045         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
26046         Do not add the DF_NOTE problem.
26047         * store-motion.c (execute_rtl_store_motion): Likewise.
26048
26049 2010-01-07  Martin Jambor  <mjambor@suse.cz>
26050
26051         PR tree-optimization/42157
26052         * tree-sra.c (compare_access_positions): Stabilize sort if both
26053         accesses have integer types, return zero immediately if they are the
26054         same.
26055
26056 2010-01-06  Richard Henderson  <rth@redhat.com>
26057
26058         PR middle-end/41883
26059         * haifa-sched.c (add_to_note_list): Merge into ...
26060         (concat_note_lists): ... here, and ...
26061         (unlink_other_notes, rm_other_notes): Merge into...
26062         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
26063         NOTE_INSN_EPILOGUE_BEG.
26064
26065 2010-01-06  Richard Guenther  <rguenther@suse.de>
26066
26067         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
26068         not inline regular functions into always-inline functions.
26069
26070 2010-01-06  Nick Clifton  <nickc@redhat.com>
26071
26072         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
26073         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
26074         used together.
26075         (OVERRIDE_OPTIONS): Delete.
26076         (OPTIMIZATION_OPTIONS): Define.
26077         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
26078         * config/rx/rx.c (rx_handle_option): Issue an error message if
26079         -mcpu=rx200 and -fpu are used together.
26080         (rx_set_optimization_options): New function.  Issue an error
26081         message if an optimization attribute attempts to reset the FPU/
26082         math optimization pairing.
26083         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
26084         * config/rx/rx.opt: Set the default to 32-bit doubles.
26085         * config/rx/t-rx: Add multilibs for -nofpu option.
26086         * doc/invoke.texi: Update documentation of RX options.
26087
26088 2010-01-06  Richard Guenther  <rguenther@suse.de>
26089
26090         * tree-ssa-pre.c (name_to_id): New global.
26091         (alloc_expression_id): Simplify SSA name handling.
26092         (lookup_expression_id): Likewise.
26093         (init_pre): Zero name_to_id.
26094         (fini_pre): Free it.
26095
26096 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
26097
26098         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
26099
26100 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
26101
26102         PR target/42542
26103         * config/i386/sse.md (smaxv2di3): New.
26104         (umaxv2di3): Likewise.
26105         (sminv2di3): Likewise.
26106         (uminv2di3): Likewise.
26107
26108 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
26109
26110         PR target/42564
26111         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
26112         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
26113         (legitimize_tls_address): Likewise.
26114         (sparc_tls_referenced_p): Likewise.
26115         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
26116         and adjust calls to legitimize_pic_address.
26117         (legitimate_constant_p) Use sparc_tls_referenced_p.
26118         (legitimate_pic_operand_p): Likewise.
26119         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
26120         (sparc_tls_symbol_ref_1): Delete.
26121         (sparc_tls_referenced_p): Make static, recognize specific patterns.
26122         (legitimize_tls_address): Make static, handle CONST patterns.
26123         (legitimize_pic_address): Make static, remove unused parameter and
26124         adjust recursive calls.
26125         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
26126         and adjust call to legitimize_pic_address.
26127         (sparc_output_mi_thunk): Likewise.
26128
26129 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
26130             H.J. Lu  <hongjiu.lu@intel.com>
26131
26132         PR target/42542
26133         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
26134         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
26135         operands to make them signed.
26136
26137         Revert:
26138         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26139
26140         PR target/42542
26141         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
26142         GTU to GT for V4SI and V2DI.
26143
26144         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
26145         (umin<mode>3): Removed.
26146         (uminv8hi3): New.
26147         (uminv4si3): Likewise.
26148
26149 2010-01-05  Martin Jambor  <mjambor@suse.cz>
26150
26151         PR tree-optimization/42462
26152         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
26153         current_function_decl to helper functions and macros.
26154
26155 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26156
26157         PR bootstrap/41771
26158         * flags.h: Don't include real.h.
26159         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
26160         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
26161         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
26162         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
26163         * dominance.c: Update copyright.
26164         * gimple.c (walk_gimple_op): Remove inline.
26165         * tree-ssa-reassoc.c: Include real.h.
26166         * Makefile.in (FLAGS_H): Remove $(REAL_H).
26167         (tree-ssa-reassoc.o): Depend on $(REAL_H).
26168
26169 2010-01-05  Nick Clifton  <nickc@redhat.com>
26170
26171         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
26172         register to push into the stack frame when the accumulator has to
26173         be saved during interrupts.
26174
26175 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
26176
26177         * doc/invoke.texi: Remove the documentation about option
26178         -Wunreachable-code.
26179         * common.opt (Wunreachable-code):  Preserved for backward
26180         compatibility.
26181         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
26182         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
26183         the backward compatibility flag section.
26184
26185 2010-01-05  Richard Guenther  <rguenther@suse.de>
26186
26187         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
26188
26189 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
26190
26191         PR other/42611
26192         * cfgexpand.c (expand_one_var): Diagnose too large variables.
26193
26194         PR tree-optimization/42508
26195         * tree-sra.c (convert_callers): Check for recursive call
26196         by comparing cgraph nodes instead of decls.
26197         (modify_function): Call ipa_modify_formal_parameters also
26198         on all same_body aliases.
26199
26200         * cgraphunit.c (cgraph_materialize_all_clones): Compare
26201         cgraph nodes when checking for same_body aliases.
26202
26203 2010-01-05  Richard Guenther  <rguenther@suse.de>
26204
26205         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
26206         allocation and lookup.
26207         (get_or_alloc_expr_for_constant): Likewise.
26208         (phi_translate): Sink allocation.
26209
26210 2010-01-04  Richard Guenther  <rguenther@suse.de>
26211
26212         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
26213         a new entry only if needed.
26214         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
26215         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
26216         hashtable lookup.
26217         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
26218         the result array.
26219         (phi_translate): Handle CONSTANTs early.
26220
26221 2010-01-04  Martin Jambor  <mjambor@suse.cz>
26222
26223         PR tree-optimization/42398
26224         * tree-sra.c (struct access): Removed flag grp_different_types.
26225         (dump_access): Do not dump the removed flag.
26226         (sort_and_splice_var_accesses): Do not set the removed flag.
26227         (sra_modify_expr): Check for type compatibility directly.
26228
26229 2010-01-04  Martin Jambor  <mjambor@suse.cz>
26230
26231         PR tree-optimization/42366
26232         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
26233         edges with variable number of parameters.
26234         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
26235         flag instead of asserting it.
26236         (ipa_read_node_info): Read uses_analysis_done flag.
26237
26238 2010-01-04  Richard Guenther  <rguenther@suse.de>
26239
26240         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
26241         iterative_hash_* as intended.
26242         (vn_reference_compute_hash): Likewise.  Simplify hashing
26243         SSA names.
26244         (vn_reference_lookup_2): Likewise.
26245         (vn_nary_op_compute_hash): Likewise.
26246         (vn_phi_compute_hash): Likewise.
26247         (expressions_equal_p): Remove strange code.
26248         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
26249         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
26250         (bitmap_insert_into_set_1): Take value-id as parameter.
26251         (add_to_value): Pass it.
26252         (bitmap_insert_into_set): Likewise.
26253         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
26254
26255 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
26256
26257         PR driver/42442
26258         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
26259         (do_self_spec): For switches with SWITCH_IGNORE set set also
26260         SWITCH_IGNORE_PERMANENTLY.
26261         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
26262         of SWITCH_IGNORE.
26263
26264 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
26265
26266         * lto-streamer-out.c (output_unreferenced_globals): Output the full
26267         tree of an unreferenced global var.
26268
26269 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26270
26271         PR target/42542
26272         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
26273         GTU to GT for V4SI and V2DI.
26274
26275         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
26276         (umin<mode>3): Removed.
26277         (uminv8hi3): New.
26278         (uminv4si3): Likewise.
26279
26280 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26281
26282         PR lto/42581
26283         * collect2.c (main): Turn on trace in collect2 if -v is passed
26284         to gcc with LTO.
26285
26286 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
26287
26288         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
26289         description of expression operand.
26290
26291 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
26292
26293         * configure.ac: Add install-html to target_list for Make-hooks.
26294         * configure: Regenerate.
26295         * fortran/Make-lang.in (F95_HTMLFILES): New.
26296         (fortran.html): Use it.
26297         (fortran.install-html): New.
26298         * Makefile.in (install-html): Add lang.install-html.
26299         * java/Make-lang.in (JAVA_HTMLFILES): New.
26300         (java.html): Use it.
26301         (java.install-html): New.
26302         * objc/Make-lang.in (objc.install-html): New.
26303         * objcp/Make-lang.in (obj-c++.install-html): New.
26304         * cp/Make-lang.in (c++.install-html): New.
26305         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
26306         * lto/Make-lang.in (lto.install-html): New.
26307
26308 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
26309
26310         PR lto/42520
26311         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
26312
26313 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
26314
26315         PR rtl-optimization/41862
26316         * store-motion.c (store_killed_in_insn, compute_store_table,
26317         remove_reachable_equiv_notes, replace_store_insn,
26318         build_store_vectors): Ignore all DEBUG_INSNs.
26319
26320 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
26321
26322         PR lto/41564
26323         * common.opt: Add dumpdir.
26324
26325         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
26326         isn't specified.
26327         (option_map): Add --dumpdir.
26328
26329         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
26330
26331         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
26332
26333         * opts.c (decode_options): Try dump_dir_name first if
26334         dump_base_name isn't an absolute path.
26335         (common_handle_option): Handle OPT_dumpdir.
26336
26337         * toplev.c (dump_dir_name): New.
26338         (print_switch_values): Also ignore -dumpdir.
26339
26340         * toplev.h (dump_dir_name): New.
26341
26342 2010-01-03  Richard Guenther  <rguenther@suse.de>
26343
26344         PR tree-optimization/42589
26345         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
26346         double-word expansion of bswap32.
26347
26348 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
26349
26350         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
26351         with BLOCK_FOR_INSN.
26352         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
26353         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
26354         noce_process_if_block): Likewise.
26355         * gcse.c (compute_local_properties, insert_expr_in_table,
26356         insert_set_in_table, canon_list_insert, find_avail_set,
26357         pre_insert_copy_insn): Likewise.
26358
26359         * basic-block.h (BLOCK_NUM): Move from here...
26360         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
26361
26362 2010-01-03  Richard Guenther  <rguenther@suse.de>
26363
26364         PR tree-optimization/42438
26365         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
26366         contains_may_not_return_call flag.
26367         (BB_MAY_NOTRETURN): New.
26368         (valid_in_sets): Trapping nary operations are not valid
26369         in blocks that may not return.
26370         (insert_into_preds_of_block): Remove check for trapping expressions.
26371         (compute_avail): Compute also BB_MAY_NOTRETURN.
26372
26373 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
26374
26375         * doc/invoke.texi: Add 2010 to copyright years.
26376
26377 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
26378
26379         * config/sparc/sparc.c: Fix formatting nits.
26380
26381 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
26382             Alexander Monakov  <amonakov@ispras.ru>
26383
26384         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
26385
26386 2010-01-02  Richard Guenther  <rguenther@suse.de>
26387
26388         PR middle-end/42577
26389         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
26390         (simplify_switch_using_ranges): Mark to be removed edges
26391         as non-executable.
26392
26393 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26394
26395         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
26396
26397         * collect2.c (scan_libraries): Add missing argument in call to
26398         scan_prog_file.
26399
26400 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
26401
26402         PR target/42448
26403         * config/alpha/predicates.md (aligned_memory_operand): Return false
26404         for CQImode.
26405         (unaligned_memory_operand): Return true for CQImode.
26406         * config/alpha/alpha.c (get_aligned_mem): Assert that location
26407         doesn not cross aligned SImode word boundary.
26408
26409 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
26410
26411         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
26412         Remove.
26413         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
26414         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
26415
26416 2010-01-02  Richard Guenther  <rguenther@suse.de>
26417
26418         PR lto/41597
26419         * toplev.c (compile_file): Emit LTO marker properly.  Change
26420         it to __gnu_lto_v1.
26421         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
26422
26423 2010-01-01  Richard Guenther  <rguenther@suse.de>
26424
26425         PR debug/42455
26426         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
26427
26428 2010-01-01  Richard Guenther  <rguenther@suse.de>
26429
26430         PR c/42570
26431         * c-decl.c (grokdeclarator): For zero-size arrays force
26432         structural equality checks as layout_type does.
26433
26434 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
26435
26436         * builtins.c: Update copyright to 2010.
26437
26438 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
26439
26440         PR lto/42531
26441         * lto-streamer-out.c (produce_asm): Revert the last change.
26442         (copy_function): Likewise.
26443
26444         * lto-streamer.c (lto_get_section_name): Skip any leading
26445         asterisk in name.
26446
26447 2010-01-01  Richard Guenther  <rguenther@suse.de>
26448
26449         PR middle-end/42559
26450         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
26451         for LABEL_DECLs.
26452
26453 \f
26454 Copyright (C) 2010 Free Software Foundation, Inc.
26455
26456 Copying and distribution of this file, with or without modification,
26457 are permitted in any medium without royalty provided the copyright
26458 notice and this notice are preserved.